IQRCalculator

Speed, Distance and Time Calculator

Give any two of speed, distance and time and get the third — in mixed units if you like.

Find

Result

Travel time2 h 30 min
How it was calculated
  1. Formula
    t = d ÷ v = 150 miles ÷ 60 mph = 2.5 h

    Assumes a constant (average) speed over the whole trip.

How to use it

Choose what to find — time, distance or speed — and fill in the other two. Speed can be in km/h, mph, m/s or knots; distance in km, miles, meters or nautical miles; time in hours and minutes. Decimals are allowed, so 0.5 minutes is 30 seconds. The units do not have to match: everything is converted before solving.

The formula

distance = speed × time
time = distance ÷ speed
speed = distance ÷ time1 mph = 1.609344 km/h; 1 knot = 1 nautical mile per hour = 1.852 km/h; 1 m/s = 3.6 km/h — all exact

Worked examples

Travel time

Given: 150 miles at 60 mph

150 ÷ 60 = 2.5 hours = 2 h 30 min.

Distance covered

Given: 80 km/h for 2 h 30 min

80 × 2.5 = 200 km.

Average speed

Given: 240 km in 2 h 30 min

240 ÷ 2.5 = 96 km/h.

Mixed units

Given: 100 km at 50 mph

50 mph is 80.4672 km/h, so the time is 100 ÷ 80.4672 = 1.2427 hours = 1 h 14 min 34 s.

The average-speed trap

Average speed is the total distance divided by the total time — not the average of the speeds. Drive 60 km at 30 km/h and the same 60 km back at 60 km/h: that takes 2 h + 1 h = 3 h for 120 km, so the average is 40 km/h, not 45. You spend more time at the lower speed, so it weighs more. For two legs of equal distance, the correct average is the harmonic mean of the speeds.

Assumptions and display

  • The speed is taken as constant, or as the average over the whole trip. Stops, traffic and acceleration are not modeled, so for a real journey use an average speed that already allows for them.
  • Times are shown in hours, minutes and seconds, rounded to the nearest second. Distances and speeds are shown to 3 decimal places.
  • When finding time, the speed must be greater than zero; when finding speed, the time must be greater than zero. Distances can be zero or more.

For the cost of the same journey, see the fuel cost calculator.

Questions

How do I convert km/h to m/s?

Divide by 3.6, because 1 m/s is 3,600 m per hour. So 90 km/h is 25 m/s, and 10 m/s is 36 km/h.

What is a knot?

One nautical mile per hour. A nautical mile is exactly 1,852 m, so 1 knot = 1.852 km/h, about 1.15 mph. Knots are the standard speed unit at sea and in aviation.

How do I use a running pace such as 5 minutes per km?

Turn the pace into a speed first: 60 ÷ 5 = 12 km/h. Then find the time for any distance — 10 km at 12 km/h takes 50 minutes.