Average Speed Calculator
Average speeds correctly when the travel legs have equal distances or equal durations. Use one consistent speed unit across the list.
Use consistent units. Enter numbers without thousands separators. Invalid input clears all results.
Inputs and results
Choose the matching mode, then read each field label and note. Results use the same length, time, currency or quantity units as the inputs unless a label says otherwise. A negative change means a decrease.
Formula
Average speed = total distance / total elapsed time. For k equal distances: k / Σ(1/vi), the harmonic mean. For equal durations: Σvi/k, the arithmetic mean.
Worked example
Travel 60 km at 30 km/h and return 60 km at 60 km/h. Time = 2+1 = 3 h; average = 120/3 = 40 km/h. For one hour at each speed, the average is 45 km/h.
Limits and edge cases
No unlisted stops are included. Equal-distance speeds must be positive; zero would require infinite travel time. Equal-time mode accepts zero speed. Negative speed is not used because this page computes speed, not signed velocity. Decimal calculations use floating-point arithmetic; displayed values are rounded to 12 significant digits. This is an educational tool, not a guarantee about investments or physical systems.
FAQ
Should I average the two speedometer readings?
Only when the time spent at each speed is equal.
Which units are returned?
If inputs are km/h and km, time is hours and average speed is km/h.
Formula reference
Background mathematics. Explanation and examples on this page are independently written.