Guide
How many survey responses do you need? Sample size, margin of error and response rate
Before you survey anyone you need to know how many answers are enough. Too few and the result is too imprecise to use, too many and you waste time and money. The answer depends on how precise you want to be, how sure you want to be and how varied the answers are likely to be. This calculator gives the number of completed responses for a survey percentage or a measured average, and the number of people to invite once non-response is included.
The formula for a percentage
For a proportion, Cochran’s formula gives n₀ = z² · p(1 − p) / E², where z is the critical value for your confidence level, p the expected proportion and E the margin of error as a fraction. At 95% confidence z = 1.95996; with p = 50% and E = 5% the result is 384.146, and the answer is always rounded up, so 385 responses. The expected proportion is set to 50% by default because that makes p(1 − p) largest and the sample safest.
Using the tool
Choose What are you estimating?: a percentage or an average. Set the Confidence level, from 80% to 99.9%, the margin of error, the expected percentage, the Population size (0 for very large or unknown) and the Expected response rate. The page opens on a percentage with 95% confidence and ±5% and shows the formula, the critical value 1.95996, n₀ = 384.146 and the required size 385. A table shows other margins: ±1% needs 9,604, ±2% 2,401, ±3% 1,068, ±4% 601, ±5% 385 and ±7% 196.
Small populations
When the group you sample is small, you need fewer responses, because each one tells you a larger fraction of the whole. The finite-population correction is n = n₀ / (1 + (n₀ − 1) / N). For ±3% in a company of 2,000 people, n₀ = 1,067.07 shrinks to 697. If the corrected sample would be as large as the population, the page notes that you should simply ask everyone, a census, since sampling saves nothing.
Response rate
Not everyone you invite will answer. Enter the expected response rate as a percentage and the page divides the required responses by it, rounded up. For ±4% (601 responses) at a 30% response rate, you must invite 2,004 people. The calculation assumes that those who respond resemble those who do not; if non-response is related to the answer, a larger sample does not remove the bias, so work on raising the response rate instead.
Sample size for an average
Choose An average to size a measurement study. Enter the margin of error in the units of the data and an estimate of the standard deviation, from a pilot study or earlier work. The formula is n = (z·σ / E)². With σ = 10 and a margin of ±2 at 95% confidence, n₀ = 96.0365 and the answer is 97. The table shows how the sample changes with the margin: ±0.5 needs 1,537, ±1 needs 385, ±4 needs 25 and ±8 needs 7.
Worked examples
Large population, 95%, ±5%: 385. Same with ±3%: 1,068; ±1%: 9,604. A school of 2,000 with ±3%: 697. A measurement with SD 10 and margin ±2: 97. A survey that needs 601 responses at a 30% response rate: 2,004 invitations. The expected proportion matters too: using p = 10% at ±5% gives 139, versus 385 at 50%. In all cases a result is a minimum for a simple random sample, so add a margin if you plan to analyse subgroups.
Limits
The formulas assume a simple random sample. Clustered samples, stratification and weighting change the effective sample size, often by a design effect of 1.5 to 2 or more, so multiply the result accordingly and consult a statistician for a complex design. The tool does not carry out power analysis for hypothesis tests, such as the sample needed to detect a given difference between two groups, and it does not account for the margin of error of subgroups.
Related tools
- Confidence Interval Calculator computes the interval you will report afterwards.
- Z-Score Calculator shows how the critical value is found.
- A/B Test Duration Calculator sizes a test between two versions of a page.
- Average Calculator gives the standard deviation of a pilot sample.
Checked against the current version of the Sample Size Calculator on .

