A power analysis tells you how many participants you need to have a good chance of detecting an effect of a given size. G*Power is free software that does this calculation for most common tests. You run it before collecting data (an "a priori" analysis), and you report it in your proposal, IRB or ethics application and methods chapter.
What power analysis is and when to use it
Statistical power is the probability that your test will detect an effect if the effect really exists. A study with 80% power has a 20% chance of missing a real effect of the size you planned for. That miss is a Type II error, and its probability is called β.
You need an a priori power analysis whenever you plan to test hypotheses. Committees and IRBs ask for one because an underpowered study wastes participants' time, and an oversized one burdens more people than necessary.
The four parameters
Power analysis links four quantities. Fix any three and G*Power calculates the fourth.
| Parameter | Usual value | What it means |
|---|---|---|
| Alpha (α) | .05 | Risk of a false positive (Type I error) |
| Power (1 − β) | .80 or .90 | Chance of detecting a true effect |
| Effect size | From prior studies or the smallest effect of interest | How large the effect you want to detect is |
| Sample size (N) | Calculated | Number of participants needed |
The .80 convention comes from Cohen (1988), who judged a Type II error about four times less serious than a Type I error. Use .90 when missing an effect would be costly. If you test several hypotheses with a corrected alpha, use the corrected value in G*Power.
Choosing the effect size honestly
The effect size drives the result more than anything else. Halving the effect size roughly quadruples the sample you need. This is where most proposals are weakest.
Good sources, in rough order of preference:
- The smallest effect size of interest. Ask what difference would matter in practice, such as a 5-point drop on a pain scale that clinicians consider meaningful. Then convert it to a standardized effect.
- A meta-analysis of similar interventions or relationships.
- Several prior studies with designs and populations like yours. Published effects tend to be inflated, so lean toward the smaller end.
- Cohen's (1988) conventions (d = 0.50, f = 0.25, f² = 0.15 for "medium"). Use these only as a last resort, and say so.
Avoid basing the effect size on a small pilot study. Pilot estimates are so imprecise that they can lead to badly underpowered studies (Albers & Lakens, 2018). Lakens (2022) gives a fuller account of ways to justify a sample size. For more on what d, f and f² mean, see our effect size guide.
How to run a power analysis in G*Power
G*Power was developed by Faul, Erdfelder, Lang and Buchner (2007), with regression and correlation procedures described in Faul, Erdfelder, Buchner and Lang (2009). Cite the version you use. Every analysis follows the same pattern in the main window:
- Choose the Test family (t tests, F tests, χ² tests, z tests or exact).
- Choose the Statistical test from the drop-down list.
- Set Type of power analysis to "A priori: Compute required sample size – given α, power, and effect size".
- Enter the input parameters, then click Calculate.
The "Determine" button next to the effect size field opens a side panel. There you can compute the effect size from means and SDs, or from a variance explained, instead of typing it directly.
Independent-samples t-test
- Test family: t tests
- Statistical test: Means: Difference between two independent means (two groups)
- Tail(s): Two
- Effect size d: 0.5
- α err prob: 0.05
- Power (1 − β err prob): 0.80
- Allocation ratio N2/N1: 1
Result: 64 per group, 128 in total. G*Power also shows the actual power (.80), the critical t (1.98) and the noncentrality parameter δ (2.83).
One-way ANOVA
- Test family: F tests
- Statistical test: ANOVA: Fixed effects, omnibus, one-way
- Effect size f: 0.25
- α err prob: 0.05
- Power: 0.80
- Number of groups: 3
Result: a total of 159 participants, or 53 per group. This covers only the omnibus F test. If your key hypothesis is a specific contrast between two groups, power that comparison directly.
Multiple regression
- Test family: F tests
- Statistical test: Linear multiple regression: Fixed model, R² deviation from zero
- Effect size f²: 0.15
- α err prob: 0.05
- Power: 0.80
- Number of predictors: 5
Result: a total of 92 participants. If your hypothesis is about whether a set of predictors adds to a model, as in hierarchical regression, use "Linear multiple regression: Fixed model, R² increase" instead. Then enter the number of tested predictors and the total number of predictors.
Worked examples
Example (all values computed for α = .05, two-tailed, equal groups). The table shows how the required sample changes with the inputs.
| Design | Effect size | Power | N per group | Total N |
|---|---|---|---|---|
| Independent t-test | d = 0.50 | .80 | 64 | 128 |
| Independent t-test | d = 0.50 | .90 | 86 | 172 |
| Independent t-test | d = 0.30 | .80 | 176 | 352 |
| Independent t-test | d = 0.80 | .80 | 26 | 52 |
| Paired t-test | d_z = 0.50 | .80 | n/a | 34 pairs |
| One-way ANOVA, 3 groups | f = 0.25 | .80 | 53 | 159 |
| Multiple regression, 5 predictors | f² = 0.15 | .80 | n/a | 92 |
Two patterns stand out. Moving from d = 0.50 to d = 0.30 almost triples the sample. Moving from 80% to 90% power adds about a third.
Example (adjusting for attrition). A DNP project plans a two-group comparison needing 128 completers and expects 20% dropout. Divide by the expected retention: 128 / 0.80 = 160 to recruit, or 80 per group.
Example (sensitivity analysis). Sometimes N is fixed, for example 30 patients per unit. Set "Type of power analysis" to "Sensitivity: Compute required effect size". With 30 per group, α = .05 and power = .80, G*Power returns d ≈ 0.74. You can then say honestly that the study can detect only fairly large effects.
How to justify your sample size to an IRB or committee
A committee wants to see that the number is reasoned, not reverse-engineered. Include:
- The software and version, and the test it is based on
- α, power, tails and the effect size, with where the effect size came from
- The resulting N, and the adjustment for expected attrition or missing data
- A sensitivity statement if recruitment is limited
Example (methods wording, invented study):
An a priori power analysis was conducted in G*Power 3.1 (Faul et al., 2007) for an independent-samples t-test. Assuming a medium effect (d = 0.50), based on a meta-analysis of similar interventions, with α = .05 (two-tailed) and power = .80, the required sample was 128 (64 per group). To allow for 20% attrition, 160 participants will be recruited.
Adapt this to your own study and sources. Whatever you write, the reasoning must be yours to defend.
Post hoc power: a common pitfall
"Observed" or post hoc power uses the effect size from your own data to compute power after the study. It adds nothing new. It is a direct function of the p-value, so a non-significant result always has low observed power (Hoenig & Heisey, 2001).
If a reviewer asks about power after the fact, offer one of these instead:
- A sensitivity analysis: the smallest effect your final N could detect with 80% power.
- The confidence interval around your effect size, which shows what effects the data rule out.
Common mistakes
- Picking the effect size that gives a convenient sample size.
- Using Cohen's "medium" without saying it is a convention.
- Powering a regression with "R² deviation from zero" when the hypothesis is about one added predictor.
- Ignoring attrition, missing data or clustering. Patients nested in units need a larger sample, as explained in our hierarchical linear modeling guide.
- Entering partial η² from SPSS as if it were f. Convert it first with f = √[η² / (1 − η²)], or use the Determine panel.
- Powering only the overall test when the hypothesis is about a specific contrast or interaction.
Getting help
Power analysis is part of our analysis plan (from $79), and it is often the first step in our DNP project statistics support. We check the design, choose a defensible effect size with you and give you G*Power output you can understand and explain. If you are unsure which test to power, start with a free methods check or our guide on which statistical test to use.
FAQ
What is G*Power used for?
G*Power is free software for power analysis. It computes the sample size needed for a given effect size, alpha and power. It can also compute power for a fixed sample, or the smallest effect a fixed sample can detect. It covers t-tests, ANOVA, regression, correlation, chi-square and several other tests.
How do I calculate sample size for a t-test in G*Power?
Choose t tests, then "Means: Difference between two independent means (two groups)", then "A priori". Enter the tails, effect size d, α and power, and click Calculate. For d = 0.50, α = .05, power = .80 and two tails, you need 64 per group (128 in total).
What effect size should I use in G*Power?
Use the smallest effect that would matter in practice, or an estimate from a meta-analysis or several similar studies. Use Cohen's conventions only when you have nothing better, and say so. Avoid estimates from small pilot studies.
Is 80% power enough?
80% is the common convention from Cohen (1988), and most committees accept it. Choose 90% when a missed effect would be costly, such as a clinical outcome. Your committee or funder may have its own expectation.
Can I do a power analysis after collecting data?
You can run a sensitivity analysis to show what effect size your final sample could detect. Avoid "observed power" computed from your own effect size, because it simply restates the p-value. Report confidence intervals instead.
Does G*Power work for multilevel or SEM models?
Not directly. G*Power assumes independent observations and standard tests. For clustered data, structural equation models or mediation, power is usually estimated by simulation or with specialized tools, and a design effect can be used as a rough adjustment.
Need help with this analysis?
A statistician can run, check and explain it with you. Fixed quote before we start.