“Mean” usually means the arithmetic average — add the numbers and divide by how many there are. But there are several means, and each answers a slightly different question. This calculator works out the four you are most likely to need from one list of numbers and shows the arithmetic for whichever one you pick.
How to use the mean calculator
- Type or paste your numbers into the box. Commas, spaces, tabs and line breaks all work, so a column copied from a spreadsheet is fine.
- Choose which mean you want the steps for: Arithmetic, Geometric, Harmonic or RMS.
- Read the chosen mean on the tape. All four means are listed underneath, along with the count and the sum.
If any value is zero or negative, the geometric and harmonic means are shown as unavailable, because their formulas only make sense for positive data.
Mean formulas
For n values x₁, x₂, … xₙ:
For long lists the calculator computes the geometric mean with logarithms — the average of ln(x), then exponentiated — which gives the same answer without overflowing.
Worked example
Take the six numbers 4, 8, 15, 16, 23 and 42.
- Arithmetic: they add to 108, and 108 ÷ 6 = 18.
- Geometric: their product is 7,418,880, and the sixth root of that is about 13.9655.
- Harmonic: the reciprocals add to about 0.571455, and 6 ÷ 0.571455 ≈ 10.4995.
- RMS: the squares add to 2,854; 2,854 ÷ 6 ≈ 475.67, and its square root is about 21.8098.
Notice the order: harmonic ≤ geometric ≤ arithmetic ≤ RMS. That inequality holds for every set of positive numbers, and the means are equal only when all the values are identical. The wider the spread of the data, the further apart they drift.
Which mean should you use?
| Mean | Best for | Everyday example |
|---|---|---|
| Arithmetic | Amounts that add up | Average test score, average daily sales |
| Geometric | Rates that compound | Average yearly investment return |
| Harmonic | Rates over equal amounts | Average speed over equal distances |
| RMS | Size regardless of sign | AC voltage, average error magnitude |
Growth rates call for the geometric mean
Suppose a fund returns +10%, −5% and +20% in three years. The growth factors are 1.10, 0.95 and 1.20; their product is 1.254, so $1,000 grew to $1,254. The geometric mean of the factors is about 1.0784, a steady 7.84% a year that produces exactly the same ending balance. The arithmetic mean of the percentages, 8.33%, overstates the growth. The CAGR calculator applies the same idea to a start and end value.
Speeds and prices call for the harmonic mean
If you drive 120 miles out at 60 mph and back at 40 mph, the trip takes 2 + 3 = 5 hours for 240 miles: 48 mph. Enter 60 and 40 and choose Harmonic to get the same answer. Dollar-cost averaging works the same way — buying a fixed dollar amount of shares each month means your average cost per share is the harmonic mean of the prices.
Mean versus median
The arithmetic mean uses every value, which makes it sensitive to outliers. One salary of $2 million among nine salaries of $50,000 pulls the mean to $245,000 even though nine of ten people earn far less. When data are skewed like that, report the median too; the mean, median and mode calculator shows all three side by side. When values carry different importance — credit hours, portfolio shares — use the weighted average calculator instead.
Frequently asked questions
What is the difference between mean and average?
In everyday speech they are the same thing: the arithmetic mean, or the sum divided by the count. Statisticians use 'average' more loosely for any measure of center, including the median and the mode, so 'mean' is the more precise word.
When should I use the geometric mean?
Use it for quantities that multiply rather than add, such as growth rates, investment returns and ratios. Returns of +10%, −5% and +20% have an arithmetic mean of 8.33%, but the geometric mean of the growth factors gives the true compound rate of about 7.84% per period.
When is the harmonic mean the right average?
Use it to average rates measured over equal amounts of something, such as speeds over equal distances or share prices when you invest the same dollar amount each time. Driving 60 mph one way and 40 mph back averages 48 mph for the round trip, not 50.
Why does the geometric mean need positive numbers?
It is the nth root of a product, which is undefined or meaningless when values are zero or negative. For percentage changes, convert each one to a growth factor first, so a 5% loss becomes 0.95 and a 20% gain becomes 1.20.
What is the quadratic mean (RMS) used for?
The root mean square squares each value before averaging, so it measures typical size regardless of sign. Engineers use it for alternating current: a sine wave averages zero, but its RMS value tells you how much power it delivers.