STATISTICS CALCULATOR
Sample Size Calculator
Estimate the minimum number of completed responses for a proportion estimate using a selected z-score, expected proportion and absolute margin of error. Review the assumptions before applying the result to a real study.
For a large population, the initial estimate is n = z² × p × (1 − p) ÷ e², rounded up to the next whole respondent. Here z is the standard-normal critical value, p is the expected population proportion, and e is the margin of error expressed as a proportion (not a percentage number). This is an estimate for a proportion under simple random sampling assumptions.
Worked example: 95% confidence and 5% margin of error
For a commonly used 95% confidence level, z ≈ 1.96. If the true proportion is unknown, p = 0.5 is a conservative planning choice because it maximizes p(1 − p). With e = 0.05, n = 1.96² × 0.5 × 0.5 ÷ 0.05² ≈ 384.16, so round up to 385 completed responses before any allowance for non-response.
How to use this calculator
- Choose a z-score that matches your desired confidence level; common two-sided values are about 1.645 for 90%, 1.96 for 95%, and 2.576 for 99%.
- Enter the expected proportion between 0 and 1. Use 0.5 when you do not have a reliable estimate.
- Enter the absolute margin of error as a decimal: 0.05 means five percentage points, not 5.
- Calculate and round up to a whole response. Increase invitations if you expect non-response.
What this estimate does and does not include
This tool estimates sample size for a proportion under a large-population, simple-random-sample approximation. It does not apply a finite-population correction, account for clustering or complex survey design, or calculate sample size for a mean, regression model, experiment power analysis or paired study. A known small population may need a finite-population correction. Cluster sampling, weighting and other design effects can increase the required sample size.
Adjusting for a finite population
When the total population is known and relatively small, the large-population estimate may be more than you need. A common finite-population correction is n_adjusted = n₀ ÷ (1 + (n₀ − 1) ÷ N), where n₀ is the initial sample estimate and N is the population size. Round the adjusted result up to a whole respondent. This correction assumes a suitable sampling design and does not replace adjustments for clustering, non-response or other sources of uncertainty.
For planning, document the confidence level, margin of error, expected proportion, population size and sampling method alongside the final number. If your study compares multiple groups or tests a difference between means, a proportion-based survey formula may not be appropriate; use a design-specific power or sample-size method instead.