Hydraulic Retention Time Calculator

Calculate hydraulic retention time (HRT), also called detention time, from tank or reactor volume and flow rate, or solve for volume or flow rate instead.

💧 Hydraulic Retention Time Calculator
Hydraulic Retention Time (HRT)
—
Equivalent in Days
—

💧 What is Hydraulic Retention Time?

Hydraulic retention time (HRT), also called detention time, is the average length of time a volume of liquid spends inside a tank or reactor before it flows back out. It is calculated with one of the simplest formulas in environmental engineering, tank volume divided by flow rate, yet it is one of the single most important numbers in the design of water and wastewater treatment systems.

Engineers use HRT to size primary and secondary clarifiers so suspended solids have enough time to settle, to size activated sludge aeration basins so microorganisms have enough time to break down organic pollutants, to size anaerobic digesters so sludge has enough time to stabilize, and to size drinking water sedimentation and disinfection contact tanks so treatment reactions can complete before the water is discharged or distributed.

A common point of confusion is thinking hydraulic retention time and detention time are two different calculations. They are not, both terms describe the exact same formula, volume divided by flow rate, just using different traditional vocabulary depending on the subfield and textbook. "Detention time" appears more often in classic water and wastewater treatment plant design, while "hydraulic retention time" and its abbreviation "HRT" appear more often in environmental engineering, biological reactor, and bioprocess literature. Another distinction worth knowing is that HRT is not the same as solids retention time (SRT, also called sludge age), which tracks how long solids stay rather than how long the liquid stays.

This calculator handles the full design workflow: enter a known volume and flow rate to find HRT (or detention time), or work backward from a target retention time to find the required tank volume or the flow rate a given tank can handle, all with automatic unit conversion between common volume and flow rate units.

📐 Formula

HRT  =  V ÷ Q
HRT = hydraulic retention time, also called detention time (in hours or days)
V = tank or reactor volume
Q = flow rate through the tank or reactor, in matching volume units per unit time
Example: V = 500 m³ and Q = 2000 m³/day, HRT = 500 ÷ 2000 = 0.25 days = 6 hours

📖 How to Use This Calculator

Steps

1
Choose what to solve for - select Find HRT, Find Volume, or Find Flow Rate depending on which value is unknown.
2
Enter the known values with matching units - enter tank volume and flow rate (or HRT and flow rate, or volume and HRT), choosing the correct unit for each from the dropdowns.
3
Click Calculate to see the result in a primary and an equivalent secondary unit, with the step-by-step unit conversion shown below.

💡 Example Calculations

Example 1 — Municipal aeration basin

An activated sludge aeration basin holds 500 m³ and treats a flow of 2000 m³/day.

1
Volume = 500 m³, Flow Rate = 2000 m³/day
2
HRT = 500 ÷ 2000 = 0.25 days = 6.00 hours
This basin's HRT of 6.00 hours (0.25 days) falls within the typical 4 to 8 hour design range for activated sludge aeration.
Try this example →

Example 2 — Small basin, detention time in L/s flow

A small clarifier holds 150 m³ and receives a flow of 25 L/s. What is its detention time?

1
Volume = 150 m³ = 150,000 L, Flow Rate = 25 L/s
2
Detention Time = 150,000 ÷ 25 = 6000 seconds = 1.67 hours (0.07 days)
Detention time and hydraulic retention time are the same calculation, this clarifier's detention time is 1.67 hours.
Try this example →

Example 3 — Sizing a tank for a target HRT

A design calls for a 6 hour HRT at a flow rate of 1 MGD (million gallons per day). What tank volume is required?

1
HRT = 6 hours, Flow Rate = 1 MGD
2
Volume = 6 hours × 1 MGD = 946.35 m³ (250,000 US gal)
The tank must hold about 946.35 m³ (roughly a quarter million US gallons) to achieve this target HRT.
Try this example →

Example 4 — Sizing flow capacity for an existing tank

An existing 1000 m³ tank needs to maintain an 8 hour HRT. What is the maximum flow rate it can handle?

