Skip to content
The Calculatorz
Survey planning

Sample Size Calculator

Estimate the required sample size for a population proportion from confidence level, margin of error and expected proportion.

This is a simple random-sample proportion estimate. Design effects, clustering, nonresponse, weighting, subgroup analysis, measurement error and eligibility rates can require a larger recruited sample.

Confidence, precision and population

Survey design

How to use this calculator

Use 50% when the expected proportion is unknown because it produces the most conservative variance. Enter the desired absolute margin of error, such as 5 for ±5 percentage points, and optionally a finite population size.

Formula

Initial n₀ = z*²p(1 − p) ÷ e². Finite-population correction: n = n₀ ÷ [1 + (n₀ − 1) ÷ N]. The result is rounded up.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewSaeedM.Phil Statistics, Data Scientist

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

Why use 50% when I do not know the proportion?

The product p(1 − p) is largest at 50%, producing the largest conservative sample estimate.

Should I increase the result for nonresponse?

Yes. Divide the required completed responses by the expected response rate to estimate how many people to invite.

When does population size matter?

The finite-population correction matters most when the sample is a noticeable fraction of the entire population.

How do I choose a margin of error?

Many surveys use ±3% to ±5%. A smaller margin needs a much larger sample: halving the margin roughly quadruples the required sample size.

Is a bigger sample always better?

A larger sample reduces random error but not bias. A large, poorly chosen sample can still give misleading results.

What sample size do I need for a 95% confidence level and 5% margin of error?

For a large population and an unknown proportion (using 50%), you need 1.96² × 0.5 × 0.5 ÷ 0.05² ≈ 384.2, rounded up to 385 responses.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Cochran, W. G. (1991). Sampling techniques (3rd ed.). Wiley. View source
  2. Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Routledge. View source
  3. Illowsky, B., & Dean, S. (2023). Introductory statistics 2e. OpenStax. View source
  4. Croarkin, C., & Tobias, P. (Eds.). (2012). NIST/SEMATECH e-handbook of statistical methods. National Institute of Standards and Technology. View source
  5. Casella, G., & Berger, R. L. (2002). Statistical inference (2nd ed.). Duxbury. View source