How to Calculate Average Speed Across Multiple Segments
Learn the harmonic mean shortcut and total-distance/total-time method for average speed problems, with worked examples and MCQs.
Expected Interview Answer
Average speed for a multi-segment journey is always total distance divided by total time, never the simple average of the individual segment speeds unless every segment takes the same time.
The trap in these problems is assuming average speed is (S1 + S2)/2, which is only true when the two segments take equal time — otherwise the slower segment weighs more heavily because the traveler spends longer in it. For equal distances at two different speeds, the correct shortcut is the harmonic mean: Average Speed = 2×S1×S2/(S1+S2). For segments with different, unequal distances, there is no shortcut formula — compute each segment’s time as distance/speed, sum the distances, sum the times, and divide. The harmonic mean shortcut only applies to the equal-distance, two-speed case; adding a third segment or unequal distances forces the full total-distance-over-total-time method.
- Prevents the classic arithmetic-mean trap that misleads most candidates
- The harmonic mean shortcut solves equal-distance two-speed problems instantly
- The total-distance/total-time method generalizes to any number of segments
- Builds the same total-over-total instinct used in weighted-average problems
AI Mentor Explanation
A batter scores at a strike rate of 100 for the first 30 balls faced and at a strike rate of 50 for the next 30 balls — the overall strike rate across all 60 balls is total runs divided by total balls, not the simple average of 100 and 50. Since both spells used the same number of balls, the harmonic-mean-style shortcut happens to match the arithmetic mean here, giving 75. But if the two spells had used a different number of balls each, only recomputing from total runs over total balls would give the correct combined strike rate. Average speed across unequal-time segments obeys exactly this total-over-total rule, never a naive average of the two rates.
Worked example (equal distances)
Segment 1
- 100km at 50km/h
- Time = 2h
Segment 2
- 100km at 100km/h
- Time = 1h
Average speed
- 200/3 = 66.67 km/h
Step-by-Step Explanation
Step 1
Check if distances are equal
Equal-distance two-speed case allows the harmonic mean shortcut.
Step 2
Apply harmonic mean if applicable
Average Speed = 2×S1×S2/(S1+S2) for equal distances only.
Step 3
Otherwise compute totals
Find each segment’s time as distance/speed, then sum distances and sum times.
Step 4
Divide total distance by total time
This total-over-total method works for any number of segments, equal or not.
What Interviewer Expects
- Rejecting the naive arithmetic mean of speeds as the default answer
- Correct application of the harmonic mean for equal-distance two-speed cases
- Falling back to total-distance/total-time for unequal distances or 3+ segments
- Recognizing why the slower segment disproportionately affects the average
Common Mistakes
- Averaging the two speeds directly regardless of whether times or distances are equal
- Applying the harmonic mean formula when distances are actually unequal
- Forgetting to convert speed and time into consistent units before summing
- Using average of average speeds instead of recomputing from total distance and time
Best Answer (HR Friendly)
“The golden rule is average speed equals total distance over total time, full stop — never the simple average of the individual speeds. If the two segments cover equal distances, there is a shortcut, the harmonic mean, 2 times speed one times speed two over their sum. But the moment distances are unequal or there are more than two segments, you fall back to adding up all the distances, adding up all the times, and dividing once.”
Follow-up Questions
- Why does the harmonic mean only apply to equal-distance segments, not equal-time segments?
- How would you compute average speed for three unequal segments?
- What is the average speed if the same speed is used for the whole equal-time round trip?
- How does this total-over-total method connect to weighted averages in general?
MCQ Practice
1. A car travels 60km at 30km/h and 60km at 60km/h. Its average speed for the trip is?
Total distance = 120km; total time = 2 + 1 = 3h; average speed = 120/3 = 40 km/h (matches harmonic mean 2×30×60/90=40).
2. A cyclist rides 20km at 20km/h, then 30km at 15km/h. The average speed for the full ride is closest to?
Time1 = 1h, Time2 = 2h; total distance = 50km, total time = 3h; average speed = 50/3 ≈ 16.7 km/h.
3. When is average speed equal to the simple arithmetic mean of two segment speeds?
Arithmetic mean of speeds is only correct when time spent in each segment is equal.
Flash Cards
General average speed formula? — Total distance ÷ total time — never a simple average of speeds.
Harmonic mean shortcut, when valid? — Equal-distance, two-speed case: 2×S1×S2/(S1+S2).
When is arithmetic mean of speeds correct? — Only when both segments take equal time, not equal distance.
Three or more unequal segments? — No shortcut — sum distances, sum times, divide once.