Harmonic Mean Explained: Where It Beats the Simple Average

Some averages need a different kind of mean. When you average speeds, prices per unit or other rates, the usual “add and divide” method can give you the wrong answer. The harmonic mean is built for those jobs. At CalcifyAI, we like to match each question to the right tool, and this guide shows you where the harmonic mean beats the simple average.

The formula in plain words

For two numbers, a and b, the harmonic mean is:

Harmonic mean = 2 × a × b ÷ (a + b)

For more numbers, the idea is: divide how many numbers you have by the sum of their “flips”. A flip, also called a reciprocal, means 1 divided by the number.

Harmonic mean = n ÷ (1/x₁ + 1/x₂ + … + 1/xₙ)

A speed example

You drive 60 km to a town at 60 km/h, then drive back the same 60 km at 40 km/h. What is your average speed?

The simple average is (60 + 40) ÷ 2 = 50 km/h. But look at the times.

  • Going: 60 ÷ 60 = 1 hour
  • Returning: 60 ÷ 40 = 1.5 hours
  • Total: 120 km in 2.5 hours = 48 km/h

The harmonic mean gives the same answer: 2 × 60 × 40 ÷ (60 + 40) = 4,800 ÷ 100 = 48 km/h. The simple average of 50 is too high, because you spent more time at the slower speed.

Why it works

Speed is distance divided by time. When the distances are equal, the slower part takes longer, so it counts for more in the average. The harmonic mean gives more weight to the smaller numbers, and that matches what happens in real life.

A shopping example

You spend $20 on apples at $4 a kilogram, and $20 on apples at $5 a kilogram. What is your average price per kilogram?

  • First buy: 20 ÷ 4 = 5 kg
  • Second buy: 20 ÷ 5 = 4 kg
  • Total: $40 for 9 kg, so $40 ÷ 9 = $4.44 per kg

The harmonic mean of 4 and 5 is 2 × 4 × 5 ÷ 9 = 40 ÷ 9 = $4.44. The simple average, $4.50, is a bit too high. The harmonic mean works here because you spent equal money at each price.

Check your work

Even when you use the harmonic mean, a simple average is useful as a sense check. If you use an average finder to find the arithmetic mean, you can see how far it is from the harmonic mean. The harmonic mean should always be lower, and the gap shows how uneven your numbers are. In the apple example, the gap is only 6 cents, because the two prices are close. With very different prices, the gap grows.

More than two numbers

Say you travel three equal distances at 30, 60 and 90 km/h.

  • Flips: 1/30 + 1/60 + 1/90
  • Put them over 180: 6/180 + 3/180 + 2/180 = 11/180
  • Harmonic mean: 3 ÷ (11/180) = 540 ÷ 11 = 49.09 km/h

The simple average would be (30 + 60 + 90) ÷ 3 = 60 km/h. That is more than 10 km/h too high.

When to use the harmonic mean

Use it when:

  • the numbers are rates, such as speed, price per unit or work per hour
  • the thing you are sharing out equally is the “top” of the fraction, such as equal distances or equal money
  • you want a fair average of ratios

When not to use it

  • When the numbers are simple amounts to be added, such as test scores or daily costs.
  • When the equal part is the time, not the distance. If you drive for one hour at 60 and one hour at 40, the simple average of 50 is right.
  • When any number is zero or negative. The harmonic mean needs positive numbers.

Comparing the three means

For positive numbers that are not all equal, the three common means are always in the same order:

harmonic mean < geometric mean < arithmetic mean

For 4 and 9, the harmonic mean is 2 × 4 × 9 ÷ 13 = 5.54, the geometric mean is 6, and the arithmetic mean is 6.5. If you get a different order, check your sums.

A tip for spreadsheets

Many spreadsheets have a HARMEAN function. Type your numbers in a column and use =HARMEAN(A1:A3). For the speeds 30, 60 and 90, the result is 49.09. If your spreadsheet does not have it, you can use the flips method with a few small steps.

Common mistakes

  • Using the simple average for rates with equal distances.
  • Using the harmonic mean when time is the equal part.
  • Including zero, which makes the flip impossible.
  • Mixing units, such as km/h and m/s.
  • Forgetting to flip back at the end.

Final thoughts

The harmonic mean is the right average for rates when the distance or money is the same for each part. It gives more weight to the smaller values, and it is always lower than the simple average. At CalcifyAI, we like the rule of thumb: ask what is equal, and choose the mean that matches.

Leave a Comment

Your email address will not be published. Required fields are marked *