"How many samples do I need?" is one of the most common questions in research, and one of the most important to answer before collecting data. Too few, and a real effect will probably be missed. Too many, and you waste time, money, and possibly animals or patients. The tool for answering it is a power analysis. This guide explains statistical power in plain terms, gives ready-to-use sample sizes for the most common situation, and points out the mistakes that make published studies unreliable.
What is statistical power?
Power is the probability that your study will detect an effect, if the effect really exists. A power of 80% means that if the true effect is as large as you assumed, 8 out of 10 studies like yours would find p < 0.05, and 2 would miss it.
Power is the complement of the Type II error rate (β): power = 1 − β. The conventional target is 80%, with 90% used for important confirmatory studies. For the full picture of the two kinds of error, see Type I and Type II errors.
The four quantities that are linked
Power analysis connects four numbers. Fix any three and the fourth is determined:
- Effect size: how big a difference you want to be able to detect, usually as Cohen's d (see effect size explained).
- Significance level (α): usually 0.05.
- Power (1 − β): usually 0.80 or 0.90.
- Sample size (n): what you usually want to find.
The relationships are intuitive. Smaller effects need more data. Stricter α needs more data. Higher power needs more data. And because the required sample size depends on the square of the effect size, halving the effect you want to detect roughly quadruples the sample you need.
Ready-made numbers: comparing two groups
For a two-sided independent t-test at α = 0.05, the required number of subjects per group is:
| Effect size (d) | Power 80% | Power 90% |
|---|---|---|
| 0.2 (small) | 394 | 527 |
| 0.5 (medium) | 64 | 86 |
| 0.8 (large) | 26 | 34 |
| 1.0 | 17 | 23 |
| 1.5 | 9 | 11 |
A handy approximation for 80% power is n per group ≈ 16 / d². For d = 0.5 that gives 64, matching the table.
The table is sobering. Many lab studies use 5 to 10 per group, which only gives reasonable power for very large effects (d ≥ 1.5). With 10 per group and a medium effect (d = 0.5), power is below 20%: the study will miss a real effect more than four times out of five.
Where does the effect size come from?
This is the hard part, and the most important. Options, roughly from best to worst:
- The smallest effect that would matter. Ask "what is the smallest difference that would change a decision?" For example, a 5 mmHg drop in blood pressure. Divide by the expected SD to get d. This answers the question you actually care about.
- Meta-analyses or several earlier studies. Averages across studies are more trustworthy than any single result.
- A single previous study or pilot. Use with caution: published and pilot effect sizes tend to be overestimates (see below), so plan for something smaller.
- Cohen's conventions. A last resort when nothing else is available.
To convert a raw difference into d, you need an estimate of the standard deviation. In StatFlo, the group summary table of any earlier dataset gives you the SD of each group.
Why underpowered studies are worse than they look
Low power does not just mean missing effects. It also distorts the effects you do find:
- Inflated effect sizes ("winner's curse"). When power is low, only the samples that happened to overestimate the effect cross p < 0.05. Significant results from small studies therefore systematically exaggerate the true effect.
- More false positives among significant results. The lower the power, the larger the share of "discoveries" that are flukes. Our guide to Type I and Type II errors works through the arithmetic.
- Poor replication. A follow-up study with the same small sample has the same low chance of finding the effect again.
Common mistakes
Calculating power after the study ("post-hoc power")
Computing power from the effect size you just observed adds no information: it is a direct function of the p-value. A non-significant result always gives "low observed power". Instead, report a confidence interval for the effect, which shows which effect sizes your data can and cannot rule out.
Forgetting dropouts and exclusions
If you expect 15% of subjects to drop out or be excluded, divide the required n by 0.85 and recruit that many.
Using the wrong design
The table above is for two independent groups. Paired designs (before/after on the same subjects) usually need far fewer subjects because they remove between-subject variability; see paired vs independent data. Non-parametric tests need roughly 5 to 15% more subjects than the t-test for normal data. Comparing several groups with ANOVA requires a separate calculation based on the effect size f.
Tools for your own calculation
For other designs, free software such as G*Power, or the pwr package in R (pwr.t.test(d = 0.5, power = 0.8, sig.level = 0.05)), handles t-tests, ANOVA, correlation, chi-square and more. Whatever tool you use, write down the effect size, α, power and the reasoning behind them in your methods section; reviewers increasingly expect it.
Summary
Decide the smallest effect that matters, convert it to d, and look up n. For two groups at 80% power, n per group ≈ 16 / d². Plan before collecting data, add a margin for dropouts, and never compute power from the result you just obtained.