Sample Size Calculator
Calculate the survey sample size you need
Frequently Asked Questions
Sample size formula
To estimate a proportion (for example, the share of customers who would recommend you) within a chosen margin of error, the required sample size is:
n = z² × p × (1 − p) ÷ e²
where z is the z-score for the confidence level, p is the expected proportion and e is the margin of error as a decimal. For a known, limited population N, the finite population correction reduces the sample: nadj = n ÷ (1 + (n − 1) ÷ N).
Example
At 95% confidence (z = 1.96), a 5% margin of error and p = 50%, n = 1.96² × 0.25 ÷ 0.05² = 385 responses (384.2 rounded up). If your whole population is 10,000 people, you need 370; for a population of 1,000, only 278.
How the inputs change the answer
| Confidence | Margin of error | Sample size (large population) |
|---|---|---|
| 90% | ±5% | 271 |
| 95% | ±5% | 385 |
| 99% | ±5% | 664 |
| 95% | ±3% | 1,068 |
Halving the margin of error roughly quadruples the sample, which is why national polls with ±3% need about 1,000 respondents.
Why use 50%?
The term p × (1 − p) is largest at p = 50%, so using 50% gives the most conservative, safest sample size when you do not know the answer in advance. If earlier research suggests the proportion is around 10% or 90%, you can use that and need fewer responses.
Practical tips
- Plan for non-response. If you expect a 20% response rate, invite five times the required sample.
- Subgroups need their own samples. To compare men and women separately at ±5%, each group needs about 385 responses.
- Random selection matters more than size. A large but biased sample, such as an opt-in web poll, can be less accurate than a small random one.
To test whether two versions of a page perform differently, use the A/B test significance calculator. For relationships between variables, see the correlation calculator.