Skip to main content
ponderloop

Average Speed Calculator

60 miles at 30 mph and then 60 miles at 60 mph average 40 mph, not the 45 mph you get by averaging the two speeds: average speed is total distance ÷ total time (120 mi in 3:00:00), and the slow leg takes 2:00:00 against 1:00:00 for the fast one. For a single trip it is just as direct: 150 miles in 2:30:00 is 60 mph. Enter a total distance and time, or any number of legs as distance and speed or distance and time, in mph, km/h or m/s. The tool shows the working, a leg-by-leg table and how far the plain mean of the speeds is off.

Updated Runs in your browser: nothing you enter is uploadedHow this tool works

One leg per line: its distance, then its speed, such as 60, 30. Separate with a comma, a space or @; write the unit only in the menus above.

Average speed 40 mph

120 mi in 3:00:00 over 2 legs is an average of 40 mph. The plain mean of the leg speeds, 45 mph, is 12.5% too high.

Average speed (mph)
40
Average speed (km/h)
64.37376
Average speed (m/s)
17.8816
Total distance (mi)
120
Total time
3:00:00
Total time in hours
3
Legs
2
Plain mean of the leg speeds (mph)
45
Plain mean against the average
+12.5% (too high)

The legs are all the same distance, so the average speed is the harmonic mean of their speeds, not the ordinary mean.

The working

  1. Time on each leg = distance ÷ speed (see the table).
  2. Total distance = 120 mi. Total time = 3:00:00.
  3. Average speed = total distance ÷ total time = 120 mi ÷ 3 h = 40 mph.
  4. The plain mean of the leg speeds is 45 mph, 12.5% too high: it ignores that the legs take different times.

Leg by leg

LegDistanceSpeedTime
Leg 160 mi30 mph2:00:00
Leg 260 mi60 mph1:00:00
Total120 mi40 mph3:00:00

Equal distances at two speeds: the true average

Each row is two legs of 60 miles, driven at the two speeds shown (mph). The figures are the calculator’s own answers; ≈ marks a value rounded to 4 decimals.
First leg (mph)Second leg (mph)Plain mean (mph)True average (mph)Plain mean is
30604540+12.5% (too high)
40605048≈ +4.1667% (too high)
506055≈ 54.5455≈ +0.8333% (too high)
30906045≈ +33.3333% (too high)
20805032+56.25% (too high)
556560≈ 59.5833≈ +0.6993% (too high)
1010055≈ 18.1818+202.5% (too high)

Which average goes with which trip

The right average depends on what the legs have in common. Each result is the calculator’s own answer for the example in the fourth column.
TripWhat is equalAverage speed isExampleResult
The same distance at each speed (a round trip)The distancesThe harmonic mean of the speeds30 and 60 mph over equal distances40 mph
The same time at each speedThe timesThe ordinary mean of the speeds30 and 60 mph for an hour each45 mph
Different distances and different timesNothingTotal distance ÷ total time10, 30 and 20 km at 40, 60 and 20 km/h≈ 34.2857 km/h
A total distance and a total timeNot neededTotal distance ÷ total time150 miles in 2:30:0060 mph
A trip with a stopNot neededTotal distance ÷ total time, the stop included60 mi in 2 h, 30 min stop, 90 mi in 1.5 h37.5 mph

Speed needed on a second leg to reach a target average

The first leg is 30 mph and the second leg is the same distance. The last column runs the two legs through the calculator to check the target.
Target average (mph)Speed needed on the second leg (mph)Average of the two legs (mph)
354235
406040
459045
5015050
5533055
591,77059
60Impossible: no speed is enoughNone

Average speed for common distances and times

Miles per hour for a trip of the distance in the first column and the time at the top (h:mm:ss). Each figure is the calculator’s own answer; ≈ marks a value rounded to 4 decimals.
Distance1:00:001:30:002:00:002:30:003:00:004:00:00
50 mi50≈ 33.33332520≈ 16.666712.5
100 mi100≈ 66.66675040≈ 33.333325
150 mi15010075605037.5
200 mi200≈ 133.333310080≈ 66.666750
300 mi30020015012010075

Average speed worked examples

