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
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
- 1Enter the distance traveled in kilometers (km).
- 2Enter the time taken in hours — use decimal hours for part-hour journeys, for example 2.5 for two and a half hours.
- 3Press Calculate to see the speed in km/h and m/s.
- 4Review the formula speed = distance ÷ time shown below the calculator.
- 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:
What each variable means
| Symbol | Name | Description |
|---|---|---|
| d | Distance | The distance traveled, measured in kilometers (km). |
| t | Time | The time taken, measured in hours. Use decimals for part hours, for example 2.5 = 2 hours 30 minutes. |
| v | Speed | The average speed, shown in km/h and m/s. |
Step-by-step example
Example: 120 km in 2 hours
- 1Speed = 120 ÷ 2
- 2= 60 km/h
- 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.
Related concepts
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.
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.
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.