Sample size with the Stephen Thompson formula (free calculator)
Last updated: 25 November 2026
Enter your population size and get the sample size instantly with the Stephen Thompson formula, plus the Krejcie & Morgan table, how many people to invite, and when you need statistical power instead.
Calculate your sample size
The formula and its symbols
n = N × p(1 − p) ÷ [(N − 1) × (d² ÷ z²) + p(1 − p)]
N is the population size, z the standard score for the confidence level (1.96 at 95%), d the margin of error (0.05) and p the expected proportion (0.5 when unknown).
Always round up: a sample is never a fraction and never rounded down.
The Krejcie & Morgan table is the same formula
The Krejcie & Morgan (1970) table is built on essentially the same formula, so it gives the same numbers at 95% confidence and a 5% margin. One value may differ by one because of rounding.
| Population N | Sample n |
|---|---|
| 100 | 80 |
| 200 | 132 |
| 300 | 169 |
| 500 | 217 |
| 1000 | 278 |
| 2000 | 322 |
| 5000 | 357 |
| 10000 | 370 |
| 100000 | 384 |
When this formula is not enough
The Thompson formula answers one question: how many people do I need to represent a mean or a proportion in the population? If your study compares groups or tests a relationship, the question becomes: how many people do I need to detect the effect if it exists? Statistical power (G*Power) answers that, not the formula.
| Test (medium effect, power 0.80, α = .05) | Required sample |
|---|---|
| Independent-samples t-test, d = 0.5 | 64 per group |
| One-way ANOVA, 3 groups, f = 0.25 | 159 in total |
| Pearson correlation, r = 0.3 | 84 |
How to write it in your methods chapter
The study population comprised 1,000 students. The sample size was determined with the Stephen Thompson formula at a 95% confidence level and a 5% margin of error, giving 278 participants. Expecting a response rate of about 60%, the survey was sent to 464 people.
Common mistakes
- Using 384 for every study; it applies only to very large populations, and a small population needs a smaller sample.
- Forgetting non-response: if you need 278 answers, 278 invitations will not be enough.
- Citing the formula as evidence of power for a test of differences or relationships.
- Claiming the sample “represents the population” when it is a convenience sample, not a random one.