This small interactive tool computes the distance travelled given a vehicle’s speed and a travel time. It shows a visual gauge and an instant numeric result: Distance = Speed × Time. The calculator accepts speed in km/h and time either in hours or minutes. You can switch the time unit in the control panel.
Table of Contents
Basic formula
Use the following primary relation:
Distance (km) = Speed (km/h) х Time (h)
The calculator internally represents time as hours. If you enter time in minutes, the tool converts minutes to hours by dividing by 60:
$$\text{Time (h)} = \frac{\text{Time (min)}}{60}$$
So for 30 minutes use 0.5 hours, 15 minutes is 0.25 hours, and so on.
Worked examples
Example 1 — using hours
Inputs: Speed = 60 km/h, Time = 1.5 h.
Calculation:
$$\text{Distance} = 60\ \text{km/h} \times 1.5\ \text{h} = 90\ \text{km}.$$
Result: the vehicle travels 90 km.
Example 2 — using minutes
Inputs: Speed = 80 km/h, Time = 45 min.
Step 1 — convert minutes to hours:
$$\text{Time (h)} = \frac{45}{60} = 0.75\ \text{h}.$$
Step 2 — multiply:
$$\text{Distance} = 80 \times 0.75 = 60\ \text{km}.$$
Result: the vehicle travels 60 km.
Reverse calculations — solve for speed or time
If you need to compute one variable from the other two, rearrange the formula:
- Speed from distance and time:
$$\text{Speed (km/h)} = \frac{\text{Distance (km)}}{\text{Time (h)}}$$ - Time from distance and speed:
$$\text{Time (h)} = \frac{\text{Distance (km)}}{\text{Speed (km/h)}}$$
Example: If you must cover 150 km in 2 hours, required speed = 150 / 2 = 75 km/h.
👉 The tools displays distance with one decimal by default (e.g. 90.0 km), and numeric readouts are formatted for readability. When you need higher precision, enter speed and time values with more decimals (e.g. speed 72.345 km/h).
Practical tips and caveats
- Constant speed assumption: The basic formula assumes the vehicle maintains the given speed constantly for the whole period. Real driving often includes acceleration, deceleration and stops — use the result as an estimate, not an exact odometer reading.
- Units matter: Always verify that speed is in km/h and time is in hours or minutes as selected. Mixing mph with km/h or entering seconds without conversion will give incorrect results.
- Zero or negative values: Time or speed must not be negative. If time or speed are zero, distance is zero.
- Long durations: For very long travel times (many hours), consider rounding and potential rest breaks when planning real trips.
Using the visual controls
The page contains two ways to edit inputs:
- A numeric field for precise entry (type e.g. 1.25 hours or 45 minutes).
- A slider for fast adjustment (drag to change values visually).
Changing either control updates the other and re-computes the distance instantly — the canvas displays animated gauges for speed and time to help visualise the values.
Examples you can try
- Short urban trip — Speed: 40 km/h, Time: 20 min → Distance = 40 × (20/60) = 13.33 km.
- Commuter highway — Speed: 100 km/h, Time: 0.5 h → Distance = 100 × 0.5 = 50 km.
- Leisure ride — Speed: 25 km/h, Time: 2 h → Distance = 25 × 2 = 50 km.
FAQ
Q: Can I get the travel time if I know distance and speed?
A: Yes — use Time (h) = Distance / Speed. Convert to minutes if preferred by multiplying by 60.
Q: Are results accurate for mixed-speed trips?
A: No — the calculator assumes a single constant average speed. For mixed-speed trips, compute each leg separately and sum the distances.
Q: How should I handle stops?
A: Either exclude stops from travel time (enter only moving time) or include them if you want total elapsed time — be consistent with your intent.
✍ Note: This tool is for planning and quick engineering estimates. It does not model traffic conditions, elevation changes, wind resistance, or vehicle-specific acceleration profiles — for those use specialised routing or simulation tools.
Unit conversions
| Conversion | Formula / Value |
|---|---|
| 1 m/s → km/h | × 3.6 (1 m/s = 3.6 km/h) |
| 1 km/h → m/s | ÷ 3.6 (1 km/h ≈ 0.27777778 m/s) |
| 1 mph → km/h | × 1.609344 (1 mph = 1.609344 km/h) |
| 1 km/h → mph | ÷ 1.609344 (1 km/h ≈ 0.62137119 mph) |
| Minutes → Hours | divide by 60 (e.g. 30 min = 0.5 h) |
| Seconds → Hours | divide by 3600 (e.g. 90 s = 0.025 h) |
Typical speeds, common modes
| Mode | Speed (km/h) | Equiv. (m/s) | Equiv. (mph) | Notes |
|---|---|---|---|---|
| Walking (brisk) | 5 | 1.39 | 3.11 | Everyday pace |
| Running (moderate) | 12 | 3.33 | 7.46 | Jogging |
| Cycling (urban) | 20 | 5.56 | 12.43 | Commuter speed |
| E-scooter / e-bike | 25 | 6.94 | 15.53 | Typical urban limit |
| City driving (average) | 40 | 11.11 | 24.85 | Includes lights |
| Highway / motorway | 100 | 27.78 | 62.14 | Cruising speed |
| Fast intercity train | 200 | 55.56 | 124.27 | High-speed rail |
| Airliner cruise | 900 | 250.00 | 559.32 | Jet cruise speed |
Worked examples, Speed × Time → Distance
| Speed | Time | Conversion | Distance | Result |
|---|---|---|---|---|
| 60 km/h | 1.5 h | — | 60 × 1.5 = 90.0 | 90.0 km |
| 80 km/h | 45 min | 45 min = 0.75 h | 80 × 0.75 = 60.0 | 60.0 km |
| 40 km/h | 20 min | 20 min = 0.333 h | 40 × 0.333 ≈ 13.333 | 13.33 km |
| 100 km/h | 0.5 h | — | 100 × 0.5 = 50 | 50.0 km |
| 25 km/h | 2 h | — | 25 × 2 = 50 | 50.0 km |
| 5 km/h | 30 min | 30 min = 0.5 h | 5 × 0.5 = 2.5 | 2.5 km |
Reverse calculations, solve for speed or time
| Goal | Formula | Example | Result |
|---|---|---|---|
| Find speed | Speed (km/h) = Distance (km) ÷ Time (h) | Distance 150 km, Time 2 h → 150 ÷ 2 | 75 km/h |
| Find time | Time (h) = Distance (km) ÷ Speed (km/h) | Distance 60 km, Speed 80 km/h → 60 ÷ 80 = 0.75 h | 45 min |
| Find time (minutes) | Time (min) = (Distance ÷ Speed) × 60 | Distance 13.33 km, Speed 40 km/h → (13.33 ÷ 40) × 60 | 20 min |
Real-world example scenarios
| Scenario | Speed | Time | Distance |
|---|---|---|---|
| Morning commute (city) | 35 km/h | 30 min | 35 × 0.5 = 17.50 km |
| Short errand (walk) | 5 km/h | 20 min | 5 × 0.333333 = 1.67 km |
| Road trip (highway) | 110 km/h | 3 h | 330.0 km |
| Bicycle tour | 18 km/h | 4 h | 72.0 km |
| EV slow drive | 50 km/h | 1 h 15 min | 50 × 1.25 = 62.50 km |
| Marathon runner (race pace) | 12.5 km/h | 3 h | 37.5 km |
| Evening ride | 80 km/h | 45 min | 60.0 km |
Constant speed assumption: the formula assumes constant average speed. For mixed-speed trips split the trip into legs and sum distances.
References
- Halliday, D., Resnick, R., & Walker, J. Fundamentals of Physics, 11th Edition. Wiley, 2018.
- Tipler, P.A., Mosca, G. Physics for Scientists and Engineers, 7th Edition. Freeman, 2016.
- Young, H.D., Freedman, R.A. University Physics with Modern Physics, 15th Edition. Pearson, 2019.
- Serway, R.A., Jewett, J.W. Physics for Scientists and Engineers, 10th Edition. Cengage, 2018.
- Beer, F.P., Johnston, E.R. Vector Mechanics for Engineers: Dynamics, 12th Edition. McGraw-Hill, 2017.



