How to Calculate Speed From Distance and Time
To calculate speed, divide the distance traveled by the time taken:
Quick answer: To calculate speed, divide distance by time and keep the units consistent. For a trip with multiple segments, use total distance divided by total time for average speed.
For example, if a car travels 180 miles in 3 hours:
This gives the average speed over the full trip.
What Is the Formula for Speed?
The standard speed equation is:
In symbols:
Where:
- s = speed
- d = distance traveled
- t = elapsed time
The result is expressed as distance per unit of time.
Examples include:
- miles per hour (mph);
- kilometers per hour (km/h);
- meters per second (m/s);
- feet per second (ft/s).
This formula is one part of the broader Distance, Speed and Time Formula relationship.
How Do You Calculate Speed Step by Step?
Use four steps.
Step 1: Identify the Distance
Find the total distance traveled.
Example:
Step 2: Identify the Time
Find the total elapsed time.
Example:
Step 3: Make Sure the Units Match
If distance is in miles and you want miles per hour, the time must be expressed in hours.
Here:
2.5 hours
is already suitable.
Step 4: Divide Distance by Time
Use:
So:
The average speed is 60 miles per hour.
Why Is Speed Equal to Distance Divided by Time?
Speed describes how much distance is covered during a given amount of time.
Suppose an object travels:
120 miles
in:
2 hours
That means it covers, on average:
during each hour.
Therefore:
The same relationship applies to any compatible units.
For example:
What Is Average Speed?
Average speed is:
OpenStax defines average speed as total distance traveled divided by the time during which the motion occurs.
For example:
Then:
The object does not need to travel at 60 mph every second.
It may travel:
- faster during some parts;
- slower during others;
- stop temporarily.
The final 60 mph value describes the entire trip.
Is the Speed Formula the Same as the Average Speed Formula?
For a completed trip, yes:
When people ask how to calculate speed from the total trip distance and total trip time, they are normally calculating average speed.
Instantaneous speed is different.
Instantaneous speed describes how fast something is moving at a specific moment.
For example, a car speedometer shows approximately instantaneous speed rather than average trip speed.
Example: Calculate Speed in Miles Per Hour
Suppose:
Use:
The average speed is:
60 miles per hour
Example: Calculate Speed in Kilometers Per Hour
Suppose a vehicle travels:
350 km
in:
5 hours
Then:
The average speed is 70 kilometers per hour.
Example: Calculate Speed in Meters Per Second
Suppose a runner covers:
400 meters
in:
50 seconds
Use:
The runner's average speed is:
8 meters per second
How Do You Calculate Speed When Time Is in Minutes?
Convert the minutes into the time unit required by the speed.
If you want miles per hour, convert minutes to hours.
Use:
For example:
Convert the time:
Then:
How Do You Calculate Speed for 30 Minutes?
Suppose:
Convert:
Then:
A common mistake is to divide:
25 ÷ 30
without converting minutes to hours first.
That would not produce miles per hour.
How Do You Calculate Speed When Time Is in Seconds?
If the distance is in meters and time is in seconds, no conversion is needed to get meters per second.
For example:
Then:
If you want the result in km/h, convert afterward:
So:
How Do You Convert Minutes and Seconds Into Hours?
Suppose the travel time is:
2 hours 30 minutes
Convert the minutes:
Then:
For:
150 miles in 2 hours 30 minutes
calculate:
How Do You Calculate Speed From Hours, Minutes and Seconds?
Convert the full time into one unit.
Suppose:
Convert minutes:
Convert seconds:
Then:
Now:
CalculatorSoup similarly supports hours, minutes, seconds, and combined time formats when solving speed-distance-time problems.
Why Must Distance and Time Units Be Compatible?
Units determine the meaning of the result.
If:
Distance = miles
and:
Time = hours
then:
Speed = miles per hour
If:
Distance = kilometers
and:
Time = hours
then:
Speed = kilometers per hour
If:
Distance = meters
and:
Time = seconds
then:
Speed = meters per second
Problems occur when you mix units without converting them first.
For example:
100 miles ÷ 120 minutes
does not immediately give mph.
Convert:
Then:
How Do You Calculate MPH?
Miles per hour means:
Miles traveled ÷ Hours elapsed
So:
For example:
The average speed is:
55 mph
How Do You Calculate KM/H?
Use:
For example:
Then:
How Do You Calculate Meters Per Second?
Use:
For example:
Then:
How Do You Convert MPH to KM/H?
Use:
For example:
60 mph × 1.609344
≈ 96.56 km/h
Calculator.net gives the same standard relationship, with 1 mph approximately equal to 1.60935 km/h.
How Do You Convert KM/H to MPH?
Use:
For example:
100 km/h × 0.621371
≈ 62.14 mph
How Do You Convert M/S to KM/H?
Use:
For example:
15 m/s × 3.6
= 54 km/h
How Do You Convert M/S to MPH?
Use approximately:
For example:
10 m/s × 2.23694
≈ 22.37 mph
Speed Conversion Quick Reference
| From | To | Formula |
|---|---|---|
| mph | km/h | mph × 1.609344 |
| km/h | mph | km/h × 0.621371 |
| m/s | km/h | m/s × 3.6 |
| km/h | m/s | km/h ÷ 3.6 |
| m/s | mph | m/s × 2.23694 |
| mph | m/s | mph × 0.44704 |
What Is the Difference Between Speed and Velocity?
Speed and velocity are not identical in physics.
Speed describes how fast something moves.
Velocity describes how fast something moves and in which direction.
OpenStax describes speed as a scalar quantity and velocity as a vector quantity that includes direction.
For example:
60 mph
is a speed.
60 mph north
contains both magnitude and direction and therefore describes velocity more completely.
Can You Calculate Velocity With Distance and Time?
Not correctly from distance alone.
Average velocity uses displacement, not total distance:
Suppose you walk:
2 miles east
and then:
2 miles west
Total distance:
4 miles
Final displacement:
0 miles
So:
while:
Average velocity requires displacement and elapsed time, while average speed uses total distance and elapsed time.
Distance vs Displacement
Distance measures total path length.
Displacement measures the change from starting position to ending position.
Example:
Start at:
Point A
walk 5 miles east, then return 5 miles west.
Total distance:
10 miles
Displacement:
0 miles
Average speed can still be positive.
Average velocity over the entire journey is zero because the final position equals the initial position.
What Is Instantaneous Speed?
Instantaneous speed describes how fast an object is moving at one particular moment.
Examples include:
- speed shown on a car speedometer;
- speed of a runner at a particular second;
- speed of a moving object at a specific instant.
Average speed instead considers the entire selected interval.
OpenStax distinguishes average speed from instantaneous speed in exactly this way.
Can Average Speed Be Different From the Speedometer Reading?
Yes.
Suppose a road trip includes:
- 70 mph highway driving;
- 30 mph city driving;
- traffic stops.
Your speedometer may show 70 mph at one moment.
But the average speed for the full trip could be:
48 mph
because the total distance is divided by the total elapsed time.
Instantaneous speed and trip-average speed answer different questions.
How Do You Calculate Average Speed for a Road Trip?
Use:
Suppose:
Then:
For the road mileage itself, use the Driving Distance Calculator.
Should Stops Be Included in Average Speed?
It depends on what you mean by total time.
If you want the average speed for the entire trip, include all elapsed time, including stops.
Suppose:
Total elapsed time:
3.5 hours
Then:
≈ 57.14 mph
If you exclude the stop:
≈ 66.67 mph
Both values can be useful, but they describe different intervals.
How Do You Calculate Speed for Multiple Trip Segments?
Do not simply average the segment speeds unless the weighting makes that valid.
Instead use:
Suppose:
Segment 1
60 miles at 30 mph
Time:
Segment 2
60 miles at 60 mph
Time:
Total distance:
120 miles
Total time:
3 hours
Then:
The simple arithmetic average:
is wrong for this trip.
The dedicated Average Speed Calculator Explained page covers multi-segment cases in more detail.
Why Is the Average Speed 40 MPH Instead of 45 MPH?
Because you spend more time traveling at the slower speed.
At 30 mph, the first 60 miles takes:
2 hours
At 60 mph, the second 60 miles takes:
1 hour
The slower section therefore contributes twice as much time to the trip.
Average speed must account for that unequal time.
How Do You Calculate Speed for Equal Time Intervals?
If equal amounts of time are spent at each speed, the ordinary arithmetic average works.
Suppose:
1 hour at 40 mph
and:
1 hour at 60 mph
Distance traveled:
Total time:
2 hours
Average speed:
Arithmetic average:
The values match because the time intervals are equal.
How Do You Calculate Speed for Equal Distances?
For equal distances traveled at two different speeds, the ordinary arithmetic mean is generally incorrect.
Suppose:
60 miles at 30 mph
and:
60 miles at 60 mph
we already found:
This equal-distance case is governed by the harmonic relationship between the speeds rather than the simple arithmetic mean.
For two equal-distance segments with speeds v₁ and v₂:
For:
Then:
= 3,600 ÷ 90
= 40 mph
How Do You Calculate Required Speed to Arrive on Time?
Use:
Suppose:
Then:
This is a mathematical average requirement, not a recommendation to exceed legal or safe speeds.
Actual driving should always follow applicable speed limits and road conditions.
How Fast Must You Travel 100 Miles in 2 Hours?
Use:
You need an average speed of 50 mph across the full two-hour interval.
How Fast Must You Travel 300 Miles in 5 Hours?
Use:
What Speed Is 5 Miles in 30 Minutes?
Convert:
Then:
What Speed Is 1 Mile in 10 Minutes?
Convert:
= 1/6 hour
Then:
What Speed Is 1 Mile in 20 Minutes?
Convert:
Then:
This corresponds to a pace of 20 minutes per mile.
Speed vs Pace
Speed measures:
distance per unit time
Pace measures:
time per unit distance
For example:
corresponds to:
The formulas are reciprocal when compatible units are used.
CalculatorSoup's current pace calculator likewise defines speed as distance divided by time and pace as time divided by distance.
How Do You Convert Speed to Pace?
For mph and minutes per mile:
For example:
Then:
At:
3 mph
pace is:
How Do You Calculate Running Speed?
Use the same formula:
For example:
Convert:
≈ 0.41667 hours
Then:
≈ 12 km/h
How Do You Calculate Walking Speed?
Use:
For example:
Then:
For actual walking-path distance, use the Walking Route Distance Calculator rather than straight-line map distance.
How Do You Calculate Cycling Speed?
Suppose:
Then:
Again, this is average speed over the full time interval.
How Does Speed Relate to Driving Distance?
To calculate average trip speed, you need the distance traveled.
For road travel, this should normally be driving distance, not straight-line geographic distance.
Suppose:
but:
and:
Using straight-line distance would give:
Using actual route distance gives:
For vehicle travel, the second calculation better represents average road speed.
Why Shouldn't You Use As-the-Crow-Flies Distance for Driving Speed?
Because a vehicle travels along the road route.
Average speed should use the distance actually traveled.
If you divide direct geographic separation by travel time, you are measuring a different ratio.
For route mileage, use the Driving Distance Calculator.
For direct geographic separation, use the Distance Calculator.
Does Traffic Change Average Speed?
Yes.
Traffic can increase elapsed time while the route distance remains similar.
Suppose:
Without congestion:
Average speed:
60 mph
With congestion:
Average speed:
60 ÷ 1.5
40 mph
The distance did not change, but average speed fell because the journey took longer.
Do Stops Reduce Average Speed?
Yes, when stop time is included in the elapsed time.
Suppose:
Driving time:
2 hours
Rest break:
30 minutes
Total time:
2.5 hours
Trip average:
Moving average excluding the stop:
Always define which time interval you are using.
Can Speed Be Zero?
Yes.
If an object is stationary during an interval:
so:
What Happens if Time Is Zero?
The formula:
cannot be used with zero elapsed time for a nonzero distance because division by zero is undefined.
A finite distance cannot be traveled in zero time with a finite speed.
Can Speed Be Negative?
Ordinary speed is nonnegative because it describes magnitude.
Velocity can be positive or negative when direction is represented along an axis.
For example:
might indicate movement in the negative x-direction.
The corresponding speed is:
20 m/s
Can Time Be Negative?
Elapsed travel time is normally nonnegative.
A negative time difference may appear because of an incorrectly ordered timestamp calculation, but it should not represent ordinary trip duration.
Common Mistakes When Calculating Speed
Using the Wrong Formula
Use:
not:
Distance × Time
Forgetting to Convert Minutes
For mph, convert minutes to hours first.
Mixing Kilometers and Miles
Convert units before dividing.
Using Straight-Line Distance for a Road Trip
Use actual road mileage when calculating driving speed.
Ignoring Stops
Decide whether average speed should include the entire elapsed trip time.
Averaging Speeds Directly
Do not average segment speeds without considering time or distance weighting.
Confusing Speed With Velocity
Speed uses distance.
Average velocity uses displacement.
Rounding Too Early
Keep intermediate values precise and round the final result.
Speed Formula Quick Reference
Examples:
| Distance | Time | Average Speed |
|---|---|---|
| 120 miles | 2 hours | 60 mph |
| 150 miles | 3 hours | 50 mph |
| 300 km | 4 hours | 75 km/h |
| 100 m | 20 sec | 5 m/s |
| 30 miles | 45 min | 40 mph |
Which Formula Should You Use?
Use:
when distance and time are known.
Use:
when speed and time are known.
Use:
when distance and speed are known.
See the Distance, Speed and Time Formula hub for all three relationships.
Frequently Asked Questions
How do you calculate speed?
Divide distance traveled by elapsed time:
What is the speed equation?
The standard speed equation is:
where s is speed, d is distance, and t is time.
What is the formula for average speed?
How do I calculate speed in mph?
Divide miles traveled by time in hours.
How do I calculate speed when time is in minutes?
Convert minutes to hours first, then divide distance by time.
How do I calculate velocity?
Average velocity is displacement ÷ time, not distance ÷ time. Velocity also includes direction.
Is speed the same as velocity?
No. Speed is scalar and has magnitude only. Velocity is a vector and includes direction.
Is average speed the average of two speeds?
Not necessarily. Use total distance divided by total time unless the circumstances justify a simpler average.
What is the average speed for equal distances at 30 mph and 60 mph?
For equal distances, the average speed is 40 mph, not 45 mph.
Can speed be negative?
Ordinary speed cannot be negative. Signed motion is described using velocity.
What distance should I use for a road-trip speed calculation?
Use the actual driving-route distance rather than straight-line geographic distance.
