Part of Science & Engineering Calculators

Speed Calculator

The Speed Calculator works out speed from distance and time using the formula speed = distance ÷ time. Enter how far you traveled in kilometers and how long it took in hours and it shows the average speed in km/h (plus the equivalent in m/s). It is useful for travel planning, running and cycling, driving, race timing, logistics and physics homework.

Speed Calculator

km
hours

What the result means

The result is the average speed for the whole journey: total distance divided by total time. A higher number means more kilometers covered per hour. The result appears in km/h, with the equivalent in m/s underneath (divide km/h by 3.6 to get m/s).

How to use this calculator

  1. 1Enter the distance traveled in kilometers (km).
  2. 2Enter the time taken in hours — use decimal hours for part-hour journeys, for example 2.5 for two and a half hours.
  3. 3Press Calculate to see the speed in km/h and m/s.
  4. 4Review the formula speed = distance ÷ time shown below the calculator.
  5. 5Adjust the inputs to compare different journeys or check a route's average speed.

The formula

Speed answers one question: how much distance is covered in a given amount of time? With distance in kilometers and time in hours, the result is in kilometers per hour (km/h). The standard formula is:

Speed (v) = Distance (d) ÷ Time (t) v = d / t If distance is in km and time is in hours, speed is in km/h. To convert km/h to m/s: divide by 3.6.

What each variable means

SymbolNameDescription
dDistanceThe distance traveled, measured in kilometers (km).
tTimeThe time taken, measured in hours. Use decimals for part hours, for example 2.5 = 2 hours 30 minutes.
vSpeedThe average speed, shown in km/h and m/s.

Step-by-step example

Example: 120 km in 2 hours

Distance:120 kmTime:2 hours
  1. 1Speed = 120 ÷ 2
  2. 2= 60 km/h
  3. 3In m/s: 60 ÷ 3.6 = 16.67 m/s

Result

Average speed = 60 km/h (16.67 m/s)

What changes the result

  • Speed depends on both the distance and the time: more distance or less time means a higher speed.
  • The value shown is an average over the whole journey, not a snapshot of any single moment.
  • Stops, traffic, acceleration and deceleration mean real-world speed varies even when the average is constant.
  • Decimal times work normally — for example 2.5 hours is two and a half hours, the same as 2 hours 30 minutes.

Edge cases to be aware of

Unusual situations handled correctly

  • If time is zero and distance is not, speed is undefined: the formula divides distance by time, and division by zero has no answer. The calculator shows “Undefined” instead of a number.
  • If both distance and time are zero, the calculator shows 0 km/h — no movement, so no speed.
  • The form accepts only non-negative values (0 or more), so negative distance or time cannot be entered.
  • Very short times with long distances produce very high speeds; this is mathematically correct, though real journeys rarely sustain such rates.
  • The calculator uses distance in kilometers and time in hours, so the result is in km/h. If your distance is in a different unit, convert it to kilometers first.

Common mistakes

Avoid these errors

  • Entering minutes as if they were hours. Convert minutes to hours first by dividing by 60 (for example 90 minutes = 1.5 hours), then calculate.
  • Mixing units, such as putting a distance in meters next to a time in hours — the result will not be a meaningful km/h.
  • Forgetting that 2.5 hours means 2 hours 30 minutes, not 2 hours 5 minutes.
  • Confusing average speed with the speed at any single moment during the journey.
  • Interpreting the result as exact for the whole trip when traffic or stops actually slow the journey.

Assumptions

  • The speed is a constant average over the whole journey.
  • Distance is measured in kilometers and time in hours.
  • Both inputs are non-negative numbers.

Limitations

  • This calculator works out speed only — it does not calculate distance or time. See the Distance Calculator and Time Duration links below for those.
  • It assumes a single average speed; real journeys include stops, acceleration and deceleration.
  • Convert metric units (km/h to mph) yourself, or check the Pace Calculator for running-style pacing.

Real-world scenarios

Decimal time: 150 km in 2.5 hours

A road trip covers 150 km in two and a half hours.

What it means: 2.5 hours is 2 hours 30 minutes. Speed = 150 ÷ 2.5 = 60 km/h. The decimal half-hour is handled directly by the calculator.

Running pace check

A runner completes 10 km in 1 hour 15 minutes.

What it means: 1 hour 15 minutes = 1.25 hours. Speed = 10 ÷ 1.25 = 8 km/h. This is the runner's average speed for the run; the actual pace varied along the route.

Travel planning

You plan to drive 300 km and want a rough idea of travel time, but you know your usual average speed is 75 km/h.

What it means: This calculator expects distance and time and returns speed, so the time figure you enter is the input, not the output. Distance = speed × time is handled by the Distance Calculator.

Cycling commute

A cyclist rides 25 km in 1 hour 40 minutes.

What it means: 1 hour 40 minutes = 1.6667 hours. Speed = 25 ÷ 1.6667 ≈ 15 km/h. That is the average speed including stops at lights.

Speed, distance and time are linked

Distance = speed × time and time = distance ÷ speed are the other two forms of this relationship. This calculator works out speed; the Distance Calculator works out distance.

Running pace

Pace is the time taken per unit of distance (for example minutes per kilometer), which is the inverse of speed. Use the Pace Calculator for running-style pacing.

Time duration

To measure the exact time between two moments in hours and minutes, use the Time Duration Calculator, then convert minutes to decimal hours for a speed calculation.

Frequently asked questions

How do I calculate speed?+
Divide the distance traveled by the time taken: speed = distance ÷ time. For example, 120 km in 2 hours is 120 ÷ 2 = 60 km/h.
What is the formula for speed?+
Speed = Distance ÷ Time, often written v = d ÷ t. With distance in kilometers and time in hours, the result is in kilometers per hour (km/h).
How do I calculate km/h?+
km/h means kilometers per hour. Divide the distance in kilometers by the time in hours. For example, a journey of 150 km in 2.5 hours gives 150 ÷ 2.5 = 60 km/h.
What is average speed?+
Average speed is the total distance divided by the total time of the whole journey. It does not reflect how fast you were going at any single moment.
Can I calculate speed from distance and time?+
Yes — that is exactly what this calculator does. Enter the distance in kilometers and the time in hours, and it returns the average speed in km/h (and m/s).
What happens if the time is zero?+
Speed cannot be calculated from zero time because the formula divides distance by time, and division by zero has no answer. The calculator shows “Undefined” when the distance is positive but the time is zero.
What is the difference between speed and velocity?+
Speed is a scalar — it only says how fast something moves. Velocity includes a direction as well as a magnitude. This calculator computes speed, not velocity.
How do I convert minutes to hours for a speed calculation?+
Divide the minutes by 60. For example, 90 minutes ÷ 60 = 1.5 hours, and 45 minutes ÷ 60 = 0.75 hours. Enter the decimal hours in the time field.