How to Calculate Speed (Formula + Average Speed)

How to Calculate Speed (Formula + Average Speed)

To calculate speed, divide distance by time, in matching units. A car that covers 180 km in 2 hours 30 minutes went 180 ÷ 2.5 = 72 km/h. The time goes in hours if you want km/h, in seconds if you want m/s, and the units you divide are the units you get out.

That covers a single steady stretch. A real trip has fast parts and slow parts, and that is where average speed comes in.

The speed formula, and the time conversion it needs

Speed = Distance ÷ Time

The formula is simple. The errors come from the time. 2 hours 30 minutes is 2.5 hours, not 2.30 hours. Convert minutes to hours by dividing by 60 before you divide anything else: 30 ÷ 60 = 0.5, so 2 hours 30 minutes = 2.5 hours, and 180 ÷ 2.5 = 72 km/h.

The same formula rearranges two ways, and both are worth knowing:

Time = Distance ÷ Speed. A 180 km trip at 72 km/h takes 180 ÷ 72 = 2.5 hours.

Distance = Speed × Time. At 72 km/h for 2.5 hours, you cover 72 × 2.5 = 180 km.

A second worked example: a cyclist covers 36 km in 1 hour 12 minutes. 12 minutes is 12 ÷ 60 = 0.2 hours, so the time is 1.2 hours. 36 ÷ 1.2 = 30 km/h.

Average speed over a whole trip

Average speed is total distance divided by total time, counting every stretch, including the slow ones.

A driver covers 40 km in 50 minutes, then 70 km in 1 hour 40 minutes. Total distance: 40 + 70 = 110 km. Total time: 50 + 100 = 150 minutes = 2.5 hours. Average speed: 110 ÷ 2.5 = 44 km/h.

Notice the average is not the average of the two speeds. The first stretch ran at 40 ÷ (50/60) = 48 km/h. The second ran at 70 ÷ (100/60) = 42 km/h. The plain average of 48 and 42 is 45, but the true average is 44, because the slower stretch lasted longer and pulls the average down. Averaging speeds only works when the stretches take equal time; otherwise, go back to total distance over total time.

The equal-distance case has its own shortcut, worth knowing because it surprises people. Drive out 60 km at 60 km/h and back 60 km at 40 km/h. Out takes 1 hour, back takes 1.5 hours, total 120 km in 2.5 hours = 48 km/h. That is below the plain average of 50, and it equals (2 × 60 × 40) ÷ (60 + 40) = 4,800 ÷ 100 = 48. The slower leg takes longer, so it weighs more.

Converting speed units

Speed units convert like any compound unit: convert the distance part and the time part separately.

km/h to m/s: divide by 3.6. 72 km/h ÷ 3.6 = 20 m/s. The 3.6 comes from 1,000 metres per kilometre divided by 3,600 seconds per hour.

m/s to km/h: multiply by 3.6. 25 m/s × 3.6 = 90 km/h.

mph to km/h: multiply by 1.60934. A car at 90 mph is doing 90 × 1.60934 = 144.84 km/h.

km/h to mph: divide by 1.60934. 72 km/h ÷ 1.60934 = 44.74 mph.

Check the direction with a rough sense: mph numbers are smaller than km/h numbers for the same speed, because a mile is longer than a kilometre. If your conversion makes the mph number bigger, you multiplied when you should have divided.

Speed vs velocity, and speed vs pace

Speed and velocity are not the same thing, though everyday speech treats them as if they were. Speed is distance over time, with no direction attached. Velocity is displacement over time, with direction attached. A runner who completes a full lap of a 400 m track and returns to the start covered 400 m of distance but has zero displacement, so their average velocity for the lap is zero while their average speed is not. For road trips and race times, speed is the number that matters.

Pace is speed flipped over: time per unit of distance instead of distance per unit of time. Runners and training plans use pace because “minutes per kilometre” says what each kilometre felt like.

A 5 km run in 28 minutes: pace = 28 ÷ 5 = 5.6 minutes per kilometre, which is 5 minutes 36 seconds per km (0.6 × 60 = 36). As a speed, that is 5 ÷ (28 ÷ 60) = 5 ÷ 0.4667 = 10.71 km/h. Same run, two readings: pace tells you the feel, speed tells you the rate.

Where it usually goes wrong

Minutes treated as decimals. A 1 hour 12 minute trip is 1.2 hours, not 1.12. Convert minutes by dividing by 60.

Mixing units. Miles divided by minutes gives miles per minute, not mph. Match the units before dividing, or convert at the end.

Averaging speeds instead of totals. Average speed is total distance over total time. Averaging the speeds only works when the stretches take equal time.

Confusing average with top speed. A trip averaging 44 km/h included faster stretches and slower ones. The average is what decides arrival time, not the fastest stretch.

Three to try yourself

Work these out before reading the answers below.

  1. A train covers 240 km in 3 hours. What is its speed?
  2. A cyclist rides 15 km in 45 minutes. What is the speed in km/h?
  3. Convert 15 m/s to km/h.

Answers: 1. 80 km/h (240 ÷ 3). 2. 20 km/h (45 minutes = 0.75 h; 15 ÷ 0.75 = 20). 3. 54 km/h (15 × 3.6).

Questions people ask

How do you calculate speed?

Divide distance by time, in matching units. Miles divided by hours gives mph; kilometres divided by hours gives km/h. Convert minutes to hours first by dividing by 60.

How do I calculate average speed?

Add up all the distances, add up all the times, and divide total distance by total time. Do not average the speeds of the separate stretches unless they each took the same time.

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

Divide by 3.6. 72 km/h is 20 m/s. Multiply by 3.6 to go from m/s back to km/h.

What is the difference between speed and velocity?

Speed is distance over time, with no direction. Velocity is displacement over time, with direction. A round trip has zero average velocity but a positive average speed.


If you would rather skip the arithmetic, try it in the Speed Calculator.

By Sofia Andersen
CalcKits calculators show the formula with every result.