Speed Calculator with Time and Distance
A speed calculator with time and distance inputs: find speed, distance or travel time from the other two, plus pace per km and per mile.
Speed (v)
- In mph
- 46.602839 mph
- In m/s
- 20.833333 m/s
- In ft/s
- 68.350831 ft/s
- Pace per km
- 0:48 /km
- Pace per mile
- 1:17 /mi
- Time (h:mm:ss)
- 2:00:00
How to use the Speed Calculator
- Under Solve for, pick what you want to find: speed, distance or time.
- Enter the two values you know, each with its unit, such as 150 km and 2 hours.
- Choose the unit for the answer, such as km/h, mph, m/s or knots.
- Read the pace per kilometer and per mile, and the time written as h:mm:ss, under the result.
Formula
v = d ÷ t · d = v × t · t = d ÷ v
Where:
- v
- Average speed, e.g. km/h, mph, m/s or knots
- d
- Distance traveled, e.g. km, mi, m or ft
- t
- Time taken, e.g. hours, minutes or seconds
This is average speed: total distance divided by total time, including any stops. Values are converted to meters and seconds with exact factors (1 mi = 1,609.344 m; 1 mph = 0.44704 m/s; 1 km/h = 5/18 m/s). Pace is the reverse of speed: the time per kilometer or per mile.
Worked example
A runner finishes a marathon (42.195 km) in 3 hours 30 minutes. What was their average speed and pace?
- t = 3.5 h, so v = d ÷ t = 42.195 km ÷ 3.5 h ≈ 12.056 km/h.
- In miles per hour: 12.056 km/h ÷ 1.609344 ≈ 7.491 mph.
- Pace per km = 12,600 s ÷ 42.195 ≈ 298.6 s, or 4:59 per km.
- Pace per mile = 298.6 s × 1.609344 ≈ 480.6 s, or 8:01 per mile.
The runner averaged about 12.06 km/h (7.49 mph), a pace of 4:59 per km or 8:01 per mile.
Almost every travel question comes down to three quantities: how far, how fast and how long. Know any two and the third follows from one relationship, distance = speed × time. Teachers in the UK, India and Australia often draw it as the "DST triangle" with distance on top and speed and time underneath; cover the one you want and the other two tell you whether to multiply or divide.
Every value can be entered in its own unit. Mix miles with minutes or meters with hours and the tool converts everything to meters and seconds behind the scenes, using exact definitions, before converting the answer to the unit you choose.
Speed, distance and time formulas
| To find | Formula | Example |
|---|---|---|
| Speed | v = d ÷ t | 5 km ÷ 25 min = 12 km/h |
| Distance | d = v × t | 60 mph × 45 min = 45 mi |
| Time | t = d ÷ v | 400 m ÷ 8 m/s = 50 s |
Here v is speed, d is distance and t is time. Physicists often use s for distance or displacement, so you may also see v = s ÷ t. Whatever the letters, the units must agree. A 5 km run in 25 minutes needs the minutes turned into hours (25 ÷ 60 ≈ 0.4167 h) before it reads as 12 km/h.
Working out travel time
You need to drive 350 miles and expect to average 62 mph, including slow sections through towns.
- Choose Time under Solve for.
- Enter a distance of 350 mi and a speed of 62 mph.
- t = 350 ÷ 62 ≈ 5.6452 hours.
- Convert the decimal: 0.6452 h × 60 ≈ 38.71 minutes, and 0.71 min × 60 ≈ 43 seconds.
The result reads 5:38:43. In metric terms that is 563.27 km at about 99.78 km/h. If you plan two 15-minute breaks, add 30 minutes for a door-to-door time of a little over six hours.
Average speed over several legs
The tool handles one leg at a time. For a trip with stops or with legs at different speeds, add up the total distance and the total time first, then enter those two totals.
Say a cyclist rides 30 km in 1 h 15 min, stops for 15 minutes, then rides 20 km in 1 h. The total is 50 km in 2.5 h, an average of 20 km/h including the stop. The moving average, without the break, is 50 ÷ 2.25 ≈ 22.22 km/h. Both are correct answers to different questions, so decide which one you need before comparing.
Speed and pace for running and cycling
Runners, walkers and swimmers usually think in pace, the time to cover one unit of distance. Pace is the reciprocal of speed, so the result shows both:
| Speed | Pace per km | Pace per mile |
|---|---|---|
| 8 km/h | 7:30 | 12:04 |
| 10 km/h | 6:00 | 9:39 |
| 12 km/h | 5:00 | 8:03 |
| 15 km/h | 4:00 | 6:26 |
A 5 km parkrun finished in 25 minutes is a 5:00 per km pace, or 12 km/h. Because the two are reciprocals, small changes in pace matter more at the slow end: going from 7:30 to 7:00 per km gains about 0.57 km/h, while 4:30 to 4:00 gains about 1.67 km/h.
km/h, mph and m/s
| km/h | mph | m/s |
|---|---|---|
| 5 (walking) | 3.11 | 1.39 |
| 30 | 18.64 | 8.33 |
| 50 | 31.07 | 13.89 |
| 80 | 49.71 | 22.22 |
| 100 | 62.14 | 27.78 |
| 120 | 74.56 | 33.33 |
One mph is exactly 0.44704 m/s and one km/h is 5/18 m/s. A knot is one nautical mile (1,852 m) per hour, so 1 knot = 1.852 km/h, about 1.151 mph. For scale, sound in air travels about 343 m/s at 20 °C: three seconds between a lightning flash and its thunder puts the strike roughly 1 km away.
Common mistakes
- Averaging the speeds. Out at 30 km/h and back at 60 km/h over the same distance averages 40 km/h, not 45 km/h, because you spend twice as long on the slow leg.
- Writing 1.30 h for 1 hour 30 minutes. In decimal hours that is 1.5 h; 1.30 h is only 1 hour 18 minutes. Entering minutes directly avoids the trap.
- Mixing nautical and statute miles. A nautical mile is about 15% longer than a land mile.
- Using a speedometer reading for a whole trip. It shows instantaneous speed; plan with total distance over total time.
Assumptions
The result is the average speed over the whole distance, as if it were constant. All inputs must be greater than zero. Unit conversions use exact international definitions, and results are rounded only for display. Acceleration, gear ratios, tire sizes and elevation are not modeled. Real journey times also depend on traffic, terrain, weather and rest stops, so treat the result as a planning estimate.
Frequently asked questions
What is the formula for speed, distance and time?
Speed = distance ÷ time. Rearranged, distance = speed × time and time = distance ÷ speed. Driving 150 km in 2 hours is 150 ÷ 2 = 75 km/h, and at 75 km/h you would cover 225 km in 3 hours. The units must agree: kilometers and hours give km/h, meters and seconds give m/s.
How do I calculate time from distance and speed?
Divide the distance by your expected average speed. A 350-mile trip at an average of 62 mph takes 350 ÷ 62 ≈ 5.645 hours, which is 5 hours 38 minutes 43 seconds. Add time for fuel and rest stops, or lower the average speed to allow for them.
How do I find distance with speed and time?
Multiply the speed by the time, after putting the time in the same unit as the speed. At 60 mph for 45 minutes, 45 minutes is 0.75 hours, so the distance is 60 × 0.75 = 45 miles. In the calculator, choose Distance under Solve for and enter the minutes directly; it converts them for you.
How do I calculate speed in physics?
Divide the distance by the time, using SI units: meters and seconds give meters per second (m/s). A ball that rolls 12 m in 4 s moves at 3 m/s on average. Speed has no direction; velocity is speed in a particular direction, so a car on a roundabout at a steady 30 km/h has a constant speed but a changing velocity.
How do I calculate average speed in km/h?
Divide the total distance in kilometers by the total time in hours, stops included. If you drive 60 km at 30 km/h and another 60 km at 60 km/h, the trip takes 2 h + 1 h = 3 h for 120 km, an average of 40 km/h, not 45 km/h. Averaging the two speeds gives the wrong answer.
How do I convert km/h to mph?
Divide by 1.609344, because one mile is exactly 1.609344 km. 100 km/h is about 62.14 mph, and 65 mph is about 104.6 km/h. To get meters per second, divide km/h by 3.6. Choose the answer unit in the calculator to convert any result.
Related calculators
- Distance CalculatorDistance calculator with latitude and longitude for the great-circle distance and bearing between two places, plus 2D and 3D point distances.
- Time Duration CalculatorA time duration calculator: hours and minutes between two times, even across midnight, plus a mode to add or subtract time from a clock time.
- Length ConverterUse this length converter: feet to meters, cm to inches, miles to km or any pair of nine units, with exact factors and every unit listed.
- Kinetic Energy CalculatorKinetic energy calculator: velocity, mass or energy from the other two with KE = ½mv², plus gravitational potential energy with PE = mgh.
- Force CalculatorThis force calculator in newtons solves Newton's second law, F = m × a, for force, mass or acceleration, with each value in its own unit.
Last updated: