English

Arithmetic, Geometric, and Harmonic Mean: Differences and When to Use Each

The arithmetic mean is the sum of the values divided by their number and suits ordinary additive data such as heights or test scores.

Arithmetic, Geometric, and Harmonic Mean: Differences and When to Use Each
Contents
  1. Why are there three kinds of mean?
  2. The arithmetic mean
  3. The geometric mean
  4. The harmonic mean
  5. How do the three means react to a gap between values?
  6. Why investors use the geometric mean
  7. Why speeds and unit prices use the harmonic mean
  8. How to choose the right mean
  9. Calculating the three means in Excel and Python
  10. Frequently asked questions
  11. When should the geometric mean be used instead of the arithmetic mean?
  12. Why is the geometric mean always smaller than the arithmetic mean?
  13. Can the geometric mean be calculated with negative values?
  14. What is the harmonic mean used for in practice?
  15. Which mean is least affected by outliers?
  16. References

Versi bahasa Indonesia: Rata-Rata Aritmatika, Geometrik, dan Harmonik: Apa Bedanya?

Short answer: the arithmetic mean is the sum of the values divided by their number and suits ordinary additive data such as heights or test scores. The geometric mean is the n-th root of the product of the values and suits multiplicative data such as growth rates and investment returns. The harmonic mean is n divided by the sum of the reciprocals and suits rates and ratios such as speed or price per unit. For any set of positive values that are not all equal, arithmetic > geometric > harmonic.

MeanFormulaValues 2, 3, 4, 5Typical use
Arithmetic(Σxi) / n3.50Scores, heights, yields, incomes
Geometric(Πxi)1/n3.31Growth rates, returns, indices
Harmonicn / Σ(1/xi)3.12Speeds, prices per unit, ratios

Why are there three kinds of mean?

A mean is a single value that represents a group of data. Its usefulness lies in summary: a report card with an average of 5 out of 10 immediately signals that many subjects were failed, without listing every grade. Most people learn only one mean at school, the arithmetic mean, and use it for everything. However, the arithmetic mean answers only one kind of question, namely what each value would be if the total were shared equally. Some data are not combined by adding but by multiplying or by dividing, and for these the arithmetic mean gives a misleading answer.

Textbooks usually explain the choice through examples: the arithmetic mean for school grades, the geometric mean for investments, the harmonic mean for speeds. Examples are helpful, yet they leave the underlying question open. The clearest way to understand the difference is to see how each mean reacts when the values in a group move apart.

The arithmetic mean

The arithmetic mean is the familiar average: add all the values and divide by their number, x̄ = (x1 + x2 + … + xn) / n. It is the right choice when the quantity of interest is a total that is shared equally. The average yield of ten farms, the average height of a class, and the average age of respondents are all arithmetic means. For the values 2, 3, 4, and 5, the arithmetic mean is 14 / 4 = 3.50.

Formula of the arithmetic mean as the sum of values divided by n
Arithmetic mean.

The geometric mean

The geometric mean multiplies all values and takes the n-th root of the product: G = (x1 × x2 × … × xn)1/n. For 2, 3, 4, and 5, the product is 120 and the fourth root is 3.31.

Formula of the geometric mean as the n-th root of the product of values
Geometric mean, product form.

Multiplying many values becomes impractical with large datasets, so a second, equivalent form uses logarithms: log G = (Σ log xi) / n. The geometric mean is simply the arithmetic mean of the logarithms, transformed back. This form also explains why the geometric mean requires all values to be positive.

Formula of the geometric mean using logarithms
Geometric mean, logarithmic form.

The harmonic mean

The harmonic mean is in a sense the reverse of the arithmetic mean. Instead of dividing the sum of the values by n, it divides n by the sum of the reciprocals: H = n / (1/x1 + 1/x2 + … + 1/xn). For 2, 3, 4, and 5, the sum of reciprocals is 0.500 + 0.333 + 0.250 + 0.200 = 1.283, and H = 4 / 1.283 = 3.12.

Formula of the harmonic mean as n divided by the sum of reciprocals
Harmonic mean.

How do the three means react to a gap between values?

The three values for 2, 3, 4, and 5 (3.50, 3.31, and 3.12) seem close, which raises the question of whether the choice matters at all. A small simulation answers it. Two values are averaged repeatedly. In the first round they are far apart, 100 and 2. In each following round, the gap narrows step by step until the two values are equal, and then it widens again in the opposite direction, while their sum stays the same.

Chart of arithmetic, geometric, and harmonic means of two values as the gap between them narrows and widens
The three means as the gap between two values changes.

The arithmetic mean stays flat across all rounds, because the sum never changes. The geometric mean follows an arch: low when the values are far apart, rising as the gap narrows, equal to the arithmetic mean when the two values are identical, and falling again as the gap widens. The harmonic mean follows a similar arch with steeper sides.

Comparison of arithmetic and geometric means showing the geometric mean is sensitive to the gap between values
Arithmetic versus geometric mean.

The simulation reveals the key property. The arithmetic mean is insensitive to how unequal the values are; a single very high value pulls it up regardless of how low the others are. The geometric mean is sensitive to inequality and is pulled strongly toward the lowest values, since a small number in a product drags the whole product down. If any value equals zero, the geometric mean becomes zero. The harmonic mean is even more dominated by the smallest values. Thus, the geometric and harmonic means reward consistency, while the arithmetic mean rewards totals.

Why investors use the geometric mean

A short scene explains why the geometric mean dominates investment reporting. An entrepreneur presents two years of results to a potential investor: a return of −50% in the first year and +80% in the second. The arithmetic mean of the returns is (−50 + 80) / 2 = +15% per year, which sounds attractive. The investor, however, follows the money. An initial 100 becomes 50 after the first year and 90 after the second. The investment has lost 10% over two years.

The geometric mean tells the true story. Returns are combined by multiplying growth factors, not by adding percentages: (0.50 × 1.80)1/2 − 1 = (0.90)0.5 − 1 = −5.1% per year. Applying −5.1% twice to 100 gives 90, exactly the actual result. Consequently, the geometric mean of growth factors is the only average that reproduces the final value, which is why compound annual growth rates and average investment returns are always geometric. A good year cannot hide a bad one, since both enter the product.

The same logic applies to population growth, price indices, and yield growth over several seasons. Whenever a quantity grows by percentages that build on each other, the geometric mean of the growth factors is the correct average.

Why speeds and unit prices use the harmonic mean

The harmonic mean is correct when the values are rates defined per unit of something that stays fixed. A vehicle travels 60 km at 30 km/h and returns 60 km at 60 km/h. The arithmetic mean of the speeds is 45 km/h, but the trip takes 2 hours out and 1 hour back, so the true average speed is 120 km / 3 h = 40 km/h. The harmonic mean gives exactly this: 2 / (1/30 + 1/60) = 40 km/h.

The same applies to buying. A trader spends USD 100 on shallots at USD 2 per kg and another USD 100 at USD 4 per kg. The average price paid is not USD 3 but 200 / (50 + 25) = USD 2.67 per kg, which equals the harmonic mean of 2 and 4. Thus, when a fixed amount of money or distance is spread over different rates, the harmonic mean gives the true average rate.

How to choose the right mean

The guiding rule is that the mean should reproduce the total that matters. When values are added to form the total, the arithmetic mean is correct. When values are multiplied, as with growth factors, the geometric mean is correct. When values are rates and the fixed quantity sits in the numerator, as with distance per hour or money per kilogram, the harmonic mean is correct. Beyond this rule, the choice also reflects what the researcher wants to emphasize: the geometric mean is appropriate when the aim is to highlight improvement of the lowest values rather than to let a few high values dominate, as in composite indices of development or sustainability.

Calculating the three means in Excel and Python

In Excel, the functions are =AVERAGE(A1:A10), =GEOMEAN(A1:A10), and =HARMEAN(A1:A10). In Python, statistics.mean, statistics.geometric_mean, and statistics.harmonic_mean perform the same calculations. For growth rates, the values passed to GEOMEAN must be growth factors (1 + r), not percentages; one is subtracted from the result afterward.

Related guides on Catatan Budi: time series data and forecasting, r table for Pearson correlation, and how to calculate fertilizer requirements.

Frequently asked questions

When should the geometric mean be used instead of the arithmetic mean?

The geometric mean is used for data that combine multiplicatively, such as growth rates, investment returns, and index numbers, and when values span several orders of magnitude.

Why is the geometric mean always smaller than the arithmetic mean?

For positive values that are not all equal, the inequality of arithmetic and geometric means guarantees that the geometric mean is smaller. The two are equal only when all values are identical.

Can the geometric mean be calculated with negative values?

Not directly. For returns, negative percentages are converted into growth factors (for example −20% becomes 0.80), which are positive, and the geometric mean of the factors is calculated.

What is the harmonic mean used for in practice?

It is used for average speeds over fixed distances, average prices when a fixed amount is spent at different prices, price-to-earnings ratios, and the F1 score in machine learning.

Which mean is least affected by outliers?

Among the three, the arithmetic mean is the most affected by a single very large value. The geometric and harmonic means are less affected by large values but strongly affected by very small values. The median is the usual choice when outliers in both directions are a concern.

References

  • Spiegel, M. R., and Stephens, L. J. (2018). Schaum’s Outline of Statistics (6th ed.). McGraw-Hill.
  • Bodie, Z., Kane, A., and Marcus, A. J. (2021). Investments (12th ed.). McGraw-Hill.

How to cite this article: Agung Budi Santoso (2026). Arithmetic, Geometric, and Harmonic Mean: Differences and When to Use Each. Catatan Budi. https://agungbudisantoso.com/en/arithmetic-geometric-harmonic-mean/

Photo of Agung Budi Santoso

Written by

Agung Budi Santoso

Lecturer in Management & Agribusiness · Universitas Sumatera Utara

A lecturer and researcher who turns statistics, econometrics, and agribusiness research methods into practical, step-by-step notes for students and researchers.

Discussion

No comments yet. Have a question about this topic? Write it below and I will do my best to answer.

Leave a comment

Your email address will not be published.