Power analysis calculator

Find the sample size a study needs, the power it will have, or the smallest effect it can detect, for t tests, correlations, multiple regression and one-way ANOVA, with the exact noncentral distributions G*Power uses.

No accountInstant resultsMatches G*Power

Choose the test

Find the sample size for a target power, the power of a planned sample, or the smallest effect it can detect.

TEST AND TARGET

LIVE RESULT

INSTANT

Power analysis

Power depends heavily on the assumed effect size. Base it on the smallest effect that would matter, or on several earlier studies, rather than on a single pilot or published estimate, which are usually too large.

READY-TO-USE APA 7TH RESULTS SENTENCE

Adjust inputs above to generate a draft reporting sentence.

VISUAL DIAGNOSTIC

Statistical power curve across sample sizes

Reproduce in R (pwr) and Python (statsmodels)

How the power analysis works

Statistical power is the probability that a study detects an effect of a given size, if it exists, at the chosen significance level. It rises with the sample size and the effect size, and falls with a stricter α. Most fields aim for 80% power; 90% is better when a missed effect would be costly. The calculator uses the exact distributions that G*Power uses, so the answers agree with it.

t tests: power = P(|T′| > tcrit), T′ noncentral t with δ = d √(n/2) (two groups) or d √n (paired, one sample)
Regression and ANOVA: power = P(F′ > Fcrit), F′ noncentral F with λ = f² N
Correlation: Fisher z approximation, as in R's pwr.r.test

The required sample size is the smallest n whose power reaches the target; for ANOVA it is rounded up to equal groups. The smallest detectable effect is found by solving the same equations for the effect size.

Worked example

To detect d = 0.5 between two groups with 80% power at α = .05, two-tailed, you need 64 participants per group, 128 in total. With only 20 per group the power is 34%: the study would miss a real medium effect about two times in three. With 50 per group, the smallest effect detectable with 80% power is d = 0.57.

Sample size per group for two independent groups

Two-tailed, α = .05
Cohen's d80% power90% powerPaired design, 80%
0.2394527199 pairs
0.317623590 pairs
0.5648634 pairs
0.8263415 pairs
1172310 pairs

The paired figures assume that dz, the effect standardized by the standard deviation of the differences, equals d. A paired design needs fewer participants when the two measurements are strongly correlated, because dz is then larger than d.

Sample size for a correlation

Two-tailed, α = .05
ρ80% power90% power
0.17821,046
0.2194258
0.385112
0.52938

Multiple regression

For regression the effect size is Cohen's f² = R² ÷ (1 − R²) for the whole model, or ΔR² ÷ (1 − R²full) for the predictors added in a later step. Cohen called 0.02, 0.15 and 0.35 small, medium and large. Set "Predictors tested" to the number of predictors whose contribution you are testing, and "Predictors in the model" to all of them, covariates included.

Total N for 80% power, α = .05
f²3 predictors, all tested8 predictors, all tested1 of 8 predictors tested
0.02550759395
0.157710955
0.35365226

Choosing the inputs

  • Effect size. The most important and most uncertain input. See choosing an effect size for a power analysis, and convert published results with the effect size converter or the effect size from t or F calculator.
  • One-tailed tests need fewer participants, but only make sense when an effect in the other direction would be treated the same as no effect.
  • Dropout. Divide the required sample by the expected completion rate: 64 completers at 85% completion means recruiting 76.
  • Several tests. If you will correct for multiple comparisons, use the corrected α here, for example .05 ÷ 3 for three Bonferroni-corrected tests.
  • Other designs. Mixed, repeated-measures and multilevel designs, and structural equation models, need their own methods; for SEM use the SEM power calculator.