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}

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. Try different units for next level excitement!

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
Compete with your friends
share your results
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