Problems on Trains: Formulas, Methods and Examples

Problems on Trains use distance, speed and time to calculate how long a train takes to cross a pole, person, platform or another train. The distance covered equals the train length, the sum of train and platform lengths, or the sum of train lengths. Relative speed determines the time when two objects are moving.

On this page

What Are Problems on Trains?

Problems on Trains calculate the time, speed or distance involved when a train crosses a stationary object, a platform or another moving train. The basic relation is time = distance ÷ speed.

For a train crossing a pole or person, the distance is the train's length. For crossing a platform, the distance is train length + platform length. For crossing another train, the distance is the sum of both train lengths. Use relative speed for two moving trains: add speeds in opposite directions and subtract speeds in the same direction.

Problems on Trains Formula & Tricks

Important Formulas

Basic time formula
Time = Distance ÷ Speed

Use consistent units for distance and speed. If distance is in metres and speed is in metres per second, time is in seconds.

Speed conversion
Speed in m/s = Speed in km/h × 5/18; Speed in km/h = Speed in m/s × 18/5

Convert km/h to m/s before using train lengths given in metres.

Crossing a pole or person
Time = Train length ÷ Train speed

A stationary pole or person has negligible length, so the distance covered is equal to the train length.

Crossing a platform
Time = (Train length + Platform length) ÷ Train speed

The train crosses the platform only when its rear end leaves the far end of the platform.

Two trains moving in opposite directions
Time = (Length₁ + Length₂) ÷ (Speed₁ + Speed₂)

Speeds are added because the distance between the trains decreases at the sum of their speeds.

Two trains moving in the same direction
Time = (Length₁ + Length₂) ÷ |Speed₁ − Speed₂|

Use the difference of speeds as the relative speed. The faster train must cover the combined lengths to completely overtake the slower train.

Quick Tricks

Convert speed before using train lengths

When length is in metres and speed is in km/h, multiply the speed by 5/18 first. This avoids incorrect time units.

Example: 54 km/h = 54 × 5/18 = 15 m/s.
Use combined length for complete crossing

For a platform or another train, add the relevant lengths. Crossing means the entire rear of the train has passed the object or the other train.

Example: A 180 m train crossing a 120 m platform covers 180 + 120 = 300 m.
Choose relative speed from direction

Add speeds for opposite directions and subtract speeds for the same direction. Then divide the required distance by this relative speed.

Example: At 36 km/h and 54 km/h, opposite-direction relative speed is 90 km/h, while same-direction relative speed is 18 km/h.

Problems on Trains Concepts

A Train Crossing a Pole or Person

When a train crosses a stationary pole or person, the distance used is the length of the train.

Apply time = distance ÷ speed. Convert the train speed to m/s when the length is in metres. The pole or person is treated as having zero length.

Example: A 180 m train travels at 54 km/h. Its speed is 54 × 5/18 = 15 m/s, so crossing time = 180 ÷ 15 = 12 seconds.

A Train Crossing a Platform

When a train crosses a platform, it covers the sum of the train length and platform length.

The front of the train first reaches the platform and the rear must completely leave it. Therefore, distance = train length + platform length, and time = total distance ÷ train speed.

Example: A 250 m train crosses a 150 m platform at 72 km/h. Speed = 72 × 5/18 = 20 m/s. Time = (250 + 150) ÷ 20 = 20 seconds.

Two Trains Crossing in Opposite Directions

For two trains moving in opposite directions, relative speed is the sum of their speeds and the distance is the sum of their lengths.

Use time = (Length₁ + Length₂) ÷ (Speed₁ + Speed₂). Both trains move towards each other, so the gap closes faster than the speed of either train alone.

Example: Trains of lengths 120 m and 180 m move at 36 km/h and 54 km/h in opposite directions. Relative speed = 90 km/h = 25 m/s. Time = 300 ÷ 25 = 12 seconds.

Two Trains Moving in the Same Direction

For trains moving in the same direction, relative speed is the difference between their speeds and the distance for complete overtaking is the sum of their lengths.

Use time = (Length₁ + Length₂) ÷ (Faster speed − Slower speed). Complete overtaking occurs only after the faster train's rear has passed the slower train's front.

Example: A 100 m train at 72 km/h overtakes a 200 m train at 54 km/h. Relative speed = 18 km/h = 5 m/s. Time = (100 + 200) ÷ 5 = 60 seconds.

Problems on Trains Video Lessons

Watch short topic-wise lessons for quick revision.

11 Lessons
Lesson 1 of 11 Quick Revision

Trains Crossing a Pole or Person

Learn how to calculate the time, speed, or length of a train when it crosses a pole or a person using the appropriate distance and speed relationships.

Continue with more lessons and practice in PrepShots.Watch More in App - Start ₹1 Trial →
More Problems on Trains Lessons Scroll to explore →

Practice Problems on Trains Questions

Practise published questions related to this topic.

Problems on Trains Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Problems on Trains: Quick Revision

Use the direction of motion and the required crossing condition to select the distance and relative-speed formula.

  • For a pole or person, distance = train length.
  • For a platform, distance = train length + platform length.
  • For two trains, distance = sum of their lengths for complete crossing or overtaking.
  • Opposite-direction relative speed = sum of speeds.
  • Same-direction relative speed = difference of speeds.
  • Convert km/h to m/s by multiplying by 5/18.
  • Time = distance ÷ speed, with distance and speed in compatible units.

Problems on Trains FAQs

What formula is used when a train crosses a pole?

Time = Train length ÷ Train speed. If length is in metres, express speed in m/s.

How is the time to cross a platform calculated?

Time = (Train length + Platform length) ÷ Train speed. For example, a 200 m train crossing a 300 m platform at 25 m/s takes 500 ÷ 25 = 20 seconds.

Why are speeds added when two trains move in opposite directions?

Their distance decreases at the sum of their speeds. Thus, relative speed = Speed₁ + Speed₂.

Why are speeds subtracted when two trains move in the same direction?

The faster train gains on the slower train at the difference of their speeds. Thus, relative speed = Faster speed − Slower speed.

A train is 240 m long and moves at 60 km/h. How long does it take to cross a pole?

60 km/h = 60 × 5/18 = 50/3 m/s. Time = 240 ÷ (50/3) = 14.4 seconds.

What distance is used when one train completely overtakes another?

Use the sum of the two train lengths. The faster train must cover this combined length relative to the slower train.

Continue learning Problems on Trains on PrepShots

Continue on PrepShots