WishWasTraining Academy
CDS exam school
โ† home
Chapter A2-10 ยท 10 of 11 in Arithmetic ยท 16 min read

Trains, boats and streams

10 real CDS questions of this kind in the 6 papers from CDS I 2024 to CDS II 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

Why this chapter matters. This chapter gave 10 questions in the 6 papers from CDS I 2024 to CDS II 2026. Every one of the six papers had at least one. Eight of the 10 are about trains: a train passing a man, a station or another train, and two trains that start from two stations and meet. Two are about a boat going with a stream and against it. One paper, CDS I 2024, set three questions on a single pair of trains. The syllabus names "time and distance", and these are its favourite questions.

What you will be able to do

  • Say what distance a train must cover to pass a man, a platform or another train.
  • Choose the right relative speed, and change km/h to m/s when the time is in seconds.
  • Find when and where two trains from two stations meet, and use the short rule for their journeys after they meet.
  • Find the speed of a boat in still water and the speed of the stream from the speeds downstream and upstream.

Before you start you should know: Chapter A2-9, above all the change from km/h to m/s (multiply by โ€‹\frac{5}{18}โ€‹) and the rule "time = gap รท relative speed".

1. A train has length

A man or a pole is a point. A train is not: it is 100 metres long or more. To pass or cross something completely, the train starts when its front reaches the thing and ends when its last coach leaves it.

Two pictures of a train of length L and a platform of length P. At the start the front of the train is at the near end of the platform. At the end the last coach has just left the far end. The front of the train has moved a distance of L plus P.

The train passes Distance it must cover
a pole, a signal, or a man (standing or moving) its own length โ€‹Lโ€‹
a platform, a bridge, a tunnel or a station of length โ€‹Pโ€‹ โ€‹L + Pโ€‹
another train of length โ€‹L_2โ€‹ โ€‹L + L_2โ€‹

A train 100 m long runs at 36 km/h, which is โ€‹36 \times \frac{5}{18} = 10โ€‹ m/s. It passes a pole in โ€‹\frac{100}{10} = 10โ€‹ seconds. It crosses a bridge 150 m long in โ€‹\frac{100 + 150}{10} = 25โ€‹ seconds.

2. Which speed to use

If the thing being passed stands still, use the speed of the train. If it moves, use the relative speed (Chapter A2-9).

The other body moves Relative speed
in the same direction as the train difference of the two speeds
in the opposite direction sum of the two speeds

So every question on passing has one formula:

\text{Time to pass} = \frac{\text{distance from the table in section 1}}{\text{speed, or relative speed}}

A man sitting in another train is a moving point. His speed is the speed of his train, and the length of his train does not matter.

Units. Lengths are in metres and times in seconds, but speeds are given in km/h. Change the speed to m/s first. Subtract or add the speeds while they are still in km/h, and then change the result once.

3. Two trains from two stations

Here the lengths do not matter. The trains are treated as points, as in Chapter A2-9.

Meeting. Find the gap between the trains at the moment the second one starts. They close the gap at the sum of their speeds.

After the meeting. Two trains start at the same time from stations X and Y towards each other. After they meet, the first takes โ€‹t_1โ€‹ hours to reach Y and the second takes โ€‹t_2โ€‹ hours to reach X. Then

\frac{\text{speed of the first}}{\text{speed of the second}} = \sqrt{\frac{t_2}{t_1}}

The times are swapped and a square root is taken. The train that needs less time after the meeting is the faster one.

Why. Let the speeds be โ€‹pโ€‹ and โ€‹qโ€‹ and let them meet after โ€‹tโ€‹ hours. The stretch the first train still has to cover is the stretch the second has already covered, so โ€‹p\,t_1 = q\,tโ€‹. In the same way โ€‹q\,t_2 = p\,tโ€‹. Divide the first by the second: โ€‹\frac{p\,t_1}{q\,t_2} = \frac{q}{p}โ€‹, so โ€‹\frac{p^2}{q^2} = \frac{t_2}{t_1}โ€‹.

4. Boats and streams

A river flows. A boat going downstream (with the flow) is carried along, so the speeds add. A boat going upstream (against the flow) is held back, so they subtract.

Two pictures of a river that flows to the right at speed s. In the first the boat also moves to the right at speed b: downstream, the speed is b plus s. In the second the boat moves to the left: upstream, the speed is b minus s.

Let โ€‹bโ€‹ be the speed of the boat in still water and โ€‹sโ€‹ the speed of the stream.

Formula
Speed downstream โ€‹d = b + sโ€‹
Speed upstream โ€‹u = b - sโ€‹
Speed of the boat in still water โ€‹b = \dfrac{d + u}{2}โ€‹
Speed of the stream โ€‹s = \dfrac{d - u}{2}โ€‹

