Treat tank capacity as 1 unit. Inlets add water; outlets remove it. Check that water remains in the tank.
- a
- Time to fill; same time unit.
- b
- empty a full tank alone; same time unit.
- f
- Current filled fraction.
- r
- net fraction of capacity per time unit.
Inlet and outlet rates
Use signs when combining rates.
Two inlets
Initially empty tank; constant independent rates.
Inlet plus outlet
Positive r fills; negative r drains.
Time to fill
Require r > 0; f is the starting fraction.
Time to empty
Require r_out > r_in.
Find a leak
An inlet fills alone in a; with the leak it takes T > a.
Explanations and worked examples
Open a method when you need more detail.
Full notation guide
- a
- Time to fill; same time unit.
- b
- empty a full tank alone; same time unit.
- f
- Current filled fraction.
- r
- net fraction of capacity per time unit.
- t
- Elapsed time.
- T
- time to the stated target.
- r_in
- Total inlet rate.
- r_out
- total outlet rate, each a nonnegative magnitude.
1. Convert filling and emptying times into signed rates
Normalise the tank’s full capacity to 1. A pipe filling it in a hours adds 1/a per hour; a pipe emptying it in b hours removes 1/b per hour.
Worked example
Two inlets fill a tank in 6 hours and 12 hours respectively. Find their joint filling time.
- Combined rate = 1/6 + 1/12 = 1/4 tank per hour.
- Time for one tank = 4 hours.
4 hours.
Remember
- Use consistent units. Real flow can depend on water level; these formulas assume the question’s stated constant-rate model.
2. An inlet and an outlet operating together
Compare rates, not the time numbers. An inlet taking less time than the outlet has the higher rate and can fill the tank despite the outlet.
Worked example
An inlet fills a tank in 8 hours and an outlet empties it in 12. How long to fill an empty tank with both open?
- Net rate = 1/8 − 1/12 = 1/24 tank per hour.
- Filling time = 24 hours.
24 hours.
Remember
- If rates are equal, the level does not rise. If the outlet is faster, an empty tank cannot accumulate water under this model.
3. Start from the actual water level
When the tank is already partly full, only the missing fraction needs filling. To empty it, divide the water currently present by the net draining rate.
Worked example
A tank is 3/5 full. An inlet adds 1/10 tank per hour while an outlet removes 1/15. Find the time to fill.
- Net rate = 1/10 − 1/15 = 1/30.
- Missing fraction = 2/5.
- Time = (2/5)/(1/30) = 12 hours.
12 hours.
Remember
- Do not use full capacity as the remaining work. At an empty or full boundary, physical constraints override an unconstrained linear formula.
4. Recover an unknown leak rate
The leak accounts for the difference between the inlet’s standalone filling rate and the observed net rate. Its full-tank emptying time is the reciprocal of that difference.
Worked example
A pipe fills a tank in 10 hours alone, but takes 15 hours with a leak. How long would the leak take to empty a full tank?
- Leak rate = 1/10 − 1/15 = 1/30.
- Emptying one full tank therefore takes 30 hours.
30 hours.
Remember
- Require T > a. Assume the leak acts at the same constant rate throughout, including the separate emptying scenario.
5. Pipes opening or closing at different times
Break the process into stages and track the filled fraction. If a stage reaches full capacity before the next switching event, stop at that earlier time.
Worked example
An inlet fills a tank in 6 hours. It runs alone for 2 hours, then a second inlet that fills in 12 hours joins. When is the tank full?
- First stage fills 2/6 = 1/3.
- Remaining = 2/3; new rate = 1/6 + 1/12 = 1/4.
- Additional time = (2/3)/(1/4) = 8/3 hours.
4 hours 40 minutes from the start.
Remember
- Convert fractional hours to minutes by multiplying the fractional part by 60.
6. Alternating inlet and outlet operation
Compute full cycles while checking that the tank neither fills nor empties in the middle. In the last cycle, solve for the fraction of the active interval needed to reach the target.
Worked example
An inlet fills in 4 hours and an outlet empties in 8. Starting empty, the inlet runs for one hour, then the outlet for one hour, repeatedly. When does the tank first fill?
- Each complete two-hour cycle adds 1/4 − 1/8 = 1/8.
- After 6 cycles (12 hours), the tank is 3/4 full.
- The next inlet hour adds the remaining 1/4.
After 13 hours.
Remember
- Eight complete cycles would overlook filling during an earlier inlet turn. A drain cannot remove water from an empty tank.