Calculate your sample size
Enter the population size and choose the confidence level and the margin of error. The result updates instantly.
How is it calculated?
It uses the formula for estimating a proportion under simple random sampling:
n₀ = Z² · p · (1 − p) / e²
Where Z depends on the confidence level (1.96 for 95%), e is the margin of error as a decimal and p is the expected proportion. It uses p = 0.5, the most conservative option, which gives the largest possible sample.
When you enter the population size (N), the finite population correction is applied:
n = n₀ / (1 + (n₀ − 1) / N)
The result is rounded up. If you expect some people not to respond, increase the sample by that proportion.
How to cite this tool
AtheneaLab. (2026). Calculate your sample size [Web application]. https://athenealab.com/en/sample-size/precision/
Want to know more? Write to us at [email protected]