This Sample Size Calculator estimates how many completed responses are needed to estimate a population proportion at a chosen confidence level and margin of error. Choose a confidence preset, enter the expected proportion (p), and set the margin of error (E) as a decimal. The result is rounded up to the next whole respondent.
How to Use the Sample Size Calculator
- Choose one of the available confidence presets: 90% (z = 1.645), 95% (z = 1.96) or 99% (z = 2.576). The widget does not accept a custom z-score.
- Enter the expected proportion (p) between 0 and 1. If unknown, 0.5 is a conservative planning choice.
- Enter the margin of error as a decimal: 5% is 0.05, not 5.
- Review the required sample size, rounded up.
Sample Size Formula for a Proportion
n = z² × p(1−p) ÷ E²
Here (z) is the standard-normal critical value, (p) is the expected population proportion, and (E) is the desired margin of error. The widget rounds the result upward because a sample cannot contain a fraction of a respondent.
Worked Example
For 95% confidence ((z=1.96)), expected proportion (p=0.5), and a ±5% margin ((E=0.05)):
(n=(1.96²×0.5×0.5)÷0.05²=384.16), so the calculator rounds up to 385 responses.
If the expected proportion is unknown, 0.5 maximizes (p(1-p)) and therefore gives the largest basic sample estimate for a fixed z-score and margin. A smaller margin of error requires a larger sample; increasing the confidence level also increases the required sample.
Planning Invitations, Population Size and Study Design
The result is the estimated number of completed responses, not the number of people to invite. If you expect a 60% response rate and need 385 completed responses, a simple invitation estimate is 385 ÷ 0.60 = 641.67, so plan for at least 642 invitations. This widget does not perform that response-rate adjustment.
When sampling a known, relatively small population without replacement, a finite-population correction may reduce the required sample. One common adjustment is n_adj = n₀ ÷ (1 + (n₀ − 1)/N), where n₀ is the uncorrected sample estimate and N is the population size. The widget does not ask for N or apply this correction. Clustered or stratified designs may also require a design effect; estimating a mean, comparing groups, or powering an experiment requires a different statistical model.
What This Estimate Does—and Does Not—Include
Competitor review covered SurveyMonkey, Underleaf, openWorkstand, Omni Calculator and the WHO STEPS survey guidance. Their resources address population correction, mean-based designs, response rates, design effects or more flexible confidence settings. This page now adds the invitation-count example, finite-population correction formula and a clear explanation of when a basic proportion estimate is not enough. The widget itself remains limited to the three preset confidence levels and the basic single-proportion formula.
Assumptions and Limitations
- Enter margin of error as a proportion between 0 and 1; for example, 3% = 0.03.
- The expected proportion must be strictly between 0 and 1 for a meaningful positive sample estimate.
- The calculator uses one of three preset z-scores for 90%, 95% or 99% confidence. It does not accept a custom z-score or perform a full confidence-interval analysis.
- It uses a normal-approximation formula for a single population proportion.
- It does not account for finite population size, clustering, stratification, design effects, nonresponse or multiple survey outcomes.
- The result is a planning estimate, not a guarantee of representativeness or low bias.
