numvana

Sample Size Calculator (Margin of Error)

Find the minimum survey sample size needed to estimate a population proportion within a target margin of error and confidence level.

Required sample size
385 respondents
Critical z-value used
1.96
Unadjusted (infinite population) size
385

How it works

The minimum sample size needed to estimate a population proportion within a target margin of error e, at a target confidence level, is n = z² × p(1−p) ÷ e², where z is the critical value of the standard normal distribution for that confidence level (computed from an inverse-normal-CDF approximation, not a fixed lookup table, so any confidence level works, not just the usual 90/95/99%) and p is the proportion you expect to find.

p defaults to 50% because p(1−p) is largest there — if you genuinely have no idea what proportion you're measuring, 50% is the most conservative assumption and gives the largest (safest) required sample size. If you have a reasonable prior estimate (say, from a pilot study), entering it instead will usually lower the required sample size.

When the population you're sampling from is of a known, finite size, the infinite-population estimate above is reduced with the standard finite population correction, n' = n ÷ (1 + (n−1)/N) — leaving the population size at 0 skips this and treats the population as large enough that it doesn't matter.

FAQ

Why do I get 385 for 95% confidence and a ±5% margin of error?

That's the widely cited standard result for exactly those inputs with an unknown (50%) proportion and no population cap: n = 1.96² × 0.5 × 0.5 ÷ 0.05² ≈ 384.16, rounded up to 385 respondents since a sample size can't be fractional.

Does entering a population size always shrink the required sample?

Yes — the finite population correction only ever reduces (or leaves unchanged) the infinite-population estimate, since sampling from a smaller, fully-known group carries less uncertainty than sampling from an effectively unlimited one.

Related calculators