What this calculator does
The Speed & Time to Distance Calculator works out how far you travel when you know your speed and how long you were moving. It applies the classic physics relationship distance = speed × time. Enter a speed, choose whether that speed is in km/h or mph, then enter the duration as hours, minutes and seconds. The calculator returns the distance in both kilometres and miles, so you don't have to convert anything by hand.
The input fields
- Speed – your travel speed as a number.
- km/h or mph – the unit your speed is in. The tool converts mph to km/h internally using \(1 \text{ mph} = 1.609344 \text{ km/h}\).
- Time – split into hours, minutes and seconds so you can enter any duration precisely.
The formula it uses
The calculation runs in three steps:
$$\begin{gathered} \text{Distance} = \text{Speed} \times t \\[1.5em] \text{where}\quad t = \text{Hours} + \frac{\text{Minutes}}{60} + \frac{\text{Seconds}}{3600} \end{gathered}$$- Convert speed to km/h: if you picked mph, \(\text{speed} \times 1.609344\); if km/h, it is used as-is.
- Convert time to decimal hours: \(\text{hours} + (\text{minutes} \div 60) + (\text{seconds} \div 3600)\).
- Multiply: \(\text{distance (km)} = \text{speed (km/h)} \times \text{time (hours)}\). The result is then divided by \(1.609344\) to also show the distance in miles.
Worked example
Suppose you drive at 60 mph for 1 hour, 30 minutes and 0 seconds.
- Speed in km/h: \(60 \times 1.609344 = 96.56 \text{ km/h}\)
- Time in hours: \(1 + (30 \div 60) + (0 \div 3600) = 1.5 \text{ hours}\)
- Distance: \(96.56 \times 1.5 =\) 144.84 km
- In miles: \(144.84 \div 1.609344 =\) 90 miles
That matches the intuitive answer — 60 mph for 1.5 hours is 90 miles — and the tool shows you the metric equivalent at the same time.
Distance at Common Speeds and Durations
Every row below uses the same relationship the calculator applies, \(d = v \times t\), where \(t\) is the elapsed time converted to decimal hours:
$$t = \text{Hours} + \frac{\text{Minutes}}{60} + \frac{\text{Seconds}}{3600}$$Speeds and distances are converted with the exact factor 1 mph = 1.609344 km/h (equivalently 1 mile = 1.609344 km), and all figures are rounded to 2 decimals for display. Because rounding happens only at the end, working the arithmetic in km/h and then converting gives the same answer as working in mph throughout.
| Scenario | Speed (km/h) | Speed (mph) | Time (h:m:s) | Time (decimal hours) | Distance (km) | Distance (miles) |
|---|---|---|---|---|---|---|
| Brisk walking | 5 | 3.11 | 0:30:00 | 0.5 | 2.50 | 1.55 |
| Steady running | 10 | 6.21 | 0:45:00 | 0.75 | 7.50 | 4.66 |
| Road cycling | 25 | 15.53 | 1:15:00 | 1.25 | 31.25 | 19.42 |
| City driving | 50 | 31.07 | 0:20:00 | 0.3333 | 16.67 | 10.36 |
| Highway driving | 100 | 62.14 | 2:30:00 | 2.5 | 250.00 | 155.34 |
| Highway driving (imperial) | 96.56 | 60 | 1:00:00 | 1.0 | 96.56 | 60.00 |
Worked substitution for the cycling row, showing every step:
$$t = 1 + \frac{15}{60} + \frac{0}{3600} = 1.25\ \text{h}$$$$d = 25\ \text{km/h} \times 1.25\ \text{h} = 31.25\ \text{km}$$$$31.25\ \text{km} \div 1.609344 = 19.42\ \text{miles}$$And for the city-driving row, where the decimal time does not terminate:
$$t = 0 + \frac{20}{60} = 0.3333\ldots\ \text{h} \qquad d = 50 \times \frac{1}{3} = 16.67\ \text{km}$$These speeds are illustrative typical values, not legal limits or fitness standards — speed limits, and whether they are posted in km/h or mph, differ by country.
Speed, Time and Distance Unit Conversions
The calculator accepts speed in km/h or mph and time as hours, minutes and seconds. The tables below cover the conversions needed to move between those units and any others you are working with.
Speed
| From | Equals |
|---|---|
| 1 mph | 1.609344 km/h |
| 1 km/h | 0.62137 mph |
| 1 m/s | 3.6 km/h = 2.23694 mph |
| 1 knot | 1.852 km/h = 1.15078 mph |
The knot is defined exactly as one nautical mile (1852 m) per hour and is the standard speed unit in marine and air navigation. To convert m/s to km/h, multiply by 3.6, since \(1\ \text{m/s} = 3600\ \text{m/h} = 3.6\ \text{km/h}\).
Time (to decimal hours)
| Duration | Decimal hours |
|---|---|
| 1 minute | 1/60 = 0.01667 h |
| 1 second | 1/3600 = 0.000278 h |
| 15 minutes | 0.25 h |
| 30 minutes | 0.5 h |
| 45 minutes | 0.75 h |
| 90 minutes | 1.5 h |
Distance
| From | Equals |
|---|---|
| 1 km | 0.62137 miles |
| 1 mile | 1.609344 km |
| 1 km | 1000 m |
| 1 mile | 5280 ft |
The mile-to-kilometre relationship is exact by international agreement: 1 international mile = 1609.344 m, which is where the 1.609344 factor comes from. Keep the units consistent — a speed in km/h multiplied by hours gives kilometres, and a speed in mph multiplied by hours gives miles; mixing the two is the most common source of error.
Key Terms and Variables
- Speed (\(v\)) — a scalar quantity: how much distance is covered per unit of time, with no direction attached. Common units are km/h, mph and m/s. This is the value entered in the speed field.
- Velocity — the vector counterpart of speed: a magnitude and a direction (for example, 50 km/h due north). Two trips at the same speed in opposite directions have different velocities. This calculator works with speed only.
- Average speed — total distance divided by total elapsed time, \(v_{\text{avg}} = d / t\). This is the quantity the tool assumes: whatever number you enter is treated as the average maintained over the whole duration, including any stops or slow sections that fall inside the elapsed time.
- Instantaneous speed — the speed at one particular moment, such as the reading on a speedometer. Formally it is the limit of average speed as the time interval shrinks toward zero. Real journeys have a continually changing instantaneous speed, which is why the average is the useful input here.
- Distance (\(d\)) — the total length of the path actually travelled, a scalar that can only increase. A 5 km loop that returns to its starting point covers a distance of 5 km. This is what the calculator returns.
- Displacement — the straight-line vector from start point to end point. For that same 5 km loop the displacement is zero. Distance and displacement are equal only for motion in a straight line without reversal.
- Elapsed time (\(t\)) — the duration of travel. The tool takes it as hours, minutes and seconds and converts it internally to decimal hours so the units match a speed given per hour: \(t = \text{Hours} + \frac{\text{Minutes}}{60} + \frac{\text{Seconds}}{3600}\).
- Constant-speed assumption — the equation \(d = v \times t\) is exact only when speed does not change during the interval. When speed varies, the same formula still holds if \(v\) is the true average speed over the interval; if you instead enter a typical or cruising speed, the result is an estimate that will overstate the distance whenever traffic, hills, wind or rest breaks pulled the real average below it.
Rearranging the same relationship gives the two companion problems: \(t = d / v\) to find how long a known distance takes, and \(v = d / t\) to find the average speed of a completed trip.
Conventions and edge cases
Each case below was run through this calculator; the result column is what it actually returns.
| Case | Input | Result |
|---|---|---|
| Negative speed | -60, 1, 0, 0 | The speed and the time cannot be negative. |
| 60 per hour for 1 h 30 min | 60, 1, 30, 0 | Distance (Kilometers): 90.00 km |
| Zero time | 60, 0, 0, 0 | Distance (Kilometers): 0.00 km |
Checked on 2026-11-08
Frequently asked questions
Can I enter just minutes or just seconds? Yes. Leave the fields you don't need at zero. The calculator simply adds the three time fields together, so 0 hours, 45 minutes, 0 seconds works fine.
Does it give the answer in both units? Yes. Regardless of whether you enter your speed in km/h or mph, the result is shown in both kilometres and miles.
What is this useful for? Trip and journey planning, estimating drive or cycling distances, pacing for running, and school or physics projects where you need distance from a steady speed.