Sample Size Calculator
Choose a confidence level, set your target margin of error and expected proportion, and optionally enter a population size to see the minimum sample size needed.
On-screen number pad
Step-by-step proofCheck by hand
How sample size is calculated
Cochran's formula finds the sample size needed to estimate a population proportion within a stated margin of error, at a stated confidence level. Leaving the expected proportion at 50% is the most conservative choice — it produces the largest required sample for a given confidence level and margin of error. If a population size is given, the finite-population correction reduces the required sample once it's a meaningful fraction of the whole group.
The formula
Worked example
95% confidence (z = 1.96), ±5% margin of error, 50% expected proportion, no population limit: n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.16, rounded up to 385.
Frequently asked questions
What confidence level should I use?
Why does the expected proportion matter?
When does population size matter?
- Cochran, W.G. (1977). Sampling Techniques, 3rd ed. — the standard sample-size formula for estimating a proportion.