The speed, distance and time formula
For anything moving at a constant (or average) speed, the three quantities are tied together by one equation:
Speed = distance ÷ time
Rearranging it gives the other two forms:
Distance = speed × time
Time = distance ÷ speed
A common memory aid is the DST triangle: write D on top and S and T below. Cover the quantity you want and the remaining two show how to combine them — side by side means multiply, one above the other means divide.
The only real trap is units. The distance unit inside the speed must match the distance you use, and the time unit inside the speed must match the time. Mixing kilometres with miles per hour, or minutes with km/h, is the most common source of wrong answers. This calculator converts everything to metres and seconds internally, so you can mix units freely.
Worked examples
Finding speed (the default): a drive of 120 miles takes 2 hours. Speed = 120 ÷ 2 = 60 mph, which is 96.56 km/h or 26.82 m/s. In kilometres the same numbers — 120 km in 2 hours — give 60 km/h.
Finding distance: a train travels at 300 km/h for 1 hour 45 minutes. Convert the time to hours (1.75 h), then distance = 300 × 1.75 = 525 km.
Finding time: a ship sails 90 nautical miles at 12 knots. Time = 90 ÷ 12 = 7.5 hours = 7 h 30 min. Knots are nautical miles per hour, so no conversion is needed.
Mixed units: a cyclist rides 18 km at 15 mph. Convert the speed first: 15 mph = 24.14 km/h, so time = 18 ÷ 24.14 = 0.746 h ≈ 44 min 44 s.
Unit conversions
All conversions use exact international definitions:
| Unit | Equals |
|---|---|
| 1 mile | 1.609344 km = 5,280 ft |
| 1 foot | 0.3048 m |
| 1 nautical mile | 1,852 m |
| 1 m/s | 3.6 km/h ≈ 2.237 mph |
| 1 mph | 1.609344 km/h ≈ 0.447 m/s |
| 1 knot | 1.852 km/h ≈ 0.514 m/s |
The results panel also shows the time per kilometre and per mile — the same idea as a runner's pace — and the conversions table lists the answer in every supported unit.
Average speed versus constant speed
Real journeys rarely run at one speed. Dividing total distance by total time gives the average speed, which already accounts for stops and slow sections. Note that you cannot average speeds directly: driving 60 km at 60 km/h and another 60 km at 120 km/h takes 1.5 hours in total, so the average is 120 ÷ 1.5 = 80 km/h, not 90 km/h. When planning trips, use a realistic average rather than the speed limit, and add time for breaks.
Frequently asked questions
How do I calculate travel time?
Divide the distance by the speed, making sure both use the same distance unit. 150 km at 100 km/h takes 1.5 hours, or 1 h 30 min.
How do I convert km/h to m/s?
Divide by 3.6. For example, 90 km/h ÷ 3.6 = 25 m/s. To go from m/s to km/h, multiply by 3.6.
What is a knot?
One nautical mile (1,852 m) per hour, about 1.15 mph. It is used at sea and in aviation.
Can I enter time in minutes only?
Yes. Leave hours at 0 and enter the minutes and seconds. Minutes are limited to 59, so enter 90 minutes as 1 hour 30 minutes.
Sources & references
Last reviewed: