Study and Productivity

How to Combine Means and Standard Deviations of Several Groups

How to combine group means and SDs correctly, the difference between pooled and combined SD, weighted means, sample versus population variance and MAD.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
How to Combine Means and Standard Deviations of Several Groups

How to Combine Means and Standard Deviations of Several Groups

You have results from two classes, three study sites or several production batches, each summarised by its size, mean and standard deviation. How do you get the overall mean and SD without the raw data? Averaging the SDs is a common mistake. This guide shows the correct formulas and related measures, and you can apply them with the combined statistics calculator.

The combined mean

The overall mean is the size-weighted average of the group means:

x̄ = Σ n_i x̄_i / N, with N = Σ n_i.

Class A has 10 students with a mean of 50 and class B 20 students with a mean of 60, so the combined mean is (500 + 1200) / 30 = 56.67.

The combined standard deviation

The total spread has two parts:

  • within groups: Σ (n_i − 1) s_i²,
  • between groups: Σ n_i (x̄_i − x̄)².

The combined SD is √((within + between) / (N − 1)). With SDs of 5 and 8 in the example, the combined SD is 8.53, larger than both group SDs because the means differ by 10 points. Averaging the SDs would give 6.5 and badly underestimate the spread.

The pooled standard deviation

The pooled SD uses only the within-group part:

s_pooled = √(Σ (n_i − 1) s_i² / (N − k)), with k groups.

It estimates the common spread inside groups and is used in the pooled t-test, in ANOVA and as the denominator of Cohen's d. In the example it is 7.17.

Sample versus population variance

For raw data, variance can divide by n or by n − 1:

  • Population variance (divide by n) describes data that are the entire population.
  • Sample variance (divide by n − 1) estimates the population variance from a sample without bias. This is Bessel's correction.

For 12, 15, 11, 18, 14, 16, 13, 20 the mean is 14.88, the sample SD 3.04 and the population SD 2.85.

Weighted mean and SD

When values have different importance, use weights:

  • weighted mean = Σ w_i x_i / Σ w_i,
  • frequency-weighted SD = √(Σ w_i (x_i − x̄)² / (Σ w_i − 1)).

Course grades weighted by credits, price indices weighted by quantities and survey estimates with sampling weights all work this way.

Absolute deviations

  • Mean absolute deviation: the average distance from the mean, easy to explain.
  • Median absolute deviation (MAD): the median distance from the median. It is robust: a single outlier barely changes it, so it is used for outlier detection.

Standard deviation or standard error?

Papers often report the standard error of the mean (SE = SD / √n) instead of the SD. Before combining, convert: SD = SE × √n. Mixing them is a frequent error in meta-analyses.

When combining is valid

  • The groups measure the same variable in the same units.
  • The groups are independent: no person counted twice.
  • For the pooled SD, the group spreads should be similar.

Using the calculator

  1. Enter each group's n, mean and SD as a table row.
  2. Optionally paste raw data and weights.
  3. Read the combined mean and SD, pooled SD, variances, weighted measures and absolute deviations.

Example with three groups

Three laboratories measure the same reference sample: lab A (n = 8, mean 10.2, SD 0.3), lab B (n = 12, mean 10.5, SD 0.4), lab C (n = 10, mean 10.1, SD 0.2). The combined mean is about 10.29. The pooled SD (about 0.32) describes typical repeatability inside a lab, while the combined SD (about 0.36) also includes the differences between labs, which is the reproducibility you would expect across the whole network.

Limits

The formulas are exact for the summary statistics given. If the original SDs were rounded, small differences from the raw-data result are expected.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages