On this page
You are on a long cycling route with hundreds of other riders, all at their own steady pace. Some pass you; you pass others. After an hour you notice the two counts are equal. Without a speedometer, you can now say exactly how fast you were riding: at the plain average speed of all the riders on the road. This post shows why, using nothing but relative velocity, and why the answer is not the average speed a person standing at the roadside would measure.
Problem idea: St Petersburg Physics Olympiad 2026 (district round), grade 9, problem 5. The numbers and the extensions here are our own.
How often does a rider overtake you?
Start with one group. Suppose riders of speed v are spread along the road with n of them per kilometre, and you ride at u. Go into your own frame. In it, those riders drift past you at the relative speed |v − u|, and they are still n per kilometre, because the spacing on the road is a ground-frame length that does not depend on who is watching.
So in one hour, a stretch of road |v − u| kilometres long sweeps past you, carrying n|v − u| riders. The rate of passes with that group is
rate = n × |v − u|
If v > u they overtake you; if v < u you overtake them. This is the same idea as in our post on finding the bus interval from a cyclist's counts, where buses of one speed are spaced a fixed distance apart. Here there are many speeds at once. For the relative-velocity basics, see how long one train takes to overtake another.
Why do equal counts mean you ride at the average speed?
Now let there be several groups, with speeds v₁, v₂, v₃ … and densities n₁, n₂, n₃ … on the road. Write p_i = n_i/n for the share of group i among all riders on the road, where n is the total density.
Riders faster than you overtake you at a total rate Σ n_i(v_i − u), summed over the faster groups. You overtake slower riders at a rate Σ n_i(u − v_i), summed over the slower groups. Set them equal and move everything to one side:
Σ n_i(v_i − u) = 0, summed over all groups
The slower groups simply give negative terms. Divide by n:
Σ p_i v_i − u Σ p_i = 0, and since Σ p_i = 1, u = Σ p_i v_i
That is the average speed of the riders on the road, each rider counted once. Counting overtakes is a speedometer.
It goes further. If the counts are not equal, the net number of riders you pass per hour is Σ n_i(u − v_i) = n(u − ū), where ū = Σ p_i v_i. So your speed is u = ū + (net passes per hour)/n.
Worked example: three groups of cyclists
Take 20 riders per kilometre of road: half ride at 20 km/h, 30% at 25 km/h and 20% at 30 km/h. That is 10, 6 and 4 riders per kilometre.
Average over the road. ū = 0.5 × 20 + 0.3 × 25 + 0.2 × 30 = 10 + 7.5 + 6 = 23.5 km/h.
Ride at 23.5 km/h and count. You pass the 20 km/h riders at 10 × 3.5 = 35 per hour.
Riders who pass you. The 25 km/h group: 6 × 1.5 = 9 per hour. The 30 km/h group: 4 × 6.5 = 26 per hour. Total 35 per hour. The counts match.
Units check. (riders/km) × (km/h) = riders per hour. Good.
Ride at 25 km/h instead. You pass 10 × 5 = 50 per hour and 4 × 5 = 20 pass you. The net is 30 per hour, and n(u − ū) = 20 × 1.5 = 30. It checks.
What if twice as many overtake you as you overtake? Then Σ_faster p_i(v_i − u) = 2 Σ_slower p_i(u − v_i), so the slower groups count double: u = (Σ_faster p_i v_i + 2Σ_slower p_i v_i)/(Σ_faster p_i + 2Σ_slower p_i). Guess that only the 20 km/h group is slower: u = (7.5 + 6 + 20)/(0.5 + 1.0) = 33.5/1.5 ≈ 22.33 km/h. That lies between 20 and 25, so the guess was right. Check: the 25 and 30 km/h groups pass you at 16.0 + 30.7 = 46.7 per hour, and you pass 10 × 2.33 = 23.3 per hour. The ratio is 2.00.
Why is the roadside average different?
Stand at a marker post and time every rider who goes by. Fast riders reach your post more often, in proportion to n_i v_i, so they make up more of your sample. In the example the shares at the post are 42.6%, 31.9% and 25.5%, not 50%, 30% and 20%. The average of the speeds you record is
Σ n_i v_i² / Σ n_i v_i = (0.5 × 400 + 0.3 × 625 + 0.2 × 900)/23.5 = 567.5/23.5 ≈ 24.15 km/h
That is higher than the 23.5 km/h average over the road. Transport engineers call the two the space-mean speed (a snapshot of everyone on the road) and the time-mean speed (everyone passing a point). They are linked by a neat identity: time-mean = space-mean + σ²/(space-mean), where σ² is the spread (variance) of speeds over the road. Here σ² = 0.5 × 400 + 0.3 × 625 + 0.2 × 900 − 23.5² = 15.25 (km/h)², and 23.5 + 15.25/23.5 ≈ 24.15. The two averages agree only when everyone rides at the same speed.
The equal-count rule gives the space-mean, because what passes you depends on how many riders are on each stretch of road, not on how often they cross a line. Our post on the average speed for a round trip shows another case where the question is really "average over what?"
What does the model leave out?
Every rider holds a steady speed and nobody bunches into groups.
The road is long and straight, with no start or finish effects, so the densities stay the same along it.
The same reasoning works for runners in a long race or boats on a wide river, as long as each keeps a steady speed relative to the ground.
To practise relative-velocity numericals with full working, try the Fermi Problem Library, a step-by-step solver that explains the reasoning. If you are preparing for JEE Main & Advanced, Fermi Test Prep offers personalised preparation with an AI tutor, live classes, adaptive mocks, mentorship and a study plan that updates based on mastery.
Quick checklist
Passes with one group per hour: n|v − u|, density times relative speed.
Equal counts both ways: u = Σ p_i v_i, the average over the road.
Unequal counts: u = ū + (net passes per hour)/n.
Twice as many overtake you: the slower groups count double.
The roadside (time-mean) average is higher by σ²/ū.
p_i is a share of riders on the road, not of riders passing a post.



