Survey Sample Size Calculator

This calculator tells you how many completed survey responses you need to hit a target margin of error at a chosen confidence level. It uses Cochran's formula, applies the finite population correction when you know how many people you are sampling from, and divides by your expected response rate to give the number of invitations to send. It also reports the margin of error you would actually achieve at the rounded-up sample size, and the requirement at six other precision targets.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Confidence level95% is the reporting convention; 90% is common for internal work where speed matters more.95%
Target margin of errorThe “plus or minus” you want to be able to quote, in percentage points.5 %
Expected proportion (p)Your prior estimate of the percentage you are measuring. Leave at 50% for the largest, safest sample.50 %
Population size (N)How many people or items you are sampling from. Leave at 0 if the population is very large or unknown.0
Expected response rateThe share of invitations you expect to turn into completed responses. Set it from your own past surveys.100 %

It returns

  • Completed responses needed — Rounded up, and after the finite population correction if you supplied a population size.
  • Invitations to send
  • Margin of error you actually get
  • Cochran n₀ before adjustment
  • Critical z value

The formula

n0=z2p(1p)e2
n=n0NN+n01
invitations=nr

In plain text: n₀ = z² p(1−p) / e², then n = n₀ / (1 + (n₀−1)/N)

  • n₀Sample size for an effectively infinite population (responses)
  • zNormal critical value for the confidence level (1.959964 at 95%)
  • pExpected proportion, as a decimal (decimal)
  • eTarget margin of error, as a decimal (decimal)
  • NPopulation size (count)

The adjustment n = n₀/(1 + (n₀−1)/N) is the algebraic solution of the margin-of-error equation once the finite population correction is included.

Updated Category Confidence Intervals, Margin of Error & Sample Size Verified against published test cases Reading time 9 min

What determines how many responses you need

Four things set the sample size, and population size is the least important of them.

The precision you want. The margin of error appears squared in the denominator, so precision is expensive: halving the margin from 5 points to 2.5 quadruples the sample, from 385 to 1,537. This single relationship explains why almost every national poll lands between 1,000 and 1,500 respondents — that is where the marginal cost per point of precision starts climbing steeply.

The confidence level. Moving from 95% to 99% multiplies z from 1.959964 to 2.575829, and because z is squared, it multiplies the sample by (2.575829/1.959964)² = 1.727. Going the other way, 90% confidence needs (1.644854/1.959964)² = 0.704 of the 95% sample.

How variable the answer is. For a percentage this is captured by p(1−p), which peaks at 0.25 when p = 50%. If you already know the answer is near 10%, the variance term drops to 0.09 and you need 0.09/0.25 = 36% of the sample. If you have no idea, assume 50% and you can never be caught short.

The population size. Only through the finite population correction, and only when your sample is a meaningful fraction of it. For a country, it makes no difference at all. For a 400-person company, it makes an enormous one.

Cochran's formula and the population adjustment

Start from the margin of error you want to be able to quote: e = z√(p(1−p)/n). Everything except n is something you choose or estimate, so solve for n and you get Cochran's formula, n₀ = z²p(1−p)/e². That is the whole derivation. The subscript zero marks it as the answer for an effectively infinite population.

When the population is finite, the standard error carries the correction factor √((N−n)/(N−1)), and solving the same equation with that factor included gives n = n₀N/(N + n₀ − 1), which is more commonly written n₀/(1 + (n₀−1)/N). Notice what it does: the adjusted n can never reach N, and it collapses towards n₀ whenever N is much larger than n₀. At N = 10,000 with n₀ = 385, the adjustment saves you 15 responses. At N = 500 it saves you 167, bringing the requirement down to 218.

Response rate enters last, and it is arithmetic rather than statistics. If you need 385 completes and you historically get 30% of invitations returned, send ⌈385/0.30⌉ = 1,284 invitations. The response rate does not change the sample size; it changes the effort required to reach it. What it does change is your exposure to non-response bias, which is a separate and usually larger problem — see the margin of error calculator for what the margin does and does not cover.

