Average Speed for Trips with Multiple Legs
By Prince Yadav, Founder & Lead Developer.
Use total distance divided by total time
For a trip with multiple legs, average speed is total distance divided by total elapsed travel time. Do not simply average the speeds unless the time spent at each speed makes that shortcut valid.
Worked example
Travel 60 km at 30 km/h and the next 60 km at 60 km/h. The legs take 2 hours and 1 hour, respectively, so total distance is 120 km, total time is 3 hours, and average speed is 40 km/h.
Why a simple speed average can mislead
The arithmetic average of 30 and 60 is 45 km/h, but the vehicle spends more time on the slower leg in this example. The correct journey average is 40 km/h.
Include the time you intend to measure
Decide whether the total should include stops, traffic delays, or only moving time. The definition should match the question you want to answer.
Use this calculator for one relationship at a time
The speed-distance-time tool solves a basic relationship when the needed two values are known. For a multi-leg journey, first total the distances and times, then divide the totals.
Worked example: average speed uses total distance and total time
Suppose a trip covers 60 km in 1 hour and then 40 km in 1 hour. Total distance is 100 km and total time is 2 hours, so average speed is 50 km/h. Averaging the two leg speeds is only valid in special cases; the reliable method is total distance divided by total elapsed travel time.
Include the time that belongs to the trip
Decide whether stops, traffic delays, transfers, or waiting time count. For a driving average over the whole journey, include elapsed time across the defined start and finish; for moving speed, exclude stops only if that is explicitly the intended metric. Keep distance units and time units consistent before dividing.
Sanity-check the result against the trip
The average speed for the whole trip should equal total distance divided by total elapsed time. If one leg is much slower, the overall average is influenced by how long that leg took, not simply by the number of legs. Check that stops are either consistently included or consistently excluded.
Apply this guide to a practical case
This guide explains why total distance divided by total elapsed time is the correct overall average across legs. The paired article applies that math to practical trip planning.
Related Calculators
Use the Calculator
Try the worked-example inputs in Speed Distance Time Calculator, then change one assumption at a time to see what drives the result.
Open Speed Distance Time Calculator