🧮
🧮 Math & statistics

Statistical Power & Sample Size (two-group t-test, Cohen’s d)

Results update as you type.

Your numbers

Understanding the statistical power and sample size — concept and principle

Statistical power is the probability that a study detects an effect that really exists. A power analysis tells you how many participants each group needs before you collect data. This calculator covers the common case of comparing two independent group means with a two-sided t-test, where the effect is expressed as Cohen's d.

Sample size for 80% power with effect size 0.5With d = 0.5 and alpha 0.05, 50 people per group give 70.54% power; 64 per group reach the 80% target.Power = chance of catching a real effecteffect d = 0.5 · α = 0.05 (two-sided)n = 2 × (1.96 + 0.84)² ÷ 0.5² + 0.96 ≈ 63.7550 per group100 in total70.5%64 per group128 in total≥ 80% ✓80% targetNeed 64 per group for 80%with 50 per group power is only 70.54%
A medium effect (d = 0.5) needs 64 people per group for 80% power; 50 give 70.54%.

How it is calculated

d is unitless: the mean difference divided by the common standard deviation.

The principle

With n per group, the standard error of the difference between two means is σ√(2/n). Dividing the true difference by it gives the expected test statistic, d√(n/2). The test rejects when the statistic passes the critical value z₁₋α/₂, so power is the chance that a normal variable centred at d√(n/2) lands beyond that line (the tiny opposite tail is ignored). Setting this chance equal to the target and solving for n gives the sample-size formula. Because n depends on 1/d², halving the effect size roughly quadruples the required sample.

Worked example

  1. Inputs: d = 0.5, α = 0.05, target power 80%, n = 50 for the power check.
  2. z₁₋α/₂ = 1.95996, z₁₋β = 0.84162, sum 2.80158.
  3. 2 × (2.80158 ÷ 0.5)² = 62.79; correction 1.95996² ÷ 4 = 0.96; total 63.75, so n = 64 per group.
  4. Power with n = 50: 0.5 × √25 − 1.95996 = 0.54004, and Φ(0.54004) = 70.54%.
How n per group for target power changes with Effect size dHow n per group for target power changes…02004006008001,0001,2000.1250.250.3750.50.6250.751Example: 64Effect size d
Each point is the calculator re-run with only “Effect size d” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Effect size dn per group for target power
0.1251,006
0.25253
0.375113
0.564
0.62542
0.7529
117

How to read the result

Where does your result fall?Underpowered8090UnderpoweredConventionalHighWhere does your result fall?Reference: Conventional 80% minimum power, 90% for confirmatory trials
Where does your result fall?

80% power is the conventional minimum, meaning a 20% chance of missing a true effect; 90% is common in confirmatory trials (here it would need 86 per group). An exact noncentral-t calculation gives about 80.1% power for 64 per group and 69.7% for 50, so the approximation is close. The answer is per group: 64 means 128 participants in total, before allowing for dropouts.

Common mistakes

Keep in mind: The formulas assume equal group sizes, equal variances and roughly normal data. Unequal groups, clustered designs, paired data or multiple comparisons need different calculations, so check the plan with a statistician or dedicated software.

Frequently asked questions

What effect size should I enter if I do not know it?

Use the smallest difference that would matter in practice, converted to d with a realistic SD. Cohen's 0.2, 0.5 and 0.8 are only rough benchmarks.

Is this valid for a one-sided test?

Replace α/2 with α, which is equivalent to entering twice your one-sided α in the α field.

Sources: Cohen, J. Statistical Power Analysis for the Behavioral Sciences, 2nd ed. (1988). · Guenther, W. C. (1981). The American Statistician, 35(4), 243–244.

Checked 8 Nov 2026. Standard formulas, computed in your browser with double-precision numbers.

🧮 All math & statistics tools →🌍 Calculators by country →