The short answer: if a pipe fills a tank in x hours, it fills 1/x of the tank in one hour. An inlet pipe adds this amount, an outlet pipe or a leak subtracts it. Add the signed fractions to get the net rate, then take its reciprocal to get the total time.

The rule behind every question

Pipes and cisterns is the work-and-time chapter with water. The tank is the whole job, so its size does not matter unless the question asks for litres. Write each pipe as a fraction per hour, with a plus sign for filling and a minus sign for emptying. The sum is the part of the tank filled in one hour when everything is open.

Signs to use
Pipe or faultTakes x hoursRate per hour
Inlet pipeto fill the empty tank+ 1/x
Outlet pipe or leakto empty the full tank− 1/x

Example 1: two inlet pipes

Pipe A fills a tank in 12 hours and pipe B fills it in 15 hours. How long will they take together? Rate = 1/12 + 1/15 = 5/60 + 4/60 = 9/60 = 3/20 of the tank per hour. Time = 20/3 hours = 6 hours 40 minutes. Check with an imaginary 60-litre tank: A gives 5 litres an hour, B gives 4, together 9, and 60 ÷ 9 = 6.67 hours. The two methods agree.

Example 2: two inlets and one outlet

A and B fill a tank in 10 and 15 hours, and an outlet C empties it in 30 hours. All three are opened together. Rate = 1/10 + 1/15 − 1/30 = 3/30 + 2/30 − 1/30 = 4/30 = 2/15. Time = 15/2 = 7.5 hours. If the net rate had come out negative, the tank would be emptying, not filling.

Example 3: finding the leak

A pipe fills a tank in 4 hours. Because of a leak, it takes 5 hours. How long would the leak alone take to empty the full tank? Net rate = 1/5 and the pipe alone = 1/4, so the leak's rate = 1/4 − 1/5 = 5/20 − 4/20 = 1/20. The leak empties a full tank in 20 hours. Notice that the leak is slow, yet it adds a whole hour to the filling.

Example 4: a pipe opened later

A fills a tank in 20 hours and B in 30 hours. A is opened first. B is opened after 5 hours. When is the tank full, counted from the start? In 5 hours A fills 5/20 = 1/4. Remaining = 3/4. Together they fill 1/20 + 1/30 = 3/60 + 2/60 = 5/60 = 1/12 per hour. Time for the rest = (3/4) ÷ (1/12) = 9 hours. Total = 5 + 9 = 14 hours. The usual slip is to answer 9 hours and forget the first 5.

Steps to follow every time

  1. Write each pipe as 1/x, with the correct sign.
  2. Note which pipes are open for how long. Compute the work done in each stage.
  3. Subtract the work done from 1 to get what remains.
  4. Divide what remains by the net rate for the next stage.
  5. Add the stages of time and check that the answer is in the unit asked for.

Common mistakes

  • Adding the times (12 + 15) instead of the rates.
  • Giving an outlet a plus sign.
  • Forgetting that a leak works only while there is water in the tank.
  • Mixing hours and minutes in one fraction.
  • Reporting 6.40 hours when the answer is 6 hours 40 minutes.

Course · Beginner · Free

Quantitative Aptitude — Pipes and Cisterns: Foundation

Foundation course on Pipes and Cisterns (Quantitative Aptitude): the basics, explained from the start.

Practise pipes and cisterns questions until the rate method is automatic.

Take a practice test

Frequently asked questions

What is the formula for pipes and cisterns?

There is one idea, not a long list of formulas. A pipe that fills in x hours does 1/x per hour. Add inlets, subtract outlets, and take the reciprocal of the total.

How do I solve a question with a leak?

Treat the leak as an outlet that empties the full tank in some number of hours. Its rate is negative, so subtract it from the filling rate.

What if the tank is half full at the start?

Work only with the part left to be filled. If the tank is half full, you need 1/2 of the job, so time = (1/2) ÷ net rate.

Is the capacity of the tank needed?

Not unless the answer is in litres. Using the tank as 1 whole job removes the capacity from the working. You can also assume capacity equal to the LCM of the times to avoid fractions.

Why do pipes opened alternately take longer to solve?

Because you must find the work in one full cycle of two pipes, then see how many cycles fit, and then handle the remainder separately.