Sample Size Calculator
How many survey responses you need for a given confidence level and margin of error.
How it works
For a survey, this gives the number of responses needed to reach a margin of error at a chosen confidence level. Enter the confidence z, the margin of error in percent and the expected proportion (50 percent is the safe choice). Enter the population size to apply the correction for small populations.
The formula
n = z^2 x p x (1 - p) / e^2 with a finite population N: n / (1 + (n - 1) / N)
Worked example
95 percent confidence (z 1.96), 5 percent margin, p 50 percent: 1.96^2 x 0.25 / 0.05^2 = 384.16, so 385 responses.
Good to know
- Use p = 50 when you do not know the true share. It gives the largest sample.
- Halving the margin of error needs about four times the responses.
- This assumes a random sample. A convenience sample of friends can still be biased however large it is.
Common questions
- What is the z for 90, 95 and 99 percent?
- About 1.645, 1.96 and 2.576.
- Why does population size matter little?
- Beyond a few thousand people the needed sample hardly changes.
- Is 385 always enough?
- For 5 percent margin at 95 percent confidence in a large population, yes, if the sample is random.
More in Math, Science & Engineering.
Type a whole expression and see the answer with each step in the order it was worked out.
OPEN →Matrix SolverDeterminant, inverse, rank, transpose, products and linear systems for small matrices.
OPEN →Laplace Transform TableStandard Laplace pairs and properties. Type part of a function like sin or e^ to filter.
OPEN →