Power Analysis Calculator

Power Analysis Calculator

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.

Enter the effect size you want to detect

What is Power Analysis?

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.

Power Analysis Formula

Normal-approximation formulas as in Cohen (1988) and Fleiss, Levin and Paik (2003). See Sources.

1. Two means

n per group = 2 (z₁₋α/₂ + z₁₋β)² ÷ d²
power = Φ(d √(n/2) − z₁₋α/₂)

2. Two proportions

n = [z₁₋α/₂ √(2p̄q̄) + z₁₋β √(p₁q₁ + p₂q₂)]² ÷ (p₁ − p₂)²

3. Round up

Always round n up to the next whole person

For a t-test, exact software adds about one or two people per group to these normal-based figures.

Worked Example: Planning a Medium-Effect Study

Given:
A trial comparing two teaching methods wants to detect a medium effect, d = 0.5, with 80% power at α = 0.05.
Step 1:
z-values:
z₀.₉₇₅ = 1.960 · z₀.₈₀ = 0.842
Step 2:
Plug in:
2 × (1.960 + 0.842)² ÷ 0.5² = 2 × 7.849 ÷ 0.25 = 62.8
Step 3:
Round up:
63 per group, 126 in total
Result:
63 students per group

Exact t-test software gives 64. If you expect some students to drop out, recruit extra: with 10% dropout, about 70 per group.

Sample Size per Group by Effect Size

Two-sample comparison of means at α = 0.05, two-sided. Halving the effect roughly quadruples the sample.

Sample size per group for different effect sizes and power
Effect size d80% power90% power
0.2393526
0.3175234
0.56385
0.82533
11622

Common Power Analysis Mistakes

  • Guessing an optimistic effect size. Assuming a big effect gives a small sample, and a study that misses the real, smaller effect. Base it on the smallest effect that would matter.
  • Doing power analysis after the study. "Observed power" from your own result adds nothing beyond the p-value. Power analysis is for planning.
  • Forgetting dropout. Recruit enough that the number completing still meets the target.
  • Treating n as the total. The figure is per group. A two-group study needs twice as many people.

Power Analysis FAQs

Why is 80% power the usual target?

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.

What effect size should I use?

The smallest that would matter in practice, ideally from pilot data or earlier studies. Cohen’s small/medium/large labels are a last resort.

How do I turn my numbers into Cohen’s d?

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.

Why does a small effect need so many people?

Sample size grows with 1 ÷ d². Detecting d = 0.2 needs about 6 times as many people as d = 0.5.

Does this work for a one-sample or paired test?

Those need roughly half the total: about (z₁₋α/₂ + z₁₋β)² ÷ d² pairs, with d based on the SD of the differences.

What is β?

The chance of missing a real effect (a type II error). Power = 1 − β.

Can I use unequal groups?

This calculator assumes equal groups, the most efficient design. Unequal splits need a larger total.

Is there free software for more designs?

G*Power is a popular free program covering many tests, including ANOVA and regression.

Sources

Related Tools