Speed Distance Time

Speed distance time calculator: find speed, distance or travel time from the other two values, in km, hours and km/h, to four decimal places.

Runs in your browser. Files never leave your device.
Solve For

Formula: Distance ÷ Time

Select what to solve and enter values

About the Speed Distance Time

Solve speed, distance or time when you know the other two. Choose Find Speed, Find Distance or Find Time, enter the two values you have, and the speed distance time calculator gives the answer to four decimal places. It covers journey times on a road trip, a runner's or cyclist's average speed, and physics homework built on the speed triangle.

The boxes are labelled in kilometres, hours and kilometres per hour, and the answer carries a km/h, km or hours label. Time is entered in decimal hours, so 1 hour 30 minutes is 1.5; the table below lists common minute values.

The speed, distance and time formulas

Speed is how far you travel in a unit of time. Rearrange that one relationship and you get all three formulas; the calculator uses the one that matches the mode you pick:

Speed    = Distance ÷ Time     (km ÷ hours = km/h)
Distance = Speed × Time        (km/h × hours = km)
Time     = Distance ÷ Speed    (km ÷ km/h = hours)

Distance in kilometres, time in decimal hours, speed in km/h

Picture a triangle with distance on top and speed and time underneath: cover the one you want and the other two show the calculation. The answer is the average speed over the whole trip, not the speed at any single moment.

The arithmetic is the same in any consistent set of units. Miles with hours give an answer in miles per hour, and metres with seconds give metres per second, even though the label still reads km/h. Don't mix them: kilometres with minutes gives kilometres per minute.

Assumptions and limits

  • Both values must be greater than 0. A blank, zero or negative entry shows 'Enter valid positive values'.
  • Time is in decimal hours. Divide minutes by 60: 45 minutes is 0.75 hours and 2 hours 20 minutes is 2.3333 hours.
  • The result is rounded to 4 decimal places. A Find Time answer of 4.6667 hours means 4 hours and 0.6667 × 60 = 40 minutes.
  • The answer assumes a steady or average speed; it doesn't allow for stops, traffic or acceleration.
  • Switching mode clears the answer but keeps the numbers in the boxes, and their meaning changes: the first box is distance for Find Speed but speed for Find Distance. Check both boxes and press Calculate again.

Worked examples

Average speed of a drive

A 150 km drive that took 2 hours, with Find Speed.

Speed = 150 ÷ 2 = 75.0000 km/h

Distance covered in 2 hours 45 minutes

At 80 km/h for 2.75 hours (45 ÷ 60 = 0.75), with Find Distance.

Distance = 80 × 2.75 = 220.0000 km

How long a 420 km trip takes

At an average of 90 km/h, with Find Time. The answer of 4.6667 hours is 4 hours plus 0.6667 × 60, about 40 minutes.

Time = 420 ÷ 90 = 4.6667 hours ≈ 4 h 40 min

Minutes to decimal hours

Time goes into the calculator in hours. Use these values, or divide the minutes by 60.

TimeDecimal hours
6 minutes0.1
10 minutes0.1667
15 minutes0.25
20 minutes0.3333
30 minutes0.5
40 minutes0.6667
45 minutes0.75
1 hour 15 minutes1.25
1 hour 30 minutes1.5
2 hours 20 minutes2.3333

How to use the Speed Distance Time

  1. Choose what to solve for. Find Speed, Find Distance or Find Time; the formula in use is shown under the buttons.
  2. Enter the two known values. Distance in km, speed in km/h and time in decimal hours, all above 0.
  3. Press Calculate. The answer appears with its unit, to 4 decimal places. After changing a value, press Calculate again.

Frequently asked questions

How do you calculate speed from distance and time?

Divide the distance by the time. A cyclist who rides 36 km in 1 hour 30 minutes (1.5 hours) averages 36 ÷ 1.5 = 24 km/h. Keep the time in hours if you want km/h; dividing 36 by 90 minutes would give kilometres per minute instead.

How do I work out travel time?

Divide the distance by your average speed, then turn the decimal part into minutes by multiplying it by 60. 250 km at 100 km/h is 2.5 hours, or 2 hours 30 minutes. Allow extra time for stops, since the formula assumes you keep moving at that average.

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

Divide km/h by 3.6 to get metres per second, so 72 km/h is 20 m/s, and multiply m/s by 3.6 to go back. For miles per hour, divide km/h by 1.609: 100 km/h is about 62.1 mph.

Can I use miles instead of kilometres?

Yes, as long as the speed is in miles per hour and the time in hours. The formulas don't depend on the unit, so 180 miles in 3 hours gives 60, which means 60 mph, although the label beside the answer still says km/h.

Why isn't average speed the average of the two speeds?

Because average speed is total distance divided by total time, and the slower part of a trip takes up more of that time. Driving 60 km at 60 km/h (1 hour) and another 60 km at 120 km/h (0.5 hours) covers 120 km in 1.5 hours. That's an average of 80 km/h, not 90.

What's the difference between speed and velocity?

Direction. Speed only says how fast something moves; velocity also says which way. A car going round a circular track at a steady 50 km/h has a constant speed but a changing velocity. This calculator works with speed and distance travelled, not direction or displacement.

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.