Speed, Distance and Time Formula
By the Calculator.hair team · Updated · 7 min read
Short answer
Speed equals distance divided by time: speed = d ÷ t. Rearranged, distance = speed × time and time = distance ÷ speed. A car that covers 150 miles in 2.5 hours averages 60 mph. Average speed always uses total distance over total time, so 60 miles at 30 mph plus 60 miles at 60 mph averages 40 mph, not 45.
Key takeaways
- Speed = distance ÷ time, distance = speed × time, and time = distance ÷ speed are one equation solved three ways.
- Convert minutes to a decimal before you calculate: 2 hours 30 minutes is 2.5 hours, not 2.3.
- To go from mph to km/h, multiply by 1.609344; to go from m/s to km/h, multiply by 3.6.
- Average speed is total distance ÷ total time, which is not the simple average of the speeds unless each speed lasted equally long.
What is the formula for speed?
The formula for speed is speed = distance ÷ time. Speed is how much distance an object covers per unit of time, so its units are always a distance over a time, such as miles per hour (mph), kilometers per hour (km/h) or meters per second (m/s).
A car that travels 150 miles in 2.5 hours has an average speed of 150 ÷ 2.5 = 60 mph. A runner who covers 400 meters in 50 seconds averages 400 ÷ 50 = 8 m/s. The speed calculator solves for any one of the three values and shows the answer in several units at once.
Physics textbooks often write the formula as v = d ÷ t, using v for speed. Strictly, v stands for velocity, which also has a direction, while speed is just a size. If you drive to a store and back, your average velocity for the round trip is zero because you ended where you started, but your average speed is not.
How do you rearrange the speed, distance and time formula?
Multiply both sides by time to get distance = speed × time, then divide by speed to get time = distance ÷ speed. These are the same relationship, so you only need to remember one and rearrange it.
A simple memory aid is a triangle with distance on top and speed and time side by side below it. Cover the value you want, and what remains shows the calculation: distance on top of a value means divide, and two values side by side means multiply.
| To find | Formula | Example | Answer |
|---|---|---|---|
| Speed | speed = distance ÷ time | 150 miles in 2.5 hours | 60 mph |
| Distance | distance = speed × time | 65 mph for 2 h 30 min | 162.5 miles |
| Time | time = distance ÷ speed | 210 miles at 60 mph | 3 h 30 min |
How do you handle hours and minutes in the formula?
Convert the time to a single unit before you calculate, usually decimal hours. Divide the minutes by 60 and add the result to the hours, so 2 hours 30 minutes is 2 + 30 ÷ 60 = 2.5 hours. Then 65 mph × 2.5 hours = 162.5 miles.
The common mistake is typing 2.30 for 2 hours 30 minutes. That means 2.3 hours, which is 2 hours 18 minutes, and it would give 149.5 miles instead of 162.5.
The same applies in reverse. When a time calculation returns a decimal, the part after the decimal point is a fraction of an hour. A 210-mile drive at 60 mph takes 3.5 hours, and 0.5 × 60 = 30 minutes, so the answer is 3 hours 30 minutes, not 3 hours 50 minutes. The speed calculator takes hours, minutes and seconds in separate boxes, which avoids the problem.
Keep the distance and speed units matched too. Miles go with mph, and kilometers go with km/h. If they differ, convert one first, using the table below.
How do you convert between mph, km/h and m/s?
Multiply mph by 1.609344 to get km/h, or by 0.44704 to get m/s. Both factors are exact, because the international mile is defined as exactly 1,609.344 meters. To go from m/s to km/h, multiply by 3.6, since an hour has 3,600 seconds and a kilometer has 1,000 meters.
The table shows values from the speed converter on our speed calculator page, rounded to two decimal places. For a quick estimate, multiply mph by 1.6 to get km/h, and halve mph to get a rough figure in m/s.
| mph | km/h | m/s |
|---|---|---|
| 1 | 1.61 | 0.45 |
| 0.62 | 1 | 0.28 |
| 2.24 | 3.6 | 1 |
| 10 | 16.09 | 4.47 |
| 22.37 | 36 | 10 |
| 30 | 48.28 | 13.41 |
| 60 | 96.56 | 26.82 |
| 62.14 | 100 | 27.78 |
| 65 | 104.61 | 29.06 |
| 100 | 160.93 | 44.70 |
What is the average speed formula?
Average speed = total distance ÷ total time. Add up every distance in the trip, add up every time, including stops if you want your door-to-door figure, and divide.
Average speed differs from instantaneous speed, which is what your speedometer shows at a given moment. A car can spend a trip moving between 0 and 70 mph and still have one average speed for the whole journey.
Stops count if they are part of the time you measure. Driving 120 miles in 3 hours averages 40 mph, but adding a 30-minute stop makes the total 3.5 hours, and the average falls to about 34.3 mph.
Why isn't average speed the average of two speeds?
Average speed is not the average of two speeds because you spend more time at the slower speed, so the slower speed counts for more. A simple average would only work if you spent equal time at each speed.
Worked example: you drive 60 miles at 30 mph, then 60 miles back at 60 mph. Adding the speeds and halving them gives 45 mph, which is wrong. Work through it leg by leg instead.
| Leg | Distance | Speed | Time (distance ÷ speed) |
|---|---|---|---|
| Leg 1 | 60 miles | 30 mph | 2 hours |
| Leg 2 | 60 miles | 60 mph | 1 hour |
| Total | 120 miles | 40 mph average | 3 hours |
Is there a shortcut for two legs of equal distance?
Yes. When two legs cover the same distance, average speed = 2ab ÷ (a + b), where a and b are the two speeds. This is called the harmonic mean. For 30 mph and 60 mph, 2 × 30 × 60 ÷ (30 + 60) = 3,600 ÷ 90 = 40 mph, which matches the table above.
When the two legs last the same time, the simple average does work. An hour at 30 mph plus an hour at 60 mph covers 90 miles in 2 hours, which averages 45 mph. The difference comes down to which quantity is equal: time gives the simple average, and distance gives the harmonic mean. If neither is equal, go back to total distance ÷ total time.
This also explains why a slow first half is hard to make up. If you drive 60 miles at 30 mph, you have used 2 hours. To average 60 mph over 120 miles, you would need to finish in 2 hours total, which leaves no time at all for the second leg.
Which calculator should you use for distance?
To get a distance from a speed and a time, use the speed calculator with Solve for set to distance. That is the tool for the formula in this guide.
Our distance calculator answers a different question: how far apart two points are. It works from coordinates in 2D or 3D, or from latitude and longitude, and it does not use speed or time. It is useful here only when you need a distance to feed into the formula. For example, downtown Chicago (41.8781, −87.6298) to downtown St. Louis (38.627, −90.1994) comes out at 262.2 miles in a straight line over the Earth's surface. Roads and flight paths are longer, so treat that number as a lower limit. The math behind it is covered in the distance formula guide.
For fuel on a trip of known length, the gas mileage guide uses the same kind of rearrangement: gallons = distance ÷ miles per gallon.
Frequently asked questions
What is the formula for speed and time?
Speed = distance ÷ time, and time = distance ÷ speed. A 210-mile trip at 60 mph takes 210 ÷ 60 = 3.5 hours, or 3 hours 30 minutes.
How do you calculate average speed with different speeds?
Find the time for each part of the trip, add the times, then divide the total distance by the total time. Do not average the speeds unless each one lasted the same amount of time.
How do you convert km/h to m/s?
Divide by 3.6. So 100 km/h is 100 ÷ 3.6 = 27.78 m/s.
What is the difference between speed and velocity?
Speed is how fast something moves, and velocity is speed with a direction. A round trip has a nonzero average speed but an average velocity of zero.
How do you calculate distance from speed and time?
Multiply them: distance = speed × time. At 65 mph for 2.5 hours, you cover 162.5 miles.