The short answer: when a train crosses something, the distance it covers is a length. Crossing a pole or a person, it is the train's own length. Crossing a platform, it is the train plus the platform. Crossing another train, it is the sum of both lengths. Then use time = distance ÷ speed, with the speed in m/s: multiply km/h by 5/18.

Converting speed

To change km/h to m/s, multiply by 5/18. So 54 km/h = 54 × 5/18 = 15 m/s. To go back, multiply by 18/5. Keep lengths in metres and times in seconds throughout.

Pole example. A 150 m train at 54 km/h passes a pole. The speed is 15 m/s and the distance is 150 m, so time = 150 ÷ 15 = 10 seconds.

Example 1: crossing a platform

A 300 m long train crosses a 200 m platform in 25 seconds. Find its speed. Distance = 300 + 200 = 500 m. Speed = 500 ÷ 25 = 20 m/s = 20 × 18/5 = 72 km/h.

Example 2: two trains in opposite directions

Two trains 100 m and 140 m long run towards each other at 60 km/h and 48 km/h. How long do they take to cross? Relative speed = 60 + 48 = 108 km/h = 108 × 5/18 = 30 m/s. Distance = 100 + 140 = 240 m. Time = 240 ÷ 30 = 8 seconds.

Example 3: overtaking

A 120 m train at 72 km/h overtakes a 180 m train going the same way at 54 km/h. How long does it take to pass completely? Relative speed = 72 − 54 = 18 km/h = 18 × 5/18 = 5 m/s. Distance = 120 + 180 = 300 m. Time = 300 ÷ 5 = 60 seconds.

Example 4: a moving person

A 200 m train passes a man walking at 6 km/h in the same direction in 20 seconds. What is the speed of the train? Relative speed = 200 ÷ 20 = 10 m/s = 10 × 18/5 = 36 km/h. This is the train's speed minus the man's, so the train goes at 36 + 6 = 42 km/h. If the man had walked towards the train, you would subtract 6 instead.

Relative speed
DirectionRelative speedDistance covered
OppositeSum of speedsSum of lengths
SameDifference of speedsSum of lengths
Train and poleTrain's speedTrain's length

When the train's own length is the unknown

If a train crosses a pole in 12 seconds and a 180 m platform in 30 seconds, use both facts. The extra 18 seconds is the time taken to cover the 180 m platform, so the speed = 180 ÷ 18 = 10 m/s, which is 36 km/h. The train's length = 10 × 12 = 120 m. Check: (120 + 180) ÷ 10 = 30 seconds, which matches. This type needs no length to be given.

A note on units and rounding

Keep everything in metres and seconds before you divide. If the answer is wanted in km/h, convert only at the end. If a speed comes out as a recurring decimal, such as 26.67 seconds for (150 + 250) ÷ 15, leave it as a fraction, 80/3 seconds, until the final step and round once.

Common mistakes

  • Leaving speed in km/h while the length is in metres.
  • Adding the speeds for trains moving the same way.
  • Forgetting the platform's length.
  • Using the sum of lengths for a pole or a person.
  • Subtracting instead of adding the man's speed when he walks towards the train.

Course · Beginner · Free

Quantitative Aptitude — Time Speed and Distance: Foundation

Foundation course on Time Speed and Distance (Quantitative Aptitude): the basics, explained from the start.

Practise train questions in a timed test.

Take a practice test

Frequently asked questions

How do I convert km/h to m/s?

Multiply by 5/18. For m/s to km/h multiply by 18/5.

Why do we add lengths when trains cross?

The crossing starts when the fronts meet and ends when the rears pass each other, so the relative distance is both lengths together.

What if two trains of equal length cross a pole in different times?

Their speeds are inversely proportional to the times taken: the quicker one takes less time.

How is a bridge different from a platform?

It is the same: distance = train length + bridge length.

Do I always need the length of the train?

Not always. If the time to cross a pole and a platform are both given, you can find the train's length and speed from the two.