Weighted Mean of Two Groups

xˉ=n1xˉ1+n2xˉ2n1+n2\bar{x} = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2}

Units aren’t used in this calculation: every value is a plain number.

sig figs

Worked example: 20 students at 80 and 30 at 70 → combined 74. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value.

Where Weighted Mean of Two Groups fits

Your answer feeds

See also

Confidence Interval Lower Limit: Both use combined mean and sample size.Confidence Interval Upper Limit: Both use combined mean and sample size.One-Sample T-Test Statistic: Both use combined mean and sample size.One-Sample Z-Test Statistic: Both use combined mean and sample size.Two-Sample Z-Test Statistic: Both use combined mean and sample size.Cohen's d (Effect Size): Both use combined mean.
2 more relatedRegression Line Intercept: Both use combined mean.Arithmetic Mean of Two Numbers: Both use combined mean.
Here the solver did the work. Could you?

How good is the fit →

Grade 12Grade 12 Math

Test your skills in the Exam Room: new numbers every attempt. Free lessons for students, no sign-up, just pure learning.

See your Report Card
Learning zone

Weighted Mean of Two Groups explained

x̄x̄1x̄2n1n2

You cannot average two averages unless the groups are the same size. Twenty students scoring a mean of 80 and thirty scoring 70 do not combine to 75; the correct answer weights each mean by its count: (20 × 80 + 30 × 70)/50 = 3700/50 = 74. The pull is always toward the larger group. This is the scalar form of the general weighted mean, and it covers most of what people actually need (merging two class sections, two shifts, two lab runs) without requiring a full data list.

Ignoring the weights is one of the most common quantitative errors in circulation, and it has a famous escalation: Simpson's paradox, where a treatment can look better in every subgroup yet worse overall once unequal group sizes are folded in. The 1973 Berkeley graduate-admissions case is the textbook example: the university appeared to favour men overall, but almost every individual department favoured women; the aggregate simply reflected that women applied more often to departments that admitted few of anyone. Reversed, the formula does mixture arithmetic: if 20 students averaging 80 must be blended down to a combined 74 with a second group averaging 70, that second group needs 20 × (74 − 80)/(70 − 74) = 30 students.

Weighted Mean of Two Groups formula

xˉ=n1xˉ1+n2xˉ2n1+n2\bar{x} = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2}
Where
  • xˉ\bar{x}= Combined mean
  • n1n_1= Size of group 1
  • xˉ1\bar{x}_1= Mean of group 1
  • n2n_2= Size of group 2
  • xˉ2\bar{x}_2= Mean of group 2
Revised 31 October 2026
Cite this page

formula.expert. (2026, October 31). Weighted Mean of Two Groups Formula & Calculator. https://formula.expert/solvers/weighted-mean-two-groups