Home ↓
CalculatorsVerified

Math & Geometry

Average Speed Calculator for a Multi-Leg Journey

The average speed of a journey is the total distance travelled divided by the total time taken. When a trip is made of several legs at different speeds, it is tempting to average the speeds directly, but that gives the wrong answer whenever the legs take different amounts of time. Driving 60 kilometres at 60 km/h and then 60 kilometres at 40 km/h does not average 50 km/h: the first leg takes one hour and the second one and a half hours, so 120 kilometres take 2.5 hours, an average of 48 km/h. The slower leg counts for more because you spend longer on it. For legs of equal distance, the true average is the harmonic mean of the speeds, which is always lower than the simple arithmetic mean unless all the speeds are equal. This calculator lets you enter any number of legs, one per line, each with its distance and speed. It works out the time for each leg, adds up the distances and times, and divides one by the other to give the true average speed. It also shows the total time in hours and minutes, a table of the legs, and the simple average of the speeds so you can see how misleading it would be. Any units work as long as they match, such as kilometres with km/h, miles with mph or metres with metres per second. The same principle applies to running paces, cycling, flights and the fuel economy of mixed trips.

How to use this calculator

  1. Enter one leg per line as distance, then speed, such as 60, 40.
  2. Use matching units for every leg, for example kilometres and km/h.
  3. Add as many legs as the journey has.
  4. Read the true average speed and the total distance and time.
  5. Compare with the simple average of the speeds to see the difference.

The classic round-trip puzzle

A famous puzzle asks how fast you must drive back from a trip made at 30 mph to average 60 mph over the round trip. The answer is that it is impossible: the outward leg has already used all the time that 60 mph would allow.

This shows why time, not distance, is the weight in an average speed. Fast legs are over quickly and add little to the total time.

Including stops

This calculator measures moving time only. For a realistic journey average, add the time spent at stops to the total time shown, then divide the total distance by that longer time.

Planners often distinguish moving average speed, which ignores stops, from overall average speed, which includes them, and the second is what matters for arrival times.

Formula & method

Average speed = total distance ÷ total timeTime for each leg = distance ÷ speedFor equal distances, the average is the harmonic mean of the speeds, not the simple meanGoing 60 one way and 40 back averages 48, not 50

Average speed = Σ distance ÷ Σ (distance ÷ speed). For n legs of equal distance this is the harmonic mean n ÷ Σ(1 ÷ speed).

Worked example

60 km at 60 km/h, then 60 km at 40 km/h

  1. Time of leg 1 = 60 ÷ 60 = 1 h; leg 2 = 60 ÷ 40 = 1.5 h.
  2. Total distance = 120 km; total time = 2.5 h.
  3. Average speed = 120 ÷ 2.5 = 48 km/h.

Answer: The true average is 48 km/h, not the 50 km/h a simple average suggests.

Frequently asked questions

Why is the average not simply (60 + 40) ÷ 2?

Because you spend more time at the slower speed, so it weighs more in the average: equal distances at 60 and 40 average 48.

Can I use any units?

Yes, as long as distance and speed use matching units, such as km and km/h or miles and mph.

What is the harmonic mean?

It is the number of values divided by the sum of their reciprocals; for speeds over equal distances it gives the true average speed.

When is the simple average correct?

When each leg lasts the same amount of time rather than covering the same distance, the simple average of the speeds is the true average.

Can I enter decimals?

Yes, distances and speeds such as 12.5, 37.5 are accepted.

Does it work for running or cycling?

Yes, enter each segment’s distance and speed, or convert pace to speed first, for example a 5 min/km pace is 12 km/h.