Speed, distance and time are linked by one of the simplest formulas in mathematics, yet the questions built on it trip people up constantly. The formula itself is rarely the problem. The mistakes come from mixing units, writing 2 hours 30 minutes as 2.30, or averaging two speeds that were not held for the same length of time.
This guide covers the three forms of the formula, the unit conversions you need, how to handle hours and minutes safely, the correct way to find an average speed across a whole journey, and the relative-speed trick for problems where two things move at once. Every example has been worked through numerically.
The formula and the triangle
Speed is distance covered per unit of time:
speed = distance ÷ time
distance = speed × time
time = distance ÷ speed
A common memory aid is the triangle with D on top and S and T side by side underneath. Cover the quantity you want: D is S × T (side by side means multiply), S is D over T, and T is D over S.
The formula gives average speed over the period. A car that covers 150 km in 2.5 hours averaged 60 km/h, even if it spent time stopped at lights and time at 100 km/h.
Units must match
The formula only works when the units agree. If speed is in kilometres per hour, distance must be in kilometres and time in hours. Mixing km/h with minutes, or miles with km/h, is the most common source of wrong answers.
Useful conversions:
| From | To | Multiply by |
|---|---|---|
| km/h | m/s | ÷ 3.6 |
| m/s | km/h | × 3.6 |
| km | miles | ÷ 1.609344 |
| nautical miles | km | × 1.852 |
| knots | km/h | × 1.852 |
The 3.6 comes from 1,000 metres per kilometre divided by 3,600 seconds per hour. So 90 km/h is 25 m/s: at motorway speed you travel 25 metres every second, a useful figure for thinking about following distances. One knot is one nautical mile per hour, which is why knots and nautical miles are used together at sea and in the air.
Hours and minutes: the 2.30 trap
Time written as hours and minutes is not a decimal. 2 hours 30 minutes is 2.5 hours, not 2.3.
- Correct: 150 km in 2 h 30 min is 150 ÷ 2.5 = 60 km/h.
- Wrong: 150 ÷ 2.3 ≈ 65.2 km/h.
To convert minutes to decimal hours, divide by 60: 45 minutes is 0.75 hours, 20 minutes is 0.333… hours. Going the other way, multiply the decimal part by 60: 2.6 hours is 2 hours plus 0.6 × 60 = 36 minutes.
Worked examples
Distance. A delivery van averages 80 km/h for 45 minutes. Distance = 80 × 0.75 = 60 km.
Time. A 260 km journey at an average of 100 km/h takes 260 ÷ 100 = 2.6 hours = 2 h 36 min, not 2 h 60 min.
Nautical. A boat making 12 knots for 3 hours covers 36 nautical miles, which is 36 × 1.852 ≈ 66.7 km.
Running. A marathon (42.195 km) in 3 h 30 min is an average of about 12.06 km/h. Runners usually prefer pace, the time per kilometre: 60 ÷ 12.06 ≈ 4.98 minutes, or about 4:59 per km. For more on pace and race predictions, see How to Calculate Running Pace.
Average speed over a whole journey
Average speed is total distance ÷ total time. It is not the average of the speeds, unless each speed was held for the same amount of time.
A trip covers 100 km on a motorway at 100 km/h, then 100 km on country roads at 50 km/h.
- Time on the motorway: 100 ÷ 100 = 1 hour.
- Time on country roads: 100 ÷ 50 = 2 hours.
- Average speed: 200 km ÷ 3 h ≈ 66.7 km/h, not 75 km/h.
The slower section takes longer, so it counts for more of the journey. Averaging speeds directly gives the right answer only when the times are equal, for example 1 hour at 100 km/h and 1 hour at 50 km/h, which does average 75 km/h.
A useful consequence: if you drive the first half of a distance slowly, no speed on the second half can bring the average up as much as you might expect, because the time already spent cannot be recovered.
Two moving objects: relative speed
When two things move at the same time, treat the gap between them as the distance and their relative speed as the speed.
Moving towards each other
Two trains start 300 km apart and travel towards each other at 80 km/h and 70 km/h. The gap shrinks at 80 + 70 = 150 km/h, so they meet after 300 ÷ 150 = 2 hours. In that time the first train covers 160 km and the second 140 km.
Catching up
A truck leaves a depot at 60 km/h. Half an hour later a car follows at 90 km/h. When the car starts, the truck is 60 × 0.5 = 30 km ahead. The car closes the gap at 90 − 60 = 30 km/h, so it catches up after 30 ÷ 30 = 1 hour, 90 km from the depot.
Solving it with the calculator
The Speed Distance Time Calculator solves for whichever quantity is missing.
- Choose Find speed, Find distance or Find time.
- Enter the two known values. Distance can be in kilometres, metres, miles, feet, yards or nautical miles. Speed can be in km/h, mph, m/s, ft/s or knots.
- Enter Time either as a number in the chosen unit (hours, minutes, seconds or days) or in clock format:
h:mm:ssormm:ss, such as 3:30:00. Clock format removes the 2.30 trap entirely. - Use Show speed in or Show distance in to pick the unit for the main answer.
The result lists the answer in every other unit too. When you find a speed, it also gives the pace per kilometre and per mile; when you find a time, it shows hours, minutes and seconds as well as a combined "2 h 36 min 0 s" style figure. The steps panel shows each unit conversion, so you can follow the arithmetic.
Other ways to work it out
- Mental arithmetic works well for round numbers: 60 km/h is 1 km per minute, so minutes and kilometres match.
- Spreadsheets handle times natively if you enter them as
2:30:00. Because a spreadsheet stores times as fractions of a day, multiply by 24 to get decimal hours:=A1/(B1*24)gives km/h when A1 is kilometres and B1 is a time. - Unit converters: for speed conversions alone, the km/h to mph converter and the general Unit Converter are quicker. For adding up journey legs given as clock times, the Time Duration Calculator helps.
Tips and pitfalls
Speed limits are not average speeds
The formula uses the average. Planned travel times based on the speed limit are almost always too short, because of junctions, traffic and stops.
Check the answer's size
A walking speed of 50 km/h or a car taking 40 hours for 200 km signals a unit mistake. Typical values: walking 4 to 6 km/h, cycling 15 to 25 km/h.
Keep full precision until the end
Rounding 20 minutes to 0.33 hours introduces small errors that grow over long distances. Use fractions (1/3) or seconds where you can.
Frequently asked questions
How do I calculate speed from distance and time?
Divide the distance by the time, making sure the units match. For example, 150 km in 2.5 hours is 60 km/h.
How do I convert minutes to hours for the speed formula?
Divide the minutes by 60. Forty-five minutes is 0.75 hours, so 2 hours 45 minutes is 2.75 hours.
Why isn't average speed the average of the two speeds?
Because you spend longer at the slower speed. Average speed is total distance divided by total time, which weights each speed by the time spent at it.
How do I convert km/h to m/s?
Divide by 3.6. For example, 72 km/h is 20 m/s. To go from m/s to km/h, multiply by 3.6.
What is the difference between speed and velocity?
Speed is how fast something moves; velocity is speed in a particular direction. For everyday travel problems the two are treated the same.