1
Volume = 1000 m³, HRT = 8 hours
2
Flow Rate = 1000 ÷ 8 hours = 3000.00 m³/day (550.36 US gpm)
This tank can accept up to 3000.00 m³/day while maintaining the target 8 hour retention time.
Try this example →

Example 5 — Sedimentation tank detention time

A primary sedimentation tank holds 300 m³ and treats 3600 m³/day of wastewater. What is its detention time?

1
Volume = 300 m³, Flow Rate = 3600 m³/day
2
Detention Time = 300 ÷ 3600 = 0.0833 days = 2.00 hours (0.08 days)
A 2.00 hour detention time is within the typical 1.5 to 2.5 hour design range for primary sedimentation.
Try this example →

❓ Frequently Asked Questions

What is hydraulic retention time (HRT)?+
Hydraulic retention time is the average amount of time a volume of liquid stays inside a tank or reactor before flowing out, calculated as the tank's volume divided by the flow rate passing through it. It is one of the most fundamental design parameters in water and wastewater treatment, used to size clarifiers, aeration basins, and digesters.
Is detention time the same as hydraulic retention time?+
Yes. Detention time and hydraulic retention time (HRT) are the exact same calculation, volume divided by flow rate, just described with two different names. Detention time is the more traditional term used in water and wastewater treatment plant design, while HRT is more common in environmental engineering and bioreactor literature. This calculator answers both terms with a single formula.
What is the formula for hydraulic retention time?+
HRT = Volume ÷ Flow Rate (HRT = V ÷ Q). As long as the volume and flow rate use matching volume units, the time unit falls out of the flow rate's own time basis, for example a flow rate in cubic meters per day naturally gives an HRT in days.
What is a typical HRT for a wastewater treatment tank?+
It depends heavily on the process. Primary clarifiers are typically designed for 1.5 to 2.5 hours of HRT, activated sludge aeration basins for 4 to 8 hours, and anaerobic digesters for 15 to 30 days. Drinking water sedimentation basins commonly target 2 to 4 hours. These ranges come from decades of treatment plant design practice, not a single universal rule.
Why does HRT matter in wastewater treatment design?+
HRT directly controls how much time is available for a physical or biological process to occur, settling of solids in a clarifier, biological breakdown of organic matter in an aeration basin, or digestion of sludge in an anaerobic digester. Too short an HRT means the process is incomplete when the liquid leaves, too long an HRT wastes tank volume and construction cost.
Can I use different volume and flow units in this calculator?+
Yes. Select the volume unit (cubic meters, liters, US gallons, million US gallons, or cubic feet) and the flow rate unit (cubic meters per day or hour, liters per second or minute, MGD, US gpm, or cubic feet per second) that match your data, the calculator converts everything internally and reports HRT in both hours and days.
How do I find the required tank volume for a target HRT?+
Select Find Volume mode, enter the target hydraulic retention time and the design flow rate, and the calculator applies Volume = HRT × Flow Rate. Example: a target HRT of 6 hours at a flow of 1 MGD requires a tank volume of about 946 cubic meters (roughly 250,000 US gallons).
How do I find the required flow rate for a given tank and target HRT?+
Select Find Flow Rate mode, enter the tank volume and the target hydraulic retention time, and the calculator applies Flow Rate = Volume ÷ HRT. Example: a 1000 cubic meter tank with a target HRT of 8 hours can accept about 3000 cubic meters per day.
Is HRT the same as sludge age or solids retention time (SRT)?+
No, they measure different things. HRT tracks how long the liquid itself stays in a tank, based on tank volume and flow rate. Solids retention time (SRT), also called sludge age, tracks how long the solid microorganisms stay in a biological treatment system, which can be much longer than HRT when sludge is recycled back into the tank instead of leaving with the treated liquid.
What is short-circuiting and does it affect this calculation?+
Short-circuiting happens when some water flows through a tank faster than the average HRT would predict, taking a shortcut path instead of being evenly mixed or plug-flowed through the whole volume. This calculator reports the theoretical average HRT (volume divided by flow), which is the standard design number, real-world tracer studies are needed to measure actual short-circuiting in a built tank.
What is the difference between HRT and detention time in a sedimentation tank versus a biological reactor?+
The underlying calculation, volume divided by flow rate, is identical in both cases. The terminology tends to differ by tradition: sedimentation and clarifier design more often uses detention time, while activated sludge, membrane bioreactor, and other biological process design more often uses hydraulic retention time (HRT). Both describe the same average residence time of the liquid in the tank.

