Calculators
Home › Calculators › Grand Mean

Grand Mean Calculator

Several groups, one overall mean: every group counts in proportion to its size.

Published 20 November 2026

Find the grand mean

Group means and group sizes, one group per line, in the same order.

Quick answer: Three classes (means 72, 68, 75; sizes 30, 25, 20) give a grand mean of 71.47, not the plain average of the three means (71.67). Multiply each mean by its group size, add the products, and divide by the total N. The between-groups sum of squares is 558.67.

Three classes, one school average

A headteacher I know had to report one average mark for the whole year group. Three classes took the same test. Class A averaged 72, with 30 pupils. Class B averaged 68, with 25 pupils. Class C averaged 75, with 20 pupils. She added the three means and divided by three: 71.67. Then she stopped. That number treats the class of 20 as if it mattered as much as the class of 30, and it does not. The honest average weights each class by its size. The grand mean is 71.47, and the small gap between the two numbers is the whole lesson of this page.

The grand mean is the mean of every value in every group, worked out from the group means and the group sizes. You do not need the raw marks. Each group mean counts in proportion to how many values sit behind it. Big groups pull harder. Small groups pull less. That is all the formula does.

The grand meanGrand mean = (n1 × mean1 + n2 × mean2 + ...) ÷ (n1 + n2 + ...): each group mean multiplied by its group size, added up, divided by the total number of values

Working it out by hand

Take the three classes. Multiply each mean by its size first. Class A: 72 × 30 = 2,160. Class B: 68 × 25 = 1,700. Class C: 75 × 20 = 1,500. Add the three products: 2,160 + 1,700 + 1,500 = 5,360. That is the sum of every mark in the year group, recovered from the summaries alone. Now add the sizes: 30 + 25 + 20 = 75 pupils in total. Divide: 5,360 ÷ 75 = 71.47. That is the grand mean.

Check it against the plain average of the means, 71.67. The grand mean sits lower, because the lowest-scoring class, B at 68, is also the second biggest. The plain average never sees that. It gives each class one vote, whatever its size. The grand mean gives each pupil one vote, which is what an average of pupils should do.

Worked example

Three classes, same test: A mean 72 (n = 30), B mean 68 (n = 25), C mean 75 (n = 20). Weighted sum = 2,160 + 1,700 + 1,500 = 5,360. Total N = 75. Grand mean = 5,360 ÷ 75 = 71.47. Plain mean of the three means = 71.67. The gap is small here. It grows whenever the group sizes differ more, or the group means sit further apart.

When the plain average of means goes badly wrong

Two groups. One has 100 people with a mean of 50. The other has 10 people with a mean of 90. Average the two means and you get 70. That number describes almost nobody: 100 of the 110 people sit at 50. The grand mean is (100 × 50 + 10 × 90) ÷ 110 = 5,900 ÷ 110 = 53.64. It sits near 50, where the people are. Whenever one group dwarfs the others, the plain average of means is simply wrong, and the grand mean is the fix.

When the group sizes are equal

Three groups of 10, with means 80, 85 and 90. Each group carries the same weight, so the weighting cancels out. Grand mean = (80 × 10 + 85 × 10 + 90 × 10) ÷ 30 = 2,550 ÷ 30 = 85, exactly the plain mean of the three means. Equal sizes are the one case where the shortcut and the proper calculation agree. If your groups are equal, either method works. If they are not, only the grand mean does.

The grand mean in ANOVA

The grand mean earns its keep in analysis of variance. ANOVA asks whether group means differ more than chance would allow, and it measures every group mean against one reference point: the grand mean. The between-groups sum of squares adds up how far each group mean sits from the grand mean, weighted by group size: SS between = Σ n × (group mean − grand mean)². For the three classes: 30 × (72 − 71.47)² + 25 × (68 − 71.47)² + 20 × (75 − 71.47)² = 8.53 + 300.44 + 249.69 = 558.67. Class B, the furthest from the grand mean, contributes most of it. The one-way ANOVA calculator runs the full table from raw data, and the one-way ANOVA guide walks through the same sums of squares step by step, including its own example where three classes of 5 give a grand mean of 79 and SS between of 640.

Grand mean or weighted mean?

Same arithmetic, different question. A weighted mean weights any values by any weights: exam marks by credit hours, prices by quantities sold. The grand mean is that same calculation with a specific job: the values are group means and the weights are group sizes. If you already know the weighted mean, you know the grand mean. The name matters because textbooks and exam papers ask for it by name, and because it signals the ANOVA context that a plain weighted mean does not.

Two classes, checked against another test

The morning and afternoon classes from the Kolmogorov-Smirnov test page: morning mean 69 with 12 students, afternoon mean 62.5 with 12 students. Equal sizes, so the grand mean is the plain average of the two means: (69 + 62.5) ÷ 2 = 65.75. The KS test said the classes differ (D = 0.6667, p = 0.0079). The grand mean of 65.75 is the centre both classes are measured against, and the between-groups sum of squares is 12 × (69 − 65.75)² + 12 × (62.5 − 65.75)² = 126.75 + 126.75 = 253.50. Two numbers, one story: the classes sit apart, and the grand mean sits between them.

Watch out

Averaging the group means and calling it the grand mean. That only works when the groups are the same size, and exam papers rarely make it that easy. The second mistake is reporting a grand mean without the group sizes: the number alone hides how much each group contributed, so always report N beside it.

What the calculator shows

Paste the group means in one box and the group sizes in the other, in the same order. The calculator returns the grand mean, the total N, the weighted sum, the plain mean of the means for comparison, and the between-groups sum of squares for ANOVA. The steps panel shows the contribution of each group, so you can check the arithmetic line by line. If every group is the same size, it says so, and shows the grand mean matching the plain mean of the means.

Frequently asked questions

What is the grand mean?

The mean of every value across all the groups, worked out from the group means and group sizes. Multiply each group mean by its size, add the products, and divide by the total number of values. Three classes with means 72, 68 and 75 and sizes 30, 25 and 20 give a grand mean of 71.47.

Is the grand mean the same as the average of the group means?

Only when every group is the same size. With equal sizes the weighting cancels out: three groups of 10 with means 80, 85 and 90 give a grand mean of 85, the same as the plain average. With unequal sizes the two disagree, and the grand mean is the right one: the three classes above average 71.67 by the shortcut and 71.47 properly.

How is the grand mean different from a weighted mean?

It is the same calculation with a specific job. A weighted mean weights any values by any weights. The grand mean weights group means by group sizes. The name signals the ANOVA context: textbooks ask for the grand mean when groups are compared, and it is the reference point for the between-groups sum of squares.

Why does ANOVA need the grand mean?

ANOVA measures each group mean against one centre, and that centre is the grand mean. The between-groups sum of squares adds up n times the squared distance of each group mean from the grand mean. For the three classes that sum is 558.67, and most of it comes from class B, the group furthest from the centre.

Can I find the grand mean from the raw data instead?

Yes, and you get the same answer: pool every value from every group into one list and take the ordinary mean. The calculator exists for the common case where only the summaries are published: group means and group sizes, with the raw values long gone.