Mean Calculator

Mean Calculator

Paste a list of numbers to get their mean (average), or add weights for a weighted mean such as a course grade. The geometric and harmonic means are shown too, for growth rates and speeds.

Mean = Σx ÷ n · Weighted mean = Σ(w × x) ÷ Σw

Separate with commas, spaces or new lines. You can paste a column from a spreadsheet.

Enter some numbers to see their mean

What is the Mean?

The mean is the total of the values divided by how many there are. It's what each value would be if the total were shared out equally, which is why it's the everyday meaning of "average".

That sharing-out idea also explains its weakness. One very large or very small value changes the total, so it pulls the mean towards it. For data with a long tail, such as incomes, house prices or waiting times, the median usually describes a typical value better.

A weighted mean lets some values count more than others: an exam worth 60% of a grade, a module worth 20 credits, or a price paid on more units. The geometric and harmonic means are for growth rates and for speeds or prices averaged over equal amounts.

How to Calculate the Mean

Definitions as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.

1. Simple mean

x̄ = (x₁ + x₂ + … + xₙ) ÷ n

Add the values, then divide by how many there are.

2. Weighted mean

x̄w = (w₁x₁ + w₂x₂ + … + wₙxₙ) ÷ (w₁ + w₂ + … + wₙ)

Multiply each value by its weight, add those up, and divide by the total weight. Weights of 20, 20, 60 give the same answer as 0.2, 0.2, 0.6.

3. Geometric and harmonic means

Geometric = (x₁ × x₂ × … × xₙ)^(1/n)
Harmonic = n ÷ (1/x₁ + 1/x₂ + … + 1/xₙ)

Both need every value to be above zero. For any positive data, harmonic ≤ geometric ≤ simple mean.

Worked Example: a Weighted Course Grade

Given:
Three assignments scored 72, 85 and 90, worth 20% each; a quiz scored 64, worth 10%; and the final exam scored 88, worth 30%.
Step 1:
Simple mean, ignoring the weights:
(72 + 85 + 90 + 64 + 88) ÷ 5 = 399 ÷ 5 = 79.8
Step 2:
Multiply each score by its weight:
72×20 + 85×20 + 90×20 + 64×10 + 88×30 = 1,440 + 1,700 + 1,800 + 640 + 2,640 = 8,220
Step 3:
Divide by the total weight:
8,220 ÷ (20 + 20 + 20 + 10 + 30) = 8,220 ÷ 100 = 82.2
Result:
The course grade is 82.2, not 79.8.

The weak quiz counts for only 10%, while the strong exam counts for 30%, so the weighted grade is higher than the plain average.

Which Mean to Use

Using the wrong kind of mean doesn't produce an error message, just a misleading number. Each row shows what goes wrong with the simple mean.

Which mean to use for different kinds of data
SituationUseExample
Ordinary measurementsSimple meanScores 72, 85, 90, 64, 88 → 79.8
Items that count for different amountsWeighted meanThe course grade above → 82.2
Growth rates, returns, ratiosGeometric meanAn investment up 50% then down 50% → 0.866× a year (−13.4%), not 0%
Speeds or prices over equal amountsHarmonic mean60 km at 30 km/h then 60 km at 60 km/h → 40 km/h, not 45
Skewed data with outliersMedian insteadHouse prices 210k, 235k, 250k, 265k, 1.2m → median 250k, mean 432k

Common Averaging Mistakes

  • Averaging averages. If one class of 10 averaged 60 and another of 30 averaged 80, the overall average is (10×60 + 30×80) ÷ 40 = 75, not 70. Weight each average by its group size.
  • Averaging percentages with different bases. 50% of 10 people and 90% of 1,000 people is 905 out of 1,010, or 89.6% overall, not the 70% you get by averaging the two percentages.
  • Using the simple mean for growth. A fund that gains 50% and then loses 50% is down 25% overall. The simple mean of the two returns says 0%; the geometric mean gives the true yearly rate.
  • Forgetting that weights are relative. Weights don't need to add up to 100. What matters is how big each weight is compared with the others.
  • Quoting the mean of skewed data on its own. Average income is well above what a typical person earns, because a few very high incomes pull it up. Give the median as well.

Mean Calculator FAQs

Is the mean the same as the average?

In everyday use, yes: “average” means the arithmetic mean. In statistics, average is a looser word that can also cover the median and mode, so “mean” is the precise term.

Can the mean be a number that isn’t in the data?

Yes, and it usually is. The mean of 1 and 2 is 1.5, and families can average 1.8 children even though no family has 1.8 children.

How do I calculate a weighted grade?

Enter each score as a value and its percentage of the course as its weight, in the same order. The calculator multiplies, adds and divides by the total weight. If your weights only add up to, say, 70% because some work isn’t marked yet, the result is your average on the work so far.

What’s the difference between the mean and the median?

The mean shares the total out equally; the median is the middle value. They’re close for symmetric data and far apart when a few values are much larger or smaller than the rest.

Why does the geometric mean need positive numbers?

It multiplies the values together and takes a root. A zero makes the whole product zero, and negative values can make the root undefined. For returns, convert to growth factors first: +5% becomes 1.05 and −3% becomes 0.97.

When is the harmonic mean the right one?

When you average rates over equal amounts of the thing in the denominator: speeds over equal distances, or prices per item when you spend the same amount each time. If you drove equal times rather than equal distances, the simple mean would be correct.

How do I find the mean in Excel or Google Sheets?

AVERAGE(range) gives the simple mean. For a weighted mean, use SUMPRODUCT(values, weights) / SUM(weights). GEOMEAN and HARMEAN give the other two.

How many decimal places should I report?

Usually one more than the data. Whole-number scores averaging 79.8 don’t need more than one decimal place; extra digits suggest a precision the data doesn’t have.

Sources

Related Tools