How the sample size is calculated
Proportion: n = z² × p(1 − p) ÷ e² Mean: n = (z × σ ÷ e)² Small population: n adj = n ÷ (1 + (n − 1) ÷ N)For the standard survey case, z = 1.96, p = 0.5 and e = 0.05: n = 3.8416 × 0.25 ÷ 0.0025 = 384.16, which rounds up to 385. With a population of only 10,000 the correction brings it down to 370. Always round up so the margin of error is not exceeded.
Typical sample sizes
| Margin of error (95%, p = 50%) | Sample size |
|---|---|
| ± 10% | 97 |
| ± 5% | 385 |
| ± 3% | 1,068 |
| ± 1% | 9,604 |
Notice how precision gets expensive: going from ±5% to ±1% needs 25 times as many responses. Population size barely matters once it is large; a sample of about 385 serves a population of a million almost as well as one of 100,000.
Planning a survey
- The result is the number of completed responses you need. If you expect a 20% response rate, invite five times as many people.
- A random sample is assumed. A biased sample cannot be fixed by making it bigger.
- If you want results for subgroups, each subgroup needs its own adequate sample.
Check precision afterwards with the confidence interval calculator and read about z values in the z-score calculator.
Complete guide to the Sample Size Calculator
How to use the Sample Size Calculator, step by step
- Choose proportion or mean.
- Choose the confidence level and margin of error.
- Enter p or the standard deviation.
- Enter the population size if it is small.
Common mistakes to avoid
- Forgetting the response rate.
- Rounding down.
- Assuming a larger sample fixes bias.
Key terms explained
- Margin of error
- The allowed difference from the true value.
- Confidence level
- How often the method captures the truth.
- Finite population correction
- A reduction for small populations.
- Response rate
- The share of invited people who reply.
Want the full walkthrough? Read our guide: How Confidence Intervals and Sample Size Work.
Frequently asked questions
How many respondents do I need for a survey?
For a ±5% margin at 95% confidence you need about 385 completed responses from a large population, and about 1,068 for ±3%.
Why use 50% for the expected proportion?
Because p × (1 − p) is largest at 50%, so it gives the biggest sample. It is the safest choice when you do not know the true proportion.
Does the population size matter?
Only when the sample is a large share of it. For populations above about 100,000 the required sample hardly changes.
What is the margin of error?
It is the maximum expected difference between the sample result and the true value, at the chosen confidence level, such as ±5 percentage points.
What is the finite population correction?
A reduction in sample size when you sample a large share of a small population, given by n ÷ (1 + (n − 1) ÷ N).
How does confidence level change the sample size?
Higher confidence needs a larger sample. Going from 95% to 99% raises the critical value from 1.96 to 2.576, increasing the sample by about 73%.
Do I need to allow for non-response?
Yes. Divide the required number by your expected response rate to find how many people to invite.