What it is
Two things move at once: two trains on parallel tracks, or a train and a person walking. What matters is how fast the gap between them closes, the relative speed.
- Opposite directions (towards each other): relative speed = s₁ + s₂
- Same direction (one catching up): relative speed = s₁ − s₂ (faster minus slower)
How to solve it
- Find the relative speed (add or subtract), then convert to m/s.
- Distance to cross each other completely = sum of the two lengths.
- Time = total length ÷ relative speed.
A train and a person. A walking person has no length, so the distance is just the train's length. Use the relative speed of the train and the person.
Finding the train's speed from a walker: relative speed = length ÷ time; then add the walker's speed back (same direction) or subtract it (opposite direction).
Tips and shortcuts
- Convert after adding or subtracting. (90 + 54) km/h = 144 km/h = 40 m/s is one step, not two.
- Same direction is slower. Overtaking takes much longer than passing an oncoming train.
- Both lengths count. Crossing completely means the back ends have passed each other.
- Mixed units are a trap: a person's speed is often given in km/h; convert it with the train's.
Solved examples
Example 1 (easy): opposite directions
Trains of 200 m and 160 m run towards each other at 50 km/h and 58 km/h. Time to cross?
Relative = 108 km/h = 30 m/s. Distance = 360 m. Time = 12 seconds.
Example 2 (medium): same direction
Trains of 300 m and 200 m run the same way at 90 km/h and 54 km/h. Time for the faster to pass the slower?
Relative = 36 km/h = 10 m/s. Distance = 500 m. Time = 50 seconds.
Example 3 (hard): a walking person
A 280 m train passes a man walking at 6 km/h in the same direction in 16 seconds. Speed of the train?
Relative = 280 ÷ 16 = 17.5 m/s = 63 km/h. Train = 63 + 6 = 69 km/h.
Example 4 (hard): opposite way, a walker
The same 280 m train at 69 km/h meets a man walking at 3 km/h towards it. Time to pass him?
Relative = 72 km/h = 20 m/s. Time = 280 ÷ 20 = 14 seconds.