Average Speed Calculator
Calculate average speed from distance and time, solve for any missing variable, or find the true average speed across multiple trip segments.
Choose which variable to solve for, then enter the other two.
Add trip segments with distance and speed (or time). The calculator finds the true average speed using total distance / total time.
How Average Speed is Calculated
Average speed is defined as the total distance traveled divided by the total time elapsed:
This formula applies whether you are driving a car, running a marathon, or sailing across the ocean. The key insight is that average speed depends on total distance and total time -- not on the speeds of individual parts of the trip.
Why You Cannot Simply Average the Speeds
A common mistake is to take the arithmetic mean of segment speeds. This gives the wrong answer because you spend more time traveling at slower speeds. Consider this example:
Example: You drive 60 km at 60 km/h, then 60 km at 30 km/h.
- Segment 1: 60 km at 60 km/h = 1 hour
- Segment 2: 60 km at 30 km/h = 2 hours
- Total: 120 km in 3 hours = 40 km/h (not 45 km/h)
The arithmetic mean of 60 and 30 is 45, but the true average speed is 40 km/h.
The Harmonic Mean
For equal-distance segments, the true average speed equals the harmonic mean of the individual speeds:
The harmonic mean naturally weights slower speeds more heavily, which correctly accounts for the longer time spent at those speeds. For unequal-distance segments, use the general formula: total distance divided by total time.
Common Scenarios
Running Pace
Runners often track pace in minutes per mile or minutes per kilometer. If you run 5 km in 25 minutes, your average speed is 12 km/h (or a pace of 5:00 per km). Negative splits -- running the second half faster than the first -- are a common race strategy, and the true average pace uses the same total distance / total time formula.
Driving Trips
Highway and city driving at different speeds make calculating true average speed non-trivial. A 200 km trip with 150 km of highway at 110 km/h and 50 km of city driving at 40 km/h takes about 2 hours 37 minutes, for an average speed of about 76 km/h -- not the 75 km/h arithmetic mean.
Cycling
Cyclists deal with hills, wind, and stops. A 40 km ride averaging 25 km/h overall includes time spent climbing hills at 15 km/h and descending at 45 km/h. The average is closer to the climbing speed because you spend more time going uphill.
Typical Speeds Reference
| Activity / Vehicle | km/h | mph | m/s | knots |
|---|---|---|---|---|
| Walking | 5 | 3.1 | 1.4 | 2.7 |
| Jogging | 10 | 6.2 | 2.8 | 5.4 |
| Cycling (casual) | 16 | 10 | 4.4 | 8.6 |
| Cycling (road) | 28 | 17.4 | 7.8 | 15.1 |
| City driving | 40 | 25 | 11.1 | 21.6 |
| Highway driving | 110 | 68 | 30.6 | 59.4 |
| High-speed train | 300 | 186 | 83.3 | 162 |
| Commercial aircraft | 900 | 559 | 250 | 486 |
| Speed of sound (sea level) | 1,235 | 767 | 343 | 667 |
Values are typical approximations and vary by conditions.
Unit Conversion Reference
| From | To km/h | To mph | To m/s | To knots |
|---|---|---|---|---|
| 1 km/h | 1 | 0.6214 | 0.2778 | 0.5400 |
| 1 mph | 1.6093 | 1 | 0.4470 | 0.8690 |
| 1 m/s | 3.6000 | 2.2369 | 1 | 1.9438 |
| 1 knot | 1.8520 | 1.1508 | 0.5144 | 1 |
Frequently Asked Questions
How do you calculate average speed?
Average speed equals total distance divided by total time. For example, if you drive 240 km in 3 hours, your average speed is 240 / 3 = 80 km/h. For multi-segment trips, add up all segment distances and all segment times, then divide.
Why is the average of speeds wrong for calculating average speed?
The arithmetic mean of speeds gives incorrect results because you spend more time at slower speeds. If you drive equal distances at 60 km/h and 30 km/h, you spend 1 hour at 60 km/h but 2 hours at 30 km/h. The true average is 40 km/h (120 km / 3 hours), not 45 km/h.
What is the harmonic mean and how does it relate to average speed?
The harmonic mean is a type of average used for rates. For equal-distance segments, the true average speed equals the harmonic mean of the segment speeds: n / (1/v1 + 1/v2 + ... + 1/vn). This naturally gives more weight to slower speeds, producing the correct result.
What is the difference between speed and velocity?
Speed is a scalar quantity -- it measures how fast something moves regardless of direction. Velocity is a vector quantity that includes both magnitude and direction. Average speed uses total distance traveled, while average velocity uses displacement (straight-line distance from start to end point).
How do I convert between mph, km/h, m/s, and knots?
Key conversions: 1 mph = 1.609 km/h = 0.447 m/s = 0.869 knots. 1 km/h = 0.621 mph. 1 m/s = 3.6 km/h. 1 knot = 1.852 km/h. This calculator automatically shows results in all four units.
Does this calculator store my data?
No. All calculations run entirely in your browser. No data is sent to any server, and nothing is stored.
Privacy & Limitations
Privacy: This calculator runs entirely in your browser. No trip data, distances, or speeds are transmitted or stored anywhere.
Limitations: This tool calculates average speed assuming continuous travel. It does not account for acceleration, deceleration, or rest stops unless you model them as separate segments with zero speed. For GPS-based tracking with real-time speed data, a dedicated fitness or navigation app would provide more precise results.
Related Tools
- Slope Calculator -- Calculate slope (rise/run) between two points
- Probability Calculator -- Calculate probability for AND, OR, NOT, and conditional events
- Equation Solver -- Solve linear and quadratic equations step by step with detailed work shown
- Ratio Calculator -- Simplify a ratio and see the reduced form
Related Tools
View all toolsPercentage Calculator
Calculate percentages, find X% of Y, percentage change
Ratio Calculator
Simplify a ratio and see the reduced form
Number to Words Converter
Convert numbers to written English words
Scientific Notation Converter
Convert between standard and scientific notation
Decimal to Fraction Converter
Convert decimals to fractions and vice versa
Quadratic Formula Calculator
Solve ax² + bx + c = 0 with step-by-step solution
Average Speed Calculator FAQ
How do you calculate average speed?
Average speed equals total distance divided by total time. For a trip of 150 miles completed in 3 hours, the average speed is 150 / 3 = 50 mph. This is not the same as averaging the speeds of individual segments.
Why is the average of speeds wrong for calculating average speed?
The arithmetic mean of speeds is wrong because you spend more time at slower speeds. If you drive 60 mph for one segment and 30 mph for an equal-distance segment, the average is not 45 mph. It is actually 40 mph because you spend twice as long at 30 mph. The correct method is total distance divided by total time.
What is the harmonic mean and how does it relate to average speed?
The harmonic mean is used when averaging rates. For equal-distance segments, the true average speed equals the harmonic mean of the segment speeds: n / (1/v1 + 1/v2 + ... + 1/vn). This naturally accounts for the fact that slower segments take more time.
What is the difference between speed and velocity?
Speed is a scalar quantity measuring how fast something moves regardless of direction. Velocity is a vector quantity that includes both speed and direction. Average speed considers total distance traveled, while average velocity considers displacement (straight-line distance from start to end).
How do I convert between mph, km/h, m/s, and knots?
1 mph = 1.60934 km/h = 0.44704 m/s = 0.868976 knots. 1 km/h = 0.621371 mph = 0.277778 m/s = 0.539957 knots. 1 m/s = 3.6 km/h = 2.23694 mph = 1.94384 knots. 1 knot = 1.852 km/h = 1.15078 mph = 0.514444 m/s.
Does this calculator store my data?
No. All calculations run entirely in your browser. No data is sent to any server, and nothing is stored.