Speed, distance and time calculator
Solve for travel time, average speed or distance. Mix kilometres, miles, metres and nautical miles with km/h, mph, m/s and knots.
Input
Tip: press Ctrl + Enter to run
Saved settings
About this tool
Speed, distance and time are linked by one formula (distance = speed × time) but mixing units makes it easy to slip. This calculator solves for whichever of the three you do not know and accepts kilometres, miles, metres and nautical miles with km/h, mph, m/s and knots. It shows the answer in several units at once, which is handy for travel planning, physics homework, sailing, running and cycling.
How to use it
- Choose what to calculate: time, speed or distance.
- Enter the two values you know with their units (the third field is ignored).
- For time, enter hours, minutes and seconds.
- Run it to see the result in several units.
How the calculation works
Everything is converted to metres and seconds. Time = distance ÷ speed; speed = distance ÷ time; distance = speed × time. Results are converted back (1 mph = 1.609344 km/h, 1 kn = 1.852 km/h, 1 m/s = 3.6 km/h).
time = distance ÷ speed · speed = distance ÷ time · distance = speed × timeWorked example
A runner finishes 26.2 miles in 3 hours 45 minutes. Solving for speed gives 6.99 mph (11.24 km/h, 3.12 m/s or 6.07 knots) and confirms the distance as 42.165 km. A 300 km drive at 100 km/h, solved for time, takes 3 hours.
Sample input and result
Calculate: Time Distance: 300 Distance unit: Kilometres (km) Speed: 100 Speed unit: km/h Hours: 0 Minutes: 0 Seconds: 0 → Time: 3 hrs (3:00:00) → Speed: 100 km/h · 62.14 mph → Speed in m/s and knots: 27.78 m/s · 54 kn → Distance: 300 km · 186.411 mi
Limitations
- Constant (average) speed.
- No acceleration or relativistic effects.
- Time entry is limited to hours, minutes and seconds.
Last updated:
Frequently asked questions
How do I get average speed for a trip with stops?
Use the total distance and the total elapsed time including stops; for moving speed, exclude stop time.
What is a knot?
One nautical mile per hour, about 1.852 km/h.
Why does my car’s trip computer differ?
It may measure moving time only, and speedometers usually read slightly high.
Troubleshooting
The answer is 0.
Fill in the two known values; the field you are solving for is ignored.
Minutes above 59 are rejected.
Convert extra minutes into hours.
Running pace is easier for me.
Use the pace calculator for minutes per kilometre or mile.
Privacy & Free to use
Are my inputs stored?
Your inputs stay in this tab. We do not receive your files, pasted text or calculation values.
Is this tool free?
Yes. No signup or payment is required.
See also
Useful next steps
Visual distance scale: see how far any distance really is
Enter any distance, from a few centimetres to light-years, and see it on a visual scale next to familiar things: a bus, the CN Tower, a marathon, the flight from Toronto to Vancouver, the Moon and the nearest star. Also converts units and shows travel times.
Distance & travelDistance between cities: km, miles and flight time
Find the straight-line distance between 100 cities in Canada, the US, India and around the world, in kilometres, miles and nautical miles, with an estimated flight time, compass bearing, midpoint and a visual scale.
Distance & travelLatitude and longitude distance calculator
Calculate the great-circle distance between two GPS coordinates with the haversine formula, plus the initial and final bearing and the midpoint.
Distance & travel