Speed Distance Time Calculator: Formulas, Units and Average Speed
By FindMySum · Last reviewed
Speed, distance and time are tied together by one relationship, and if you know any two you can find the third. This speed distance time calculator solves for whichever one is missing, shows the answer in kilometres per hour, miles per hour, metres per second and knots at once, gives the matching pace, and works out a correct average speed for a trip made of several legs. This article explains the formulas, the unit conversions and the one mistake that catches almost everyone: averaging speeds.
The three formulas
- Speed = distance ÷ time
- Distance = speed × time
- Time = distance ÷ speed
The calculator's default example is a 150 km drive that takes 1 hour 30 minutes. Time has to be in hours to get km/h, so 1 hour 30 minutes becomes 1.5 hours, and the average speed is 150 ÷ 1.5 = 100 km/h.
The same formula answers the other questions. At 65 mph for 2 hours 30 minutes, distance = 65 × 2.5 = 162.5 miles. A marathon of 42.195 km at a steady 12 km/h takes 42.195 ÷ 12 = 3.51625 hours. To turn that into a clock time, take the decimal part of the hours (0.51625) and multiply by 60 to get 30.975 minutes, then take the decimal part of the minutes (0.975) and multiply by 60 to get 58.5 seconds: 3 hours 30 minutes 58.5 seconds.
Keeping units consistent
The formulas only work when the units match. Kilometres and hours give km/h; miles and hours give mph; metres and seconds give m/s. The calculator converts everything to metres and seconds internally and back again, using exact definitions from the US National Institute of Standards and Technology's SI guide (SP 811):
| Unit | Exact value |
|---|---|
| 1 mile | 1,609.344 m |
| 1 nautical mile | 1,852 m |
| 1 km/h | 1,000 m per 3,600 s |
| 1 knot | 1 nautical mile per hour |
From these, mph = km/h ÷ 1.609344, m/s = km/h ÷ 3.6 and knots = km/h ÷ 1.852. The default 100 km/h is 62.137 mph, 27.778 m/s and 53.996 knots. Because the factors are exact, converting back and forth never drifts.
Metres per second is the unit of physics problems and athletics: a sprinter who runs 100 m in 9.58 s averages 100 ÷ 9.58 = 10.438 m/s, which is 37.58 km/h. Knots are the unit of sea and air navigation, because a nautical mile was defined from one minute of latitude, so chart distances convert directly.
Pace: the other way round
Runners, walkers and cyclists often talk in pace rather than speed. Pace is time per distance, the inverse of speed: minutes per kilometre or per mile. The calculator shows both. For pace in minutes per kilometre, divide 60 by the speed in km/h: 12 km/h is 60 ÷ 12 = 5 minutes per kilometre, and the 100 km/h drive is 36 seconds per kilometre.
Average speed over several legs
Suppose you drive 60 km at 60 km/h on a highway, then 60 km at 30 km/h through a town. What was your average speed? The tempting answer is (60 + 30) ÷ 2 = 45 km/h, and it is wrong.
Average speed is total distance divided by total time. The first leg takes 1 hour and the second takes 2 hours, so the trip is 120 km in 3 hours: 40 km/h. The slow leg lasted twice as long as the fast one, so it pulls the average down more than half way. This is the definition of average velocity in physics textbooks such as OpenStax University Physics, and it is why a slow stretch of road costs more time than a fast stretch saves.
The plain mean of the speeds only gives the right answer when every leg takes the same amount of time. When the legs cover equal distances, as in the example, the correct average is the harmonic mean of the speeds instead. To avoid remembering which is which, enter the legs in the calculator's advanced options as distance@speed pairs (for example 60@60, 60@30). It shows each leg's time, the true average and the mean of speeds side by side.
The travel-time table
Below the results, the calculator shows how long your distance takes at a range of speeds, from walking pace to highway speed in the unit you chose. It is a quick way to see where extra speed stops paying off: on the default 150 km trip, going from 100 to 120 km/h saves 15 minutes, while going from 30 to 50 km/h saves two hours. Time saved per extra km/h falls as speed rises, which is worth remembering before pushing a little faster.
What the formulas assume
Every result assumes a constant average speed over the time entered. Real trips include stops, traffic lights, congestion, roadworks, hills, head winds and currents. For trip planning, use an average that includes those, often well below the speed limit, or measure your actual average from a past trip: distance driven divided by total time on the road, breaks included.
More questions
What is the speed, distance, time triangle?
A memory aid: draw a triangle with D at the top and S and T side by side underneath. Cover the quantity you want and the other two show the operation. Covering D leaves S beside T, so distance = speed × time; covering S leaves D over T, so speed = distance ÷ time; covering T leaves D over S, so time = distance ÷ speed.
Is speed the same as velocity?
Not in physics. Speed is how fast something moves; velocity is speed with a direction. Average velocity uses displacement, the straight-line change in position, while average speed uses the total distance travelled. Drive 10 km out and 10 km back and your average velocity for the round trip is zero, but your average speed is 20 km divided by the time taken.
How do I convert a time like 2.75 hours into hours and minutes?
Keep the whole hours and multiply the decimal part by 60. 2.75 hours is 2 hours plus 0.75 × 60 = 45 minutes. Going the other way, divide minutes by 60: 1 hour 20 minutes is 1 + 20 ÷ 60 = 1.333 hours. Mixing the two forms, such as treating 1.20 as 1 hour 20 minutes, is the most common mistake in these problems.
How long does it take light or sound to travel a distance?
Use the same formula with their speeds. Sound in air at 20 °C travels about 343 m/s, so it covers a kilometre in about 2.9 seconds, which is why you can estimate the distance to lightning by counting the seconds after the flash and dividing by 3. Light travels 299,792,458 m/s, so it crosses 1 km in about 3.3 microseconds.
How do I find the speed needed to arrive on time?
Divide the distance left by the time left. With 90 km to go and 1 hour 15 minutes until you need to arrive, you need an average of 90 ÷ 1.25 = 72 km/h including any stops. If that is above the speed limit for the route, you will not make it legally, and it is time to call ahead rather than speed up.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.