Skip to content
LoveToCalc

Definition — what does that mean?

Harmonic mean

The right average for two speeds over the same distance.

In Swedish: Harmoniskt medelvärde

Harmonic mean

The relation

H=2aba+b

The reciprocal of the mean of the reciprocals. The right average for rates over equal amounts, such as two speeds over the same distance.

Solve for

H=6

H equals (2 times (4 times 12)) divided by (4 plus 12), equals (2 times 48) divided by 16, equals 96 divided by 16, equals 6

Working4 steps

What the formula says

H = 2ab / (a + b)

a and b are the numbers and H is the harmonic mean. The formula is a simplification of something easier to follow: take the ordinary mean of the reciprocals 1/a and 1/b, then take the reciprocal of the answer. Written out, that is 2ab / (a + b).

It sounds roundabout, but it is exactly what happens with speeds. A speed is distance per time, and when the distances are equal it is the times — the reciprocals of the speeds — that add up.

Worked examples

The drive. You drive 60 km at 40 km/h and then 60 km at 120 km/h. The ordinary mean says 80 km/h. The harmonic mean is 2 · 40 · 120 / (40 + 120) = 9,600 / 160 = 60 km/h. Check with the times: 60 km at 40 km/h takes 1.5 hours, 60 km at 120 km/h takes 0.5 hours. 120 km in 2 hours is 60 km/h.

The defaults. 4 and 12 give 2 · 4 · 12 / (4 + 12) = 96 / 16 = 6, although the ordinary mean is 8.

Common mistakes

Common questions

When should I use the harmonic mean? When you average ratios whose numerators are equal. Speeds over equal distances, fuel economy in miles per gallon over equal trips, and price per unit when you spend the same amount each time.

How does it compare with the other means? For positive numbers it is always the smallest. For 4 and 9 the ordinary mean is 6.5, the geometric mean 6 and the harmonic mean about 5.54. They are equal only when the numbers are equal.

What about more than two numbers? Take the mean of the reciprocals and invert the answer: n divided by the sum of 1/x over all the numbers. For 2, 3 and 6 that is 3 / (1/2 + 1/3 + 1/6) = 3 / 1 = 3.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
aHb2b−H6·122·12−64
bHa2a−H6·42·4−612
H2aba+b2·4·124+126

Last reviewed October 6, 2026 ·How pages are reviewed

Statistics and probabilityAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.