Use this detention time calculator to find how long water stays in a tank, or solve for the flow rate or volume you need.
Advanced options
How to use our Detention Time Calculator
- Choose Find to calculate Detention time, Flow rate, or Tank volume.
- Pick Volume entry method. Use Volume if you already know it, or choose tank dimensions and enter Tank shape, Length, Width, Diameter, Water depth, and Dimension unit as needed.
- Enter the remaining required values and make sure Volume unit, Flow unit, and Time unit match what you mean to enter.
- Click Calculate, then check Volume method used and Unit check to confirm the calculator used the right shape, dimensions, and unit conversions.
- Sanity-check the answer: a larger Tank volume should increase Detention time, while a larger Flow rate should decrease it if everything else stays the same.
Definitions
Detention time: How long water or wastewater stays in a tank, basin, lagoon, pipe, or chamber at the stated flow rate.
Flow rate: The amount of liquid moving through the unit over time, such as gpm, gpd, cfs, m3/h, m3/d, or L/s.
Tank volume: The liquid volume used in the calculation, either entered directly or found from dimensions.
Volume entry method: The choice between entering a known Volume or letting the calculator find volume from tank dimensions.
Water depth: The actual liquid depth, not the full wall height.
Rectangular tank volume: Volume found from length x width x water depth.
Circular tank volume: Volume found from the circular surface area times water depth.
Unit check: A short note showing that volume, flow, and time were converted to a consistent basis before solving.
Common mistakes and quick fixes
Mistake: Entering Flow rate in gpd while Flow unit is still set to gpm.
Fix: Set Flow unit to the exact unit you typed before you calculate.
Mistake: Typing total wall height instead of actual Water depth .
Fix: Enter the liquid depth only in Water depth , because that is the depth used to find Tank volume .
Mistake: Leaving Volume entry method on known volume when you meant to use dimensions.
Fix: Change Volume entry method to the dimensions option so the calculator uses Length , Width , Diameter , and Water depth .
Mistake: Using Tank shape = Circular tank but entering Length and Width values anyway.
Fix: For a circular tank, use Diameter and Water depth . For a rectangular tank, use Length , Width , and Water depth .
Mistake: Mixing feet and meters while Dimension unit is set to only one of them.
Fix: Convert all dimensions first, then make sure Dimension unit matches the numbers you entered.
Mistake: Expecting zero or negative Flow rate , Detention time , or Volume to work.
Fix: Enter positive values only. If you are solving for one of them, the other required inputs must also be positive.
Limitations & Key Assumptions / Boundary Conditions
- This calculator gives ideal hydraulic detention time based on full liquid volume and average flow.
- It does not account for short-circuiting, dead zones, baffling, inlet and outlet effects, sludge buildup, or mixing patterns that can change real residence time.
- When volume is found from dimensions, the tank is treated as either a simple rectangular tank or a circular tank with vertical sides.
- Water depth is assumed to be the active liquid depth used in treatment, not total structure height.
- All required inputs for the selected solve mode must be positive values. Zero or negative values are not physically valid here.
- Results depend on the units you choose. Wrong unit selections can produce large errors even when the arithmetic is correct.
- The calculator converts units internally, then shows results back in your selected Volume unit, Flow unit, and Time unit.
Methodology
Core method
The calculator first gets a liquid volume. It uses the entered Volume or finds volume from dimensions, depending on Volume entry method. Then it converts volume and flow to a consistent internal basis before solving.
t = V / Q
Q = V / t
V = Q * t
Here, t is detention time, V is liquid volume, and Q is flow rate.
Volume from dimensions
If you choose dimensions, the calculator uses the selected Tank shape.
Rectangular tank: V = L * W * D
Circular tank: V = pi * (d / 2)^2 * D
Here, L is length, W is width, d is diameter, and D is water depth.
Unit handling
Mixed units are converted internally so the math stays consistent. For example, gallons, cubic feet, cubic meters, and liters are converted across the same volume basis, and time units are aligned with the chosen flow basis before the final answer is shown in your selected output unit.
Mini example
Suppose Volume is 5,000 gal and Flow rate is 250 gpm. The detention time in minutes is 5,000 / 250 = 20 minutes. Converting 20 minutes to hours gives 20 / 60 = 0.3333 hours, so the result is about 0.33 h.
For a dimension example, if a rectangular tank has Length 40 ft, Width 20 ft, and Water depth 10 ft, then volume is 40 x 20 x 10 = 8,000 ft3. That volume can then be combined with the chosen Flow rate to find detention time.
Assumptions used
This method is the standard ideal detention-time approach used for tanks and basins: volume divided by flow. Real systems can behave differently when flow varies or when some of the liquid volume is not effectively used in treatment [1].