calculator.onl
Categories50

Cohen’s d and approximate Hedges’ g

Compute a standardized mean difference and small-sample correction from independent-group sample sizes, means and sample standard deviations.

A worked example

Move group A’s mean while keeping both standard deviations fixed.

x̄A − x̄B5sp10Cohen d0.5Hedges g ≈ Jd0.4935
Number of independent observations in group A. nA: 2…10000000

Sample mean for group A on the outcome scale shared by both groups. Mean A: -1000000000…1000000000

Within-group sample standard deviation for group A. Standard deviation A: 0…1000000000

Number of independent observations in group B. nB: 2…10000000

Sample mean for group B on the same outcome scale. Mean B: -1000000000…1000000000

Within-group sample standard deviation for group B. Standard deviation B: 0…1000000000

Updates as you type

Use a dot or comma for decimals. No thousands separators.

YOUR RESULT

x̄A − x̄B

5

Calculated from your inputs

sp10
Cohen d0.5
Hedges g ≈ Jd0.4935
J ≈ 1−3/(4ν−1)0.987
ν = nA+nB−258
The numbers, at a glance

Calculations run in your browser.
UNDERSTAND THE RESULT

A little context. A clearer answer.

↑ Back to calculator

When this calculator is useful

Pool the group variances with weights nA−1 and nB−1. Divide mean A minus mean B by the pooled standard deviation. Multiply this d by the approximate small-sample correction J to obtain g, retaining the sign of A−B. For a related calculation, try Welch and paired t-tests.

What to enter

InputWhat it meansExample value
nANumber of independent observations in group A. nA: 2…10000000 30
Mean ASample mean for group A on the outcome scale shared by both groups. Mean A: -1000000000…1000000000 75
Standard deviation AWithin-group sample standard deviation for group A. Standard deviation A: 0…1000000000 10
nBNumber of independent observations in group B. nB: 2…10000000 30
Mean BSample mean for group B on the same outcome scale. Mean B: -1000000000…1000000000 70
Standard deviation BWithin-group sample standard deviation for group B. Standard deviation B: 0…1000000000 10

How the calculation works

  1. Change the inputs to explore your own scenario. nA: 2…10000000 ; Mean A: -1000000000…1000000000 ; Standard deviation A: 0…1000000000 ; nB: 2…10000000 ; Mean B: -1000000000…1000000000 ; Standard deviation B: 0…1000000000 .
  2. ν=nA+nB−2; sp=√[((nA−1)sA²+(nB−1)sB²)/ν]; d=(x̄A−x̄B)/sp; J≈1−3/(4ν−1); g≈Jd
  3. Two independent groups with a continuous outcome in the same units. Sample sizes are integers at least 2; SDs use the sample n−1 denominator and cannot both be zero. The pooled SD is weighted by group degrees of freedom. This tool names the uncorrected pooled standardized difference d and the bias-corrected result g; terminology can vary across references. J=1−3/(4df−1) is an approximation, not the exact gamma correction. No paired/clustered designs, covariate adjustment, confidence intervals, p-values, causal claims or universal small/large labels.
The formulaν=nA+nB−2; sp=√[((nA−1)sA²+(nB−1)sB²)/ν]; d=(x̄A−x̄B)/sp; J≈1−3/(4ν−1); g≈Jd

A worked example

For two groups of 30 with means of 75 and 70 and a standard deviation of 10 in each group, the pooled standard deviation is 10. Cohen’s d is 0.5. With 58 degrees of freedom, multiplying by 228/231 gives Hedges’ g of about 0.494. The linked WWC case uses different sample sizes and standard deviations and gives approximately 0.09.

Example you can load

What to enter
Result for this example · x̄A − x̄B5
Result for this example · Cohen d0.5

This is a fixed example; changing the form above does not change these numbers.

Assumptions & limits

Two independent groups with a continuous outcome in the same units. Sample sizes are integers at least 2; SDs use the sample n−1 denominator and cannot both be zero. The pooled SD is weighted by group degrees of freedom. This tool names the uncorrected pooled standardized difference d and the bias-corrected result g; terminology can vary across references. J=1−3/(4df−1) is an approximation, not the exact gamma correction. No paired/clustered designs, covariate adjustment, confidence intervals, p-values, causal claims or universal small/large labels.

Frequently asked questions

Why is g slightly nearer zero than d?

The positive correction J is below one and reduces the magnitude of the standardized difference.

Can I enter a standard error as the SD?

No. The inputs require sample standard deviations.

Does a positive effect prove the intervention worked?

No. It only says the entered mean A is higher than mean B; design and uncertainty still matter.