Learn to calculate by playing with Cohen’s d calculator
A short game to see where the result comes from. Pick a language and start; you can stop halfway and come back.
Loading the game…
← Back to Cohen’s d calculator
What you will practise
Effect size between two groups or before and after, with confidence intervals, plain-language equivalents and a sentence ready for your report.
How it works
The difference in means is divided by a standard deviation: the pooled SD of the two groups (independent design) or the SD of the differences (before and after). The result is in standard-deviation units, so it is comparable across studies that use different scales.
Hedges’ g corrects the small-sample bias of d. The confidence interval comes from inverting the noncentral t distribution, which is the exact method and the one style guides recommend; it is not the rough “±1.96 standard errors” some spreadsheets use.
Formula
Pooled SD: s_p = √(((n₁−1)s₁² + (n₂−1)s₂²) / (n₁+n₂−2))
d = (x̄₁ − x̄₂) / s_p (paired: d_z = mean of differences / SD of differences)
g = d × J, J = Γ(df/2) / (√(df/2) · Γ((df−1)/2)) (≈ 1 − 3/(4·df − 1))
t = d × √(n₁n₂/(n₁+n₂)) (paired: t = d_z × √n)
CI of d: find the noncentrality parameters δ_low and δ_high of a t with df degrees of freedom that place the observed t at the (1 ± level)/2 percentiles; then d = δ / √(n₁n₂/(n₁+n₂))
Glass’s Δ = (x̄₁ − x̄₂) / s₂ d_av = difference / √((s₁² + s₂²)/2)
Probability of superiority = Φ(|d| / √2) Overlap = 2 · Φ(−|d| / 2)
r = t / √(t² + df)
Cohen’s benchmarks: |d| < 0.2 trivial · 0.2 small · 0.5 medium · 0.8 large
Worked example
Example 1. Two independent groups, from the raw data.
Group 1: 12, 15, 14, 16, 13, 15 (mean 14.17). Group 2: 18, 17, 19, 16, 20, 18 (mean 18.00). The pooled SD is 1.443 and the difference −3.833, so d = −2.656 and g = −2.451, with a 95% CI for g of −3.908 to −0.934. Student’s t is −4.60 on 10 degrees of freedom (p < .001). Group 2 scores higher; the effect is very large and the interval, although wide with six people per group, stays well away from zero.
Example 2. Means and SDs from a paper.
Group 1: mean 78, SD 8, n = 40. Group 2: mean 70, SD 9, n = 35. The pooled SD is 8.48, d = 0.943 and g = 0.934, with a 95% CI for g of 0.457 to 1.405. There is a 74.8% probability that a person from group 1 scores higher than one from group 2, and the distributions overlap by 63.7%.
Example 3. Before and after in the same people.
Ten patients score 72, 65, 80, 74, 68, 77, 70, 83, 66, 75 before and 78, 70, 85, 75, 74, 84, 73, 88, 71, 80 after. The mean improvement is 4.8 points (95% CI 3.59 to 6.01), d_z = 2.846 and g = 2.601 (CI 1.280 to 3.898), t(9) = 9.00. Note that because the two measures are highly correlated (r = .963), d_z is much larger than d_av = 0.787, which uses the between-person spread. Which one to report depends on the question, and you should say which it is.
How to play
First pick your language. Then work through the challenges one by one: each sets out a case with real numbers and, if you get stuck, you can ask for a hint. When you answer, you see whether you got it right and why. Progress is saved only in your browser, so you can stop halfway and carry on another day.