The last two lines come from adding and subtracting the first two. A boat that goes 12 km/h downstream and 8 km/h upstream has โ€‹b = 10โ€‹ km/h and โ€‹s = 2โ€‹ km/h.

For a journey to a place and back, the two times are different. Work them out one by one: time down โ€‹= \frac{\text{distance}}{d}โ€‹ and time up โ€‹= \frac{\text{distance}}{u}โ€‹.

Worked examples

Example 1. A train 150 m long runs at 54 km/h. How long does it take to pass a pole? How long to cross a platform 300 m long?

Speed โ€‹= 54 \times \frac{5}{18} = 15โ€‹ m/s. For the pole the distance is 150 m: time โ€‹= \frac{150}{15} = 10โ€‹ seconds. For the platform the distance is โ€‹150 + 300 = 450โ€‹ m: time โ€‹= \frac{450}{15} = 30โ€‹ seconds.

Example 2. Two trains are 120 m and 180 m long. They run at 50 km/h and 40 km/h on parallel tracks. How long do they take to cross each other if they run (i) in opposite directions, (ii) in the same direction?

The distance is โ€‹120 + 180 = 300โ€‹ m in both cases.

(i) Relative speed โ€‹= 50 + 40 = 90โ€‹ km/h โ€‹= 25โ€‹ m/s. Time โ€‹= \frac{300}{25} = 12โ€‹ seconds.

(ii) Relative speed โ€‹= 50 - 40 = 10โ€‹ km/h โ€‹= \frac{25}{9}โ€‹ m/s. Time โ€‹= 300 \div \frac{25}{9} = 108โ€‹ seconds.

The same two trains take nine times as long when one overtakes the other.

Example 3. A train 125 m long passes a man who is running at 5 km/h in the same direction as the train. It takes 10 seconds. What is the speed of the train?

The train covers its own length at the relative speed. Relative speed โ€‹= \frac{125}{10} = 12.5โ€‹ m/s โ€‹= 12.5 \times \frac{18}{5} = 45โ€‹ km/h. The man moves the same way, so the relative speed is the train's speed minus 5. The train runs at โ€‹45 + 5 = 50โ€‹ km/h.

Example 4. Two trains start at the same time, one from A towards B and one from B towards A. After they meet, the first takes 9 hours to reach B and the second takes 4 hours to reach A. The first runs at 40 km/h. Find the speed of the second.

โ€‹\frac{\text{first}}{\text{second}} = \sqrt{\frac{4}{9}} = \frac{2}{3}โ€‹. So the second runs at โ€‹40 \times \frac32 = 60โ€‹ km/h. Check: they meet after โ€‹\sqrt{9 \times 4} = 6โ€‹ hours. By then the first has covered 240 km and the second 360 km. After the meeting the first needs โ€‹\frac{360}{40} = 9โ€‹ hours and the second needs โ€‹\frac{240}{60} = 4โ€‹ hours.

Example 5. A man can row at 6 km/h in still water. The stream flows at 2 km/h. He rows to a place and back in 3 hours. How far is the place?

Downstream he moves at โ€‹6 + 2 = 8โ€‹ km/h and upstream at โ€‹6 - 2 = 4โ€‹ km/h. Let the distance be โ€‹xโ€‹ km. Then โ€‹\frac{x}{8} + \frac{x}{4} = 3โ€‹, so โ€‹\frac{3x}{8} = 3โ€‹ and โ€‹x = 8โ€‹ km. Check: 1 hour down and 2 hours up.

From the real papers

These five questions are from the Elementary Mathematics papers (Series A). The first four are from CDS I 2024, CDS II 2025 and CDS I 2025, and the answers agree with the final official key. The fifth is from CDS II 2026, whose key is still provisional; our answer agrees with it. Try each for 72 seconds before reading the solution.

The first two belong to a set of three questions in CDS I 2024, which begins: "Consider the following for the next three (03) items that follow : Two trains A and B started from stations P and Q respectively towards each other. Train A started at 7 p.m. at a speed of 60 km/hr and train B started at 4 a.m. (next day) at a speed of 90 km/hr. The distance between the two stations P and Q is 800 km."

CDS I 2024, Q73. How far from station Q will the two trains meet?

(a) 104 kmโ€ƒโ€ƒ(b) 144 kmโ€ƒโ€ƒ(c) 156 kmโ€ƒโ€ƒ(d) 504 km