One consequence people find surprising: because n appears alone in the formula and N only appears in the correction, a sample of 1,000 delivers essentially the same precision for a city of 200,000 as for a nation of 200 million. Precision is bought with absolute sample size, not with a percentage of the population.

Worked example: an 8,500-employee engagement survey

You are running an engagement survey across 8,500 employees. You want to report percentages to within 5 points at 95% confidence, you have no prior estimate so you assume 50%, and your last three surveys returned about 35% of invitations.

  1. Critical value. At 95%, z = 1.959964, so z² = 3.841459.
  2. Cochran n₀. 3.841459 × 0.5 × 0.5 / 0.05² = 0.960365 / 0.0025 = 384.146.
  3. Finite population adjustment. n = 384.146 × 8,500 / (8,500 + 384.146 − 1) = 3,265,241 / 8,883.146 = 367.58, so you need 368 completed responses.
  4. Invitations. 368 / 0.35 = 1,051.4, so invite 1,052 employees.
  5. Margin you actually get. √(0.25/368) = 0.0260643, the correction is √(8,132/8,499) = 0.978171, so E = 1.959964 × 0.0260643 × 0.978171 = 0.04997, or 5.00 points — just inside target, as rounding up guarantees.

Now sanity-check the subgroups you plan to report. If you intend to break results out by five departments and expect roughly even representation, each department cell holds about 368/5 = 74 responses, whose margin of error is 1.959964 × √(0.25/74) × 100 = 11.4 points. If departmental comparison is the point of the survey, you need to size for the smallest cell you intend to report, not for the total.

How to use the number you get

Treat it as a floor on completed responses, not on invitations. The sample size formula counts people who actually answered; everything about invitation volume is downstream of your response rate assumption, and that assumption should come from your own history rather than an industry figure.

Size for the smallest reporting cell. The headline number covers the whole-sample estimate. Any crosstab you intend to publish — by region, by tenure, by product line — has its own margin of error driven by its own count. Work backwards from the breakdowns you promised.

Do not over-interpret a small margin of error. Reaching 385 responses means your random sampling error is about 5 points. If your sampling frame excluded contractors, or the survey went out by email to a workforce half of which does not have a desk, the estimate can be far more than 5 points away from the truth and the formula will never tell you.

If your required sample approaches the population, stop and consider a census. Once the correction is pulling the requirement above about half the population, the incremental cost of surveying everyone is usually small, and a census removes sampling error entirely while also removing awkward questions about who was left out.

Completed responses needed at 95% confidence, p = 50%

Cochran's n₀ with the finite population adjustment applied. Every figure is rounded up to a whole response.
Target marginN = 1,000N = 10,000N = 100,000Very large N
±1%9064,9008,7639,604
±2%7071,9372,3452,401
±3%5179651,0561,068
±5%278370383385
±7%165193196196
±10%88969697

Read across a row to see how little the population size matters once N is large, and down a column to see the squared cost of precision.

Assumptions and limits

  • It assumes a simple random sample. Stratified designs usually need fewer responses for the same precision; cluster designs usually need more, sometimes several times more. The multiplier is called the design effect, and it is not in this formula.
  • It assumes the normal approximation holds. With very small samples or an expected proportion near 0% or 100%, use exact binomial methods instead.
  • It sizes for one estimate, not for a test. If your goal is to detect a difference between two groups rather than to estimate one number, size for power: use the A/B test sample size calculator or the statistical power calculator.
  • It says nothing about bias. Coverage error, non-response bias and measurement error are unaffected by sample size, and in most modern surveys they dominate.
  • It sizes for a percentage. If your key metric is an average — mean spend, mean satisfaction on a 1–10 scale — the variance term is σ² rather than p(1−p); use the sample size for a mean estimate calculator.

Related tools and where the formula comes from

The three calculators in this family invert one equation. This page fixes the margin of error and solves for n; the margin of error calculator fixes n and solves for the margin; the confidence interval for a proportion reports the result as limits around your observed percentage once the data are in.

