How to Calculate Average Speed: Total Distance Over Total Time
Average speed is total distance over total time, not the mean of the speeds. See why 60 mph out and 40 mph back averages 48 mph, plus unit and pace tips.
Average speed is total distance divided by total time. If you drive 120 miles at 60 mph and then drive back the same 120 miles at 40 mph, the trip is 240 miles in 2 + 3 = 5 hours, so the average speed is 240 ÷ 5 = 48 mph, not the 50 mph you get by averaging 60 and 40. The slower leg takes more time, so it counts for more. Whenever the legs cover equal distances at different speeds, the right average is the harmonic mean, which this guide builds up from the basic definition.
The definition
Average speed = total distance ÷ total time. Nothing in that formula mentions the individual speeds. To use it, find the time for each leg (distance ÷ speed), add the times, and divide the total distance by the total time.
| Leg | Distance | Speed | Time |
|---|---|---|---|
| Out | 120 miles | 60 mph | 2 hours |
| Back | 120 miles | 40 mph | 3 hours |
| Whole trip | 240 miles | 48 mph average | 5 hours |
Finding the average of the two speeds gives 50 mph. At 50 mph, 240 miles would take 4.8 hours, 12 minutes less than the real trip took, so the figure cannot be right.
When a simple average works
A plain (arithmetic) mean of the speeds is correct only when each speed lasts for the same amount of time. Drive at 60 mph for one hour and 40 mph for one hour and you cover 100 miles in 2 hours: 50 mph, the arithmetic mean. The two cases differ because speed is distance per unit time. Equal times let you average the speeds directly; equal distances do not. For background on the ordinary mean, see the mean, median and mode guide.
If neither distance nor time is equal, go back to the definition. Drive 150 km at 100 km/h (1.5 hours) and then 90 km at 60 km/h (1.5 hours): 240 km in 3 hours is 80 km/h.
The harmonic mean for equal distances
For two legs of equal length at speeds a and b, the distance cancels out and the average speed is:
average speed = 2ab ÷ (a + b)
For more legs of equal length, divide the number of legs by the sum of the reciprocals: n ÷ (1/v₁ + 1/v₂ + … + 1/vₙ). Three equal legs at 30, 40 and 60 km/h give 3 ÷ (1/30 + 1/40 + 1/60) = 3 ÷ (9/120) = 40 km/h, while the arithmetic mean would be 43.3.
The table compares the two averages for equal-distance round trips.
| Out | Back | True average | Arithmetic mean | Overstatement |
|---|---|---|---|---|
| 30 | 60 | 40.00 | 45.00 | 5.00 |
| 40 | 60 | 48.00 | 50.00 | 2.00 |
| 20 | 80 | 32.00 | 50.00 | 18.00 |
| 50 | 70 | 58.33 | 60.00 | 1.67 |
| 55 | 65 | 59.58 | 60.00 | 0.42 |
| 60 | 120 | 80.00 | 90.00 | 10.00 |
| 10 | 90 | 18.00 | 50.00 | 32.00 |
| 60 | 60 | 60.00 | 60.00 | 0.00 |
The true average is always below the arithmetic mean unless the two speeds match, and the gap widens as the speeds move apart. The 10 and 90 row shows the extreme: the slow leg takes nine times as long as the fast one, so the trip average sits near the slow speed.
Unit pitfalls
Keep distance and time in matching units before dividing. The exact conversions are:
| Quantity | Equivalent |
|---|---|
| 1 mph | 1.609344 km/h (the international mile is exactly 1,609.344 m) |
| 1 m/s | 3.6 km/h |
| 1 m/s | about 2.2369 mph |
| Speed | km/h | m/s |
|---|---|---|
| 30 mph | 48.28 | 13.41 |
| 48 mph | 77.25 | 21.46 |
| 60 mph | 96.56 | 26.82 |
| 70 mph | 112.65 | 31.29 |
For other conversions, use the speed converter. Three mistakes show up repeatedly:
- Mixing units across legs. Convert every leg to one unit first, then average.
- Treating minutes as decimals. 1 hour 30 minutes is 1.5 hours, not 1.30. Covering 150 miles in 1.5 hours is 100 mph; using 1.30 gives 115.38 mph, which is wrong. Likewise 2 hours 45 minutes is 2.75 hours, so 99 miles in that time is 36 mph.
- Mean of speeds when distances are equal. Use total distance over total time.
Pace versus speed
Pace is time per distance (minutes per kilometer or per mile), the reciprocal of speed. Runners often use pace, and the two convert as speed = 60 ÷ pace in minutes, or 3,600 ÷ pace in seconds.
| Pace (per km) | Speed (km/h) | Speed (mph) | Pace (per mile) |
|---|---|---|---|
| 10:00 | 6 | 3.73 | 16:06 |
| 7:30 | 8 | 4.97 | 12:04 |
| 6:00 | 10 | 6.21 | 9:39 |
| 5:00 | 12 | 7.46 | 8:03 |
| 4:00 | 15 | 9.32 | 6:26 |
Pace values in the last column are rounded to the second. Because pace is already time per distance, the arithmetic mean of paces is correct for equal distances. Run two equal stretches at 5:00 per km and 6:00 per km and your average pace is 5:30 per km, which is 10.909 km/h. That matches the harmonic mean of 12 and 10 km/h (2 × 12 × 10 ÷ 22 = 10.909) and not their arithmetic mean of 11 km/h. A 10 km run in 50 minutes is a pace of 5:00 per km and a speed of 12 km/h.
Which tool for which question
If you know the legs, the average speed calculator totals distance and time for you and shows why the result differs from the mean of the speeds. If you know two of distance, speed and time and want the third, the speed, distance and time calculator handles it. For running splits and finish times, use the pace calculator.
Every figure above was computed in Python with exact fractions, using the exact definition of the international mile; the formulas are standard.
Updated 2026-11-04