Average speed is a trip-level rate
Average speed equals total distance traveled divided by total elapsed time. The numerator counts path length, regardless of direction; the denominator counts the duration covered by the stated trip. Formula: average speed = total distance ÷ total elapsed time. This differs from the arithmetic mean of speed readings because a speed that lasts longer—or covers more distance under a particular comparison—must influence the trip total accordingly.
Define the trip boundaries before calculating. If elapsed time is measured from departure to arrival, traffic delays, rest stops, and stationary periods inside those boundaries count even though they add no distance. If the question explicitly asks for moving average speed, stationary time may be excluded, but that is a different denominator and should be labeled. Distance and time must be expressed in compatible units before division.
Worked example: one distance and duration
Input: a cyclist travels 36 kilometers in 1.5 hours. Formula: average speed = total distance ÷ total elapsed time. Calculation: 36 km ÷ 1.5 h = 24 km/h. Result: average speed is 24 km/h. Interpretation: the complete ride covers distance at the same overall rate as a constant 24 kilometers each hour, although actual speed may have varied.
Check by reversing the rate: 24 km/h × 1.5 h = 36 km. If time were recorded as 90 minutes, convert it to 90 ÷ 60 = 1.5 hours before calculating km/h. Dividing 36 by 90 gives 0.4 kilometers per minute, which is correct in that unit but is not 0.4 km/h. Always carry units through the arithmetic so an unnoticed minutes-versus-hours error is visible.
Worked example: equal-distance return trip
Input: travel 60 miles outward at 30 mph and 60 miles back at 60 mph. Formula: average speed = total distance ÷ total time. Calculation: outward time = 60 ÷ 30 = 2 hours; return time = 60 ÷ 60 = 1 hour; total distance = 120 miles; total time = 3 hours; average = 120 ÷ 3 = 40 mph. Result: average speed is 40 mph, not 45 mph.
Interpretation: the slower speed lasts twice as long, so it has greater influence. The direct mean (30 + 60) ÷ 2 = 45 assumes equal time at each speed, not equal distance. For two equal distances at positive speeds a and b, the result is the harmonic expression 2ab ÷ (a + b), but reconstructing distance and time is safer and extends to unequal segments. A round trip has nonzero average speed even though it ends where it began.
Worked example: include a stop in elapsed time
Input: a driver covers 90 miles in 1.5 hours, stops for 30 minutes, then covers 30 miles in 0.5 hour. Formula: trip average = total distance ÷ total elapsed time. Calculation: distance = 90 + 30 = 120 miles; elapsed time = 1.5 + 0.5 stop + 0.5 travel = 2.5 hours; average = 120 ÷ 2.5 = 48 mph. Result: overall average speed is 48 mph.
Interpretation: the stop contributes time but no distance, lowering the departure-to-arrival rate. Excluding the stop gives moving average speed 120 ÷ 2 = 60 mph. Both values can be correct when clearly labeled. A frequent reporting error mixes a navigation app’s moving time with a clock-based elapsed-time claim. State whether stops, queues, overnight breaks, or loading periods are inside the measured interval.
Worked example: equal time permits a direct mean
Input: travel exactly 2 hours at 40 km/h and 2 hours at 70 km/h, without additional stopped time. Formula: average speed = total distance ÷ total time. Calculation: distances are 40 × 2 = 80 km and 70 × 2 = 140 km; total distance = 220 km; total time = 4 hours; average = 220 ÷ 4 = 55 km/h. Result: average speed is 55 km/h.
Here (40 + 70) ÷ 2 also equals 55 because the two speeds apply for equal durations. More generally, segment speeds can be time-weighted: Σ(speed × duration) ÷ Σduration. Directly averaging three readings is justified only when each represents the same duration and together they cover the full interval. GPS samples, speedometer glances, or unequal-duration segments do not automatically meet that condition.
Convert mph, km/h, and m/s consistently
Miles per hour pairs miles with hours; kilometers per hour pairs kilometers with hours; meters per second pairs meters with seconds. Useful exact or defined relationships include 1 hour = 3,600 seconds, 1 kilometer = 1,000 meters, and 1 international mile = 1,609.344 meters. Therefore 1 m/s = 3.6 km/h and 1 mph = 1.609344 km/h. Convert either all distances and times before division or convert the final speed once.
Input: 500 meters in 40 seconds. Formula: speed = 500 m ÷ 40 s. Calculation: 12.5 m/s; conversion = 12.5 × 3.6 = 45 km/h. Result: 12.5 m/s equals 45 km/h. Interpretation: the two figures describe the same rate on different unit scales. Do not combine miles with minutes and label the raw quotient mph, or add kilometers and miles before converting one of them.
Speed is not velocity
Speed is a nonnegative scalar based on distance traveled. Average velocity uses displacement—the signed change from starting position to ending position—divided by elapsed time, so direction matters. A 10-kilometer outward trip followed by 10 kilometers back has 20 kilometers of distance but zero displacement. Its average speed is positive; its average velocity over the entire round trip is zero.
The distinction matters for return trips, loops, and motion in different directions. Adding signed velocities without a consistent coordinate system is not an average-speed calculation. A trip with zero distance over positive elapsed time has average speed zero. Zero elapsed time with nonzero distance would require division by zero and does not yield a finite average speed; negative durations are invalid for this ordinary elapsed-time calculation and usually indicate reversed timestamps or data errors.
Calculator boundary and error checks
The linked Average Calculator computes the arithmetic mean, count, sum, minimum, and maximum of numbers. It does not know which numbers are distances, times, or speeds; it cannot convert units, include stops automatically, reconstruct segment time, or distinguish speed from velocity. Entering 30 and 60 returns 45 because it gives them equal weight, which is not the 40 mph result for the equal-distance return trip above.
Use explicit distance and time totals for the final division, or use a weighted calculation only when weights correctly represent duration. Common mistakes are directly averaging equal-distance speeds, omitting stationary time without labeling the result, converting minutes as decimal hundredths of an hour, mixing units, and using displacement when distance is required. Verify that average speed is nonnegative, multiplication by total time reconstructs total distance, and the result fits the segment context. For segments with positive duration, the trip average cannot be below every segment speed or above every segment speed unless stopped time, an omitted segment, or a different boundary changes the comparison. Record departure and arrival consistently, convert timestamps to durations before summing, and avoid rounding each segment time because small losses can accumulate. If the problem provides distance and speed, derive time as distance ÷ speed for every segment; if it provides speed and time, derive distance as speed × time. Never mix those two weighting bases casually. State whether reported digits reflect measured precision: a route distance estimated to the nearest mile does not justify an average displayed to six decimal places.