Sample Size Calculator

Find the sample size needed for a target margin of error.

What the Sample Size Calculator does

Sample size is driven by the precision you want, not by how large the population is. Getting from ±5% to ±2.5% requires four times as many responses, which is why survey budgets rise so steeply with precision.

Formula

  • n = z² × p(1 − p) ÷ E²
  • Finite population: n_adj = n ÷ (1 + (n − 1) ÷ N)
  • Contacts needed = n ÷ Response rate

Inputs explained

InputUnitRequiredNotes
Desired margin of error%Yes
Confidence levelone of 6 optionsYes
Expected proportion%YesUse 50% if unknown — it is the most conservative.
Population sizenumberOptionalOptional — leave blank for very large populations. Accepts 0 or more.
Expected response rate%Optional

How to use it

  1. Choose Confidence level.
  2. Enter Desired margin of error and Expected proportion.
  3. Optionally add Population size and Expected response rate.
  4. Select Calculate.

Worked example

Targeting ±3% margin at 95% confidence with an unknown proportion.

Margin
3
Confidence
95%
Proportion
50

1.96² × 0.25 ÷ 0.03² = 1,068 respondents needed.

Frequently asked questions

Why use 50% when I do not know the proportion?

Because p(1 − p) peaks at p = 0.5, giving the largest required sample. Using it guarantees your margin will be no worse than targeted.

Does a bigger population need a bigger sample?

Hardly at all. Beyond about 20,000 the required sample barely moves — 1,067 for 20,000 people and 1,068 for 100 million.

Related calculators