G*Power is the most widely used free program for power analysis, and many ethics committees and thesis supervisors expect a G*Power-style sample size justification. It needs to be installed on Windows or macOS. If you are on a Chromebook, a tablet, a locked-down university computer, or simply want a quicker route, you can run the same calculations online.
In this guide
What you can calculate
| Test | Effect size | Typical question |
|---|---|---|
| Independent and paired t-tests | Cohen's d | How many per group to detect d = 0.5? |
| One-way ANOVA | Cohen's f | Total sample for 3 groups with f = 0.25? |
| Correlation | r | Sample to detect r = .30? |
| Multiple regression | f² | Sample for 5 predictors and f² = .15? |
| Two proportions and chi-square | h or w | Sample to detect 30% vs 45%? |
For surveys that estimate a proportion with a given margin of error, use the survey sample size calculator instead; that is a precision question rather than a power question.
A priori power analysis in four steps
- Choose the test that matches your main hypothesis.
- Set the effect size you want to detect. Base it on prior studies or the smallest effect that would matter in practice; Cohen's benchmarks are a fallback.
- Set α and power. The usual values are α = .05 (two-tailed) and power = .80.
- Read the required sample and add a margin for dropout and incomplete responses.
Results compared with G*Power
For the standard designs, the calculator gives the same sample sizes as G*Power 3.1:
| Design (α = .05, power = .80) | Effect size | Required sample |
|---|---|---|
| Independent t-test, two-tailed | d = 0.5 | 64 per group |
| Paired t-test, two-tailed | dz = 0.5 | 34 pairs |
| One-way ANOVA, 3 groups | f = 0.25 | 159 total |
| Multiple regression, 5 predictors (R² deviation from zero) | f² = .15 | 92 |
G*Power uses Cohen's f for ANOVA, while papers often report η². Convert with f = √(η² / (1 − η²)); η² = .06 gives f ≈ 0.25. For regression, f² = R² / (1 − R²).
Reporting your sample size justification
An a priori power analysis indicated that a total sample of 159 participants (53 per group) was required to detect a medium effect (f = 0.25) in a one-way ANOVA with three groups, with 80% power at α = .05. Allowing for 15% incomplete responses, we aimed to recruit 186 participants.
Name the test, effect size and its justification, α, power, the required sample and any allowance for attrition. Mention the software used.
When you need more than a calculator
- Structural equation models: rules of thumb (for example 10 cases per parameter) or simulation-based power for the RMSEA are used instead.
- Multilevel and longitudinal designs need simulation or specialist tools because clustering reduces the effective sample size.
- Mediation: power for indirect effects is best estimated by simulation (Monte Carlo methods).
Frequently asked questions
Is there an online version of G*Power?
G*Power itself is a desktop program. The free online power analysis calculator covers the most common G*Power procedures for t-tests, ANOVA, correlation, regression and proportions, and runs in any browser.
What effect size should I use for a power analysis?
Use the effect from a meta-analysis or similar studies, preferably adjusted downward, or the smallest effect that would be practically important. Use Cohen’s medium benchmarks only if nothing else is available.
Why does my supervisor ask for 80% power?
It is the convention from Cohen (1988): a 20% chance of missing a real effect is considered acceptable. Some fields and funders now ask for 90%.
Do I need a power analysis for a survey?
If you test hypotheses, yes. If you only estimate percentages or means, a margin-of-error calculation is more appropriate.


