How to Solve Trains Crossing Each Other Problems
Solve trains-crossing-each-other aptitude problems using relative speed rules and combined train lengths, with a worked example and practice questions.
Expected Interview Answer
When two trains cross each other, the relevant speed is their relative speed β the sum of both speeds if moving in opposite directions, or the difference if moving in the same direction β and the distance covered is the sum of both train lengths.
Two trains βcrossβ each other from the moment their fronts meet to the moment their rears separate, so the combined distance covered is always the sum of the two train lengths, regardless of direction. The critical variable is relative speed: opposite directions mean the trains close the gap faster, so relative speed = speed1 + speed2, while same-direction motion means the faster train only gains ground at the difference, so relative speed = speed1 β speed2. Time to cross = (sum of lengths) / relative speed. As with all speed problems, ensure both speeds are converted to the same unit before combining them.
- The sum-of-lengths rule applies regardless of direction
- Choosing sum vs difference of speeds is the single decision point
- Generalizes directly to two-body relative-motion problems beyond trains
AI Mentor Explanation
Two fielders running toward each other to field a ball close the gap at the combined sum of their speeds, reaching each other far faster than either could alone β that is opposite-direction relative speed. If instead one fielder is chasing another running the same way, the gap closes only at the difference of their speeds, since the trailing fielder gains ground slowly. Trains crossing each other work identically: opposite directions add speeds, same direction subtracts them, and the βcrossingβ distance is the sum of both trains' lengths.
Worked example (opposite directions)
Relative speed
- 60 + 40 = 100 km/h
- β 27.78 m/s
Total length
- 120m + 180m
- = 300m
Time
- 300 / 27.78
- β 10.8 s
Step-by-Step Explanation
Step 1
Determine direction
Opposite directions β add speeds; same direction β subtract speeds.
Step 2
Compute relative speed
Convert both speeds to the same unit before combining.
Step 3
Sum both lengths
Total distance to cross = length of train A + length of train B.
Step 4
Divide
Time = total length / relative speed.
What Interviewer Expects
- Correctly choosing sum vs difference of speeds based on direction
- Adding both train lengths for the total crossing distance
- Consistent unit conversion before combining speeds
- Recognizing this generalizes to any two-body relative-motion problem
Common Mistakes
- Adding speeds when trains move in the same direction (should subtract)
- Using only one train's length instead of the sum of both
- Converting only one speed to m/s and leaving the other in km/h
- Confusing relative speed with average speed
Best Answer (HR Friendly)
βI first check the direction: if the trains move toward each other I add their speeds, and if they move the same way I subtract them, since that gives the relative speed at which the gap closes. Then I add both train lengths together because crossing only finishes once the two trains fully separate. Dividing the combined length by the relative speed gives the time to cross.β
Follow-up Questions
- How does the formula change if the trains are moving in the same direction?
- How would you find one train's speed if the other's speed, both lengths, and crossing time are known?
- How does this generalize to two people walking toward or away from each other?
- What happens to relative speed if one train is stationary?
MCQ Practice
1. Two trains, 150m and 250m long, move toward each other at 50 km/h and 70 km/h. Time to cross each other is approximately?
Relative speed = 120 km/h β 33.33 m/s. Total length = 400m. Time = 400/33.33 = 12s.
2. Two trains 100m each, moving in the same direction at 45 km/h and 36 km/h, take how long for the faster to completely pass the slower?
Relative speed = 45β36 = 9 km/h = 2.5 m/s. Total length = 200m. Time = 200/2.5 = 80s.
3. When two trains cross each other, the total distance covered equals?
Crossing ends only when the two trains fully separate, so total distance = length1 + length2.
Flash Cards
Relative speed, opposite directions? β Sum of both speeds.
Relative speed, same direction? β Difference of both speeds.
Crossing distance for two trains? β Sum of both train lengths.
Formula for time to cross? β Time = (length1 + length2) / relative speed.