Solution. From 7 p.m. to 4 a.m. is 9 hours. In that time A covers โ€‹60 \times 9 = 540โ€‹ km, so the gap at 4 a.m. is โ€‹800 - 540 = 260โ€‹ km. The gap closes at โ€‹60 + 90 = 150โ€‹ km/h. They meet after โ€‹\frac{260}{150} = \frac{26}{15}โ€‹ hours. In that time B, which starts from Q, covers โ€‹90 \times \frac{26}{15} = 156โ€‹ km. Answer (c). (The next question, Q74, asks for the time of meeting. โ€‹\frac{26}{15}โ€‹ hours is 1 hour 44 minutes, so it is 5:44 a.m.)

CDS I 2024, Q75. If the lengths of the two trains A and B are 400 m and 500 m respectively, then what is the time taken by them to cross each other?

(a) 21ยท6 secondsโ€ƒโ€ƒ(b) 18ยท2 secondsโ€ƒโ€ƒ(c) 17ยท4 secondsโ€ƒโ€ƒ(d) 15ยท4 seconds

Solution. The distance is โ€‹400 + 500 = 900โ€‹ m. The trains run in opposite directions, so the relative speed is โ€‹60 + 90 = 150โ€‹ km/h โ€‹= 150 \times \frac{5}{18} = \frac{125}{3}โ€‹ m/s. Time โ€‹= 900 \div \frac{125}{3} = \frac{2700}{125} = 21.6โ€‹ seconds. Answer (a).

CDS II 2025, Q51. Two trains โ€‹Xโ€‹ and โ€‹Yโ€‹ are travelling in the same direction at 100 km/hr and 60 km/hr respectively. Train โ€‹Xโ€‹ crosses a man in train โ€‹Yโ€‹ in 9 seconds. What is the length of train โ€‹Xโ€‹?

(a) 80 mโ€ƒโ€ƒ(b) 100 mโ€ƒโ€ƒ(c) 120 mโ€ƒโ€ƒ(d) 150 m

Solution. The man is a moving point with the speed of train โ€‹Yโ€‹. The two move the same way, so the relative speed is โ€‹100 - 60 = 40โ€‹ km/h โ€‹= 40 \times \frac{5}{18} = \frac{100}{9}โ€‹ m/s. To pass a point, train โ€‹Xโ€‹ covers its own length: โ€‹\frac{100}{9} \times 9 = 100โ€‹ m. Answer (b).

CDS I 2025, Q50. A train of certain length takes time t to pass completely through a station of length x. The same train with same speed takes time 2t to pass completely through another station of length y. What is the time taken by the train to pass completely through a station of length (x + y)?

(a) โ€‹(2yt + xt) / (y - x)โ€‹โ€ƒโ€ƒ(b) โ€‹(yt + xt) / (y - x)โ€‹โ€ƒโ€ƒ(c) โ€‹(3yt - xt) / (2y - x)โ€‹โ€ƒโ€ƒ(d) โ€‹(2yt - xt) / (y - x)โ€‹

Solution. Let the train have length โ€‹Lโ€‹ and speed โ€‹vโ€‹. To pass a station it covers its own length and the station: โ€‹L + x = vtโ€‹ and โ€‹L + y = 2vtโ€‹. Subtract: โ€‹y - x = vtโ€‹, so โ€‹v = \frac{y - x}{t}โ€‹. From the first equation, โ€‹L = vt - x = y - 2xโ€‹. For a station of length โ€‹x + yโ€‹ the distance is โ€‹L + x + y = 2y - xโ€‹. The time is

\frac{2y - x}{v} = \frac{(2y - x)\,t}{y - x}

Answer (d). A quicker way in the exam: choose numbers. Take โ€‹x = 100โ€‹, โ€‹y = 300โ€‹ and โ€‹t = 1โ€‹. Then โ€‹vt = 200โ€‹ and โ€‹L = 100โ€‹. The long station needs โ€‹\frac{100 + 400}{200} = 2.5โ€‹. Only option (d) gives โ€‹\frac{600 - 100}{200} = 2.5โ€‹.

CDS II 2026, Q24. A boatman can row to a place (Y) at a distance of 24 km from the starting point (X) and back in 14 hours. If he can row 4 km with the stream in the same time as 3 km against it, what is the speed of the stream?

(a) 0ยท5 km/hrโ€ƒโ€ƒ(b) 1 km/hrโ€ƒโ€ƒ(c) 2 km/hrโ€ƒโ€ƒ(d) 2ยท5 km/hr

