euler
Euler Learn

Why does equal-distance average speed use the harmonic mean?

A derivation of average speed over two equal-distance legs, with a 60 and 40 km/h example and a comparison with the arithmetic mean.

If you cover the same distance at positive speeds v1v_1 and v2v_2, the average speed is vˉ=21/v1+1/v2=2v1v2v1+v2.\bar v=\frac{2}{1/v_1+1/v_2}=\frac{2v_1v_2}{v_1+v_2}. This is the harmonic mean because the slower speed takes more time on its leg.

Start from the definition of average speed

Average speed is not generally the average of the numbers on the speedometer. By definition, vˉ=total distancetotal time.\bar v=\frac{\text{total distance}}{\text{total time}}. Suppose each leg has length d>0d>0, with constant speeds v1>0v_1>0 and v2>0v_2>0. The total distance is 2d2d. The two travel times are d/v1d/v_1 and d/v2d/v_2, so vˉ=2dd/v1+d/v2=21/v1+1/v2=2v1v2v1+v2.\bar v=\frac{2d}{d/v_1+d/v_2}=\frac{2}{1/v_1+1/v_2}=\frac{2v_1v_2}{v_1+v_2}. The distance dd cancels: what matters is that the two distances are equal, not their particular length.

A checkable example: 60 km/h and 40 km/h

Choose two legs of 120120 km. At 6060 km/h, the first takes 120/60=2 hours,120/60=2\text{ hours}, while at 4040 km/h, the second takes 120/40=3 hours.120/40=3\text{ hours}. The trip covers 240240 km in 55 hours, so vˉ=240/5=48 km/h.\bar v=240/5=48\text{ km/h}. The harmonic-mean formula gives the same result: 2⋅60⋅4060+40=4800100=48 km/h.\frac{2\cdot60\cdot40}{60+40}=\frac{4800}{100}=48\text{ km/h}. The two calculations provide a direct check.

Why the arithmetic mean gives 50 but answers a different question

The arithmetic mean of the speeds is (60+40)/2=50(60+40)/2=50 km/h, but it gives the two speeds equal time weight. Over equal distances, the 4040 km/h leg lasts 33 hours, while the 6060 km/h leg lasts only 22 hours, so the slower speed acts for longer.

The value 5050 km/h would be correct if you travelled for the same amount of time at each speed. For example, one hour at 6060 km/h and one hour at 4040 km/h cover 100100 km in 22 hours, giving an average of 5050 km/h. Before choosing a mean, ask what is equal: time or distance.

More legs, stops, and unequal distances

For nn equal-distance legs travelled at positive speeds v1,…,vnv_1,\ldots,v_n, the same reasoning gives the harmonic mean vˉ=n1/v1+⋯+1/vn.\bar v=\frac{n}{1/v_1+\cdots+1/v_n}. If the distances differ, use the definition directly: vˉ=d1+⋯+dnd1/v1+⋯+dn/vn.\bar v=\frac{d_1+\cdots+d_n}{d_1/v_1+\cdots+d_n/v_n}. Add any stops to total time when the question asks for the average over the entire trip. In every case, the reliable check is total distance divided by total time.

Frequently asked questions

When can I use the arithmetic mean of two speeds?

When each speed is maintained for the same amount of time. With unequal times, calculate total distance and divide it by total time.

Can average speed exceed the fastest speed?

No. With positive speeds it stays between the minimum and maximum speeds. In the example, 48 km/h lies between 40 and 60 km/h.

Do stops change the harmonic mean?

Yes, if they are part of the trip time. Add stop time to the denominator; the simple harmonic formula assumes equal legs with no extra time.

Does the formula work with miles per hour?

Yes, provided all speeds and distances use consistent units. The result uses the same speed unit as the inputs.