Work out how many people a two-group study needs to detect an effect, or how much power a planned study has, for comparing means or proportions.
n per group = 2 (z₁₋α/₂ + z₁₋β)² ÷ d²
Cohen’s d is the difference in means divided by the SD: 0.2 small, 0.5 medium, 0.8 large. Two-sided test, equal group sizes.
Power analysis works out how likely a study is to detect an effect if it really exists, and how big the study must be to reach a target likelihood. That likelihood is the study's power.
Four quantities are tied together: sample size, effect size, significance level α and power. Fix any three and the fourth follows. Most often you choose α = 0.05, power = 80% and the smallest effect worth finding, and solve for the sample size.
Doing this before collecting data avoids two costly outcomes: a study too small to find anything, and a study far bigger than needed.
Normal-approximation formulas as in Cohen (1988) and Fleiss, Levin and Paik (2003). See Sources.
For a t-test, exact software adds about one or two people per group to these normal-based figures.
Exact t-test software gives 64. If you expect some students to drop out, recruit extra: with 10% dropout, about 70 per group.
Two-sample comparison of means at α = 0.05, two-sided. Halving the effect roughly quadruples the sample.
| Effect size d | 80% power | 90% power |
|---|---|---|
| 0.2 | 393 | 526 |
| 0.3 | 175 | 234 |
| 0.5 | 63 | 85 |
| 0.8 | 25 | 33 |
| 1 | 16 | 22 |
It’s Cohen’s convention: accepting a 20% chance of missing a real effect, four times the usual 5% false-positive risk. Use 90% when missing an effect would be costly.
The smallest that would matter in practice, ideally from pilot data or earlier studies. Cohen’s small/medium/large labels are a last resort.
Divide the difference you want to detect by the standard deviation. A 5-point gain on a test with SD 10 is d = 0.5.
Sample size grows with 1 ÷ d². Detecting d = 0.2 needs about 6 times as many people as d = 0.5.
Those need roughly half the total: about (z₁₋α/₂ + z₁₋β)² ÷ d² pairs, with d based on the SD of the differences.
The chance of missing a real effect (a type II error). Power = 1 − β.
This calculator assumes equal groups, the most efficient design. Unequal splits need a larger total.
G*Power is a popular free program covering many tests, including ANOVA and regression.
Related Tools