Speed Calculator

Calculate average speed from distance and time. Enter the distance traveled and the elapsed time to get the speed in distance units per time unit (e.g. km per hour). Speed = distance / time.

Speed50 per unit time
Pace (time per unit distance)
0.02 time per unit distance

Speed is expressed in the chosen distance unit per the chosen time unit (for example km/h or mi/min). Make sure distance and time use units that match your intended result. This computes average speed over the whole trip, not instantaneous speed.

What the Speed Calculator Does and Who It's For

This Speed Calculator finds the average speed of a trip when you know the total distance traveled and the total time it took. Enter a distance and a time, and it returns the speed in units like miles per hour (mph), kilometers per hour (km/h), or meters per second (m/s).

It is useful for drivers estimating travel speed, runners and cyclists checking pace, students solving physics and math homework, and anyone planning a journey. Because it reports average speed, it answers the practical question: if I covered this distance in this time, how fast was I going overall?

How the Speed Formula Works

Average speed is total distance divided by total time:

speed = distance / time

The key word is average. This formula spreads your travel evenly across the whole trip, even if you actually sped up, slowed down, or stopped. It does not measure your fastest moment or your speed at any single instant; it describes the entire journey as one number.

Speed and velocity are related but not identical. Speed is how fast you move (a magnitude only). Velocity also includes direction. For a straight-line trip in one direction, the average speed and the magnitude of the average velocity match, which is why the two terms are often used together for everyday calculations.

Keep Your Units Consistent

The unit of the answer comes directly from the units you put in. Mixing them is the most common source of wrong results.

A few quick reminders:

  • Distance in miles + time in hours -> speed in mph
  • Distance in kilometers + time in hours -> speed in km/h
  • Distance in meters + time in seconds -> speed in m/s
  • Convert time fully into one unit first: 1 hour 30 minutes is 1.5 hours, not 1.30
  • To go from km/h to m/s, divide by 3.6; to reverse it, multiply by 3.6

Worked Example With Real Numbers

Suppose you drive 150 miles and the trip takes 2 hours and 30 minutes. First convert the time into hours: 30 minutes is 0.5 hours, so the total is 2.5 hours.

Now apply the formula: speed = 150 miles / 2.5 hours = 60 mph. Your average speed for the drive was 60 mph.

Note that even if you sat in traffic for part of the way and drove 75 mph at other times, the average over the whole trip is still 60 mph. That is exactly what this calculator reports.

Common Mistakes and Factors That Affect the Result

Average speed is not the simple average of two speeds. If you drive 60 mph for one leg and 30 mph for another, the trip average is usually not 45 mph, because you spend more time on the slower leg. Always work from total distance and total time, not by averaging the speeds themselves.

  • Include stops in your time if you want a true overall average; exclude them if you only want moving speed
  • Round-trip distance differs from one-way distance, so confirm which one you are measuring
  • Decimal minutes trip people up: 45 minutes is 0.75 hours, not 0.45
  • GPS or odometer readings may differ slightly, which shifts the distance figure
  • For instantaneous speed (your speed right now), this average formula does not apply

Frequently asked questions

How is speed calculated?

Speed equals distance divided by time. For example, traveling 100 km in 2 hours gives a speed of 50 km/h.

What units does this use?

The result is in whatever distance unit you enter per whatever time unit you enter. Enter km and hours for km/h, or miles and hours for mph.

Is this average or instantaneous speed?

This calculates average speed across the entire trip. It cannot measure how fast you were going at any single instant.

What is the pace output?

Pace is the inverse of speed: time per unit of distance. It is useful for running or cycling, such as minutes per kilometer.