Speed, Distance & Time Calculator

Enter any two of speed, distance and time, in the units you have, and get the third — in the unit you choose, with every step worked through.

Your details

Distance in kilometres

120 km

Distance in metres
1,20,000 m
Distance in miles
74.56454 mi

Visual breakdown

  • DistanceCalculated120 kmd = s × t
  • TimeEntered2 h
  • SpeedEntered60 km/h

  1. 1

    Convert the speed to metres per second

    m/s = km/h × 1,000 ÷ 3,600

    = 60 × 1,000 ÷ 3,600

    = ≈ 16.66666667 m/s

  2. 2

    Convert the time to seconds

    s = h × 3,600

    = 2 × 3,600

    = 7,200 s

  3. 3

    Work out the distance from the speed and the time

    d = s × t

    = 16.66666667 × 7,200

    = 1,20,000 m

  4. 4

    Convert the distance to kilometres

    km = m ÷ 1,000

    = 1,20,000 ÷ 1,000

    = 120 km

    Figures marked ≈ are shown to 10 significant figures; the calculation carries every digit.

What this calculates

Choose what you want to find — a distance, a time or a speed — and the unit you want it in, then enter the other two in whatever units you have. This works out the third, with each conversion and the formula shown step by step, and gives the answer in its other units too. A time is also shown in hours, minutes and seconds.

Distances can be in metres, kilometres or miles, times in seconds, minutes or hours, and speeds in metres per second, kilometres per hour or miles per hour. Combinations with no real answer, such as a distance covered in no time, are refused rather than shown as infinity.

The formula

One relationship ties the three quantities together.

Distance

d = s × t

Rearranged, it gives the other two.

Speed

s = d ÷ t

Time

t = d ÷ s

The units have to agree, so every calculation goes through metres, seconds and metres per second, using exact factors.

Distance

1 km = 1,000 m · 1 mi = 1,609.344 m

Time

1 min = 60 s · 1 h = 3,600 s

Speed

1 km/h = 1,000 ÷ 3,600 m/s · 1 mph = 1,609.344 ÷ 3,600 m/s

A conversion such as 60 km/h to metres per second does not come out as a terminating decimal. The working shows such a figure to ten significant figures, marked ≈, while the calculation itself carries every digit.

Worked example

Ask any other way round and the same journey comes back. Given 120 km and 2 h, the speed is 60 km/h; given 120 km at 60 km/h, the time is 2 h.

Not every answer comes out round. 26.2 mi at 6 mph takes 42,164.8128 m ÷ 2.68224 m/s = 15,720 s, which is 4.366667 h, or 4 h 22 min.

When to use it, and the mistakes to avoid

Use it when planning how long a journey or a run will take, when working out an average speed from a distance and a time, when checking how far you will get at a given speed, and when a figure is given in units you do not think in.

The mistakes that cost the most:

  • Mixing units, or writing minutes as a decimal of an hour. At 60 km/h, 30 minutes covers 30 km, because 30 min is 0.5 h. Typing it as 0.30 h gives 18 km — 0.30 h is only 18 minutes. Enter the time in minutes and choose minutes as its unit, and the calculator converts it for you.
  • Reading decimal hours as hours and minutes. 4.366667 h is 4 h 22 min, not 4 h 37 min: the part after the point is a fraction of an hour, and 0.366667 of an hour is 22 minutes. That is why the time is also shown in hours, minutes and seconds.
  • Averaging two speeds to get the average speed. Drive 60 km at 60 km/h (1 h) and another 60 km at 30 km/h (2 h), and you cover 120 km in 3 h: an average of 40 km/h, not 45 km/h, the average of 60 and 30. The slower leg takes longer, so it counts for more. Work out the total distance and the total time, then divide.
  • Getting the m/s and km/h factor the wrong way round. Metres per second to kilometres per hour is × 3.6: 10 m/s is 36 km/h. Going the other way is ÷ 3.6: 60 km/h is 16.66667 m/s. Use the wrong one and the answer is far too small or far too large.
  • Expecting an answer from zero time or zero speed. A distance in no time would need unlimited speed, and at zero speed the time would be unlimited, so the calculator refuses both and says why. It also refuses a negative value: speed here is how fast, not which way, and a distance or a time cannot be negative.
  • Treating the answer as the whole story of a journey. d = s × t assumes one steady speed, or an average over the whole trip. A real journey speeds up, slows down and stops, so the figures here describe the average, not every moment.

FAQ

How do I calculate speed from distance and time?

Divide the distance by the time: s = d ÷ t. So 100 km in 1.25 h is 100 ÷ 1.25 = 80 km/h, and 100 m in 9.58 s is 10.43841 m/s, or 37.57829 km/h. Choose the speed, in the unit you want, and enter the distance and time in the units you have.

How do I calculate time from distance and speed?

Divide the distance by the speed: t = d ÷ s. So 90 km at 60 km/h takes 1.5 h — 1 h 30 min — and 26.2 mi at 6 mph takes 4.366667 h, which is 4 h 22 min. The calculator shows the time in hours, minutes and seconds as well as in the unit you chose.

How do I calculate distance from speed and time?

Multiply the speed by the time: d = s × t. So 60 km/h for 2 h is 120 km, and 60 km/h for 30 min is 30 km. The speed and time can be in different units — the calculator converts both before multiplying.

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

Multiply by 3.6, because 1 m/s is 3,600 m in an hour, which is 3.6 km. So 10 m/s is 36 km/h, and going the other way, divide by 3.6: 60 km/h is 16.66667 m/s.

How do I convert km/h to mph?

Divide by 1.609344, the number of kilometres in a mile. So 60 km/h is 37.28227 mph, and 60 mph is 96.56064 km/h. A mile is exactly 1,609.344 m, so every conversion here is exact until it is rounded for display.

Why won't it calculate with zero time or zero speed?

Because there is no finite answer. Covering a distance in no time at all would need unlimited speed, and at a speed of zero a distance is never covered, so the time would be unlimited. If both known values are zero, the third could be anything. The calculator says which case it is instead of returning infinity.

Related calculators