Average speed

Speed Calculator

Calculate average speed from distance and elapsed time, using kilometers and hours.

Distance and time

Enter distance traveled and elapsed time

km ÷ h
km
h
Average speed

Distance per hour

Your average speed will appear here

Enter a nonnegative distance and a positive elapsed time.

What Is Average Speed?

Average speed equals total distance divided by elapsed time. Enter distance in kilometers and time in decimal hours to get kilometers per hour. For example, 126.4 km over 1.6 hours gives an average speed of 79 km/h.

Use this speed calculator when you know how far a trip covered and how long that same trip took. It calculates one average for the chosen interval. It does not find a current speed from a sensor or solve for a missing distance or time.

How to Calculate Speed from Distance and Time

  1. Find the total distance traveled in kilometers. Use the route distance, including any return journey, rather than straight-line displacement.
  2. Find the duration for that same distance. Include stops when you want the average across the entire trip.
  3. Convert the duration to decimal hours. For 1 hour 36 minutes, enter 1 + 36 ÷ 60 = 1.6, not 1.36.
  4. Enter the distance and a positive time, then select Calculate average speed.
  5. Read the km/h result. Keep your original distance and time if you need to compare intervals or convert the answer later.

A zero distance is valid when time is positive. Blank or nonnumeric entries, negative distance and zero or negative time are rejected. The form uses kilometers and hours throughout; it has no input-unit menu.

If a trip crosses midnight, use the full duration rather than subtracting clock numbers without accounting for the date. For example, 23:40 to 00:25 the next day is 45 minutes, or 0.75 hours. Enter the duration, not either clock time.

Average Speed Formula

average speed in km/h = total distance in kilometers ÷ elapsed time in hours

decimal hours = whole hours + minutes ÷ 60 + seconds ÷ 3,600

For a duration containing hours and minutes, add the whole hours to minutes ÷ 60. Divide a seconds-only duration by 3,600. For example, 90 minutes is 1.5 hours, while 1.30 decimal hours is 1 hour 18 minutes.

The OpenStax explanation of speed defines average speed using distance over time and distinguishes it from instantaneous speed. Dividing kilometers by hours leaves km/h. The result describes the whole selected interval, even if the speed changed along the way.

Distance, Time and Speed Explained

Distance traveled in kilometers
Total path length during the chosen interval. Enter a nonnegative decimal kilometer value, including all relevant trip legs.
Elapsed time in hours
A positive decimal duration covering the same interval. Decide whether it includes stops before comparing averages.
Average speed in kilometers per hour
Distance divided by time, rounded to at most four decimal places. The main result card shows this average.

Distance and time must refer to each other. Combining a full route distance with only part of its duration gives a different, misleading average. The unit suffixes identify the fixed units; they are not selectors.

Average Speed Worked Example

Illustrative example. A hypothetical trip covers 126.4 km between 09:00 and 10:36 on the same day. The elapsed duration is 1 hour 36 minutes, or 1.6 hours. Enter 126.4 for distance and 1.6 for time.

126.4 ÷ 1.6 = 79 km/h. At a constant 79 km/h, the same distance would take the same total duration. This does not mean the trip stayed at 79 km/h every moment.

Calculation check. Independent decimal division and the calculator result agree. Multiplying 79 × 1.6 returns 126.4 km. Doubling the distance to 252.8 km while keeping 1.6 hours gives 158 km/h.

For a separate short-interval example, a hypothetical 2.5 km route takes 12 minutes 30 seconds. Prepare the duration as 12 ÷ 60 + 30 ÷ 3,600 = 0.208333… hours. Using that duration gives 12 km/h after four-decimal rounding. Include enough duration digits when entering a repeating decimal; an early time rounding can change the average.

Illustrative distance and time combinations with their average speeds
Distance in kmTime in hAverage in km/h
63.21.639.5
126.41.679
252.81.6158
126.43.239.5

Stops and Combined Trip Averages

Stops change the time basis of an average. For the same 126.4 km, 1.6 elapsed hours includes 12 minutes more than 1.4 moving hours. Label those two averages before comparing them.

Illustrative elapsed, moving and combined-trip averages
Distance in kmTime basisAverage in km/h
126.41.6 elapsed hours79
126.41.4 moving hours90.2857
1001.5 hours across two legs66.6667

For the combined example, travel 50 km at 50 km/h and another 50 km at 100 km/h. The first leg takes 1 hour and the second takes 0.5 hours. Total distance is 100 km and total time is 1.5 hours, so the average is 66.6667 km/h after rounding, not 75.

The slower equal-distance leg takes more time, so it contributes more to the total duration. This form has one distance and one time input: add your trip legs first, then enter those totals. It does not remove stops automatically.

How to Read Your Average Speed

Read the answer as distance per hour averaged across the entered duration. A result of 79 km/h does not predict the next hour of travel or describe acceleration. Different patterns of movement and stops can produce the same average.

Including stationary time lowers the average for a given distance. A moving average excludes that time. Both calculations can be useful, but label the duration consistently when comparing trips or tracker readings.

Speed uses total distance. Average velocity uses displacement and direction, as OpenStax distinguishes. A return to the starting point can have positive average speed and zero average velocity. This calculator reports speed only.

The result rounds to four decimal places and omits trailing zeros. Tiny positive speeds may display zero. Extra displayed digits do not improve the accuracy of a route estimate or time record; retain the source measurements.

Common Speed Calculation Mistakes

  • Entering 1.30 hours to mean 1 hour 30 minutes.
  • Using miles or meters in a field that expects kilometers.
  • Dividing by minutes without converting them to hours.
  • Combining a full trip distance with only part of the elapsed time.
  • Averaging two speed numbers without accounting for their durations.
  • Treating the trip average as an instantaneous speed reading.

Average Speed Questions

How do I calculate average speed?

Divide total distance by total time. On this page, use kilometers and decimal hours, so the result is kilometers per hour. For 126.4 km in 1.6 hours, the answer is 79 km/h.

How do I enter 1 hour 30 minutes?

Enter 1.5 hours: 1 + 30 ÷ 60 = 1.5. Entering 1.30 means 1.3 hours, which is only 1 hour 18 minutes.

When seconds are present, add seconds ÷ 3,600 to the decimal hours. Do not type a clock expression such as 1:30 into this numeric duration field.

Should I include stops in travel time?

Include stops for an average over the entire trip. Exclude them only when calculating a clearly labeled moving average. Use the same convention when comparing trips.

Can I average the speeds of two trip legs?

Add the distances and add the durations, then divide those totals. A simple arithmetic mean of the two speeds works for equal time intervals, but generally fails for equal distances traveled at different speeds.

Can this calculator find distance or travel time?

No. This form requires both distance and time and returns average speed. It does not provide a selector for finding a missing distance or duration.

Can I enter zero distance or zero time?

Zero distance with positive time returns 0 km/h. Time must be greater than zero because division by zero does not define an average speed.

Is average speed the same as average velocity?

No. Average speed uses total distance traveled. Average velocity uses displacement and a direction convention. A round trip can have positive average speed even when its displacement is zero.

How can I change the km/h result to m/s?

Divide the unrounded km/h value by 3.6, or use the related KM/H to M/S converter. Retain the original distance and time if the rounded result loses useful precision.

Sources and References