Sample Size Calculator
How many respondents you need for your precision and confidence.
The formula behind it
n = z²·p(1−p)/e² (proportions); n = z²σ²/e² (means)- e
- the margin of error you can tolerate
- p
- expected proportion (0.5 = safest)
Sample size planning inverts the margin-of-error formula: choose the precision you need and the confidence you want, and the required n follows. Rounding is always upward.
How to use this calculator
- 1
Choose proportion-based or mean-based.
- 2
Set the confidence level and the margin of error.
- 3
Press Calculate — leave the proportion blank for the conservative 0.5.
Worked examples
Survey planning
95%, e = 3%, p unknown → n = 1,068 — the classic national-poll number.
Measurement study
σ = 4, e = 0.5, 95% → n = 246.
Frequently asked questions
Related calculators
Margin of Error Calculator
The ± of a survey or estimate — for means and proportions.
Confidence Interval Calculator
Build a z-based confidence interval for a mean.
Standard Deviation Calculator
Sample or population SD with variance, mean ± 1 SD band and CV.
Mean Calculator
Average any list of numbers, with the median shown for skew checks.