Work out how many people to survey so your results are accurate to within a chosen margin of error. Pick a confidence level, set the margin of error and, if you know it, the size of the population you are sampling from — small populations need fewer responses.
What is sample size?
The sample size is the number of people or items you measure to estimate something about a larger population, such as the share of customers who would recommend a product. A bigger sample gives a narrower margin of error, but with diminishing returns: halving the margin of error needs four times as many responses.
The calculation rests on the normal approximation to a sample proportion. The margin of error at a confidence level is z × √(p(1 − p) ÷ n); solving that for n gives the formula used here. When the sample is a noticeable fraction of a small population, the finite population correction reduces the number needed.
How to use the sample size calculator
- Choose a confidence level, usually 95%.
- Enter the margin of error you can accept, in percentage points.
- Enter the population size if it is small, then read the number of responses needed.
Formula
n₀ = z² × p(1 − p) ÷ E² · n = n₀ ÷ (1 + (n₀ − 1) ÷ N)
z is the critical value for the confidence level (1.96 for 95%), p is the expected proportion, E is the margin of error as a decimal and N is the population size.
The second step, the finite population correction, only matters when the sample is a sizeable share of the population. The answer is always rounded up.
Worked examples
A national survey (95%, ±5%)
- Confidence level
- 95%
- Margin of error
- 5 %
- Expected proportion
- 50 %
- Population
- Very large or unknown
- Sample size needed
- 385
- Critical z value
- 1.96
n = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15, rounded up to 385 responses — the same whether the country has 1 million or 300 million people.
Surveying a company of 500 staff
- Confidence level
- 95%
- Margin of error
- 5 %
- Expected proportion
- 50 %
- Population
- I know the population size
- Population size
- 500
- Sample size needed
- 218
- Critical z value
- 1.96
- Without population correction
- 385
Start from 384.15, then correct for the small population: 384.15 ÷ (1 + 383.15 ÷ 500) = 217.49, so 218 responses.
A tighter poll (99%, ±3%)
- Confidence level
- 99%
- Margin of error
- 3 %
- Expected proportion
- 50 %
- Population
- Very large or unknown
- Sample size needed
- 1,844
- Critical z value
- 2.5758
With z = 2.576 and E = 0.03, n = 2.576² × 0.25 ÷ 0.03² ≈ 1,843, so 1,844 responses.
Sample sizes for a large population (p = 50%)
| Margin of error | 90% confidence | 95% confidence | 99% confidence |
|---|---|---|---|
| ±10% | 68 | 97 | 166 |
| ±5% | 271 | 385 | 664 |
| ±4% | 423 | 601 | 1,037 |
| ±3% | 752 | 1,068 | 1,844 |
| ±2% | 1,691 | 2,401 | 4,147 |
| ±1% | 6,764 | 9,604 | 16,588 |
Precision grows slowly with sample size
The margin of error shrinks with the square root of the sample size, so halving it takes four times as many responses. At 95% confidence and p = 50%, 100 responses give about ±9.8 points, 400 give ±4.9, 1,000 give ±3.1 and 2,500 give ±2.0. Past a few thousand, extra responses buy very little precision, which is why national polls rarely survey more than about 1,000 to 2,000 people.
Common mistakes
- Entering the margin of error as a whole number in the formula — 5% is 0.05.
- Assuming a larger population always needs a much larger sample; above about 100,000 the population size barely matters.
- Treating the result as the number of invitations rather than completed responses.
Frequently asked questions
Why is 385 the usual answer?
At 95% confidence, a ±5% margin and p = 50%, n = 1.96² × 0.25 ÷ 0.05² ≈ 384.2, which rounds up to 385 responses for a large population.
Why use 50% for the proportion?
p(1 − p) is largest at p = 0.5, so 50% gives the biggest sample size. It is the safe choice when you have no earlier estimate.
Does this account for people who don’t respond?
No — it is the number of completed responses you need. If you expect a 20% response rate, invite five times as many people.
Do I need a bigger sample to compare subgroups?
Yes. Each subgroup you want to report on needs enough responses of its own. If you want ±5% for men and women separately, you need about 385 of each, not 385 in total.
Sources
- Introductory Statistics 2e, 8.3: A Population Proportion, OpenStax, Rice University
- Sample sizes required (NIST/SEMATECH e-Handbook of Statistical Methods), National Institute of Standards and Technology (NIST)
Last updated · Calculations checked by automated tests· Editorial policy