The average of two speeds is not their mean

Ride 20 km/h out and 30 km/h back over the same road and your average is 24 km/h, not 25. Average speed is total distance divided by total time, and since you spend longer at the slower speed, the slower speed weighs more; for two equal distances that works out to 2 × a × b ÷ (a + b), the harmonic mean.

A worked example: 30 km out and back

You ride 30 km out at 20 km/h and the same 30 km back at 30 km/h.

  • Out: 30 ÷ 20 = 1.5 hours.

  • Back: 30 ÷ 30 = 1 hour.

  • Total: 60 km in 2.5 hours, so 60 ÷ 2.5 = 24 km/h.

The plain mean, 25 km/h, would mean 60 km in 2 hours 24 minutes. It took 2 hours 30, because the slow half lasted longer than the fast one.

Where the formula comes from

Call the distance of each leg d and the two speeds a and b. The time is d ÷ a + d ÷ b, the distance is 2d, and dividing one by the other gives:

average = 2d ÷ (d ÷ a + d ÷ b) = 2 × a × b ÷ (a + b)

The distance cancels out, so the answer is the same for a 3 km loop or a 100 km ride. With 20 and 30: 2 × 20 × 30 ÷ 50 = 1,200 ÷ 50 = 24.

When the plain mean is right

If you ride one hour at 20 km/h and one hour at 30 km/h, you cover 20 + 30 = 50 km in 2 hours, and the average is 25 km/h. Equal times, plain mean; equal distances, harmonic mean. The average speed calculator has a mode for two speeds and asks which of the two you mean.

How far apart the two answers are

The gap is small when the speeds are close and grows quickly as they move apart.

Plain mean against the true average for two legs of equal length, in km/h.
Speed 1 (km/h)Speed 2 (km/h)Plain meanAverage over equal distancesDifference
253530.0029.170.83
203025.0024.001.00
152520.0018.751.25
306045.0040.005.00
105030.0016.6713.33

The last row is a climb and a descent. Riding 5 km up at 10 km/h takes 30 minutes; riding the 5 km back down at 50 km/h takes 6. That is 10 km in 36 minutes, an average of 16.7 km/h. The fast descent cannot buy back the time spent on the climb.

The speed you can never make up

Suppose you ride the first 10 km of a 20 km route at 15 km/h. That takes 40 minutes. How fast must you ride the second 10 km to average 30 km/h for the whole route?

At 30 km/h, 20 km take exactly 40 minutes, and you have already used them. No speed on the second half is enough: even at 1,000 km/h you would average just under 30. The slow part sets a floor under the total time.

More than two legs, or legs of different length

The rule stays the same: add the distances, add the times, divide. Take a ride of three legs:

Three legs of a 25 km ride, with the average from total distance over total time.
LegDistance (km)Speed (km/h)Time (min)
Town102524
Climb51520
Back road103020
Whole ride2523.4464

25 km in 64 minutes is 25 ÷ (64 ÷ 60) = 23.44 km/h. Weighting each speed by its distance gives 25 km/h, which is wrong; weighting each speed by its time gives (25 × 24 + 15 × 20 + 30 × 20) ÷ 64 = 23.44 km/h, which is right. Time is the weight, because speed is distance per unit of time.

Running: average the paces, not the speeds

A runner turns this around. Pace is time per kilometre, so for equal distances the paces can be averaged directly. Run 10 km at 5:00 per km and 10 km at 6:00 per km and the 20 km take 50 + 60 = 110 minutes, which is 5:30 per km, exactly the mean of the two paces.

In speeds, 5:00 per km is 12 km/h and 6:00 is 10 km/h. Their plain mean, 11 km/h, would be a pace of 5:27; the harmonic mean, 2 × 12 × 10 ÷ 22 = 10.91 km/h, is the true 5:30. The pace calculator converts between the two for any time and distance.

Questions

Does this apply to fuel consumption too?

The same arithmetic applies to anything that is a rate per distance or per time. Litres per 100 km for two equal distances can be averaged directly, because the distance is the base of the rate; kilometres per litre cannot, for the same reason that km/h cannot.

Why does my bike computer show a different average from my calculation?

Check whether its timer pauses when you stop. If it does, it divides the distance by moving time only; divide by the time from start to finish, stops included, and your average comes out lower.

Where the figures come from

Published by Cursa de duminică (Tanna Software S.R.L). About the site, Methodology and sources.

More posts