Sample size formulas explained, with worked examples
The three formulas Nigerian supervisors ask for most are Taro Yamane, Cochran and Fisher. Each one answers the same question — how many respondents you need — but starts from different information. Always round the answer up to the next whole person.
1. Taro Yamane formula
n = N / (1 + N·e²)
N is the population size and e is the margin of error as a decimal (5% = 0.05). It assumes 95% confidence and maximum variability (p = 0.5), so you only need N and e.
Worked example
A study of 1,452 staff in a Port Harcourt organisation, with a 5% margin of error: n = 1452 / (1 + 1452 × 0.05²) = 1452 / (1 + 3.63) = 1452 / 4.63 = 313.6 → 314 respondents.
2. Cochran formula
n₀ = z²·p·(1 − p) / e²
z is the confidence value (1.96 for 95%, 2.576 for 99%), p is the expected proportion (use 0.5 if unknown) and e is the margin of error. For a known, smaller population, correct it with:
n = n₀ / (1 + (n₀ − 1) / N)
Worked example
95% confidence, p = 0.5, e = 0.05: n₀ = 1.96² × 0.5 × 0.5 / 0.05² = 3.8416 × 0.25 / 0.0025 = 384.2 → 385 for a very large population. If the population is 2,000 students: n = 384.2 / (1 + 383.2 / 2000) = 384.2 / 1.1916 = 322.4 → 323 respondents.
3. Fisher formula
n = z²·p·q / d²
Common in health and prevalence studies. p is the expected prevalence from a previous study, q = 1 − p and d is the precision you want. It is used when the population is above 10,000. For a population under 10,000, adjust it with nf = n / (1 + n / N).
Worked example
A previous study found 30% prevalence (p = 0.3, q = 0.7), 95% confidence, d = 0.05: n = 1.96² × 0.3 × 0.7 / 0.05² = 3.8416 × 0.21 / 0.0025 = 322.7 → 323. If the target population is 5,000: nf = 322.7 / (1 + 322.7 / 5000) = 322.7 / 1.0645 = 303.1 → 304 respondents.
Which sample size formula should I use?
- You know the population size and only need a quick survey size: Taro Yamane. It is the most common choice for undergraduate projects in Nigeria.
- You want a different confidence level or have an expected proportion: Cochran, with the finite population correction when N is known.
- Health or prevalence study with a figure from earlier research: Fisher, adjusted if your population is under 10,000.
- You are testing a hypothesis or comparing groups: none of these — use a power analysis (see the notes above the calculator).
Whichever you choose, add 10–20% for non-response and cite the formula in your methodology chapter. Read the full sample size calculation guide or use the calculator above to check your numbers.