How it is calculated
Average speed is the total distance divided by the total time. 30 km in 1 hour 30 minutes is 30 / 1.5 = 20 km/h. The calculator also shows the pace per kilometre, which is handy for walking and running: at 20 km/h a kilometre takes 3:00.
The average of two speeds
If you ride 15 km at 20 km/h and come back the same 15 km at 30 km/h, the average speed is not 25 km/h:
| Leg | Distance | Speed | Time |
|---|---|---|---|
| Out | 15 km | 20 km/h | 45 min |
| Back | 15 km | 30 km/h | 30 min |
| Total | 30 km | 24 km/h | 75 min |
You spend longer on the slow leg, so it pulls the average down. For two legs of the same length the formula is:
v = 2 × v1 × v2 / (v1 + v2)
which is the harmonic mean: 2 × 20 × 30 / 50 = 24 km/h. For 60 and 40 km/h it gives 48 km/h, not 50.
The ordinary mean, (v1 + v2) / 2, is right only when the two legs take the same time: an hour at 20 km/h and an hour at 30 km/h give 25 km/h. The calculator has both.
Where you use it
on a bike ride where the climb and the descent are the same length;
on an out-and-back ride with a headwind on the way out;
in physics exercises on average speed, which ask for exactly this distinction.
Questions
How do I get the average speed when the legs have different lengths?
Add the distances, add the times and divide. The distance-and-time calculator does this if you enter the totals.
Why does my watch show a different average from my calculation?
Some watches pause on their own at traffic lights or during stops and work out the average over moving time only. The calculation here uses the time you enter.