The relationship between speed, distance and time
Speed, distance, and time are locked together by a simple relationship: speed tells you how much distance you cover in a given time. If you know any two of these values, you can always calculate the third. This calculator rearranges the core formula to solve for whichever one you need.
The formula
Speed = Distance ÷ Time (or rearranged: Distance = Speed × Time and Time = Distance ÷ Speed)
Worked example
Imagine you're planning a road trip. You'll drive 240 miles at an average speed of 60 mph. How long will it take?
Given:
- Distance = 240 miles
- Speed = 60 mph
- Solve for: Time
Calculation:
Time = Distance ÷ Speed
Time = 240 ÷ 60
Time = 4 hours
Your trip takes exactly 4 hours at that steady pace.
Now reverse it: Suppose you drive for 4 hours at 60 mph. How far do you go?
Distance = Speed × Time
Distance = 60 × 4
Distance = 240 miles
Same trip, different question — same answer.
One more scenario: You cover 180 miles in 3 hours and 30 minutes. What was your average speed?
Time = 3 hours + 30 minutes = 3.5 hours
Speed = Distance ÷ Time
Speed = 180 ÷ 3.5
Speed = 51.43 mph
Your average speed was about 51.4 mph.
Tips for accurate results
Use consistent units throughout. If your distance is in miles, your speed should be in mph and time in hours. If you switch to kilometers, use km/h. Mixing units (like miles with km/h) produces nonsense.
Break mixed time into components. If your journey took 2 hours and 20 minutes, don't enter "2.20" — that's wrong. Enter 2 in the hours field and 20 in the minutes field. The calculator converts 20 minutes to 0.333 hours and adds it correctly.
Remember this is average speed. The formula assumes you traveled at one constant speed for the entire duration. Real-world trips have stops, traffic, and speed changes. Use this calculator to find your average speed (total distance ÷ total time), which smooths out all those variations.
Check your answer for reasonableness. If you calculate that you drove 300 miles in 2 hours, that's 150 mph — possible on a racetrack, unlikely on a highway. A quick mental check catches input errors.
For trip planning, add a buffer. If the calculator says your drive takes 5 hours, plan for 5.5 or 6 hours to account for rest stops, fuel, food, and traffic that rarely cooperates with the math.
This calculator provides estimates based on the distance-speed-time formula. Real-world travel involves many variables — use it as a planning tool, not a guarantee.