Hydraulic Retention Time Calculator
Find how long water stays in a tank from its volume and inlet flow.
Switchable volume, flow, area, depth and time units, with reverse solves.
Updated October 19, 2026
Overview
Hydraulic retention time, or HRT, is the average time a volume of water spends inside a tank, basin, or reactor. It answers a simple hydraulic question: at the flow going in, how long does the water stay?
This calculator finds HRT from the working volume of the basin and the inlet flow. It also works in the other direction: enter a target retention time and a known flow to see what volume the basin needs, or enter a volume and a target time to find the flow that would produce it. If the volume is not known, the settling area and side water depth can be used to build it.
Operators, process engineers, environmental engineers, and students use HRT when checking aeration tanks, equalization basins, contact chambers, settling basins, and other water-holding structures. It is a useful first check because it depends on only two well-understood quantities: volume and flow.
What HRT does not tell you
HRT is a hydraulic measure, not a treatment guarantee. It says how long water is in the basin, not how much BOD, ammonia, or suspended solids is removed. Treatment performance also depends on reaction kinetics, temperature, mixing, biomass, and the characteristics of the water being treated.
How to use
Enter the working volume of the basin
Use the volume that water actually occupies, not the nominal volume printed on a drawing. If the volume is unknown, the settling area and side water depth can be entered instead, and the volume is calculated from them.
Enter the inlet flow
Use the flow that matches the question you are asking. Average dry-weather flow gives an average retention time; peak flow gives the shortest retention time the basin is likely to see.
Read the retention time
HRT is shown in hours by default and can also be read in seconds, minutes, or days. Compare it with the design basis or permit condition for the process, and remember that the value is only as good as the two inputs behind it.
Leave the unknown value blank to solve backwards
If you know the retention time you want and the flow you have, leave the volume blank and the calculator solves for it. The same works for flow when the volume and target time are known.
A quick example: 3,000 m³ at 10,000 m³/day
A basin holds 3,000 m³ of water and receives 10,000 m³ per day. Convert the daily flow to an hourly rate first, then divide the volume by that rate.
The answer is 7.2 hours, which is the same result the calculator shows when the volume is entered in cubic meters and the flow is entered in cubic meters per day. Whether 7.2 hours is acceptable depends on the process: check the design basis, permit, or operating target for that specific basin.
Calculation method
The calculator uses the standard hydraulic retention time relationship and, when needed, a simple volume relationship for a basin with a known plan area and water depth.
- is the working volume of the basin, in cubic meters in the base calculation.
- is the inlet volumetric flow, in cubic meters per hour in the base calculation.
- is the hydraulic retention time, in hours in the base calculation.
- is the settling or plan area of the basin.
- is the side water depth above the basin floor.
Unit normalization
Values can be entered in cubic meters, liters, cubic feet, or US gallons for volume; in seconds, minutes, hours, or days for flow and time; in square meters, square inches, or square feet for area; and in meters, inches, or feet for depth. Each value is converted to its base unit before the formula is applied, so the relationship between the quantities stays the same no matter which units you prefer.
Because every unit is converted consistently, the retention time itself does not change with the units used to express volume, flow, or time. Only the way the same value is written changes.
Directions the calculator can solve
- Volume and flow are known: HRT is calculated as volume divided by flow.
- HRT and flow are known: the required volume is calculated as HRT multiplied by flow.
- Volume and HRT are known: the flow that produces that retention time is calculated.
- Volume plus area are known: side water depth is calculated from volume divided by area.
- Volume plus side water depth are known: settling area is calculated from volume divided by depth.
Assumptions behind the result
- Flow through the basin is steady over the period you are evaluating.
- The working volume stays constant; the basin is not filling or draining during the calculation.
- The basin behaves as a single mixed volume, so the calculated HRT is a nominal value rather than an exact travel time for every parcel of water.
- The inlet flow is the only flow through the basin. Significant recycle streams, return flows, or withdrawals should be included in the flow you enter if they pass through the same volume.
Worked examples
Build the volume from basin dimensions
A rectangular basin has a settling area of 50 m² and a side water depth of 2 m. The inlet flow is 20 m³/h.
The basin holds 100 m³ of water and the retention time is 5 hours. This path is useful when the volume is not documented but the basin dimensions are available.
Size a basin for a target retention time
A process needs 8 hours of retention time and the available flow is 250 m³/h. Leave the volume blank and solve for the volume that satisfies the target.
The basin would need a working volume of 2,000 m³. The area and depth can then be used to check whether that volume fits the available footprint.
Working in US customary units
A contact basin holds 24,000 US gallons and receives 500 US gallons per minute. The same relationship applies after both values are converted to consistent units.
The retention time is 0.8 hours, or 48 minutes. The calculator returns 0.8 when the result is read in hours and 48 when it is read in minutes.
Common scenarios
Checking an existing basin
You know the basin volume and the flow it receives, and you want to confirm whether the current retention time still matches the operating target after a flow change.
Planning a new basin or upgrade
You have a target contact time and an expected flow, and you need a first estimate of the working volume before checking dimensions, footprint, and cost.
Checking whether HRT is the right metric
For biological treatment, disinfection credit, or reactive systems, HRT alone is not enough. Kinetics, mixing, and solids retention drive the outcome, so use this result as a hydraulic starting point rather than a performance prediction.
Tips and best practices
Use the working volume
Subtract freeboard, internal structures, and any permanently dead volume. A nominal tank volume that includes unused space will overstate the retention time.
Match the flow basis
Average flow produces an average retention time; peak flow produces the shortest retention time. Decide which one the decision needs before entering a number, and include significant recycle streams if they pass through the same basin.
Estimate flow if it is not measured
When only pressure and pipe size are available, estimate the flow with the PSI to GPM Calculator, then confirm it with a measured value before using the result for design.
Treat HRT as a nominal value
Short-circuiting, dead zones, and density currents can make the effective contact time shorter than the calculated HRT. For critical processes, a tracer study or a verified process model is the better source of truth.
Limitations and disclaimers
- The result is a nominal hydraulic retention time. It assumes steady flow and a single well-mixed working volume, so it does not capture short-circuiting, dead zones, density currents, wind-driven circulation, or a sludge blanket that reduces the effective volume.
- It does not predict treatment performance. BOD removal, nitrification, disinfection credit, and effluent quality depend on kinetics, temperature, biomass concentration, and mixing, none of which are part of this calculation.
- Volume, flow, area, and side water depth must all be positive values. A zero HRT is accepted as an input, but any result that would require a working volume of zero is flagged as invalid, because a basin cannot operate with no stored volume.
- Use this tool for education and preliminary planning. For design, permitting, or compliance decisions, confirm the result with a qualified engineer, the process design basis, and site-specific measurements.
Frequently asked questions
Is hydraulic retention time the same as detention time?
In most water and wastewater contexts, the two terms describe the same ratio of working volume to flow. Some processes reserve “detention time” for a different effective volume, or include recycle flows in the denominator, so check the definition used in the document you are comparing against.
Does the shape of the tank change the HRT?
Not in the nominal calculation, because HRT depends only on the working volume and the flow. Shape matters for how water actually moves through the basin: long, narrow, or poorly baffled tanks are more likely to short-circuit and deliver an effective contact time below the calculated value.
How is HRT different from solids retention time?
HRT is how long the water spends in the basin. Solids retention time, or SRT, is how long the biomass stays in the treatment system. In activated sludge, SRT is normally much longer than HRT because solids are settled and returned while the water moves on. If you need SRT, F/M ratio, or sludge age, use the Wastewater Calculator.
Related Calculators
Chemical Equation Balancer
Balance a chemical reaction and get the smallest whole-number coefficients. Supports bracketed groups such as Fe(OH)3, user-supplied coefficients, and unicode subscripts.
Net Ionic Equation Calculator
Reduce a molecular equation to its net ionic form. Balances the reaction, splits soluble compounds into ions, and names the spectator ions that cancel out.
Cubic Cell Calculator
Convert an atomic radius into the edge of a cubic unit cell, or measure a cell edge back to the atomic radius. Simple, body centered and face centered packing are each solved in both directions.
Atom Calculator
Calculate atomic properties including protons, neutrons, electrons, atomic number and mass number
Electron Configuration Calculator
Get the electron configuration for any element from the periodic table. View atomic number, atomic mass, and valence electrons.
Atomic Mass Calculator
Calculate atomic mass from protons and neutrons. Get atomic mass in various units including atomic mass units (u), kilograms, and more.