Combine means and standard deviations
This calculator combines the means and standard deviations of two or more groups into one, with the Cochrane Handbook’s formula: the combined mean is the average weighted by group size, and the combined SD adds the spread within each group to the spread between their means. For three or more groups it combines them one at a time.
Updated
Runs in your browser. Nothing you enter is uploaded, stored or sent anywhere.
The combined mean and standard deviation formula
For group 1 with N₁ participants, mean M₁ and standard deviation SD₁, and group 2 with N₂, M₂ and SD₂:
| Combined group | |
|---|---|
| Sample size | N = N₁ + N₂ |
| Mean | M = (N₁M₁ + N₂M₂) ÷ (N₁ + N₂) |
| SD | SD = √{[(N₁ − 1)SD₁² + (N₂ − 1)SD₂² + N₁N₂ ÷ (N₁ + N₂) × (M₁² + M₂² − 2M₁M₂)] ÷ (N₁ + N₂ − 1)} |
The last term inside the brackets is (M₁ − M₂)², scaled by the group sizes. It’s what makes the combined SD larger when the groups’ means differ. The result is the SD of everyone in the combined group, as if it had never been split. The formulas are Table 6.5.a of the Cochrane Handbook, explained in section 6.5.2.10.
Three or more groups
The Handbook’s advice is to apply the formula in turn: combine groups 1 and 2, then combine that result with group 3, and so on. The order doesn’t change the answer. “Show the working” lists each step.
Combined SD or pooled SD?
They’re different numbers. The Handbook points out that the combined SD isn’t the usual pooled SD used for a confidence interval of a mean difference or as the denominator of a standardized mean difference. That pooled SD only measures the spread within the subgroups, so as the SD of a combined group it’s an underestimate.
Worked example
A hypothetical trial reports pain scores for men and women separately in its intervention arm: 30 men with a mean of 4.2 (SD 1.6) and 45 women with a mean of 5.1 (SD 1.9). It’s the example the calculator opens with.
Example: Working it through
N = 30 + 45 = 75.
Mean = (30 × 4.2 + 45 × 5.1) ÷ 75 = (126 + 229.5) ÷ 75 = 4.74.
SD = √{[29 × 1.6² + 44 × 1.9² + (30 × 45 ÷ 75) × (4.2 − 5.1)²] ÷ 74} = √[(74.24 + 158.84 + 14.58) ÷ 74] = 1.83.
The pooled within-group SD would be √[(74.24 + 158.84) ÷ 73] = 1.79, a little smaller, because it leaves out the difference between the means.
Before you combine
- Same outcome, same scale. Only combine groups measured the same way at the same time point.
- Within an arm. Combine subgroups within one intervention group, never the intervention and comparator arms. In a trial with more than two arms, the Handbook allows combining two arms that count as the same intervention for your review, such as two doses of one drug (section 6.5.2.10).
- No overlap. Each participant must be in exactly one of the groups.
- Medians first. If a subgroup reports a median and IQR, estimate its mean and SD with the median to mean converter before combining.
What to report
What to report: Say what you combined
Say which studies’ groups you combined, which groups they were, and that you used the formulae in Table 6.5.a of the Cochrane Handbook. The summary under the result is ready to paste.
OtterSR’s extraction stage proposes each value with the passage it came from, so you can check a subgroup’s N, mean and SD against the paper before combining them here. See how OtterSR works.
Frequently asked questions
How do I combine the standard deviations of two groups?
Don’t average them. Use the formula above, which weights each group’s variance by its size and adds a term for the difference between the means. Averaging the SDs ignores that difference and understates the spread of the combined group.
What about a pooled standard deviation for 3 or more groups?
If you want the SD of everyone combined, enter all the groups here: the calculator applies Table 6.5.a in turn. If you want the pooled within-group SD for a standardized mean difference, that’s a different number, √[Σ(Nᵢ − 1)SDᵢ² ÷ (ΣNᵢ − k)] for k groups, which leaves out the differences between their means.
Does the order of the groups matter?
No. Combining 1 and 2 and then adding 3 gives the same N, mean and SD as any other order, and the same as working from the total sum of squares in one go.
What if a group’s SD is missing?
Then the combined SD can’t be worked out. If the paper gives a standard error or confidence interval for that group instead, get the SD from it first with the SD from a CI or SE calculator.
How to cite this tool
OtterSR. Combine means and standard deviations. https://www.ottersr.com/tools/combine-means-and-standard-deviations (accessed today’s date).
Please cite the method as well:
Higgins JP, Li T, Deeks JJ (editors). Chapter 6: Choosing effect measures and computing estimates of effect [last updated August 2023]. In: Higgins JP, Thomas J, Chandler J, et al (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane, 2024.
Related guides
- How to design a data extraction formHow to design a data extraction form for a systematic review: which fields to collect, piloting, two extractors, and recording where each value came from.
- How to do a meta-analysis: a step-by-step guideHow to do a meta-analysis: deciding whether to pool, choosing the effect measure, fixed or random effects, heterogeneity, sensitivity analyses and reporting.
Related tools
- Convert median and IQR to mean and SDUse this when a study reports a median with its IQR or range and your meta-analysis needs a mean and SD.
- Effect size calculator: Cohen’s d and Hedges’ gUse this when studies measure the same outcome on different scales and you need a standardized mean difference.
- Forest plot generatorUse this when you have several studies of the same comparison and want them pooled, with heterogeneity, and drawn as a forest plot.
Sources
- Higgins JP, Li T, Deeks JJ (editors). Chapter 6: Choosing effect measures and computing estimates of effect [last updated August 2023]. In: Higgins JP, Thomas J, Chandler J, et al (editors). Cochrane Handbook for Systematic Reviews of Interventions version 6.5. Cochrane, 2024. https://www.cochrane.org/authors/handbooks-and-manuals/handbook/current/chapter-06