Cohen's d Calculator (Effect Size Between Two Groups)
Cohen's d and Hedges' g from the means, standard deviations and sizes of two groups, with a 95 % interval, the common-language effect size and the usual small/medium/large label.
Results
What this tool does
A p-value says whether a difference is likely to be real; the effect size says how big it is, in units that do not depend on the scale: the gap between the two means divided by their pooled standard deviation. Cohen's rough labels are 0.2 small, 0.5 medium and 0.8 large, though what counts as large depends on the field. Hedges' g shrinks d slightly for small samples. The common-language figure answers a plainer question: pick one person at random from each group, and how often does the first score higher? A d of 0.5 gives about 64 %. The interval is a large-sample approximation.
Formula
d = (M₁ − M₂) ÷ s_pooled, s_pooled = √(((n₁−1)s₁² + (n₂−1)s₂²) ÷ (n₁+n₂−2)) · g = d × (1 − 3 ÷ (4(n₁+n₂−2) − 1)) · SE = √((n₁+n₂) ÷ n₁n₂ + d² ÷ 2(n₁+n₂))
Variables
| Symbol | Meaning | Unit |
|---|---|---|
m1 | Group 1 — mean | — |
s1 | Group 1 — standard deviation | — |
n1 | Group 1 — size | — |
m2 | Group 2 — mean | — |
s2 | Group 2 — standard deviation | — |
n2 | Group 2 — size | — |
D | Cohen's d | — |
G | Hedges' g (small-sample correction) | — |
SP | Pooled standard deviation | — |
SE | Standard error of d | — |
LO | 95 % interval for d — lower | — |
HI | 95 % interval for d — upper | — |
CL | Chance a random person from group 1 beats one from group 2 | % |
KD | Size of the effect (Cohen's rough labels) | — |
Worked example
- Group 1 — mean105
- Group 1 — standard deviation15
- Group 1 — size30
- Group 2 — mean98
- Group 2 — standard deviation14
- Group 2 — size28
- Cohen's d0.482
- Hedges' g (small-sample correction)0.475
- Pooled standard deviation14.526
- Standard error of d0.267
- 95 % interval for d — lower-0.041
- 95 % interval for d — upper1.004
- Chance a random person from group 1 beats one from group 263.3 %
- Size of the effect (Cohen's rough labels)Small (0.2 to 0.5)
Limitations
- The calculation runs at full precision and only the display is rounded. If you copy an intermediate value and retype it, small differences can appear.
- Standard deviation and variance are calculated for a sample (dividing by n − 1). For a full population, divide by n instead.