Average speed on a round trip:
why 40 and 60 km/h do not average to 50
Averaging two speeds with a plain mean is the classic trap. Total distance over total time gives the right answer, and the harmonic mean is a shortcut for it.
Calcylator Editorial Team
Updated · 4 min read
The trap in adding two speeds and halving
You drive to a town at 30 km/h and return at 60 km/h. Most people say the average is 45 km/h. It is not. You spent far longer at the slow speed, so the slow leg weighs more in the overall journey than the fast one.
Average speed has a single definition that never changes: total distance divided by total time. A plain average of two speeds equals that only when the two legs take the same amount of time. When the legs cover the same distance, they do not take the same time, and the arithmetic mean breaks.
The same confusion appears in cycling, running and flight planning. A tailwind outbound and headwind back does not cancel: the time lost into the wind exceeds the time gained with it, for the same reason as the 30 and 60 km/h example. Pilots allow for exactly this effect when computing fuel for a round trip.
Building the answer from distance and time
Let each leg have distance d, with speeds a and b. The first leg takes d ÷ a and the second takes d ÷ b. The whole trip covers 2d in d/a + d/b.
- a:
- speed on the first leg
- b:
- speed on the second leg
The distance d cancels, which is why the shortcut needs no distance at all. Whether the route is 10 km or 1,000 km, driving it each way at 30 and 60 km/h gives the same average. The result of 2 × 30 × 60 ÷ 90 is exactly 40 km/h, a figure that surprises people who expected 45.
It helps to see the same result through reciprocals. The reciprocal of a speed is a pace, the time taken per kilometre. Paces can be averaged ordinarily when the distances are equal, because time simply adds. At 30 km/h the pace is 2 minutes per kilometre and at 60 km/h it is 1 minute, so the average pace is 1.5 minutes per kilometre, which converts back to 40 km/h. The harmonic mean is nothing more than an arithmetic average taken in pace terms and then turned back into a speed.
Worked example: 120 km each way at 40 and 60 km/h
Outbound
120 km at 40 km/h = 3.0 h
Return
120 km at 60 km/h = 2.0 h
Total distance
240 km
Total time
5.0 h
Average speed
48 km/h
Shortcut: 2 × 40 × 60 ÷ (40 + 60) = 4,800 ÷ 100 = 48.
The plain average would have been 50 km/h, which would imply a journey time of 4.8 hours, about 12 minutes shorter than reality. For a route that you plan to schedule against, such an optimistic error matters.
| Method | Speed | Implied trip time |
|---|---|---|
| Arithmetic mean | 50 km/h | 240 ÷ 50 = 4.8 h |
| Harmonic mean | 48 km/h | 240 ÷ 48 = 5.0 h |
| Actual | — | 3.0 + 2.0 = 5.0 h |
Three or more equal-distance legs
With n legs of equal length, the generalisation takes n over the sum of the reciprocal speeds. For three equal legs at 40, 50 and 60 km/h, the reciprocals add to 0.025 + 0.020 + 0.01667 = 0.06167, and 3 ÷ 0.06167 is about 48.6 km/h.
- n:
- number of equal-distance legs
- vᵢ:
- speed on leg i
The same expression applies to any rate where the amount of work done in each stage is the same: litres per minute of several pumps filling equal tanks, or pages per hour of readers who each read the same chapter. In each case the thing that is equal is the numerator of the rate, and time is what differs.
Which average goes with which situation
| What is equal in each stage | Use | Example |
|---|---|---|
| Distance | Harmonic mean of speeds | Out and back on one route |
| Time | Arithmetic mean of speeds | One hour at 40 km/h, one at 60 km/h gives 50 km/h |
| Neither | Total distance ÷ total time | A real journey with varied stops |
The last row is the general case and the safest habit. Log the distance and time of every stage, add each column, and divide. The harmonic mean is a special case of that rule, which is why remembering the principle beats memorising the formula.
Fuel economy and unequal distances
The same logic governs any rate measured per unit of something consumed. A car does 12 km per litre in city driving and 20 km per litre on the highway. If a trip has 100 km of each, the fuel used is 100 ÷ 12 + 100 ÷ 20 = 8.33 + 5.00 = 13.33 litres for 200 km, so the average is 15 km per litre. The shortcut 2 × 12 × 20 ÷ 32 gives the same 15, while the plain average of 16 would flatter the car.
When distances are not equal, use total distance over total time directly. Suppose 60 km is covered at 30 km/h and 180 km at 90 km/h. The times are 2 h and 2 h, the total is 240 km in 4 h, and the average is 60 km/h. The harmonic shortcut, which assumes equal distances, would have given 45 km/h, so it applies only when each leg is the same length.
A good habit when a problem mentions two speeds is to ask what is held fixed. If it is distance, time must differ and the harmonic mean applies. If it is time, distance differs and the plain average applies. Everything else is total distance divided by total time.
Practical limits
Real roads add signals, gradients and traffic that change speed continuously, so the two-speed model is a simplification. It is still an excellent sanity check for trip planning and for reading speed claims such as the one on a fitness tracker, where an out-and-back run with a faster return may report a different average than the pace data suggests.
A general mean calculator can give you the arithmetic figure to compare against, and a trip-time tool can convert the resulting average into an arrival time. Neither replaces the key step of choosing the correct type of average for your data.
Common questions
How do you calculate average speed for a round trip?
Divide total distance by total time. For equal distances at two speeds, use 2ab ÷ (a + b). Going 120 km at 40 km/h and returning at 60 km/h takes 5 hours for 240 km, giving 48 km/h.
Why is average speed not the average of two speeds?
Because you spend more time at the slower speed. Speed is distance per time, so the leg taking longer carries more weight. Equal-distance legs give the harmonic mean, which is always lower than the plain average of the speeds.
What is the harmonic mean of 30 and 60?
The harmonic mean is 2 × 30 × 60 ÷ (30 + 60) = 3,600 ÷ 90 = 40. So a trip of equal distances at 30 and 60 km/h averages 40 km/h, not 45 km/h.
When does the arithmetic mean of speeds work?
It works when each speed is held for the same amount of time. One hour at 40 km/h followed by one hour at 60 km/h gives 100 km in 2 hours, so 50 km/h. Equal times, not equal distances, make the simple average valid.
Does the harmonic mean work for more than two speeds?
Yes. For n equal-distance legs, divide n by the sum of 1/speed for each leg. For 40, 50 and 60 km/h, that is 3 ÷ 0.06167, about 48.6 km/h. The legs must all cover the same distance.
Was this guide helpful?
Continue reading
View all blogsHow to Read a Percentile (and Find the 50th)
A percentile is a position, not a score. See how the nearest-rank method finds the 50th percentile of 20 marks (69) and how it differs from a percentage.
4 min read
Chi-Square Statistic: Computing χ² by Hand
χ² = Σ (observed − expected)² ÷ expected. A 30/70 split against an expected 50/50 gives χ² = 16, far beyond the 3.84 cut-off at the 5% level for 1 df.
4 min read
Coefficient of Variation: Compare Spread Fairly
The coefficient of variation is SD ÷ mean. A 50 g SD on 5 kg bags (1%) is steadier than a 4 g SD on 200 g packs (2%), despite the larger SD.
6 min read




