Study design · 7 min read

How many samples do I need? Power explained

Plan the sample size before you collect data. A plain-English guide to power, with a table you can use today.

Advertisement
Updated November 2026 · Includes a sample-size table

"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:

  1. Effect size: how big a difference you want to be able to detect, usually as Cohen's d (see effect size explained).
  2. Significance level (α): usually 0.05.
  3. Power (1 − β): usually 0.80 or 0.90.
  4. 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)394527
0.5 (medium)6486
0.8 (large)2634
1.01723
1.5911

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:

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:

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.

Pilot data in hand?

Upload it to StatFlo to get each group’s SD, the number you need to turn a meaningful difference into an effect size.

Open StatFlo