Each answer is the calculator’s own headline for the question in the first column.
QuestionCalculate fromAnswer
A car drives 150 miles in 2 hours 30 minutesTotal distance and total timeAverage speed 60 mph
60 miles at 30 mph, then 60 miles at 60 mphLegs: distance and speedAverage speed 40 mph
One hour at 30 mph, then one hour at 60 mphLegs: distance and timeAverage speed 45 mph
A round trip: 100 km out at 80 km/h, 100 km back at 120 km/hLegs: distance and speedAverage speed 96 km/h
10 km at 40 km/h, 30 km at 60 km/h, then 20 km at 20 km/hLegs: distance and speedAverage speed ≈ 34.2857 km/h
60 miles in 2 hours, a 30 minute stop, then 90 miles in 1 hour 30 minutesLegs: distance and timeAverage speed 37.5 mph
A 5 km run in 25 minutesTotal distance and total timeAverage speed 12 km/h
A 400 m lap in 1 minute 20 seconds, in metres per secondTotal distance and total timeAverage speed 5 m/s

How to calculate average speed

  1. Choose what you know. Pick “Total distance and total time” for one trip, “Several legs: distance and speed” when each part of the trip had its own speed, or “Several legs: distance and time” when you know how long each part took.
  2. Pick the units. Choose miles, kilometres or metres for distances, and mph, km/h or m/s for the answer (and for the speeds you type). The units mix exactly: 160.9344 km in 1:00:00 is 100 mph.
  3. Enter the trip. For legs, type one per line, distance first: “60, 30” is 60 miles at 30 mph. Times are h:mm:ss (2:30:00) or use units (1h 30m); 25 minutes is 0:25:00. A stop is a leg with distance 0. Up to 50 legs.
  4. Read the average speed. The result is total distance ÷ total time: 120 mi ÷ 3 h = 40 mph. The table lists every leg, and the plain mean of the speeds, 45 mph here, is shown beside it so you can see how far off the shortcut is.
  5. Copy or change the rounding. Results are exact fractions until they are displayed. Choose how many decimals to show, then copy the results. At 2 decimals the three-leg example reads ≈ 34.29 km/h.

Frequently asked questions

How do you calculate average speed?
Divide the total distance by the total time: average speed = total distance ÷ total time. For 150 miles in 2:30:00 the time is 2.5 hours, so the average speed is 150 ÷ 2.5 = 60 mph, which is 96.56064 km/h or 26.8224 m/s. Choose “Total distance and total time” in the menu, type the distance and the time as h:mm:ss, and read the answer in all three units.
Why is average speed not the average of the speeds?
Because you spend different amounts of time at each speed. 60 miles at 30 mph takes 2:00:00; 60 miles at 60 mph takes 1:00:00. The trip is 120 mi in 3:00:00, an average of 40 mph. Averaging 30 and 60 gives 45 mph, which would be right only if you drove each speed for the same time, and it is 12.5% too high. The slower leg lasts longer, so it pulls the average toward 30.
How do you find the average speed of a round trip?
When both legs cover the same distance, use the harmonic mean of the two speeds: 2 × a × b ÷ (a + b). A trip of 100 km out at 80 km/h and 100 km back at 120 km/h averages 96 km/h, not the 100 km/h of the plain mean: the two legs take 1:15:00 and 0:50:00, 200 km in 2:05:00. The “Equal distances at two speeds” table above gives the true average for more pairs. Enter the legs as “100, 80” and “100, 120”; the note under the result names the harmonic mean when it applies.
When is the plain average of two speeds correct?
When the legs take the same time, not the same distance. One hour at 30 mph and one hour at 60 mph covers 90 mi in 2:00:00, an average of 45 mph, which is the ordinary mean of 30 and 60. It is also correct when every leg has the same speed. The calculator says which case you are in under the result, and shows “No difference” for the plain mean when the legs take equal time.
How do I find the average speed when the distances and times all differ?
Add up every distance, add up every time, and divide: each speed counts in proportion to the time spent at it. For 10 km at 40 km/h, 30 km at 60 km/h and 20 km at 20 km/h the legs take 0:15:00, 0:30:00 and 1:00:00, so 60 km takes 1:45:00 and the average is ≈ 34.2857 km/h. The plain mean of the three speeds is 40 km/h, which is too high by ≈ 16.6667%. The plain mean can also be too low: 300 miles at 100 mph and 10 miles at 10 mph averages 77.5 mph, while the plain mean is 55 mph, too low by ≈ 29.0323%.
What speed do I need on the second half to reach a target average?
Work out the total time the target allows, subtract the time already used, and divide the remaining distance by what is left. After a first half at 30 mph, an average of 40 mph needs 60 mph on the second half, 45 mph needs 90 mph and 59 mph needs 1,770 mph. An average of 60 mph is impossible: the first half alone already uses all the time that 60 mph allows, so no speed on the second half is enough. With two legs of equal distance the target must stay below twice the first speed. The “Speed needed on a second leg” table shows more targets, each checked by the calculator.
How do stops change the average speed?
A stop adds time and no distance, so it lowers the average. Enter it as a leg with distance 0 in “Several legs: distance and time”. Driving 60 mi in 2:00:00, stopping for 0:30:00 and then driving 90 mi in 1:30:00 averages 37.5 mph over the whole trip, while the speed while moving is ≈ 42.8571 mph. The speed, distance and time calculator solves for time or distance and also gives an arrival time; this page is for averaging several legs.
What is the difference between average speed and average velocity?
Average speed is the distance travelled divided by the time, whatever the route. Average velocity is the displacement, the straight-line change in position, divided by the time, and it has a direction. A round trip that ends where it began has a displacement of 0, so its average velocity is 0 even though the example above has an average speed of 40 mph. This calculator finds average speed.
How do I type the time?
Use h:mm:ss with all three parts (2:30:00 is two and a half hours) or units: 2h 30m, 90m, 1.5 hours, 45s. A time with one colon, such as 1:30, is refused because it could mean hours and minutes or minutes and seconds. A bare number is refused for the same reason. The 5 km run above is 0:25:00 and gives 12 km/h; a 400 m lap in 0:01:20 is 5 m/s.
How are mph, km/h and m/s converted?
Exactly: a mile is 1.609344 km, an hour is 3,600 s, so 1 mph = 0.44704 m/s and 1 km/h is ≈ 0.2778 m/s. Forty miles in one hour is 40 mph and also 64.37376 km/h or 17.8816 m/s. The distance unit and the speed unit are separate menus, so 160.9344 km in one hour is 100 mph with no rounding error.
How is the answer rounded?
Only the display is rounded. The tool keeps every value as an exact fraction, so an average such as 60 km ÷ 1.75 h is exactly 240/7 km/h and is shown as ≈ 34.2857 km/h, with ≈ to mark that it is rounded. Automatic shows a value in full when it ends within 6 decimals and otherwise rounds to 4 decimals; choosing 2 decimals gives ≈ 34.29 km/h. Times are shown to the hundredth of a second.
How is this different from the speed, distance and time calculator?
That calculator takes any two of speed, distance and time for one trip and returns the third, with stops and an arrival time. This one averages: it takes several legs, each with its own speed or time, and returns the one speed that covers the same total distance in the same total time. Use that page to find how long a drive takes at a given speed, and this one when the speed changes along the way.

