Statistical Power Calculator
Every experiment is a bet: that the effect you are hunting is real and your study is sharp enough to see it. Statistical power is the measure of that sharpness — the probability your test will detect an effect of a given size, if the effect truly exists. Low power means even real discoveries slip through your net; high power means your negative results actually mean something. Yet power is the least-checked number in most research plans.
The convention, inherited from Jacob Cohen, is to aim for 80% power: an 80% chance of detecting the effect at the 5% significance level. Below that, null results are ambiguous — did the effect not exist, or did the study just miss it? Above 90%, you may be spending participants and money for diminishing returns. Power analysis turns this judgment into arithmetic before a single data point is collected.
The Statistical Power Calculator on this page computes power from effect size (Cohen's d), per-group sample size, and significance level, using the standard normal approximation for a two-sample comparison. It also inverts the question both ways: the sample size needed for 80% power, and the smallest effect your planned sample can reliably detect.
Preregistration — publicly logging your hypotheses, sample size, and analysis plan before data collection — is where power analysis earns its keep in the open-science era. A preregistered power calculation commits you to a sample size justified by theory rather than convenience, and it lets reviewers verify that your design could actually detect what you claim to study. Journals and registries increasingly require it; doing it well marks the difference between a fishing expedition and a test.
What Statistical Power Really Means
Formally, power is 1 − β, where β is the Type II error rate — the probability of missing a real effect (a false negative). Its twin is the significance level α, the Type I error rate or false-positive rate, conventionally 5%. Power analysis holds α fixed and asks: given my sample size and the effect I expect, how often will the test correctly reject the null?
The answer depends on three ingredients: bigger effects are easier to detect, bigger samples sharpen every estimate, and stricter α (like 1%) costs power. The calculator combines them through the noncentrality parameter d√(n/2), then converts it to a probability with the normal curve. The honest limitation: this is the large-sample normal approximation, excellent for planning, not a substitute for exact software in final analysis.
One-sided vs two-sided tests change the power math: a one-sided test at α = 5% uses the full 5% in one tail (z = 1.645), gaining power for effects in the predicted direction. But the price is legitimacy — one-sided tests are only defensible when the opposite direction is truly meaningless or impossible, stated in advance. The calculator's two-sided default (z = 1.96) is the conservative, conventional choice.
Effect Size: Cohen's d
Cohen's d standardizes an effect as the mean difference divided by the pooled standard deviation — the signal measured in units of noise. By convention, d ≈ 0.2 is small, 0.5 is medium, and 0.8 is large, though these labels are field-dependent: a 'small' effect in medicine can save lives, while a 'large' effect in physics might be a rounding error.
The cruel arithmetic of power is that required sample size scales with 1/d². Halving the effect you chase quadruples the participants you need. This is why pilot studies that estimate d are so valuable — and why hunting tiny effects without a power calculation is the most common way to run an expensive, uninformative study.
Paired designs (before-after, matched pairs) are power bargains: by subtracting out between-subject variability, they shrink the noise term and can halve the required sample. The calculator's two-independent-groups formula is conservative for paired data — if you are running a within-subjects design, expect meaningfully higher real power than the calculator shows.
Sample Size and the 80% Convention
The 80% power target balances two costs: the cost of missing real effects against the cost of participants, time, and money. Funders and ethics boards increasingly demand a power justification because underpowered studies waste all three — and expose participants to research that cannot answer its own question.
The calculator's sample-size output answers 'how many per group for 80% power?' directly, and the minimum detectable effect answers the reverse: 'with the sample I can afford, what is the smallest effect I can reliably see?' If that floor sits above the effect you care about, the design needs rethinking before it starts.
Pilot studies exist to estimate the effect size and variance that power analysis needs — but pilots are small, so their d estimates are noisy, often inflated by the winner's curse. The safe practice: shrink the pilot's d by 20–30% (or use the lower confidence bound) before feeding it to the calculator. Planning on an inflated pilot effect is the classic route to an underpowered main study.
How to Use the Statistical Power Calculator
Enter the effect size you expect, your per-group sample size, and the significance level. The calculator returns power plus the two inverse planning figures.
Enter the expected effect size as Cohen's d (e.g., 0.5 for a medium effect).
Enter the sample size per group (n).
Choose the significance level α: 10%, 5%, or 1%.
Click Calculate.
Read the statistical power, the noncentrality parameter, the sample size needed for 80% power, and the minimum detectable effect at 80% power.
Worked Example 1: d = 0.5, n = 64 per Group
The textbook medium-effect design at the 5% level.
Noncentrality parameter: z = d√(n/2) − z_{α/2} = 0.5 × √32 − 1.96 = 0.5 × 5.657 − 1.96 = 2.828 − 1.96 = 0.868.
Power = Φ(0.868) ≈ 0.807, about 80.7% — the classic result that n = 64 per group gives 80% power for d = 0.5.
Sample size for exactly 80% power: n = 2 × ((1.96 + 0.84)/0.5)² = 2 × (5.6)² = 62.7, about 63 per group.
Minimum detectable effect at n = 64: d = (1.96 + 0.84) × √(2/64) = 2.8 × 0.1768 ≈ 0.495. The calculator reports 80.7%, 0.87, 62.7, and 0.495.
Worked Example 2: d = 0.3, n = 40 per Group
A small-effect study with a modest sample — the underpowered danger zone.
Noncentrality: z = 0.3 × √20 − 1.96 = 0.3 × 4.472 − 1.96 = 1.342 − 1.96 = −0.618.
Power = Φ(−0.618) ≈ 26.8% — barely better than a coin flip at finding the effect.
Sample needed for 80%: n = 2 × (2.8/0.3)² = 2 × 87.1 = 174.2 per group.
Minimum detectable effect: 2.8 × √(2/40) = 2.8 × 0.2236 ≈ 0.626 — far above the 0.3 the researcher hopes to find. Verdict: redesign with a much larger sample or a stronger manipulation.
The Normal Approximation's Limits
This calculator uses the large-sample normal approximation to the t-test's power — the standard planning formula. With small samples (n under ~20 per group), the exact noncentral t-distribution gives slightly lower power, so treat the calculator's figure as mildly optimistic for tiny studies and confirm critical designs in dedicated software like G*Power.
The approximation also assumes equal group sizes, equal variances, and a two-sided test. Unequal groups, Welch-style variance differences, or one-sided hypotheses shift the numbers. For grant proposals and study planning, the approximation is the right tool; for the final preregistered analysis plan, use exact methods.
Power After the Fact: Don't
Computing 'observed power' from your study's own effect estimate is circular and widely condemned — it is a deterministic function of the p-value and adds zero information. If the result was non-significant, the useful question is not 'what was my power?' but 'what effect sizes can I now rule out?', answered by confidence intervals.
Do power analysis before collecting data, when it can still change the design. After data collection, let estimation — intervals, not post-hoc power — do the talking. The calculator is a planning instrument; pointing it backward in time is the one misuse to avoid.
From Power to Precision: Confidence Intervals
Power asks 'will I detect it?'; precision asks 'how tightly will I measure it?' — and for many studies, precision is the better planning target. A 95% confidence interval's half-width for a mean is roughly 2 × SD/√n: quadrupling the sample halves the interval. Planning to a target interval width (AIPE — accuracy in parameter estimation) sidesteps effect-size guessing entirely.
The two frameworks usually agree: the sample that gives 80% power for d = 0.5 also gives a confidence interval of about ±0.35 SD — informative but not tight. If your field needs ±0.1 SD precision, you need n ≈ 400 per group regardless of what power says about your hypothesized effect. Report both the power and the expected precision; reviewers respect the pair.
There is a deeper reason precision is gaining ground: the replication crisis taught us that 'significant' with a wide interval often means an inflated, fragile estimate. A study powered at 80% for a large assumed effect can 'succeed' while pinning the true effect down to anywhere between tiny and huge. Precision planning forces honesty about what the data will actually nail down.
In practice, run the calculator for power, then compute the expected interval width at the resulting n, and ask whether that width would satisfy you if the result is null. If a null result with a football-field-wide interval would be unpublishable and uninformative, the design needs more n — power alone was not the right gate.
None of this replaces the calculator; it completes it. Power guards against missing real effects, precision guards against vague ones, and together they describe what your sample actually buys. The best methods sections report both numbers and let the reader see the design is adequate on each front.
Tips
- Run power analysis before collecting data — afterward it cannot fix the design.
- Justify your expected d from pilot data or literature, not from hope.
- Remember the 1/d² scaling: halving the effect quadruples the sample need.
- Keep α = 5% two-sided unless you have a preregistered reason to change it.
- Use the minimum-detectable-effect output as a reality check on affordability.
- Confirm small-sample or high-stakes designs in exact software like G*Power.
- Never compute 'observed power' from your own results — report confidence intervals instead.
- Document the power analysis in the methods section; reviewers expect it.
- When in doubt between two sample sizes, take the larger — the cost of extra participants is linear, but the cost of an inconclusive study is total.
- Archive your power-analysis inputs with the preregistration; future-you (and reviewers) will want to see the assumed d and its source.
1. What is statistical power?
The probability that a test detects an effect of a given size when the effect truly exists — mathematically, 1 minus the Type II (false negative) error rate. 80% power is the conventional planning target.
2. What is Cohen's d?
A standardized effect size: the mean difference divided by the pooled standard deviation. Rough benchmarks are 0.2 (small), 0.5 (medium), 0.8 (large), but meaningful sizes vary by field.
3. How many participants do I need for 80% power?
It depends on the effect size: roughly n = 2 × ((1.96 + 0.84)/d)² per group for a two-sample test at α = 5%. For d = 0.5 that is about 63 per group; for d = 0.3 about 174.
4. What is the minimum detectable effect?
The smallest effect size your planned sample can detect with 80% power. If it exceeds the effect you care about, the study is underpowered for your question as stated.
5. What is the difference between α and β?
α (Type I error) is the false-positive rate — rejecting a true null, conventionally capped at 5%. β (Type II error) is the false-negative rate — missing a real effect. Power is 1 − β.
6. Why is 80% the standard power target?
Convention from Cohen balancing the cost of missed effects against the cost of participants. Funders and ethics boards widely expect it; 90% is used when missing the effect is especially costly.
7. Does a bigger sample always help?
Yes for power — power rises monotonically with n. But beyond ~90% power the gains per participant shrink, so the ethical and financial optimum is usually near 80–90%.
8. What is the noncentrality parameter?
The expected test statistic under the alternative hypothesis — here d√(n/2). Power is the probability this shifted distribution clears the significance threshold.
9. Is the normal approximation accurate?
Very good for planning with moderate samples; slightly optimistic below ~20 per group, where the exact noncentral t-distribution should be used. Confirm critical designs in G*Power or similar.
10. Can I compute power after my study?
'Observed power' from your own data is circular — a mere transform of the p-value. Report confidence intervals instead; do power analysis before data collection.
11. What if my groups have unequal sizes?
Use the harmonic-mean-style effective n in the formula, or better, exact software. Unequal groups cost some efficiency versus balanced designs.
12. Does a one-sided test change power?
Yes — one-sided tests put all of α in one tail, slightly raising power for effects in the predicted direction, but they are only legitimate when preregistered and directionally justified.
13. Why do small effects need huge samples?
Sample size scales with 1/d². Halving the detectable effect quadruples the required n — the fundamental economics of precision.
14. What should I report in a paper?
The a priori power analysis: target power, α, expected effect size with its source, and the resulting sample size. Reviewers increasingly require it.
15. When is power analysis unnecessary?
For purely exploratory or pilot work where estimation, not hypothesis testing, is the goal. Even then, a precision-based sample justification (target confidence-interval width) is good practice.
CONCLUSION
The Statistical Power Calculator answers the three questions every study design must face: how likely am I to find the effect (power), how many participants do I need (sample size), and what is the smallest effect I can see (minimum detectable effect). The worked examples showed the classic n = 64 design hitting 80.7% power for d = 0.5 — and a d = 0.3, n = 40 design limping at 26.8%.
Run these numbers before you collect a single observation. An hour of power analysis is the cheapest insurance in science: it is far better to redesign on paper than to discover, after the money is spent, that your study could never have answered its question.