GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeQuantitative aptitude · Time, Speed and Work

Boats and Streams

Add the current going downstream and subtract it going upstream: speeds, round trips, average speed, ratio problems and the floating-object trick.

5 min read 45 questions
Practice questions

On this page

1/9
  1. 011. The current helps one way and fights the other
  2. 022. The formulas worth memorising
  3. 033. The basic questions
  4. 044. Round trips and average speed
  5. 055. "Twice as long upstream" problems
  6. 066. The floating-object trick
  7. 077. Common traps
  8. 088. Revision sheet
  9. 09Practice
Back to top

1. The current helps one way and fights the other

A boat in a river has two speeds working on it: its own speed in still water, and the speed of the current. Going downstream (with the flow) the current carries the boat along, so the speeds add. Going upstream (against the flow) the current holds it back, so you subtract. That single idea solves the whole chapter.

Write b for the boat's speed in still water and s for the stream (current). Then downstream speed = b + s and upstream speed = b − s. Everything else is ordinary distance = speed × time, applied to one of these two speeds.

Current: 3 km/hDownstream: 12 + 3 = 15 km/hUpstream: 12 − 3 = 9 km/hStartReturn
A boat that does 12 km/h in still water moves at 15 km/h downstream and 9 km/h upstream in a 3 km/h current.

2. The formulas worth memorising

You know…You get…
boat b, stream sdownstream = b + s, upstream = b − s
downstream D, upstream Uboat = (D + U)/2, stream = (D − U)/2
a distance each way at D and Uaverage speed = 2DU/(D + U)
round trip of d km each waytime = d/(b + s) + d/(b − s)
upstream takes k times as longboat : stream = (k + 1) : (k − 1)
a floating objectignore the rowing speed; the object drifts at the current

Keep every speed in km/h and every time in hours, or every speed in m/s and time in seconds. Do not mix.

3. The basic questions

Find a time or distance. A boat doing 12 km/h in still water in a 3 km/h current goes downstream at 15 km/h. To cover 36 km downstream it needs 36 ÷ 15 = 2 2/5 h; the same 36 km upstream at 9 km/h needs 36 ÷ 9 = 4 h.

Find the two speeds. If instead you are told the boat does 15 km/h downstream and 9 km/h upstream, recover b and s by adding and subtracting: boat = (15 + 9) ÷ 2 = 12 km/h and stream = (15 − 9) ÷ 2 = 3 km/h. This half-sum / half-difference trick comes up constantly.

From two timed legs. If a boat covers 20 km downstream in some hours and the same distance upstream in others, divide to get the downstream and upstream speeds first, then use the half-sum and half-difference. For example downstream 20 km/h and upstream 12 km/h give boat = 16 km/h and stream = 4 km/h.

Why the half-sum and half-difference work is worth seeing once. Downstream speed is b + s and upstream speed is b − s. Add them and the s cancels, leaving 2b; subtract them and the b cancels, leaving 2s. Divide each by two. The same pattern appears in aeroplanes with a tailwind or headwind and in walking up or down a moving escalator, so the method is worth owning.

4. Round trips and average speed

A there-and-back trip spends longer on the slow upstream leg, so the time is more than you would guess from the still-water speed. Our boat covering 36 km each way takes 36 ÷ 15 + 36 ÷ 9 = 2 2/5 + 4 = 6 2/5 hours.

Current: 3 km/h36 km each way; boat 12 km/h in still waterJettyPoint
Downstream at 15 km/h, back upstream at 9 km/h.

Average speed over the round trip is never (D + U)/2. Because the distances are equal, use 2DU/(D + U) = 2 × 15 × 9 ÷ (15 + 9) = 11.25 km/h, which is below the still-water speed 12 km/h. The common error is to average 15 and 9 to 12.

The reason it drops below the still-water speed is that the boat spends more of its time crawling upstream than it does racing downstream, and the slow leg pulls the whole-trip average down. If a question ever gives only the distance and the total round-trip time, do not hunt for the two speeds separately: total distance divided by total time is the average, and that is all that was asked.

5. "Twice as long upstream" problems

Many questions give no speeds at all, only that upstream takes some multiple of the downstream time over the same stretch. Since the distance is the same, time is inversely proportional to speed: if upstream takes k times as long, the downstream speed is k times the upstream speed.

From downstream : upstream = k : 1 you get boat : stream = (k + 1) : (k − 1). With k = 2, downstream : upstream = 2 : 1 and boat : stream = 3 : 1. So a boat whose upstream trip takes twice as long as its downstream trip, in a 5 km/h current, rows at 15 km/h in still water.

Current: 5 km/hDownstream: 20 km/hUpstream: 10 km/h (twice the time)AB
Upstream at 10 km/h takes twice as long as downstream at 20 km/h over the same distance.

6. The floating-object trick

A cork, log or bottle that falls into the river has no engine: it simply drifts with the current. The clean way to handle it is to measure everything relative to the water. In the water's frame the object stays put, and a boat that rows away and then rows back with the same effort takes equal time each way.

So if a rower loses a bottle, rows on for 15 minutes, then turns and catches it, the bottle has been drifting for 30 minutes in all. At a current of 4 km/h it has moved 4 × 1/2 = 2 km. The rowing speed never enters the answer — a result that surprises most people the first time.

7. Common traps

  • Swapping downstream and upstream. Downstream adds the current, upstream subtracts it.
  • Averaging the two speeds for a round trip. Use 2DU/(D + U), or total distance ÷ total time.
  • Using the still-water speed for the actual trip. On the river the boat never moves at b; it moves at b + s or b − s.
  • Adding the current to the upstream speed. Upstream is b − s, full stop.
  • Bringing the rowing speed into a floating-object problem. Only the current and the total drift time matter.
  • Mixing units. Convert minutes to hours before dividing by a km/h speed.

8. Revision sheet

  • Downstream = b + s. Upstream = b − s.
  • Boat = (down + up)/2. Stream = (down − up)/2.
  • Round trip of d each way: d/(b + s) + d/(b − s).
  • Average speed for equal distances: 2DU/(D + U), below b.
  • Upstream k times as long → boat : stream = (k + 1) : (k − 1).
  • Floating object: it drifts at the current for the whole time; rowing speed is irrelevant.

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousPipes and CisternsNextRaces and Games
Log inStart free