01
How power is calculated
power ≈ Φ(d × √(n ÷ 2) − z₁₋α⁄₂)
d is the standardised difference between the means, n the number in each group and Φ the standard normal distribution. This is the normal approximation to the two-sample t test. It runs slightly high: for d = 0.5 and α = 0.05, 80.7% against an exact 80.1% at n = 64, and 35.3% against 33.8% at n = 20. Software using the noncentral t distribution gives the exact figure.
To check a figure against exact software: R power.t.test() with n = 64 and delta = 0.5 gives 0.8015.
02
Worked example
A medium effect, d = 0.5, with 64 per group at α = 0.05, two-tailed.
d × √(n ÷ 2) = 0.5 × √32 = 2.828
power ≈ Φ(2.828 − 1.960) = Φ(0.868) = 0.807
| n per group | Power for d = 0.5 |
|---|---|
| 20 | 35% |
| 30 | 49% |
| 50 | 71% |
| 64 | 81% |
| 100 | 94% |
03
What changes power
- Sample size: more per group raises power. Halving the detectable effect takes four times the sample.
- Effect size: with 64 per group, power is 20% for d = 0.2 and over 99% for d = 0.8.
- Alpha: a stricter threshold, such as 0.01, lowers power.
- Noise: a more precise measurement shrinks the standard deviation and so raises d.
04
Power calculation mistakes
- Entering the total instead of the number per group. 64 people in total, 32 per group, give 52% power for d = 0.5, not 81%.
- Planning for a large effect. 25 per group gives 81% power for d = 0.8; if the true effect is d = 0.5, the same study has 42% power.
- Forgetting dropouts. Losing 20% of 64 per group leaves 51, and power for d = 0.5 falls from 81% to 71%.
Trust
How this page is checked
- The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
- The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
- Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.
Cite this page
Sciloom. (2026). Statistical power calculator. Zebra Nine Studio Inc. https://sciloom.si/statistical-power-calculator
Frequently asked questions
What is statistical power?
The probability that a study finds a significant result when the effect really exists. It equals 1 minus the type II error rate, β.
Why is 80% the usual target?
It is a convention from Jacob Cohen: a one-in-five chance of missing a real effect, set against the 5% chance of a false positive. Confirmatory trials often aim for 90%.
Should I calculate power after the study, from the observed effect?
No. Post hoc power computed from the observed effect is just a restatement of the p value and adds nothing. Use power for planning, and report confidence intervals afterwards.
How do I choose the effect size?
Use the smallest difference that would matter in practice, or an estimate from earlier studies. Cohen's labels of 0.2, 0.5 and 0.8 for small, medium and large are a fallback, not a substitute for subject knowledge.