Cohen’s d calculator
Calculate a signed standardised mean difference from independent group summaries. Your inputs stay on your device.
Set up your task
Starting local processing
Ready. Processing stays in this browser.
2 Your result
Your result updates in this browser. Check your input if the result looks unexpected.
How to use Cohen’s d calculator
Express the difference between independent group means in pooled standard-deviation units. A psychology or research methods worksheet may ask for this effect size alongside a hypothesis test.
- Enter Group 1 mean, Group 2 mean, Group 1 sample SD, Group 2 sample SD, Group 1 sample size, Group 2 sample size.
- Use the units shown beside the inputs and compare the first result with your own calculation.
- Check the substitution and read the assumptions below before applying the result to a different exercise.
Supported inputs and limits
Independent groups only. Use sample standard deviations and at least two observations per group. The outcome must use the same measurement scale.
How it works
Compute the pooled variance by weighting each sample variance by its own degrees of freedom, n − 1, adding the two weighted variances and dividing by n₁ + n₂ − 2. The square root gives the pooled standard deviation. Then d = (M₁ − M₂)/sₚ. The tool also shows Hedges’ g using a common small-sample correction approximation.
The worked example has means of 14 and 10 and a sample SD of 5 in both groups. The pooled SD is 5, so d = 4/5 = 0.8. Reversing group labels makes d = −0.8. Choose and report a consistent order so a reader understands the direction.
The pooled SD is the standardiser used here. Designs with repeated measurements, paired data, or a comparison with a single population value use different standardisers. If both groups have no variation, dividing by the pooled SD is undefined and the calculator reports the issue.
Interpret the magnitude with knowledge of the measurement and field. A conventional label cannot establish real-world importance. The effect size does not show sampling uncertainty by itself. When writing up a study, report the group statistics and use an appropriate confidence interval or inferential procedure as your course requires.
Psychology and research methods reference
Example
The pre-filled example starts with “Cohen’s d: 0.8”.
- Group 1 mean
- 14
- Group 2 mean
- 10
- Group 1 sample SD
- 5
- Group 2 sample SD
- 5
- Group 1 sample size
- 20
- Group 2 sample size
- 20
Cohen’s d: 0.8 Pooled standard deviation: 5 Hedges’ g (approximation): 0.78410596 Pooled variance = ((n₁ − 1)s₁² + (n₂ − 1)s₂²) / (n₁ + n₂ − 2) d = (14 − 10) / 5
Questions about Cohen’s d calculator
Can I use this for pre/post scores from the same people?
Use a paired effect size for repeated scores. This tool pools SDs from two independent groups.
Why is Hedges’ g a little smaller than d?
The correction reduces the upward bias in the magnitude of d that can occur with small samples.
Can a group have a sample SD of zero?
Yes. The calculation remains defined if the other group has a positive sample SD and both sample sizes are valid.
Related tools
Psychology and research methods and other university calculators
Last updated