Formula: Cohen’s d & Hedges’ g Formula
- group1Mean: Group1 Mean (M₁)
- group1Sd: Group1 Sd (s₁)
- group1N: Group1 (n₁)
- group2Mean: Group2 Mean (M₂)
- group2Sd: Group2 Sd (s₂)
- group2N: Group2 (n₂)
Compute pooled Cohen’s d, Hedges’ g correction, Glass’s Δ, and variance explained r².
It evaluates s_pooled = √[ ((n₁−1)s₁² + (n₂−1)s₂²) / (n₁+n₂−2) ]; d = (M₁ − M₂) / s_pooled; g = d × [1 − 3/(4(n₁+n₂−2) − 1)] directly in your browser and updates three custom SVG visualizations in real time.
The page labels Group 1 as the treatment and Group 2 as the control, and it subtracts Group 2 from Group 1. Following that labelling gives a positive d when the treatment scores higher. Any order works mathematically, but the sign will flip, and the Glass's Δ line always divides by the Group 2 SD, so it is only the control-based Δ if the control really is in that slot.
With 20 people in each group the degrees of freedom are 38, and the Hedges correction factor is about 0.98. That trims d of 0.693 to g of 0.68, a change of about two percent. The gap widens as groups shrink. With 5 per group the same inputs give g of 0.626, which is why small studies should report g.
Yes. The pooled standard deviation weights each group by its degrees of freedom, so unequal sizes are handled properly in d and g. The point-biserial r also uses the correction for unequal groups: with 10 against 40 people it shows 0.259 rather than the 0.318 the equal-size shortcut would give. Remember that lopsided splits lower r even when the standardised difference is unchanged.
Not on its own. Effect size and significance answer different questions. A d of 0.693 from two groups of 20 has a wide uncertainty band, roughly 0.06 to 1.33, and a two-sample t test on these numbers would be only modestly past the usual 5% line. The same d from two groups of several hundred would be overwhelmingly significant.
Pooling assumes the two spreads estimate the same population variability. If one is much larger, the pooled figure is a compromise that may describe neither group well. In that situation the Glass's Δ line, which uses only the Group 2 spread, is often more interpretable. It is also worth checking whether the outcome is skewed or bounded, since that can create unequal spreads.
Yes, outside this page. For two independent groups, d equals t multiplied by the square root of (1 divided by n1 plus 1 divided by n2). That is useful when a paper reports t but not the standard deviations. This calculator needs means and SDs, so if you only have t, do that conversion by hand and then apply the Hedges correction factor.
Not correctly. The formula here treats the groups as independent samples. Repeated measures on the same people are correlated, and the appropriate effect size uses either the standard deviation of the differences or a correction for that correlation. Entering pre and post means and SDs here gives a number, but it is not the within-subject effect most readers would expect.
The supporting line and the interpretation sentence round independently, so you can occasionally see values such as 0.363 and 0.362 for the same calculation. With a Group 1 mean of 75 this happens. The unrounded g is about 0.3624. Use more decimals in your own working and round once at the end when you report it.
No. The variance explained line is the square of the correlation, so it is always zero or positive even when d is negative. The lower preset, with Group 1 at 47 against 71, shows d of minus 2.219 and variance explained of 55.172%. The direction of the effect lives only in the sign of d, g and r.
Be conservative. A single study's d is an uncertain estimate, and published effects tend to be inflated because significant results are more likely to be reported. Many researchers use the lower end of a plausible range or the smallest effect that would matter in practice, rather than the point estimate from one pilot study of 40 people.
Because it is a weighted average of the two variances, converted back to a standard deviation. With 10.2 and 11.4 and equal groups it comes to 10.817, slightly above the simple average of the two SDs because squaring gives the larger spread a bit more pull. With unequal groups, the larger group pulls the pooled figure toward its own spread.
The default compares a treatment group with mean 78.5, standard deviation 10.2 and 20 people against a control group with mean 71, standard deviation 11.4 and 20 people. The gap in means is 7.5 points. On its own, 7.5 says nothing about whether the difference is large, because it depends on the scale. Standardising divides it by a typical spread.
The calculator's spread is the pooled standard deviation. Each group's variance is weighted by its degrees of freedom, the weighted average is taken, and then the square root. With equal group sizes, that is simply the square root of the average of 10.2 squared and 11.4 squared, which gives 10.817. Divide 7.5 by 10.817 and you get Cohen's d of 0.693.
The other lines follow from the same inputs. Hedges' g, the small-sample version, is 0.68. Glass's Δ, which divides by the Group 2 spread alone, is 0.658. The point-biserial correlation in the sentence is 0.328, and squaring it gives the 10.73% variance explained line. Every figure on the page is a function of the same 7.5 point gap and one choice of spread, so if those inputs are wrong, everything else is wrong in the same direction.
Cohen's d computed from samples tends to overstate the true effect a little, and more so when the groups are small. Hedges' g multiplies d by a correction factor J = 1 minus 3 divided by (4 times the degrees of freedom, minus 1). The degrees of freedom are n1 + n2 minus 2, which is 38 for the default.
Some textbooks write the same factor as 1 minus 3 divided by (4(n1 + n2) minus 9). The two forms are algebraically identical, so it does not matter which one you have seen. For the default both give about 0.980, which turns d of 0.693 into g of 0.68.
The correction matters more at small sizes. With 5 people in each group and the same means and spreads, the page still returns d = 0.693, but g drops to 0.626. With 100 per group, g is 0.691 and the two are practically the same. A useful rule: below about 20 per group, report g; above a few hundred, the distinction is cosmetic.
The correction does not repair anything else. It removes a known small-sample bias in the estimate. It does not account for unequal variances, skewed data or a poorly chosen comparison group.
The supporting line labelled Glass's Δ divides the mean difference by the Group 2 standard deviation only. On this page Group 2 is the control slot, so for the default Δ = 7.5 divided by 11.4, which is 0.658. That is a little below the pooled d of 0.693 because the control group happens to be the more spread out of the two.
Why have a separate measure at all? If a treatment changes not only the average but also the variability, pooling mixes the treatment's spread into the yardstick. Using the control spread keeps the yardstick as the untreated population. That is the case for Glass's Δ in, for example, an intervention that helps some participants a lot and others not at all, widening the treatment group's spread.
The line always uses Group 2, so the slot you put your control in matters. If your control data are in Group 1, either swap the groups, which flips the sign of every effect, or work Δ out by hand with the Group 1 SD: for the default that would be 7.5 divided by 10.2, about 0.735.
When the two standard deviations are close, as 10.2 and 11.4 are, Δ and d differ only modestly. When they are not, the gap grows. Raising the Group 2 SD to 20 gives a pooled d of 0.472 but a Glass's Δ of only 0.375, and in that situation it is worth reporting both.
The point-biserial correlation shown in the interpretation, 0.328, converts d into a correlation between group membership and the outcome. Squaring it gives the 10.73% variance explained line. The general conversion is r = d divided by the square root of (d squared + a), where a is (n1 + n2) squared divided by (n1 times n2).
With two groups of 20, a equals 4, and the formula reduces to the familiar d over the square root of (d squared + 4). With unequal groups a is larger, which pulls r down for the same d. The page applies this correction. Setting Group 1 to 10 people and Group 2 to 40, it returns d = 0.671 and r = 0.259, with variance explained of 6.711%.
That fall is not a sign of a weaker effect. Correlations depend on how the sample is split: a very lopsided split leaves less variation in group membership to correlate with. So compare r values only between studies with similar group proportions, and use d or g when comparing studies with different designs.
The engine always subtracts Group 2 from Group 1. Put the higher mean in Group 1 and d is positive; put it in Group 2 and the same effect comes out negative. The lower preset shows this, with a Group 1 mean of 47 against 71: d is minus 2.219 and g is minus 2.175. The variance explained is 55.172%, because squaring removes the sign.
A negative d is not an error. It means the first group scored lower. Whether that is good or bad depends on the outcome. For a pain score or a blood pressure reading, a negative d for the treatment group is the result you were hoping for.
When you report the number, say which way round the subtraction was. Meta-analyses in particular need every study's effect pointing the same way, and a sign flip from inconsistent group order is one of the most common errors when results from different papers are combined.
Cohen suggested 0.2 as small, 0.5 as medium and 0.8 as large, and those labels are everywhere. On that scale the default of 0.693 sits between medium and large. Cohen himself offered them as a fallback for when nothing better was known, not as fixed thresholds.
Context changes the meaning a lot. In education research, effects of a few tenths of a standard deviation are often treated as substantial, because they shift the whole distribution of a large population. In a lab experiment with tightly controlled conditions, 0.5 might be unremarkable. The better comparison is with effects reported for similar interventions on similar outcomes.
One translation that helps non-statisticians: with d near 0.7 and roughly normal data, the average person in the treatment group scores higher than about three quarters of the control group. That tends to land better than a number in standard deviation units.
A second check is practical size. Divide back into the original units: a d of 0.693 on this scale is the 7.5 point gap. If the outcome is an exam mark out of 100, ask whether 7.5 marks would change a grade or a decision. Standardised effects are for comparing across studies and scales; the raw difference is usually what a decision maker cares about.
The most damaging mistake is typing a standard error into the SD boxes. Papers often report mean plus or minus SE, and the SE is the SD divided by the square root of n. With 20 per group, an SE is less than a quarter of the SD, so using it would inflate d more than fourfold. If a paper reports SE, multiply by the square root of the group size first.
The spread figures also move the answer more than people expect. Raising the Group 2 standard deviation from 11.4 to 20, with everything else at default, lifts the pooled SD to 15.875 and cuts d from 0.693 to 0.472. Check that the SDs come from the same measurement as the means, at the same time point.
This page is built for two independent groups. Pre and post scores on the same people, or matched pairs, need a different standardiser that accounts for the correlation between measurements. Feeding paired data in here will usually understate the effect of a within-person change.
Finally, check the sample sizes are the numbers actually analysed, not the numbers recruited. Dropouts change both the degrees of freedom and the Hedges factor, and they can bias the means themselves if people left for reasons linked to the outcome.
The page gives a point estimate with no interval, and with 40 people that estimate is loose. A common approximation for the variance of d is (n1 + n2) divided by (n1 times n2), plus d squared divided by twice the total sample size. For the default the first term is 0.1 and the second about 0.006, so the standard error is roughly 0.33.
A 95% interval is then about 0.693 plus or minus 0.64, or roughly 0.06 to 1.33. That runs from almost nothing to very large. Anyone planning a follow-up study on the strength of 0.693 should keep that range in mind; a power calculation that assumes the full point estimate will often produce a study that is too small.
If you are entering values to feed a meta-analysis, record g and its standard error together, because the pooled estimate weights each study by the inverse of that variance.