- Home
- Statistics
- Sample Size Calculator
Sample Size Calculator
For a large population, 95% confidence and a ±5% margin of error you need 385 responses: n = z² × p(1 − p) ÷ E² = 1.96² × 0.25 ÷ 0.05².
Expecting only 20% of people to reply? Enter your response rate and the calculator tells you how many invitations to send, not just how many answers you need.
How many responses do I need?
How accurate is my sample?
Sample size to estimate an average
How we got this
Compare options
Row 1 follows the calculator above. Edit any cell.Bulk mode
My saved calculations
Stored only in this browser. Nothing is sent to our servers.Country & format
Change the country edition from the menu at the top.Your next step
Your answer carries over, so you don’t have to type it again.
The sample size formula
n₀ = z² × p(1 − p) ÷ E²
z comes from the confidence level (1.96 for 95%), p is the expected proportion and E the margin of error as a decimal. For a small population N, correct it: n = n₀ ÷ (1 + (n₀ − 1) ÷ N).
Worked example
A school of 1,200 students, 95% confidence, ±5%: n₀ = 384.2; n = 384.2 ÷ (1 + 383.2 ÷ 1,200) ≈ 292 students.
Sample sizes at a glance (large population, p = 50%)
| Margin of error | 90% | 95% | 99% |
|---|---|---|---|
| ±10% | 68 | 97 | 166 |
| ±5% | 271 | 385 | 664 |
| ±3% | 752 | 1,068 | 1,844 |
| ±2% | 1,691 | 2,401 | 4,147 |
| ±1% | 6,764 | 9,604 | 16,588 |
Halving the margin of error needs four times as many responses.
Does population size matter?
Much less than people think. Once the population is above about 20,000, the sample size hardly changes: 385 responses give ±5% for a city of 100,000 or a country of 200 million. The correction only matters when your sample is a big share of the population.
Size is not everything
- A random sample matters more than a big one. 10,000 replies from a biased group can be worse than 400 random ones.
- Low response rates can bias results if the people who reply differ from those who do not.
- For subgroups (for example men and women separately) each subgroup needs its own sample size.
Frequently asked questions
What sample size do I need for a survey?
For 95% confidence and ±5% margin of error, 385 completed responses for a large population, fewer for a small one.
Why use 50% as the proportion?
p(1 − p) is largest at 50%, so it gives the biggest, safest sample size when you do not know the answer in advance.
What is the margin of error?
The range around your result that likely contains the true value. 60% ± 5% means the true figure is probably between 55% and 65%.
What confidence level should I use?
95% is standard. Use 90% for quick, low-stakes research and 99% when mistakes are costly.