How it works

Every number you type is read as an exact decimal, a fraction of two whole numbers, and combined with exact + − × ÷; only the display is rounded, half away from zero, once at the end. Average speed is total distance ÷ total time, where the total time is the sum of the leg times (stops included). For a leg given as distance d and speed v the time is d ÷ v; for a leg given as distance d and time t the speed is d ÷ t. Equivalently the average speed is the mean of the leg speeds weighted by time, Σ(v × t) ÷ Σt. When all legs have the same distance this is the harmonic mean of the speeds, n ÷ Σ(1 ÷ v); when all legs take the same time it is the ordinary mean, Σv ÷ n. The “plain mean” row is Σv ÷ n for the legs that cover distance; it is compared with the true average as (mean ÷ average − 1) × 100. Units are converted through metres and seconds: 1 mile = 1,609.344 m exactly (the international mile, 0.3048 m × 5,280), 1 km = 1,000 m, 1 hour = 3,600 s, so 1 mph = 1,609.344 ÷ 3,600 m/s, 1 km/h = 1,000 ÷ 3,600 m/s and 1 m/s = 1 m/s. The speed needed on a second leg to reach a target average A after a first leg d₁ at v₁ is d₂ ÷ ((d₁ + d₂) ÷ A − d₁ ÷ v₁), and does not exist when that time is not above zero. Times are h:mm:ss (minutes and seconds below 60, seconds may have decimals) or numbers with h, m and s units; one colon and a bare number are refused as ambiguous. Up to 50 legs; distances and speeds must be above zero, except that in the distance-and-time mode a leg may have distance 0 (a stop) and the legs must add up to some distance. Times display as h:mm:ss rounded to the hundredth of a second. The tool does arithmetic only: real journeys also depend on traffic, route and speed limits.

Sources

Guides

More: Percent, fractions and arithmeticAll math & numbersAll toolsHome & DIY calculators