Speed, Distance & Time Calculator

Solve for speed, distance, or time — enter the two you know.

The speed triangle, and the unit trap inside it

The relationship is a single equation rearranged three ways: speed equals distance divided by time, distance equals speed times time, and time equals distance divided by speed. That much is easy. Nearly every wrong answer comes not from the formula but from mismatched units, because the units must agree before the arithmetic means anything.

If speed is in kilometres per hour, time must be in hours and distance in kilometres. Feeding in minutes without converting is the classic error: 30 minutes is 0.5 hours, not 30. A second trap is averaging speeds. If you drive one leg at 60 km/h and an equal-distance leg at 40, your average is not 50 — you spend more time on the slower leg, so the true average is 48, the harmonic mean. Average speed is always total distance divided by total time, never the arithmetic average of the speeds, and this matters whenever a journey is split into unequal segments.

Worked example

You drive 300 km to a city at 60 km/h and come back the same 300 km at 100 km/h. The average speed is not 80 km/h. The outward leg takes 300 ÷ 60 = 5 hours and the return takes 300 ÷ 100 = 3 hours, so you cover 600 km in 8 hours. The real average is 600 ÷ 8 = 75 km/h.

The slower leg pulls the average down because you spend more time on it. Whenever speeds differ, work out total distance and total time first, then divide.

Common mistakes to avoid

  • Averaging two speeds directly when the distances are equal but the times are not.
  • Mixing minutes and hours. 45 minutes is 0.75 hours, so 60 km in 45 minutes is 80 km/h.
  • Forgetting stops. A trip planner's speed should include fuel and food breaks, not just driving time.

Last reviewed: 5 November 2026 by the YogiCalc team · How we calculate and verify · Spotted an error? Tell us

Frequently asked questions

Why is my answer out by a factor of 60?

Almost always a unit mismatch, usually minutes entered where hours were required. If the speed is per hour, convert time to hours first: 45 minutes is 0.75 hours.

Is average speed just the average of my speeds?

No. Average speed is total distance divided by total time. For equal distances at different speeds the correct figure is the harmonic mean, which is always lower than the arithmetic average because more time is spent at the slower speed.

How do I convert between km/h and m/s?

Divide km/h by 3.6 to get m/s, and multiply m/s by 3.6 to go back. The factor comes from 1,000 metres divided by 3,600 seconds.

Does this work for acceleration?

No. These formulas assume constant speed. Where speed changes, they give an average over the whole journey rather than the speed at any given moment, and acceleration needs its own equations.

How do I calculate travel time?

Divide distance by speed. A 450 km trip at an average of 75 km/h takes 6 hours.

What speed should I use for trip planning in India?

Use a realistic average rather than the speed limit. Including traffic, tolls and breaks, 50 to 65 km/h is a common planning average on many highways.