Effect Size Calculator: Cohen's d, Hedges' g and Glass's Δ
By FindMySum · Last reviewed
An effect size calculator turns the difference between two groups into a number that means the same thing whatever the scale: how many standard deviations apart the groups are. That number, Cohen's d, can be compared across studies, combined in a meta-analysis and used to plan sample sizes. This page computes Cohen's d, Hedges' g (corrected for small samples) and Glass's Δ from two groups' means, standard deviations and sizes, or from a t statistic, with a confidence interval, the overlap of the two distributions and conversions to a correlation and an odds ratio. The worked example uses the defaults, taken from Lakens's 2013 primer: a group of 10 rating a film 8.7 (SD 0.82) and another of 10 rating it 7.7 (SD 0.95).
Cohen's d step by step
- Pool the standard deviations. Weight each group's variance by its degrees of freedom: s_pooled = √((9 × 0.82² + 9 × 0.95²) ÷ 18) = √0.787 = 0.887.
- Divide the difference by it. d = (8.7 − 7.7) ÷ 0.887 = 1.13.
The groups are about 1.1 standard deviations apart, a large effect by Cohen's conventions. Lakens reports the same value, d_s = 1.13.
Hedges' g: the small-sample correction
Cohen's d overestimates the population effect a little in small samples. Hedges and Olkin's correction multiplies it by J = 1 − 3 ÷ (4(n₁ + n₂) − 9). With 20 participants, J = 1 − 3/71 = 0.958 and g = 1.13 × 0.958 = 1.08, again matching Lakens. With 50 or more per group J is above 0.99, so the correction hardly matters, but meta-analyses use g throughout so that small studies are not overweighted.
Glass's Δ: when the spreads differ
If the treatment might change the variability as well as the mean (a drug that helps some patients a lot and others not at all), pooling the SDs mixes the effect into the yardstick. Glass's Δ divides by the control group's SD alone: 1.0 ÷ 0.95 = 1.05. Enter the control group as group 2.
From a t statistic
Many papers report only t and the group sizes. For an independent-samples t-test, d = t × √(1/n₁ + 1/n₂). A t of 2.52 with 10 per group gives 2.52 × 0.447 = 1.13, the same as above, because that t comes from the same data. Do not use this formula for a paired t-test, where the correlation between measurements changes the answer.
How precise is the estimate?
With only 10 per group, d is very uncertain. The standard error is √((n₁ + n₂)/(n₁n₂) + d²/(2(n₁ + n₂))) = √(0.2 + 0.032) = 0.481, so the 95% confidence interval is 1.13 ± 1.96 × 0.481, from 0.18 to 2.07. The effect is probably positive, but it could be anything from small to enormous. With 100 per group the interval would be about four times narrower. Choose 90% or 99% under the advanced options.
Making d intuitive
A standardised difference is hard to picture, so the calculator translates it, assuming normal distributions with equal spread:
- Probability of superiority: the chance that a random member of group 1 beats a random member of group 2, Φ(d/√2) = 79%. With no effect it would be 50%.
- Cohen's U3: the share of group 1 above the group-2 mean, Φ(d) = 87%.
- Overlap: the area the two curves share, 2Φ(−|d|/2) = 57%. Even a large effect leaves most of the two groups overlapping.
The chart draws the two curves d apart so you can see that overlap.
Converting to r and odds ratios
Meta-analyses combine studies that report different statistics. Two standard conversions (Borenstein et al., 2009) are:
- Correlation: r = d ÷ √(d² + a), where a = (n₁ + n₂)² ÷ (n₁n₂), which is 4 for equal groups. d = 1.13 gives r = 0.49.
- Odds ratio: ln(OR) = d × π ÷ √3, so d = 1.13 gives OR ≈ 7.7. This assumes the outcome is a continuous normal variable cut into two categories.
Interpreting the size
Cohen's benchmarks, 0.2 small, 0.5 medium and 0.8 large, are the most quoted numbers in this area, and Cohen himself called them a last resort for when nothing better is available. Interpret an effect against the effects usually found in your field, the cost of the intervention and the stakes. A d of 0.2 in reading scores across a whole school system can be worth a great deal; a d of 0.8 for a lab reaction-time task may be unremarkable. Report d or g with its confidence interval, the means and SDs, and the sample sizes, so readers can judge for themselves.
More questions
Why report an effect size as well as a p-value?
A p-value only says whether the data are surprising if there were no effect; with a large enough sample even a trivial difference is significant. The effect size says how big the difference is, and its confidence interval says how precisely it is known. Most journals and the APA Publication Manual ask for both.
Can Cohen's d be bigger than 1?
Yes. d has no upper limit: a d of 2 means the group means are two standard deviations apart, and the curves barely overlap. Values above 1 are common in tightly controlled experiments and rare in field studies.
Should I use the sample or population standard deviation?
Use the sample standard deviations (divided by n − 1), which is what statistics software and published tables report. The pooled SD formula weights each group's variance by its degrees of freedom.
Does a negative d mean something went wrong?
No, it only means group 2's mean is higher. Swap the groups to get a positive d. The size is what matters; report the direction in words, such as 'the treatment group scored 0.5 SD lower'.
How large a sample do I need to detect a medium effect?
For d = 0.5 with a two-sided test at α = 0.05 and 80% power, about 64 participants per group. A small effect (d = 0.2) needs about 394 per group. Power analysis software such as G*Power does this calculation; this page does not.
Sources
- Lakens D. (2013). Calculating and reporting effect sizes to facilitate cumulative science: a practical primer for t-tests and ANOVAs. Frontiers in Psychology 4:863
- Cohen J. (1988). Statistical Power Analysis for the Behavioral Sciences, 2nd ed. (Routledge)
- Borenstein M., Hedges L.V., Higgins J.P.T., Rothstein H.R. (2009). Introduction to Meta-Analysis, chapter 7: Converting among effect sizes
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.