Math & Geometry
Sample Size Calculator for Surveys
How many people you need to survey for a chosen confidence level and margin of error, with the finite population correction.
How to use this calculator
- Choose the confidence level you need — 95% is the usual choice.
- Enter the margin of error you can accept, for example ±5%.
- Enter the proportion you expect, or leave 50% if you do not know.
- Add the population size if it is small, such as the staff of one company, to apply the finite population correction.
How many people do you need to survey?
A survey estimates something about a whole population from a sample. The sample needs to be large enough that random variation keeps the estimate within an acceptable margin of error, with a chosen level of confidence. For a proportion — the share of customers who are satisfied, voters who support a measure, or patients who respond to a treatment — the required sample is n₀ = z² × p(1 − p) ÷ e², where z comes from the confidence level (1.96 for 95%), p is the expected proportion and e the margin of error.
With 95% confidence, a ±5% margin and the most cautious p of 50%, the answer is the familiar 385 respondents, no matter whether the population is a city or a whole country.
Small populations and response rates
When the population is small, sampling a large share of it adds information faster, and the finite population correction n = n₀ ÷ (1 + (n₀ − 1) ÷ N) reduces the required sample: for a company of 1,000 employees, 278 answers give the same precision. Because not everyone answers, the calculator also shows how many invitations to send for response rates of 10%, 20% and 30%.
Limits of the formula
The formula assumes a simple random sample. Online panels, convenience samples and low response rates can introduce bias that no sample size can fix. If you plan to compare subgroups — men and women, regions, age groups — each subgroup needs enough respondents on its own.
Formula & method
n₀ = z² × p × (1 − p) ÷ e²With a population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)Always round upWorked example
95% confidence, ±5% margin, unknown proportion
- z = 1.96, p = 0.5, e = 0.05
- n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16
- Round up
Answer: 385 respondents; for a population of 1,000, only 278.
Frequently asked questions
Why use 50% as the proportion?
p × (1 − p) is largest at 50%, so it gives the safest (largest) sample when you do not know the answer in advance.
Why is 385 the standard sample size?
It is the result for 95% confidence, a ±5% margin and p = 50%, for a large population.
How does a smaller margin of error change the sample?
Halving the margin multiplies the sample by four: ±2.5% needs about 1,537 respondents.
What confidence level should I use?
95% is the convention in most research; 99% gives more certainty but needs about 70% more respondents.
Does population size matter?
Only when the sample is a sizeable share of the population; above about 20,000 it barely changes the result.
Can I use it for averages instead of percentages?
For a mean, use n = (z × σ ÷ e)², with σ the expected standard deviation.
Should I round up or down?
Always round up so the margin of error is met.