Solution. Distances covered in the same time are in the ratio of the speeds. So the speeds downstream and upstream are โ€‹4kโ€‹ and โ€‹3kโ€‹. The whole journey takes โ€‹\frac{24}{4k} + \frac{24}{3k} = \frac{6 + 8}{k} = \frac{14}{k}โ€‹ hours, and this is 14. So โ€‹k = 1โ€‹: he rows at 4 km/h downstream and 3 km/h upstream. Speed of the stream โ€‹= \frac{4 - 3}{2} = 0.5โ€‹ km/h. Answer (a).

In each train question, two things had to be chosen: the distance and the speed. Write both down before you divide.

Mistakes that cost marks

  1. Forgetting the length of the train. To cross a platform the train covers its own length plus the platform, not the platform alone. To pass a man it covers only its own length.
  2. Dividing metres by km/h. 900 m at 150 km/h is not 6 seconds. Change 150 km/h to โ€‹\frac{125}{3}โ€‹ m/s first. The time is 21.6 seconds.
  3. Adding the speeds when both move the same way. Same direction: subtract. Opposite directions: add. A train that overtakes takes much longer than a train that comes from the front.
  4. Taking the stream's speed as โ€‹d - uโ€‹. The difference of the downstream and upstream speeds is twice the speed of the stream. Halve it.

Quick check

Do these without help. Answers are at the end.

  1. A train 200 m long runs at 72 km/h. How long does it take to pass a signal post?
  2. How long does the same train take to cross a bridge 300 m long?
  3. Two trains, 150 m and 250 m long, run in opposite directions at 60 km/h and 84 km/h. How long do they take to cross each other?
  4. A boat goes 18 km/h downstream and 12 km/h upstream. Find the speed of the boat in still water and the speed of the stream.
  5. A train 180 m long passes a man walking at 6 km/h in the same direction in 12 seconds. What is the speed of the train?

Read and watch more, free

NCERT has no chapter on trains or boats. Boat and train problems appear as word problems in the Class 10 chapters on equations. For the rest, this lesson, the practice site below and the past papers are the material.

What Where Language
Textbook, boat problems with two unknowns NCERT Class 10 Mathematics, Chapter 3 Pair of Linear Equations in Two Variables ยท Hindi edition English, Hindi
Textbook, train and boat problems that give a quadratic NCERT Class 10 Mathematics, Chapter 4 Quadratic Equations ยท Hindi edition English, Hindi
Solved practice IndiaBIX aptitude (open "Problems on Trains" and "Boats and Streams") English
The real papers UPSC previous question papers English, Hindi
Video, a full CDS course R.S SIR: Maths Playlist for CDS 2025 (the trains and the boats lessons, about 55 minutes each) Hindi and Hinglish
Video, one long lesson Defence Wallah CDS / AFCAT: Quantitative Aptitude CDS 2024 (the speed, time and distance lesson, about 2 hours) Hinglish
Video, a revision marathon CDS Wallah (PW): Maths CDS 2026 (time and work, with ratio and speed) Hinglish

The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.

Answers to the quick check

  1. โ€‹72โ€‹ km/h โ€‹= 20โ€‹ m/s. Time โ€‹= \frac{200}{20} = 10โ€‹ seconds.
  2. Distance โ€‹= 200 + 300 = 500โ€‹ m. Time โ€‹= \frac{500}{20} = 25โ€‹ seconds.
  3. Distance โ€‹= 400โ€‹ m. Relative speed โ€‹= 60 + 84 = 144โ€‹ km/h โ€‹= 40โ€‹ m/s. Time โ€‹= 10โ€‹ seconds.
  4. Boat โ€‹= \frac{18 + 12}{2} = 15โ€‹ km/h. Stream โ€‹= \frac{18 - 12}{2} = 3โ€‹ km/h.
  5. Relative speed โ€‹= \frac{180}{12} = 15โ€‹ m/s โ€‹= 54โ€‹ km/h. The train runs at โ€‹54 + 6 = 60โ€‹ km/h.

Next chapter: Clocks, calendars and directions.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Two trains start at the same time, one from station A towards B and the other from B towards A, each at a steady speed. After they meet, one takes 16 hours and the other takes 9 hours to finish its journey. How long after starting did they meet?
  2. Question 2 of 3
    Two trains start at the same time, the first from X towards Y and the second from Y towards X. After they meet, the first takes 4 hours to reach Y and the second takes 9 hours to reach X. Consider the following statements: I. The first train is the slower of the two. II. The speeds of the first and the second train are in the ratio 9 : 4. Which of the statements given above is/are correct?
  3. Question 3 of 3
    Stations P and Q are 510 km apart. A train leaves P for Q at 6:00 a.m. at 60 km/h. Another train leaves Q for P at 7:30 a.m. at 80 km/h. At what time do the two trains meet?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the working is WishWas's own, checked against UPSC's answer key where one has been published. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.