TECHNOLOGIESTieInn Technologies

Problems on trains

Trains: two trains, same or opposite way

7 min read · 8 practice questions · free

Useful for:IT testsBanksSSC / RailwaysTNPSC

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

  1. Find the relative speed (add or subtract), then convert to m/s.
  2. Distance to cross each other completely = sum of the two lengths.
  3. 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.

Try it

Pick an answer and press Check. Generated questions get new numbers every time you ask.

  1. Question 1easy

    Two trains 450 m and 430 m long run on parallel tracks at 117 km/h and 81 km/h in opposite directions. How long do they take to cross each other completely?

  2. Question 2easy

    Two trains 600 m and 520 m long run on parallel tracks at 135 km/h and 117 km/h in opposite directions. How long do they take to cross each other completely?

  3. Question 3easy

    Two trains 200 m and 280 m long run on parallel tracks at 81 km/h and 63 km/h in opposite directions. How long do they take to cross each other completely?

  4. Question 4medium

    Two trains 160 m and 135 m long run on parallel tracks at 54 km/h and 72 km/h in the same direction. How long do they take to cross each other completely?

  5. Question 5medium

    Two trains 90 m and 75 m long run on parallel tracks at 135 km/h and 81 km/h in the same direction. How long do they take to cross each other completely?

  6. Question 6medium

    Two trains 60 m and 50 m long run on parallel tracks at 90 km/h and 126 km/h in the same direction. How long do they take to cross each other completely?

  7. Question 7hard

    A train 960 m long passes a man walking at 3 km/h in the same direction as the train in 24 seconds. What is the speed of the train?

  8. Question 8hard

    A train 360 m long passes a man walking at 9 km/h in the same direction as the train in 18 seconds. What is the speed of the train?

Ready for a timed set?

Fresh questions on just this problem type, with a score and every explanation at the end. Free.

Test me on this →