Formula and calculation method
Divide distance in kilometers by elapsed time in hours.
Worked example
| Input | Example 1 | Example 2 |
|---|---|---|
| Distance (km) | 150 | 150 |
| Time (hours) | 3 | 2.5 |
| Result | 50 km/h | 60 km/h |
How to use the result
This implementation solves for speed only, not distance or time. Use distance in kilometres and duration in hours; the result is kilometres per hour.
How does a stop affect average speed?
Use total elapsed time including stops for door-to-door average speed. Use moving time for average speed while in motion. Check whether your distance is in kilometers before reading the km/h result.