Country & language

Sets the currency, units and country-specific rules (tax, VAT, salary) in calculators. General tools stay the same.

Pages that are not translated yet open in English.

↑ ↓ to move · Enter to open · Esc to close

Sample Size Calculator

Pick a confidence level and the margin of error you can live with, and we work out how many completed responses you need – fewer if your population is small. Already collected your data? Switch mode to see the margin of error your responses give.

Quick answer: At 95% confidence, a ±5% margin of error and p = 50%, n = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15, so you need 385 completed responses. With a known population of 400 the finite population correction cuts this to 197.

Updated · Free · No sign-up

Sample Size Calculator inputs

±%
%
Use 50% if unsure – it gives the largest, safest sample.
Optional – leave blank for a large or unknown population.
%
Optional – how many invitations to send to get the responses you need.

Result

Required sample size

385

responses for ±5% at 95% confidence

z-score
1.96
Without population correction
385

Step by step

  1. z-score for 95% confidence: z = 1.96
  2. n₀ = z² × p(1 − p) ÷ e² = 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.15
  3. Round up to a whole number of responses: n = 385

If you expect only part of the people you contact to respond, divide by the response rate – e.g. 385 ÷ 0.3 = 1,284 invitations at a 30% response rate.

Sample sizes by margin of error and confidence

Margin of error90% confidence95% confidence99% confidence
±1%6,7649,60416,588
±2%1,6912,4014,147
±3%7521,0681,844
±4%4236011,037
±5%271385664
±10%6897166

What the number means

A sample size answers one question: how many completed responses do you need so that a percentage you measure – the share of staff who are satisfied, of customers who would renew, of teachers who use a method – lands within a chosen distance of the true figure for the whole population? That distance is the margin of error (e), and how sure you want to be that you landed inside it is the confidence level. The working assumes a simple random sample: everyone in the population had an equal chance of being picked.

The formula

n₀ = z² × p(1 − p) ÷ e²  ·  known population N: n = n₀ ÷ (1 + (n₀ − 1) ÷ N)  ·  margin for n responses: e = z × √(p(1 − p) ÷ n)

z is the critical value for the confidence level (1.6449 for 90%, 1.9600 for 95%, 2.5758 for 99%), p the share you expect as a decimal, and e the margin as a decimal. The first part is Cochran’s formula; the second, the finite population correction, matters only when the sample would be a noticeable slice of the population. Always round up – 384.15 responses means 385.

Worked examples

1. A survey of the general public

95% confidence, ±5%, no idea of the true share so p = 0.5: n₀ = 3.8415 × 0.25 ÷ 0.0025 = 384.15 → 385 responses. Tighten the margin to ±3% and it becomes 1,068; loosen it to ±10% and 97 is enough.

2. A staff survey in a company of 1,200

Same settings, N = 1,200: n = 384.15 ÷ (1 + 383.15 ÷ 1,200) = 291.18 → 292 responses, a quarter of the workforce. If about 40% of staff usually answer internal surveys, invite 292 ÷ 0.4 = 730 people. Afterwards, switch the calculator to margin-of-error mode: 292 responses out of 1,200 give ±4.99%.

3. A master’s thesis with 400 teachers in the study population

n = 384.15 ÷ (1 + 383.15 ÷ 400) = 196.21 → 197. The Krejcie & Morgan table lists 196 for N = 400 – the same formula rounded to the nearest whole number. Yamane’s shortcut 400 ÷ (1 + 400 × 0.05²) gives 200.

Cochran, Thompson, Krejcie & Morgan and Yamane on the same population (95%, ±5%, p = 50%)

Population NCochran + correction (= Thompson)Krejcie & Morgan tableYamane
100808080
400197196200
500218217223
1,000278278286
2,000323322334
10,000370370385
Very large385384400

Steven Thompson’s formula, n = N·p(1 − p) ÷ [(N − 1)(e² ÷ z²) + p(1 − p)], and Krejcie & Morgan’s, which uses χ² = 3.841 (= 1.96²), rearrange exactly into Cochran’s corrected formula – so supervisors who ask for “Thompson” or “Morgan’s table” get the same answer as this calculator, give or take one from rounding. Yamane’s formula is what you get by fixing p = 0.5 and z = 2, which is why it cannot be set to 90% or 99% and why it runs a little high.

