01
How to calculate an effect size
- Choose what you have: summary statistics, the raw values, or a t statistic with the two group sizes.
- Enter the numbers for both groups.
- Read d and its confidence interval; report Hedges’ g instead when the groups are small.
02
Cohen’s d formula
d = (M₁ − M₂) ÷ s_p
s_p = √( [(n₁ − 1)s₁² + (n₂ − 1)s₂²] ÷ (n₁ + n₂ − 2) )
The difference between the means is divided by the pooled standard deviation, so d says how far apart the groups are in standard deviations, whatever the original unit. From a published independent-samples t-test:
d = t × √(1/n₁ + 1/n₂)
03
Hedges’ g: the small-sample correction
g = d × (1 − 3 ÷ (4(n₁ + n₂ − 2) − 1))
Cohen’s d is biased upward in small samples. Hedges’ g shrinks it by a factor that matters below about 20 participants in total and is negligible in large studies. Meta-analyses normally use g.
04
Worked example
The calculator opens with group 1: M = 5.48, SD = 0.47, n = 5 and group 2: M = 4.34, SD = 0.32, n = 5.
s_p = √((4 × 0.47² + 4 × 0.32²) ÷ 8) = 0.402
d = (5.48 − 4.34) ÷ 0.402 = 2.84
g = 2.84 × (1 − 3/31) = 2.56
The 95% confidence interval of d runs from 1.08 to 4.59: with five per group the effect is clearly positive but its size is very uncertain.
05
How to interpret d
| d | Cohen’s label | Probability of superiority |
|---|---|---|
| 0.2 | small | 55.6% |
| 0.5 | medium | 63.8% |
| 0.8 | large | 71.4% |
The probability of superiority is the chance that a randomly chosen value from group 1 is larger than a randomly chosen value from group 2, assuming normal distributions. Cohen offered his labels as a last resort; compare your d with effects in your own field where you can.
06
The confidence interval
SE(d) = √( (n₁ + n₂) ÷ (n₁n₂) + d² ÷ (2(n₁ + n₂)) ), 95% CI = d ± 1.96 × SE
This is the usual large-sample approximation. For very small groups an exact interval based on the noncentral t distribution is somewhat different; treat the limits as approximate.
07
What this calculator covers
Two independent groups. For paired data, d is usually computed on the differences: the paired option of the t-test calculator reports it. For three or more groups the ANOVA calculator gives eta squared, and for two measurements on the same subjects the correlation coefficient is itself an effect size.
08
Common mistakes when calculating d
- Using the SEM as if it were the SD. Papers often report mean ± SEM; with 5 per group the SEM is the SD divided by √5, so d in the worked example would come out as 6.34 instead of 2.84.
- Skipping the small-sample correction. With 5 per group Hedges’ g is 10% smaller than d (2.56 against 2.84); with 50 per group the difference is under 1%.
- Converting t with the wrong formula. For two independent groups d = t × √(1/n₁ + 1/n₂); t = 4.5 with 5 per group gives d = 2.85, but t ÷ √N, the one-sample formula, gives 1.42, half as much.
- Reporting d without its interval. The worked example’s d of 2.84 has a 95% CI of 1.08 to 4.59: consistent with anything from a large effect to an enormous one.
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). Effect size calculator. Zebra Nine Studio Inc. https://sciloom.si/effect-size-calculator
Frequently asked questions
What is a good effect size?
There is no universal answer. Cohen suggested d = 0.2 as small, 0.5 as medium and 0.8 as large, but a small effect can matter a great deal for a cheap, safe intervention.
What is the difference between Cohen’s d and Hedges’ g?
Hedges’ g is Cohen’s d multiplied by a correction for small-sample bias. They are nearly identical above about 20 participants per group.
Can I calculate Cohen’s d from a t value?
Yes, for an independent-samples t-test: d = t × √(1/n₁ + 1/n₂). Choose “t statistic” and enter t with the two group sizes.
Can Cohen’s d be greater than 1?
Yes. d has no upper limit; a value of 2 means the group means are two standard deviations apart.