Sub topic 4
Average speed and why it is not the mean of speeds
This chapter assumes you know distance = speed × time, can convert between km/h and m/s, and can set up and solve a one-variable linear equation. It builds on the proportionality rules from the previous chapter. The goal is to get average speed right every time, including the cases where the quick formula does not apply.
The definition
Average speed is total distance divided by total time:
average speed = total distance ÷ total time
This is the only definition you need. Every shortcut in this chapter comes from it. The trap is that many learners average the speeds directly and write (40 + 60) ÷ 2 = 50. That is wrong when the speeds applied over different amounts of time.
Suppose you drive 60 km at 40 km/h and another 60 km at 60 km/h.
- Time for the first leg: 60 ÷ 40 = 1.5 h.
- Time for the second leg: 60 ÷ 60 = 1 h.
- Total: 120 km in 2.5 h, so the average is 120 ÷ 2.5 = 48 km/h.
The result is below 50 because you spent more time at the slower speed. The slower speed counts for more of the journey, so it pulls the average toward itself.
Average speed as a weighted mean
An average speed is a weighted mean of the speeds. What you weight by depends on what the problem holds equal.
- If the times are equal, each speed has the same weight, so the average is the ordinary arithmetic mean.
- If the distances are equal, the slower speed takes longer, so it gets more weight. The result is the harmonic mean.
- If neither is equal, weight each speed by its time, or just compute total distance ÷ total time.
| Situation | What is equal | Average speed |
|---|---|---|
| Same time at each speed | Time | (a + b) ÷ 2 |
| Same distance at each speed | Distance | 2ab ÷ (a + b) |
| Three equal distances | Distance | 3abc ÷ (ab + bc + ca) |
| Anything else | Nothing | Total distance ÷ total time |
Equal distances: the harmonic mean
Let each leg have length d, with speeds a and b.
- Total distance = 2d.
- Total time = d/a + d/b = d(a + b) ÷ ab.
- Average = 2d ÷ [d(a + b) ÷ ab] = 2ab ÷ (a + b).
The distance d cancels, which is why you do not need to know it. For 40 and 60: 2 × 40 × 60 ÷ 100 = 48.
def average_speed(legs):
"""legs is a list of (distance_km, speed_kmph) pairs."""
total_distance = sum(d for d, s in legs)
total_time = sum(d / s for d, s in legs)
return total_distance / total_time
print(average_speed([(60, 40), (60, 60)])) # 48.0
print(average_speed([(10, 30), (10, 40), (10, 60)])) # 40.0The second call shows three equal legs at 30, 40 and 60 km/h. The formula gives 3 × 30 × 40 × 60 ÷ (1200 + 2400 + 1800) = 216000 ÷ 5400 = 40. The plain mean of the three speeds is 43.33, which is wrong.
Equal times: the arithmetic mean
Now suppose you travel for the same time t at each speed. The distances are at and bt, so the average is (at + bt) ÷ 2t = (a + b) ÷ 2. The arithmetic mean is correct here, and only here.
For example, if you drive for 2 hours at 40 km/h and then 2 hours at 60 km/h, you cover 80 + 120 = 200 km in 4 h, which is 50 km/h.
The check is to ask whether the problem says "for the first hour" or "for the first half of the time". If so, the times are equal and you may take the plain mean. If it says "the first half of the distance", use the harmonic form.
def average_speed_timed(legs):
"""legs is a list of (hours, speed_kmph) pairs."""
total_distance = sum(t * s for t, s in legs)
total_time = sum(t for t, s in legs)
return total_distance / total_time
print(average_speed_timed([(2, 40), (2, 60)])) # 50.0
print(average_speed_timed([(1, 40), (3, 60)])) # 55.0The second call shows unequal times. The speed with more time gets more weight, so the answer moves toward 60.
Mixed journeys
Most CAT questions do not fit either shortcut. Use the definition and build a small table of distance, speed and time for each leg.
A journey of 120 km has its first 40 km at 20 km/h and the remaining 80 km at 40 km/h.
| Leg | Distance (km) | Speed (km/h) | Time (h) |
|---|---|---|---|
| 1 | 40 | 20 | 2 |
| 2 | 80 | 40 | 2 |
| Total | 120 | 4 |
The average is 120 ÷ 4 = 30 km/h. The speeds spent equal time here, but the distances are 1 : 2, so neither shortcut applies directly. The table handles it without any special formula.
Two habits make this reliable:
- Fill in the missing quantity on each leg. Time is usually the one you need.
- Add distances and add times, then divide once at the end. Never average the per-leg averages unless the weights are equal.
Choosing the method
Finding a missing speed
Questions often give the overall average and ask for one leg's speed. Set up the average formula and solve for the unknown.
A person goes from A to B at 40 km/h. What speed on the return trip gives a round-trip average of 48 km/h? The distances are equal, so:
2 × 40 × x ÷ (40 + x) = 48 80x = 1920 + 48x 32x = 1920 x = 60
In general, if the going speed is a and the target average is A, the return speed is x = aA ÷ (2a − A).
def return_speed(going, target_avg):
denominator = 2 * going - target_avg
if denominator <= 0:
return None # no finite speed can reach the target
return going * target_avg / denominator
print(return_speed(40, 48)) # 60.0
print(return_speed(30, 60)) # NoneThe second call is an edge case. If you go at 30 km/h, can you average 60 km/h on a round trip? The denominator is 2 × 30 − 60 = 0, so no speed works. To average 60 over the whole trip, you would need the whole trip to take as long as the outbound leg alone, and that time is already spent. Any target at or above 2a is impossible for the same reason.
Edge cases and traps
- Stops count as time. If a train halts for 10 minutes, those minutes belong in total time. Average speed including stops is lower than the running speed.
- Units must match. Convert before dividing. Distance in km needs time in hours. Mixing metres with hours gives a number that is wrong by a factor of 1000.
- Time at the lower speed is longer. For equal distances, the average is always between the two speeds and always below their arithmetic mean. If your answer is above the mean, you have made an error.
- Average speed is not average velocity. A round trip returns you to the start, so displacement is zero, but average speed is still total path length ÷ total time and is not zero. Exam questions mean speed.
- Distances given as fractions. "One-third of the way at 20 km/h and the rest at 30 km/h" means the legs are in ratio 1 : 2. Pick a convenient total, such as 3 units or 60 km, and use the table method: times are 1/20 and 2/30, total time 1/20 + 1/15 = 7/60, and the average is 3 ÷ (7/60) = 180/7 ≈ 25.7 km/h.
- Percent changes. If a car travels half the distance at 60 km/h and the rest at a speed 50% higher, the second speed is 90 km/h. The equal-distance formula gives 2 × 60 × 90 ÷ 150 = 72 km/h.
Sanity checks
Before you commit to an answer, check three things.
- Range. The average must lie between the slowest and fastest speeds used.
- Direction of pull. It must sit closer to the speed used for more time. For equal distances, that is the slower speed.
- Equal-distance bound. For equal distances, it must be less than or equal to the arithmetic mean of the speeds, with equality only when the speeds are the same.
A useful quick estimate: for equal distances at 40 and 60, the mean is 50. The gap between the speeds is 20, and the harmonic result falls below the mean by (gap/2)² ÷ mean = 100 ÷ 50 = 2, giving 48. This approximation is exact here and close for most close speeds.
Exercise
A cyclist rides the first half of a route at 12 km/h and the second half at 20 km/h. What is the average speed for the whole route?
Show answer
The distances are equal, so use 2ab ÷ (a + b) = 2 × 12 × 20 ÷ 32 = 480 ÷ 32 = 15 km/h. The plain mean, 16 km/h, is wrong.
Exercise
A car travels for 3 hours at 50 km/h and then for 1 hour at 70 km/h. A second car travels 100 km at 50 km/h and then 100 km at 70 km/h. Find the average speed of each car.
Show answer
The first car has unequal times, so use totals: distance = 150 + 70 = 220 km in 4 h, giving 55 km/h. The second car has equal distances: 2 × 50 × 70 ÷ 120 = 58.33... wait, the total is 200 km over 100/50 + 100/70 = 2 + 1.4286 = 3.4286 h, giving 58.33 km/h. Check the harmonic formula: 7000 ÷ 120 = 58.33 km/h. So the first car averages 55 km/h and the second averages about 58.33 km/h.
Exercise
A driver goes from P to Q at 60 km/h. What speed is needed on the way back so that the round-trip average is 80 km/h?
Show answer
Using x = aA ÷ (2a − A) = 60 × 80 ÷ (120 − 80) = 4800 ÷ 40 = 120 km/h. Check: 2 × 60 × 120 ÷ 180 = 80.
Exercise
A train covers one-third of a journey at 30 km/h and the remaining two-thirds at 60 km/h. Find the average speed.
Show answer
Take the journey as 3 units of distance, say 180 km. The first 60 km takes 2 h and the remaining 120 km takes 2 h. Total time is 4 h, so the average is 180 ÷ 4 = 45 km/h.