Tank Fill and Drain Time Calculator
Calculate filling or draining time from current volume, target volume and simultaneous inflow/outflow, with mixed volume and rate units.
Your result
EVERYDAYExample values are prefilled. Results update automatically when JavaScript is available.
Estimate filling or draining time at constant net flow
Set the current and target liquid volumes, then enter simultaneous inflow and outflow. A higher target calculates filling time; a lower target calculates draining time. Each input has a unit selector. The result shows elapsed minutes, hours, seconds and the net flow used.
On this page
Enter volumes and simultaneous rates
Current and target values are liquid volumes, not water depths or percentages. Volume options are liters, cubic meters, US gallons and cubic feet. Rates can be liters per minute or second, cubic meters per hour, US gallons per minute, or cubic feet per minute. US gallons here are liquid US gallons, not Imperial gallons.
Inflow and outflow are both nonnegative rates. The calculator subtracts outflow from inflow to determine direction. If a pump delivers 30 L/min while a drain removes 10 L/min, the tank gains 20 L/min. Enter a stopped pump or closed drain as zero. Changing a unit reinterprets the adjacent number; it does not automatically rewrite it.
Use the conservation-of-volume equation
V(t) = V₀ + Qt
t = (target volume − current volume) / Q
All volumes are converted to liters and all rates to liters per minute before calculation. For draining, both the volume difference and the net flow are negative, so elapsed time remains positive. A target already equal to the current volume takes zero time, even if the entered flow is zero. If net flow is zero and the target differs, the target cannot be reached. Flow pointing away from the target is also reported as unreachable, not as a negative elapsed time.
Three examples to check
Fill with a simultaneous drain
Current 100 L, target 1,000 L, inflow 30 L/min and outflow 10 L/min give (1,000 − 100)/(30 − 10) = 45 minutes.
Drain to a lower level
Current 1,000 L, target 100 L, inflow 5 L/min and outflow 35 L/min give (100 − 1,000)/(5 − 35) = 30 minutes. A filling-only model would incorrectly reject this valid draining case.
Use mixed units
From 0 to 1 m³ at 10 L/min with no outflow takes 1,000/10 = 100 minutes. At 2 US gal/min, reaching 10 US gallons from empty takes 5 minutes. The exact US liquid gallon conversion used is 3.785411784 L.
When constant flow is not a good model
This is a steady-rate volume balance, not a hydraulic or pump design calculation. A gravity drain often slows as liquid depth falls. Pump delivery can vary with head, pressure, pipe friction, valve position or supply voltage. If rates vary substantially, use measured time-dependent flow or a suitable hydraulic model instead of this linear estimate.
Tank dimensions, maximum capacity, safe fill level, overflow protection, leaks, evaporation, fluid compressibility and pump duty cycles are not modeled. The target is not checked against physical tank capacity. Do not use the estimated time alone to control unattended filling or protect equipment. Inputs support nonnegative values up to one trillion in the chosen units; floating-point results and displayed decimals are approximate.
A directly equivalent Calculator.net tool for simultaneous filling and draining was not identified during this review. This implementation is verified against the volume-balance equation, independently calculated examples, unit equivalence and unreachable-target cases. A geometric tank-volume calculator answers a different question and is not treated as a substitute.
Common questions
Why is my target unreachable?
A higher volume needs net inflow; a lower volume needs net outflow. Equal inflow and outflow keep the volume constant. Check both rates and their time units.
Can I enter a percentage or height?
Convert it to a liquid volume first. Percentage requires a known capacity, and converting depth to volume depends on tank geometry.
Why are the filling and draining formulas the same?
Both follow the same signed volume balance. The direction is represented by the signs of target minus current and inflow minus outflow.
Sources and unit reference
Pennsylvania DEP operator training: storage-tank fill calculations. This calculator also applies the signed balance to draining.
NIST SI conversion factors. The conservation equation and worked examples above define and independently check the implemented model.
Updated October 29, 2026. Calculation assumptions and reproducible examples are stated above.