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

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.