Sample Size Calculator: How Many Responses You Actually Need
About the Author

A sample size calculator takes three decisions and turns them into a single integer: how much error you will tolerate, how confident you want to be, and roughly what you expect to find. For a general population survey at ±5% and 95% confidence, that integer is 385. It is 385 for a town of five million and 385 for a country of three hundred million, which is the part almost nobody believes the first time they see it.
The interesting work isn’t the formula. It’s everything that happens after it: the design effect, the finite population correction, and the response rate that quietly turns 385 into 1,284 invitations. Below is where each number comes from and how much each one costs.
Why 385 Is the Answer to So Many Survey Questions
Cochran’s formula for a proportion is short: n₀ = z² × p(1 − p) / e². Here z is the critical value for your confidence level, p is the proportion you expect, and e is the margin of error written as a decimal. At 95% confidence z = 1.96, and if you have no idea what p will be you use 0.5. Plug them in with e = 0.05 and you get 384.16, which rounds up to 385.
Why 0.5? Because p(1 − p) is a parabola that peaks exactly there. Any other guess needs a smaller sample, so 50% is the honest worst case — you can never be caught short by using it. The critical value comes from the standard normal curve; if you want to see where 1.96 lives on that curve, the z-score calculator shows the tail areas directly.
| Expected result p | p(1 − p) | Sample needed |
|---|---|---|
| 50% | 0.2500 | 385 |
| 40% or 60% | 0.2400 | 369 |
| 30% or 70% | 0.2100 | 323 |
| 20% or 80% | 0.1600 | 246 |
| 10% or 90% | 0.0900 | 139 |
| 5% or 95% | 0.0475 | 73 |
Notice how flat the top of that table is. Moving your assumption from 50% to 40% saves you 16 responses out of 385 — about 4%. Guessing p wrong is cheap. Guessing e wrong is not, which is the next section.
Halving the Margin of Error Costs Four Times the Sample
The margin of error sits in the denominator squared. That one exponent drives most of the budget in real research. Halve e and you multiply n by four. Cut it to a fifth and you multiply n by twenty-five.
| Margin of error | Sample needed | Cost vs ±5% |
|---|---|---|
| ±10% | 97 | 0.25× |
| ±5% | 385 | 1× |
| ±3% | 1,068 | 2.8× |
| ±2% | 2,401 | 6.2× |
| ±1% | 9,604 | 25× |
This is why almost every published poll lands on ±3% with about 1,000 respondents. It’s the last point on the curve where precision is still affordable. Once you have collected your data and want to run the relationship backwards — given the n I actually got, how wide is my error bar? — that’s the job of the margin of error calculator, which solves the same equation for e instead of n.
When Population Size Actually Changes the Answer
Everyone expects a bigger population to need a bigger sample. It doesn’t — it needs a slightly smaller one, and only when the population is small enough to notice. The finite population correction is n = n₀ / (1 + (n₀ − 1) / N), where N is the size of the group you are sampling from.
| Population N | Sample needed | Share of population |
|---|---|---|
| 100 | 80 | 80% |
| 500 | 218 | 44% |
| 1,000 | 278 | 28% |
| 10,000 | 370 | 3.7% |
| 100,000 | 383 | 0.38% |
| 1,000,000 | 384 | 0.04% |
A useful shortcut: once N is more than about twenty times n₀, the correction shaves off less than 5% and you can safely ignore it. Below that it matters a lot. Surveying a 100-person company at ±5% means reaching 80 of them — a census in all but name, and usually the moment to widen the margin of error instead.
Measuring an Average Instead of a Percentage
Continuous outcomes — test scores, wait times, blood pressure — use a different formula: n = (zσ / e)². The structure is identical, but p(1 − p) is replaced by the actual variance, so you need σ before you start.
Say you want a class’s mean exam score to within ±2 points at 95% confidence, and past cohorts had a standard deviation of 15. Then n = (1.96 × 15 / 2)² = 14.7² = 216.09, so you need 217 papers. Tighten it to ±1 point and you need 865. Same quadratic law, same brutal arithmetic.
The obvious objection is that you can’t know σ before collecting data. Three ways out, in order of preference: use historical data from the same instrument, run a pilot of 30–50 and compute s with the sample standard deviation calculator, or fall back on the range rule and set σ ≈ (max − min) / 4. The range rule is crude, and it usually overestimates, which at least errs toward a bigger sample. Once the data is in, the standard error calculator tells you what precision you actually bought. The NIST/SEMATECH e-Handbook walks through the same derivation with the tolerance-interval variants.
One caveat the formula hides: it assumes z, which is a large-sample approximation. Under about n = 30 the t-distribution is meaningfully wider, and the honest fix is to add roughly 5% and re-check.
Estimating a Number vs Detecting a Difference
These are not the same question, and mixing them up is the single most expensive mistake in the whole topic. Estimating asks “what is the value, give or take?” Detecting asks “is B genuinely better than A?” The second needs a second knob — power, the probability of spotting the effect if it is really there — and a much larger sample:
n per group = (zα/2 + zβ)² × [p₁(1 − p₁) + p₂(1 − p₂)] / (p₁ − p₂)²
Take a checkout page converting at 10%. You want to know whether a redesign lifts it to 12% — a 20% relative improvement, which most teams would call a big win. At 95% confidence and 80% power that needs 3,839 visitors per group, 7,678 in total. Now look at what happens when the effect you care about gets smaller:
| Improvement to detect | New rate | Per group |
|---|---|---|
| +50% relative | 15% | 683 |
| +20% relative | 12% | 3,839 |
| +10% relative | 11% | 14,749 |
Chasing a 10% lift instead of a 50% one costs twenty-one times the traffic. That ratio is why so many A/B tests are called early and wrong: the team had enough traffic to detect a landslide and ran it hoping to detect a nudge. Both z values in that formula come from the same normal curve, and the normal distribution calculator will give you zβ for any power you like.
The Multiplier That Wrecks Field Budgets
Every number so far describes completed, usable responses. Nobody gets those at a 1:1 rate. Email surveys run 10–25%, phone surveys are often under 10%, and a well-targeted internal staff survey might hit 60%. Divide, don’t hope:
| Response rate | Invitations | Typical channel |
|---|---|---|
| 60% | 642 | internal staff survey |
| 30% | 1,284 | customer list, incentivised |
| 20% | 1,925 | cold email |
| 5% | 7,700 | unsolicited phone |
Then there is the design effect. If you sample clusters — schools, villages, city blocks — the people inside a cluster resemble each other, so each response carries less independent information. Household surveys typically use a DEFF between 1.5 and 3, and you multiply your sample by it. Stack the two effects together: a DEFF of 2 turns 385 into 769 completed interviews, and at a 25% response rate that is 3,076 households to approach. Eight times the number most people quote from memory, which is exactly why field budgets blow up.
Five Ways the Number Comes Out Wrong
- Applying the margin to subgroups. A national sample of 1,000 has ±3.1% overall. Slice out 40 respondents aged 18–24 and that subgroup carries ±15.5%. Plan the sample around the smallest group you intend to report, not the total.
- Rounding down. 384.16 becomes 385, never 384. Always round up; the formula gives a minimum.
- Believing the margin covers every error. It covers sampling error only. Bad question wording, a frame that misses half the population, and people who refuse to answer are all invisible to it.
- Reading 95% confidence as “95% chance the answer is right”. It means that if you repeated the whole study many times, 95% of the intervals built this way would contain the true value. The confidence interval calculator makes the distinction concrete once you have real data.
- Recalculating n after the fact. Plugging the observed p back in to justify the sample you happened to get is post-hoc reasoning. Fix the target before collection, then report what you achieved.
Ten Million Ballots: What a Sample Size Calculator Can’t Fix
In 1936 the Literary Digest mailed out ten million ballots and got 2.4 million back. It predicted Alf Landon would beat Franklin Roosevelt in a landslide. Roosevelt won 46 of 48 states. George Gallup, working with roughly 50,000 interviews — one fiftieth of the sample — called it correctly, because his list wasn’t drawn from car registrations and telephone directories during the Depression.
That’s the ceiling on everything above. A sample size calculator tells you how many people you need if they are drawn at random from the group you want to describe. It cannot repair a biased frame, and adding respondents to a biased sample just makes you more precisely wrong. Get the sampling frame right first, then use the number the calculator gives you — and when your real constraint is budget rather than precision, run it backwards: enter the sample you can afford and read the margin of error you will have to live with.