Choices that change the number

  • Margin of error. The sample grows with 1 ÷ e²: halving the margin from ±5% to ±2.5% quadruples the sample, from 385 to 1,537.
  • Confidence level. At ±5%, 90% needs 271, 95% needs 385 and 99% needs 664.
  • Expected proportion. 50% is the worst case. Measuring something rare, such as a condition expected in about 10% of people, at ±2% needs 865 responses instead of 2,401 – but if the true share turns out nearer 50%, your margin will be wider than planned.
  • Population size. Almost irrelevant for large populations – 385 is enough for 100,000 people or 100 million – and decisive for small ones.
  • Subgroups. Every group you report separately needs its own sample. Three nationality groups at ±5% each need 3 × 385 = 1,155 responses.

Common mistakes

  • Counting invitations instead of completed responses. The formula gives completed, usable questionnaires; drop incomplete ones before you compare.
  • Treating a large sample as a fix for a biased one. 2,000 responses from a link shared in one WhatsApp group are still a convenience sample. AAPOR’s position is that a true margin of sampling error cannot be calculated for opt-in samples at all.
  • Entering the margin as a decimal. Type 5 for ±5%, not 0.05 – the calculator would read 0.05 as ±0.05% and ask for over 3.8 million responses.
  • Reporting ±5% for every number. The margin applies to a percentage measured on the whole sample; a question answered by half the respondents has a wider one.
  • Using these formulas for averages or for comparing groups. They size a single proportion. Estimating a mean needs the standard deviation instead of p(1 − p), and testing a difference between two groups needs a power analysis.

When to get help

Talk to a statistician or your thesis supervisor before collecting data if you will use stratified or cluster sampling (whole schools or departments rather than individuals), compare groups or test a hypothesis, or need to defend the sample to an ethics committee. Those designs need a design effect or a power calculation that a single-proportion formula cannot give.

Frequently asked questions

Why is 385 the standard sample size?

Because it is what Cochran’s formula gives for the most common settings – 95% confidence, ±5% margin and p = 50%: 1.96² × 0.25 ÷ 0.0025 = 384.15, rounded up. With a known, smaller population the correction trims it: 10,000 people need 370 and 2,000 need 323.

How many responses do I need for a small population?

Apply the finite population correction n = n₀ ÷ (1 + (n₀ − 1) ÷ N). At 95% and ±5%, a population of 100 needs 80, 400 needs 197, 1,200 needs 292 and 2,000 needs 323 – so with very small groups you end up surveying most of them.

Are Steven Thompson’s formula and the Krejcie & Morgan table different from Cochran?

No – all three are the same formula written differently, so with the same z, p and margin they give the same number. The only visible difference is rounding: the Krejcie & Morgan table rounds to the nearest whole number (196 for N = 400), while this calculator rounds up as Cochran does (197).

What is wrong with Yamane’s formula?

Yamane’s n = N ÷ (1 + N·e²) fixes the expected proportion at 50% and the confidence at roughly 95%, so it can’t be adjusted. It also runs slightly high: for N = 400 at ±5% it gives 200 versus 197, and for N = 10,000 it gives 385 versus 370.

What margin of error do my responses give?

Use e = z × √(p(1 − p) ÷ n). With 200 completed responses at 95% confidence the margin is ±6.93%; 1,068 responses give ±3.00%. For 292 responses from a staff of 1,200 the correction √((N − n) ÷ (N − 1)) brings it down to ±4.99%.

Why use 50% as the expected proportion?

p(1 − p) is largest at 50%, so it gives the biggest, safest sample. If earlier data shows the true share is near 10%, use that: ±2% at 95% then needs 865 responses instead of 2,401.

How many people should I invite?

Divide the responses you need by the response rate you expect. 292 responses at a 40% response rate means 730 invitations; 385 at 20% means 1,925. A bigger invitation list fixes the count, not the bias if the people who answer differ from those who don’t.

Do I need a bigger sample for subgroups?

Yes, if you will report each subgroup on its own. ±5% for each of three nationality groups needs 385 per group – 1,155 in total – not 385 overall; with 385 overall, a group of 128 has a margin of about ±8.7%.

What changed

  • – Page fully reviewed and calculator extended: a margin-of-error mode for responses already collected (with the finite population correction), an optional response rate giving the invitations to send, and a side-by-side comparison with the Steven Thompson, Krejcie & Morgan and Yamane formulas for a known population.

Sources

Last reviewed: · Reviewed by Chelsea, CalcBright's animated guide, for the CalcBright editorial team · How we check our numbers