What is hydraulic retention time (HRT)?

Hydraulic retention time is the average amount of time a volume of liquid stays inside a tank or reactor before flowing out, calculated as the tank's volume divided by the flow rate passing through it. It is one of the most fundamental design parameters in water and wastewater treatment, used to size clarifiers, aeration basins, and digesters.

Is detention time the same as hydraulic retention time?

Yes. Detention time and hydraulic retention time (HRT) are the exact same calculation, volume divided by flow rate, just described with two different names. Detention time is the more traditional term used in water and wastewater treatment plant design, while HRT is more common in environmental engineering and bioreactor literature. This calculator answers both terms with a single formula.

What is the formula for hydraulic retention time?

HRT = Volume ÷ Flow Rate (HRT = V ÷ Q). As long as the volume and flow rate use matching volume units, the time unit falls out of the flow rate's own time basis, for example a flow rate in cubic meters per day naturally gives an HRT in days.

What is a typical HRT for a wastewater treatment tank?

It depends heavily on the process. Primary clarifiers are typically designed for 1.5 to 2.5 hours of HRT, activated sludge aeration basins for 4 to 8 hours, and anaerobic digesters for 15 to 30 days. Drinking water sedimentation basins commonly target 2 to 4 hours. These ranges come from decades of treatment plant design practice, not a single universal rule.

Why does HRT matter in wastewater treatment design?

HRT directly controls how much time is available for a physical or biological process to occur, settling of solids in a clarifier, biological breakdown of organic matter in an aeration basin, or digestion of sludge in an anaerobic digester. Too short an HRT means the process is incomplete when the liquid leaves, too long an HRT wastes tank volume and construction cost.

Can I use different volume and flow units in this calculator?

Yes. Select the volume unit (cubic meters, liters, US gallons, million US gallons, or cubic feet) and the flow rate unit (cubic meters per day or hour, liters per second or minute, MGD, US gpm, or cubic feet per second) that match your data, the calculator converts everything internally and reports HRT in both hours and days.

How do I find the required tank volume for a target HRT?

Select Find Volume mode, enter the target hydraulic retention time and the design flow rate, and the calculator applies Volume = HRT × Flow Rate. Example: a target HRT of 6 hours at a flow of 1 MGD requires a tank volume of about 946 cubic meters (roughly 250,000 US gallons).

How do I find the required flow rate for a given tank and target HRT?

Select Find Flow Rate mode, enter the tank volume and the target hydraulic retention time, and the calculator applies Flow Rate = Volume ÷ HRT. Example: a 1000 cubic meter tank with a target HRT of 8 hours can accept about 3000 cubic meters per day.

Is HRT the same as sludge age or solids retention time (SRT)?

No, they measure different things. HRT tracks how long the liquid itself stays in a tank, based on tank volume and flow rate. Solids retention time (SRT), also called sludge age, tracks how long the solid microorganisms stay in a biological treatment system, which can be much longer than HRT when sludge is recycled back into the tank instead of leaving with the treated liquid.

What is short-circuiting and does it affect this calculation?

Short-circuiting happens when some water flows through a tank faster than the average HRT would predict, taking a shortcut path instead of being evenly mixed or plug-flowed through the whole volume. This calculator reports the theoretical average HRT (volume divided by flow), which is the standard design number, real-world tracer studies are needed to measure actual short-circuiting in a built tank.

What is the difference between HRT and detention time in a sedimentation tank versus a biological reactor?

The underlying calculation, volume divided by flow rate, is identical in both cases. The terminology tends to differ by tradition: sedimentation and clarifier design more often uses detention time, while activated sludge, membrane bioreactor, and other biological process design more often uses hydraulic retention time (HRT). Both describe the same average residence time of the liquid in the tank.