Skip to main content

Research methods

How to calculate sample size for a survey (with worked examples)

By the NOSCERA team · Published · 7 min read

"How many people do I need?" is usually the first methods question in a project. For a survey that aims to estimate a percentage, the answer comes from four choices you can justify in one paragraph of your method section.

First, be clear what the number is for

A sample size for estimating something ("what percentage of traders use mobile money?") is about precision — how close your estimate is likely to be. A sample size for detecting a difference ("do men and women differ?") is about statistical power and needs a different calculation based on the size of difference you expect. This guide covers the first.

The four inputs

  • Confidence level — usually 95%, which corresponds to z = 1.96.
  • Margin of error — how far from the true value you can accept, such as ±5 percentage points.
  • Expected percentage — your best guess at the answer. If you have no idea, use 50%; it gives the largest, safest sample.
  • Population size — how many people you could possibly survey. It only matters when the population is small.

The formula, worked through

For a large population: n₀ = z² × p × (1 − p) ÷ e², where p is the expected proportion and e the margin of error, both as decimals.

95% confidence, ±5%, expected 50%

  • n₀ = 1.96² × 0.5 × 0.5 ÷ 0.05²
  • = 3.8416 × 0.25 ÷ 0.0025 = 384.16
  • Round up: 385 completed responses.

For a known, smaller population N, apply the finite population correction: n = n₀ ÷ (1 + (n₀ − 1) ÷ N).

Same survey, 1,000 final-year students

  • n = 384.16 ÷ (1 + 383.16 ÷ 1,000) = 384.16 ÷ 1.38316 ≈ 277.7
  • Round up: 278 completed responses.
Large population, 95% confidence, expected 50%
Margin of errorResponses needed
±10%97
±5%385
±3%1,068

Halving the margin of error roughly quadruples the sample, which is why ±3% surveys are expensive.

Adjust for who will actually reply

Divide the required number by your expected response rate. If you need 385 responses and expect 40% of invitees to reply, invite 385 ÷ 0.40 ≈ 963 people. Base the response rate on a pilot or a similar earlier survey, and say where it came from.

Estimating an average instead of a percentage

If your key result is an average (mean spend, hours studied), use n₀ = (z × σ ÷ E)², where σ is the expected standard deviation and E the margin of error in the same units. With σ = 15 marks and a margin of ±3 marks at 95% confidence, n₀ = (1.96 × 15 ÷ 3)² = 96.04, so 97 respondents. The standard deviation usually comes from a pilot or published study.

When the formula does not apply

  • Convenience, snowball or quota samples: the margin of error formula assumes random selection. You can still report your sample size, but describe it as a non-probability sample rather than quoting a margin of error.
  • Subgroups: if you want ±5% within each of three faculties, each faculty needs its own adequate sample.
  • Clustered designs (sampling whole classes or villages): people in a cluster tend to be alike, so you need more respondents than the formula suggests.
  • Qualitative interviews: sample size is usually justified by depth and data saturation, not by this formula.

Analyse your own data in NOSCERA Lab

Lab is included in the Free plan. Upload your responses, run the summaries and tests in this guide, and keep every finding linked to the rows it came from.