Autocoder

Problems on trains aptitude questions with solutions

Last updated 2026-11-19

Train problems are time, speed and distance problems where the length of the train matters. The key observation is that to cross an object the train must cover its own length plus the length of that object.

The page lists the formulas and then 12 questions with full working: poles, platforms, tunnels, trains in opposite and same directions, and men walking alongside. Review time, speed and distance first if unit conversion is a problem. The overall plan is in how to crack an aptitude test.

Key formulas for trains

Shortcuts and common mistakes

Problems on trains aptitude questions with solutions: questions with worked answers

  1. 1

    A 120 m train moving at 60 km/h passes a pole. How long does it take?

    easy

    60 km/h = 60 × 5/18 = 50/3 m/s. Time = 120 / (50/3) = 7.2. Final answer: 7.2 seconds.

  2. 2

    A 150 m train moving at 54 km/h crosses a 300 m platform. How long does it take?

    easy

    54 km/h = 15 m/s. Distance = 150 + 300 = 450 m. Time = 450/15 = 30. Final answer: 30 seconds.

  3. 3

    A train running at 36 km/h passes a pole in 10 seconds. Find its length.

    easy

    36 km/h = 10 m/s. Length = 10 × 10 = 100. Final answer: 100 m.

  4. 4

    Two trains of lengths 100 m and 120 m run in opposite directions at 40 km/h and 50 km/h. How long do they take to cross each other?

    medium

    Relative speed = 90 km/h = 25 m/s. Total length = 220 m. Time = 220/25 = 8.8. Final answer: 8.8 seconds.

  5. 5

    Two trains of lengths 100 m and 80 m run in the same direction at 60 km/h and 48 km/h. How long does the faster one take to overtake the slower one?

    medium

    Relative speed = 12 km/h = 10/3 m/s. Total length = 180 m. Time = 180/(10/3) = 54. Final answer: 54 seconds.

  6. 6

    A 150 m train passes a man walking in the same direction in 18 seconds. The man walks at 6 km/h. Find the train's speed.

    medium

    Relative speed = 150/18 = 25/3 m/s = 30 km/h. Train speed = 30 + 6 = 36. Final answer: 36 km/h.

  7. 7

    A train crosses a pole in 15 seconds and a 100 m platform in 25 seconds. Find its length and speed.

    medium

    The extra 10 seconds covers the 100 m platform, so speed = 10 m/s. Length = 10 × 15 = 150 m. Final answer: 150 m and 10 m/s (36 km/h).

  8. 8

    Two trains running in opposite directions cross a man on the platform in 27 s and 17 s, and cross each other in 23 s. Find the ratio of their speeds.

    medium

    L1 = 27 v1 and L2 = 17 v2. (27v1 + 17v2)/(v1 + v2) = 23, so 27v1 + 17v2 = 23v1 + 23v2, 4v1 = 6v2, and v1 : v2 = 3 : 2. Final answer: 3 : 2.

  9. 9

    A 200 m train passes through a 1 km tunnel in 1 minute 12 seconds. Find its speed in km/h.

    medium

    Distance = 1,200 m in 72 s, so speed = 16.67 m/s. Multiply by 18/5: 60. Final answer: 60 km/h.

  10. 10

    Two trains of equal length 200 m cross each other in 10 s when going in opposite directions and in 50 s in the same direction. Find the speeds.

    hard

    v1 + v2 = 400/10 = 40 m/s and v1 - v2 = 400/50 = 8 m/s. So v1 = 24 m/s and v2 = 16 m/s. Final answer: 86.4 km/h and 57.6 km/h.

  11. 11

    A 300 m train at 54 km/h overtakes a man walking in the same direction at 3 m/s. How long does it take to pass him?

    hard

    Train speed = 15 m/s. Relative speed = 12 m/s. Time = 300/12 = 25. Final answer: 25 seconds.

  12. 12

    A train travelling at 60 km/h would save 1 hour on a journey if its speed were 20% higher. Find the distance.

    hard

    New speed = 72 km/h. d/60 - d/72 = 1 gives d × (12 - 10)/720 = 1, so d = 360. Final answer: 360 km.

Frequently asked questions

Why do we add the lengths when a train crosses a platform?

The front must travel to the end of the platform and the rear must then clear it, so the distance equals train length plus platform length.

When do I subtract the speeds?

When the trains, or train and person, are moving in the same direction. For opposite directions, add.

Do I need to convert units every time?

Yes. If lengths are in metres and times in seconds, convert km/h to m/s with 5/18.

What else should I practise?

Boats and streams uses the same relative speed logic. The TCS interview guide covers where aptitude appears in the process.

Related guides

More in Aptitude Questions for Placements

See all in this section