Worked examples
Margin 5%, 95% confidence, proportion 50%, very large population
385 people
Same terms with a population of 1,000
278 people
Tighten the margin to 3%
1,068 people
How to use it
- Choose the margin of error (for example 5%) and the confidence level (usually 95%).
- Enter the expected proportion, using 50 if unknown, and the population size if it is small.
- You get the number of respondents needed.
What this calculates
A sample size is the fewest people you must ask for survey results to be reliable. A smaller margin of error or a higher confidence level needs more respondents. If you do not know the expected proportion, 50% gives the most conservative (largest) number. A small population, up to a few thousand, lowers the number a little.
The formulas
- Sample size n₀ = z² × p × (1 − p) ÷ e² (z: z-value of the confidence level, p: expected proportion, e: margin of error)
- Small-population correction n = n₀ ÷ (1 + (n₀ − 1) ÷ N) (N: population size)
- The result is rounded up to whole people. z is 1.6449 for 90%, 1.9600 for 95% and 2.5758 for 99%
Reference table
| Margin of error | 90% confidence | 95% confidence | 99% confidence |
|---|---|---|---|
| 1% | 6,764 | 9,604 | 16,588 |
| 2% | 1,691 | 2,401 | 4,147 |
| 3% | 752 | 1,068 | 1,844 |
| 5% | 271 | 385 | 664 |
| 10% | 68 | 97 | 166 |
Good to know
- Halving the margin of error needs about four times as many respondents.
- For a very large population its size hardly matters, which is why a national and a city survey need similar numbers.
- If the sample is not random, even a large one can be biased.
Sources
Frequently asked questions
What is the margin of error?
It is how many percentage points the result can differ from the truth. "±5%" on a 45% result means the true value is likely 40–50%.
What is the confidence level?
If you repeated the survey 100 times, the true value falls inside the margin in about that many. At 95% that is about 95 times.
Why use 50% for the expected proportion?
p × (1 − p) is largest at 50%, so the number of people is highest. It is the safe pick without an estimate.
Do I have to enter the population size?
No. Blank means a very large population. Enter it only for populations of a few thousand or less to reduce the number.
What if the response rate is low?
Divide the required number by the response rate. For 385 needed at a 25% response rate, ask about 1,540 people.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.