If you are running an experiment rather than a survey, the sample size question changes shape. You are no longer asking “how precisely can I estimate one number” but “how small a difference can I reliably detect”, which brings in statistical power and the size of the effect you care about. Start with the A/B test sample size calculator.

The formula is set out in William Cochran's Sampling Techniques, the standard reference for survey sampling theory, where the finite population correction and the n₀ adjustment are derived from first principles. Taro Yamane's simplified version, n = N/(1 + Ne²), has the same shape but bakes in p = 0.5 and z = 2 rather than 1.96, and drops the −1 from the denominator. It therefore asks for slightly more than Cochran's formula even at 95% confidence: for N = 10,000 at ±5 points it gives 10,000/(1 + 10,000 × 0.0025) = 10,000/26 = 385, against the 370 this calculator returns. Use it as a quick mental estimate, not as a check on the arithmetic here.

Frequently asked questions

Is 385 really enough to represent millions of people?

Yes, for a single percentage at ±5 points and 95% confidence, provided the 385 are a genuine random sample. Precision depends on the absolute number of responses, not on the fraction of the population, because the finite population correction is negligible once N is much larger than n. The hard part is not the arithmetic; it is drawing a sample where everyone had a known chance of selection.

What if I do not know the expected proportion?

Use 50%. The variance term p(1−p) is at its maximum there, at 0.25, so 50% gives the largest sample size and guarantees you meet your target margin whatever the answer turns out to be. Using a smaller assumed p reduces the sample, but if the true value comes back nearer 50% your realised margin of error will be wider than you promised.

How does the response rate change the calculation?

It does not change the sample size at all — only the number of invitations. If you need 385 completes at a 20% response rate, send 1,925 invitations. What a low response rate does change is the credibility of the result: the smaller the share who answer, the more you are relying on respondents and non-respondents being alike, and no sample size fixes that.

Why does a 99% confidence level need so many more responses?

Because z is squared in the formula. Moving from 95% to 99% raises z from 1.959964 to 2.575829, and (2.575829/1.959964)² = 1.727, so the sample grows by 73%. At a 5-point margin that is the difference between 385 and 664 responses. Unless the decision genuinely warrants it, 95% buys most of the assurance for far less field cost.

Do I need a bigger sample if my population is bigger?

Almost never, above a few thousand. The requirement at a 5-point margin is 370 responses for a population of 10,000 and 385 for an unlimited population — a difference of 15. Population size only bites when your sample would be a large fraction of it: for a population of 1,000 the same target needs 278 responses rather than 385.

How do I size a survey when I need to report by subgroup?

Size the smallest subgroup you intend to publish, then work back to the total. If you need ±10 points on each of four regions, that is 97 responses per region, so 388 in total — but only if the sample splits evenly. If one region is 10% of the population, hitting 97 there needs about 970 responses overall, or a stratified design that deliberately over-samples the small region.

What is the difference between this and an A/B test sample size?

This calculator sizes for estimation: how precisely can you pin down one percentage. An A/B test sizes for detection: how small a difference between two groups can you reliably find. The second needs a minimum detectable effect and a power target, and typically demands far more observations. Use the A/B test sample size calculator for that job.

Should I round the sample size up or down?

Always up. The formula gives a fractional requirement — 384.15 in the standard 5-point case — and rounding down leaves you fractionally short of the margin you promised. Rounding up to 385 gives a realised margin of 4.994 points, which is inside target. The calculator rounds up at both the sample size and the invitation count for the same reason.

References

  • Sampling Techniques, 3rd ed. (Cochran's sample size formula and the finite population correction) — W. G. Cochran, John Wiley & Sons
  • Statistics: An Introductory Analysis, 2nd ed. (source of the simplified n = N/(1 + Ne²)) — Taro Yamane, Harper & Row
  • Standard Definitions and disclosure standards for survey reportingAmerican Association for Public Opinion Research (AAPOR)