Use Sample size mode to plan a survey, or switch to Margin of error mode to evaluate an existing sample. Choose a confidence level, expected proportion, and optional finite population size for either calculation.
How to use this calculator
In Sample size, enter a confidence level, margin of error, and expected population proportion. A margin of 5% means 5 percentage points: a 50% estimate has endpoints around 45% and 55%, not 47.5% and 52.5%. Use 50% for an unknown proportion because it gives the largest planning sample.
Leave Population size blank for a large or unknown population, or enter its
size for the finite-population correction. The result is rounded up and
counts completed responses, not invitations. If you need 385 completed
responses and expect a 50% response rate, plan about 385 / 0.5 = 770
invitations, while accounting separately for selection and nonresponse bias.
In Margin of error, enter the completed sample size instead of a target margin. An entered finite population must be at least as large as the sample.
Examples
Default sample-size calculation
At 95% confidence, 5% margin of error, and p = 50%, the unrounded result is about 384.15, so the required sample size is 385.
A finite population of 1,000
With the same 95% confidence, 5-percentage-point margin, and 50% proportion, enter N = 1,000. The corrected size is about 277.73, so the tool rounds up to 278 completed responses. This correction assumes sampling without replacement from that population.
Known sample of 100
At 95% confidence with n = 100 and p = 60%, the margin of error is 9.60%.
Formula
For a large population, the required sample size is:
n = Z² × p(1 − p) / e²
where e is the margin of error as a decimal. For a finite population N:
n adjusted = n / (1 + (n − 1) / N)
Margin-of-error mode reverses the calculation:
e = Z × √(p(1 − p) / n)
For a finite population, margin-of-error mode also multiplies e by
√((N − n) / (N − 1)). The displayed margin is in percentage points.
Planning assumptions
The result is a simple random-sample planning value based on the entered confidence level, margin of error, variability or proportion, and optional finite population. Clustering, design effects, stratification, nonresponse, unequal weights, subgroup targets, and model-based analyses can require a larger sample. Round the calculated requirement upward and document every assumption.