Sample Size for a Prevalence Survey: A Worked Example
By the BossCE Editorial Team · 21 November 2026
The Short Answer
For a simple random sample, n = z² × p(1 − p) ÷ d², where p is the expected proportion and d the precision you need. At 95% confidence, with p of 50% and precision of ±5 percentage points, that gives 385. Multiply by the design effect for cluster sampling, then inflate for expected non-response.
Worked Example
- Expected prevalence unknown, so use p = 50% (the most conservative choice).
- Precision ±5 percentage points, 95% confidence: 1.96² × 0.5 × 0.5 ÷ 0.05² = 384.2, rounded up to 385.
- Cluster sampling with a design effect of 2: 385 × 2 = 769 (calculated before rounding).
- Expect 10% non-response: 769 ÷ 0.9 = 855 people to approach.
Choosing the Inputs
- Expected proportion: use a previous survey or pilot. 50% gives the largest sample if you have nothing better.
- Precision: decide how wide an interval is still useful for the decision. ±5 points suits common conditions; it is useless for rare ones.
- Design effect: usually 1.5 to 2 or more for cluster surveys, higher when the outcome clusters strongly, as vaccination status often does.
- Finite population: only matters when the sample is a large share of a small population, such as staff in one hospital.
The Low-Prevalence Trap
For a condition with an expected prevalence of 2%, a precision of ±5 points would allow an estimate anywhere from 0% to 7%. Use a precision of about a quarter to a half of the expected prevalence instead: ±1 point at 2% needs 753 people before the design effect.
Common Mistakes
- Using the formula for estimating one proportion when the real aim is to compare two groups. That needs a power calculation.
- Forgetting the design effect in cluster surveys, which can halve the real precision.
- Calculating for the whole sample when results will be reported by subgroup, such as by sex or district. Each subgroup then needs its own sample size.
Try the calculator: Sample Size for a Survey
Enter the expected proportion, precision, design effect and non-response to get the sample to recruit.
Open the calculator →Sources Behind This Summary
- Lwanga SK, Lemeshow S. Sample Size Determination in Health Studies: A Practical Manual. Geneva: WHO, 1991.
- WHO. Vaccination Coverage Cluster Surveys: Reference Manual. Geneva: WHO, 2018.
- Kirkwood BR, Sterne JAC. Essential Medical Statistics, 2nd ed. Blackwell, 2003.
Ask your own question
Describe your setting and question, and BossCE AI answers with numbered sources, in under a minute.
Free · No sign-up · Example question: edit it for your setting
Practise It as a Case
Test your reasoning on a realistic case, marked against current guidance: Planning a Prevalence Survey: Sample Size and Sampling in the BossCE AI Academy.
Written on 21 November 2026 from the sources listed. For health professionals, public health teams and policy makers: it supports, and does not replace, professional judgement, national guidance and local data. Spotted something out of date? Tell us.