Ultimate Calculator
Science guide

Speed, distance and time: formula and examples

Use the speed, distance and time triangle, convert between km/h, m/s and mph, and avoid the common mistake when calculating average speed.

Speed is distance divided by time. Rearranging gives distance = speed × time and time = distance ÷ speed, so knowing any two of the three lets you find the third.

The three formulas

Speed = distance ÷ time
Distance = speed × time
Time = distance ÷ speed

The formula triangle

A common memory aid is a triangle with D at the top and S and T side by side along the bottom. Cover the quantity you want to find:

  • Cover D: S and T are next to each other, so multiply. D = S × T.
  • Cover S: D is above T, so divide. S = D ÷ T.
  • Cover T: D is above S, so divide. T = D ÷ S.

The speed, distance and time calculator solves for any one of the three.

Worked example 1: finding speed

A train travels 150 km in 2 hours 30 minutes.

  1. Convert the time to hours: 2 h 30 min = 2.5 h
  2. Speed = 150 ÷ 2.5 = 60 km/h

Worked example 2: finding time

You drive 400 miles at a steady 65 mph.

  1. Time = 400 ÷ 65 ≈ 6.154 hours
  2. Convert the decimal part to minutes: 0.154 × 60 ≈ 9 minutes
  3. Time ≈ 6 hours 9 minutes

Note that 6.154 hours is not 6 hours 15 minutes. The decimal part is a fraction of an hour and must be multiplied by 60.

Worked example 3: finding distance

A cyclist rides at 12 km/h for 50 minutes.

  1. Convert the time: 50 ÷ 60 ≈ 0.8333 h
  2. Distance = 12 × 0.8333 = 10 km

Keeping units consistent

The units of speed tell you which units distance and time must be in. If speed is in km/h, distance must be in kilometres and time in hours. If speed is in m/s, use metres and seconds. Most wrong answers come from mixing these.

ConvertOperationExample
km/h to m/s÷ 3.660 km/h ≈ 16.67 m/s
m/s to km/h× 3.610 m/s = 36 km/h
mph to km/h× 1.60965 mph ≈ 104.6 km/h
km/h to mph÷ 1.609100 km/h ≈ 62.1 mph
minutes to hours÷ 6045 min = 0.75 h

The factor 3.6 comes from 1 km = 1,000 m and 1 h = 3,600 s: one km/h is 1,000 ÷ 3,600 m/s, and 3,600 ÷ 1,000 = 3.6.

Worked example 4: a sprinter

A sprinter covers 100 m in 9.58 s.

  1. Speed = 100 ÷ 9.58 ≈ 10.44 m/s
  2. In km/h: 10.44 × 3.6 ≈ 37.6 km/h

Runners usually talk about pace (time per kilometre or mile), which is the inverse of speed. The running pace calculator converts between the two.

The average speed trap

Average speed over a whole journey is always:

Average speed = total distance ÷ total time

It is not the average of the individual speeds, unless you spent equal time at each speed.

Worked example 5: there and back

You cycle 60 km to a town at 30 km/h and return along the same road at 60 km/h by car. What is your average speed for the round trip?

The tempting answer is (30 + 60) ÷ 2 = 45 km/h. That is wrong.

  1. Time out: 60 ÷ 30 = 2 h
  2. Time back: 60 ÷ 60 = 1 h
  3. Total distance: 60 + 60 = 120 km
  4. Total time: 2 + 1 = 3 h
  5. Average speed = 120 ÷ 3 = 40 km/h

The average is pulled toward the slower speed because you spend more time travelling slowly. Two hours of the three were at 30 km/h.

When the two legs cover the same distance, there is a shortcut called the harmonic mean:

Average speed = 2 × v1 × v2 ÷ (v1 + v2)

Here: 2 × 30 × 60 ÷ 90 = 3,600 ÷ 90 = 40 km/h, which matches.

Common mistakes

  • Using minutes with a per-hour speed. Convert minutes to hours first.
  • Reading decimal hours as minutes. 1.5 hours is 1 hour 30 minutes, not 1 hour 50 minutes.
  • Averaging speeds directly. Use total distance ÷ total time.
  • Leaving out stops. Average speed for a journey includes time spent stationary, unless the question says otherwise.
  • Confusing speed with velocity. Speed has size only. Velocity also has direction, which matters in physics problems involving a return to the start.

Common questions

What is the formula for speed?

Speed = distance ÷ time. Rearranged, distance = speed × time and time = distance ÷ speed.

How do I convert km/h to m/s?

Divide by 3.6. For example, 60 km/h is about 16.67 m/s. To go from m/s to km/h, multiply by 3.6.

Why can't I just average two speeds?

Because you spend more time at the slower speed. Going 60 km at 30 km/h and returning at 60 km/h takes 3 hours for 120 km, an average of 40 km/h, not 45 km/h.