Skip to content
Tutorials Center
My learning

Topics

Lesson 30 of 86 ยท Time, Speed, Distance and Work

Pipes and Cisterns

Solve pipes and cisterns problems with inlet and outlet pipes, leaks, pipes closed midway and alternate opening, using the efficiency method.

A tank has a tap that fills it and a hole that drains it. How long until it is full? Pipes and cisterns is the Time and Work topic with a change of costume: the workers are taps. An inlet pipe adds water, like a worker who does useful work, and an outlet pipe or a leak removes water, like a worker who undoes it. Everything you learned about adding rates carries over, with one new rule: outlets count as negative.

You will see how to set the capacity as a convenient number of units, how to treat a leak as a hidden pipe, and how to handle pipes opened or closed partway. Two scripts let you check your own problems.

Rates of filling and emptying

If a pipe fills a tank alone in n hours, its rate is +1/n of the tank per hour. If a pipe empties a full tank alone in m hours, its rate is -1/m of the tank per hour.

With several pipes open together, add all the signed rates. The time to fill (or empty) the tank is 1 divided by the net rate in absolute value. If the net rate is positive the tank fills; if negative it empties; if zero the water level never changes.

Example 1. Pipe A fills a tank in 20 minutes, pipe B fills it in 30 minutes, and pipe C empties it in 60 minutes. All three are open. The net rate is 1/20 + 1/30 - 1/60 = 3/60 + 2/60 - 1/60 = 4/60 = 1/15, so the tank is full in 15 minutes.

The efficiency method for tanks

As in Time and Work, pick the tank capacity as the LCM of all the times. Then each pipe's rate is an integer number of litres per minute (negative for outlets).

For Example 1 the LCM of 20, 30 and 60 is 60. A: +3 per minute, B: +2, C: -1. Net: +4 per minute. Time = 60 / 4 = 15 minutes.

flowchart LR
    A["Pipe A: +3/min"] --> N["Net: +4 per min"]
    B["Pipe B: +2/min"] --> N
    C["Pipe C: -1/min"] --> N
    N --> T["Capacity 60 / 4 = 15 min"]

Outlets subtract from the net filling rate; the capacity is the LCM of the times.

The capacity is a made-up number. Real tanks have actual volumes, but the capacity cancels out of every time answer, so any common multiple works. If the question gives a real capacity such as 600 litres, use it directly, and the rates then come out in litres per minute.

Try the solver

The script below takes a list of times (positive for inlets, negative for outlets), picks the LCM capacity and solves for the time. It also handles a leak example and a pipe closed partway through.

JS Pipes, leaks and closed taps

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Leak problems

A leak is an outlet that nobody mentioned until the problem says the tank takes longer than expected.

Example 2. A pipe fills a tank in 6 hours. Because of a leak at the bottom, it takes 8 hours. How long does the leak alone take to empty a full tank?

The filling pipe is +1/6 per hour. With the leak, the net rate is +1/8. So the leak removes 1/6 - 1/8 of a tank per hour. Use units to avoid the fractions. Take capacity 24 units: the pipe adds 4 per hour, the net is 3 per hour, so the leak removes 1 per hour and empties a full tank in 24 hours. The script confirms 24.0 hours.

Example 3. A pipe fills a tank in 10 hours. A leak makes it take 2 hours more, so 12 hours. Capacity 60 units: pipe +6, net +5, leak -1. The leak empties a full tank in 60 hours.

A useful pattern: if the filling time changes from t to t + k, the leak empties a full tank in t(t + k) / k hours. Check: 6 x 8 / 2 = 24, and 10 x 12 / 2 = 60.

Pipes opened or closed partway

Track the tank in units and break the story into phases.

Example 4. Pipes A and B fill a tank alone in 12 and 16 minutes. Both are opened together, and after 4 minutes A is closed. How long in total until the tank is full?

Capacity 48 units. A is +4 per minute and B is +3 per minute. In the first 4 minutes the tank gains 4 x 7 = 28 units, leaving 20. B alone does 3 per minute, so it needs 20 / 3 = 6 and 2/3 minutes. The total is 4 + 6 2/3 = 10 minutes 40 seconds.

Example 5 (starting with a full tank). A full tank has an outlet that empties it in 15 hours. The outlet is opened alone for 5 hours, and then an inlet that fills the tank in 10 hours is opened as well. How long after that until the tank is full again? Capacity 30 units: the outlet removes 2 per hour, so in 5 hours the tank loses 10 units and holds 20. The inlet adds 3 per hour, so the net rate is +1 per hour, and the missing 10 units take 10 more hours. Always read whether the tank starts empty, full or part full.

Alternate opening

Sometimes pipes are opened one after the other for fixed times, for example A for one minute, then B for one minute, repeating. Treat each pair of minutes as a cycle, just as in alternate-day work problems.

Example 6. A tank holds 36 units. Pipe A fills it in 12 minutes (3 per minute) and pipe B empties it in 18 minutes (2 per minute). A is opened for the first minute, then B for the second, and so on. Each two-minute cycle adds 3 - 2 = 1 unit. After 33 cycles (66 minutes) the level is 33 units. In the 67th minute pipe A adds 3 units, reaching 36. The tank is full after 67 minutes, not 72 minutes, because the last A-minute finishes the job before B can drain anything.

Check this idea with a minute-by-minute simulation.

JS Alternate filling and draining

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Common mistakes

  • Treating a leak as an extra inlet. A leak must carry a negative sign.
  • Adding the times (a pipe taking 20 minutes and one taking 30 minutes do not take 50 minutes together).
  • Forgetting that the time for the tank to empty with a leak is a separate quantity from the time with the leak and the inlet together.
  • Ignoring the last partial cycle in alternate-opening problems. The tank may fill before the cycle ends.
  • Mixing units, such as minutes for one pipe and hours for another.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A pipe fills a tank in 12 hours and another pipe empties it in 20 hours. Both are opened with the tank empty. How long to fill it?

    Capacity 60 units: +5 and -3 per hour, net +2 per hour, so the time is 60 / 2 = 30 hours.
  2. 2. Two pipes fill a tank in 10 and 15 minutes. How long will they take together?

    Capacity 30: +3 and +2, net +5 per minute, so 30 / 5 = 6 minutes.
  3. 3. A tank is filled by a pipe in 4 hours. A leak makes it take 5 hours. How long does the leak need to empty the full tank?

    Using t(t + k) / k with t = 4 and k = 1 gives 4 x 5 / 1 = 20 hours. With capacity 20: pipe +5, net +4, leak -1.
  4. 4. Pipe A fills a tank in 30 minutes and pipe B fills it in 20 minutes. Both are opened, and B is closed after 6 minutes. How many more minutes does A need after that?

    Capacity 60: A +2, B +3. In 6 minutes they add 5 x 6 = 30 units, leaving 30. A alone needs 30 / 2 = 15 minutes.

Summary

  • An inlet pipe has rate +1/n per unit of time and an outlet or leak has rate -1/m.
  • Add the signed rates to get the net rate; the time is the capacity divided by the net rate.
  • Take the capacity as the LCM of the times to keep every rate an integer.
  • A leak that changes the filling time from t to t + k empties a full tank in t(t + k) / k.
  • For pipes closed or opened midway, work in phases; for alternate opening, use cycles and check the last step.

Next: Quadratic Equations and Inequalities, where the algebra chapter begins.