Two Trains Overtaking Each Other with Time Calculations

Two Trains Overtaking Each Other problems use relative speed and the combined length of both trains. When two trains move in the same direction, their relative speed is the difference of their speeds. The time taken to overtake depends on the sum of their lengths divided by this relative speed.

On this page

What Happens When Two Trains Overtake Each Other?

When two trains move in the same direction, the faster train overtakes the slower train at their speed difference. The distance covered during complete overtaking is the sum of the lengths of both trains.

If the train lengths are L₁ and L₂, and their speeds are S₁ and S₂, then the overtaking distance is L₁ + L₂. For trains moving in the same direction, relative speed is |S₁ − S₂|. Therefore, time taken is (L₁ + L₂) ÷ |S₁ − S₂|, provided the lengths and speeds use compatible units. For example, trains of lengths 120 m and 180 m moving at 72 km/h and 54 km/h take 300 ÷ 5 = 60 seconds to overtake completely, because their relative speed is 18 km/h = 5 m/s.

Two Trains Overtaking Each Other Video Lessons

Watch short topic-wise lessons for quick revision.

16 Lessons
Lesson 1 of 16 Quick Revision

Trains Moving in the Same Direction

Learn how to solve train problems involving two trains moving in the same direction, including overtaking situations using relative speed and distance concepts.

Continue with more lessons and practice in PrepShots.Watch More in App - Start ₹1 Trial →
More Two Trains Overtaking Each Other Lessons Scroll to explore →

Two Trains Overtaking Each Other Formula & Tricks

Important Formulas

Overtaking distance
Distance = L₁ + L₂

The faster train must cover the length of the slower train as well as its own length.

Relative speed in the same direction
Relative speed = |S₁ − S₂|

Subtract the slower speed from the faster speed when both trains move in the same direction.

Time taken to overtake
Time = (L₁ + L₂) ÷ |S₁ − S₂|

Use this when both train lengths are measured in the same unit and the relative speed is in a compatible distance-per-time unit.

Speed conversion
1 km/h = 5/18 m/s; 1 m/s = 18/5 km/h

Convert speed before applying the formula when train lengths are given in metres and time is required in seconds.

Quick Tricks

Use the speed difference for same-direction motion

Do not add the speeds when one train overtakes another in the same direction. Subtract the smaller speed from the larger speed.

Example: For speeds 90 km/h and 72 km/h, relative speed = 90 − 72 = 18 km/h.
Add both train lengths

Complete overtaking occurs only after the rear end of the faster train passes the front end of the slower train. Hence, use L₁ + L₂, not the difference of lengths.

Example: For lengths 150 m and 250 m, overtaking distance = 150 + 250 = 400 m.
Convert km/h to m/s before using metre lengths

Multiplying a speed in km/h by 5/18 gives m/s, which can be directly used with lengths in metres.

Example: 54 km/h = 54 × 5/18 = 15 m/s.

Two Trains Overtaking Each Other Concepts

Relative Speed for Same-Direction Trains

The relative speed of two trains moving in the same direction is the difference between their speeds.

If the faster train has speed S₁ and the slower train has speed S₂, then relative speed = S₁ − S₂, where S₁ > S₂. This relative motion treats the slower train as stationary and measures how quickly the faster train gains on it.

Example: A train at 80 km/h overtakes a train at 50 km/h. Relative speed = 80 − 50 = 30 km/h = 25/3 m/s.

Distance Required for Complete Overtaking

The distance required for one train to completely overtake another is the sum of their lengths.

At the beginning, the front of the faster train is behind the rear of the slower train. At the end, its rear must pass the front of the slower train. Thus, the relative distance is L₁ + L₂.

Example: If the trains are 100 m and 200 m long, the faster train covers a relative distance of 300 m during overtaking.

Finding Overtaking Time

Overtaking time equals the combined train length divided by the relative speed.

Use T = (L₁ + L₂) ÷ (S₁ − S₂) for same-direction motion. If speeds are given in km/h and lengths in metres, convert the relative speed to m/s before calculating time in seconds.

Example: For lengths 140 m and 160 m, and speeds 72 km/h and 54 km/h, relative speed = 18 km/h = 5 m/s. Time = 300 ÷ 5 = 60 seconds.

Finding Speed or Train Length

The same relation can be rearranged to find an unknown speed or length.

From T = (L₁ + L₂) ÷ relative speed, relative speed = (L₁ + L₂) ÷ T and combined length = relative speed × T. If one length is known, subtract it from the combined length to find the other length.

Example: Two trains together are 360 m long and overtake in 45 seconds. Their relative speed is 360 ÷ 45 = 8 m/s = 28.8 km/h.

Same Direction Versus Opposite Direction

Use subtraction for overtaking in the same direction and addition when two trains move towards each other.

For same-direction overtaking, relative speed = |S₁ − S₂|. When trains move in opposite directions and cross completely, relative speed = S₁ + S₂, and the crossing distance is still L₁ + L₂. Opposite-direction motion is usually called crossing rather than overtaking.

Example: At 60 km/h and 40 km/h, same-direction relative speed is 20 km/h, while opposite-direction relative speed is 100 km/h.

Two Trains Overtaking Each Other Data Table

Use the structured data below while following the explanation and examples.

Relative-Speed Rules for Two Trains

The direction of motion determines whether train speeds are added or subtracted.

Motion of trains Relative speed Distance for complete passage
Same direction; faster train overtakes slower train |S₁ − S₂| L₁ + L₂
Opposite directions; trains cross each other S₁ + S₂ L₁ + L₂

Note: Keep distance and speed units compatible before calculating time.

Learn more concepts on PrepShots

Start ₹1 Trial →

Practice Two Trains Overtaking Each Other Questions

Practise published questions related to this topic.

Want more practice questions?

Practice in App →

Two Trains Overtaking Each Other Quick Quiz

Attempt 5 questions and check your score instantly.

Quick Revision Notes

Two Trains Overtaking Each Other: Revision Points

Recall the direction rule, distance rule and unit conversion before solving a problem.

  • For same-direction overtaking, relative speed is the difference of speeds.
  • Overtaking distance is the sum of the two train lengths.
  • Time = (sum of lengths) ÷ (difference of speeds).
  • Convert km/h to m/s by multiplying by 5/18 when lengths are in metres.
  • For opposite-direction crossing, add the speeds instead of subtracting them.
  • If time and combined length are known, relative speed = combined length ÷ time.

Two Trains Overtaking Each Other FAQs

What is the formula for two trains overtaking each other?

For same-direction motion, time = (L₁ + L₂) ÷ |S₁ − S₂|. Here, L₁ and L₂ are train lengths, and S₁ and S₂ are their speeds in compatible units.

Why are the lengths of two trains added during overtaking?

The faster train must move forward by its own length plus the length of the slower train before it completely passes it. Therefore, overtaking distance = L₁ + L₂.

What is the relative speed when two trains move in the same direction?

Relative speed is the difference between their speeds. For example, at 90 km/h and 60 km/h, relative speed = 30 km/h.

Two trains are 120 m and 180 m long and move at 72 km/h and 54 km/h. How long do they take to overtake?

Relative speed = 18 km/h = 5 m/s. Combined length = 300 m, so time = 300 ÷ 5 = 60 seconds.

How do you convert a train speed from km/h to m/s?

Multiply the speed by 5/18. For example, 72 km/h = 72 × 5/18 = 20 m/s.

What happens if the two trains have equal speeds in the same direction?

Their relative speed is zero, so the faster train cannot overtake the other train. The overtaking time is therefore not finite.

Continue learning Two Trains Overtaking Each Other on PrepShots

Continue on PrepShots