Article — Detention Time Calculator (HRT, t = V/Q)
Detention time calculator: hydraulic retention time (HRT)
Detention time, also called hydraulic retention time (HRT), is the average time water spends in a tank: t = V ÷ Q. Sedimentation tanks run 1.5–2.5 hours, aeration basins 4–8 hours, anaerobic digesters 15–30 days. Real tanks usually deliver 60–90% of the calculated value because of dead zones and short-circuiting.
Every part of a water or wastewater plant is sized around detention time. Coagulation needs minutes to disperse chemicals. Flocculation needs tens of minutes to grow particles big enough to settle. Sedimentation needs hours. Disinfection needs enough contact for pathogen kill. Get any of these wrong and the effluent fails specification, or capital cost balloons.
What is detention time?
Detention time is the answer to one question: how long does a typical drop of water stay inside the tank before leaving? In an ideal plug-flow reactor, every drop spends the same time inside. In a continuously stirred tank reactor (CSTR), residence time follows an exponential distribution. Real tanks fall between these extremes, and the calculated V/Q is only an average.
Engineers care because every treatment mechanism has a time constant. Bacteria need hours to consume organics. Coagulant chemicals need seconds to disperse, then minutes to bind particles. Free chlorine needs minutes to kill enteric viruses, hours to kill protozoan cysts. Match HRT to the slowest mechanism in your process train and the design works.
Lake Baikal in Siberia has a natural hydraulic retention time of about 330 years — water that enters today won't leave for three centuries. Pollution doesn't flush out; it accumulates. The ocean averages roughly 3000 years end-to-end.
The detention time formula
The basic formula is simple division:
t = V / Q average residence timeV = Q · t required tank sizeQ = V / t maximum flow capacityThe trick is keeping units consistent. Volume in m³ divided by flow in m³/h gives hours. Volume in gallons divided by flow in gpd gives days. Volume in liters divided by flow in liters per second gives seconds. Mix units (gallons with m³/h, or liters with gpd) and the answer is meaningless.
Typical detention times in water treatment
Each unit operation has a target HRT window built from decades of practice. Cross-checking your design against these ranges catches sizing errors quickly:
- Rapid mixing 10–60 seconds for coagulant dispersion.
- Flocculation 15–45 minutes at G·t values of 30,000–80,000.
- Primary clarifier 1.5–2.5 hours, surface overflow 24–48 m³/m²/day.
- Aeration basin 4–8 hours conventional, 12–24 hours extended aeration.
- Secondary clarifier 2–4 hours, surface overflow 16–32 m³/m²/day.
- Disinfection contact 20–60 minutes for chlorine, less for UV.
- Anaerobic digester 15–30 days mesophilic, 10–20 days thermophilic.
Detention time vs. sludge age (SRT)
In activated sludge the HRT formula isn't the only time that matters. Sludge retention time (SRT, also called mean cell residence time or sludge age) tracks how long bacteria stay in the system, decoupled from how long water stays. Biomass returns from the clarifier underflow to the aeration basin, so it accumulates while water moves through.
Typical conventional activated sludge runs HRT of 6 hours and SRT of 10 days. Nitrification — bacterial conversion of ammonia to nitrate — requires SRT above 8 days at 20°C, longer in cold weather. SRT controls effluent quality more than HRT in mature biological systems.
Detention time pitfalls
Theoretical V/Q is an upper bound on residence. The actual time spent in the tank is shorter because of three real-world effects:
- Dead zones — water trapped in corners or behind baffles barely circulates, shrinking effective volume by 10–30%.
- Short-circuiting — inlet jets that punch straight to the outlet let some water bypass treatment entirely.
- Density currents — temperature differences between inflow and tank cause warm water to ride over cold (or vice versa), again reducing contact.
US EPA disinfection rules use the t₁₀ value — the time at which 10% of a tracer pulse has emerged from the tank. For typical baffled basins, t₁₀ is 0.3 to 0.7 times the theoretical HRT. Designing to V/Q alone will overstate kill credit and risk violation.
Worked detention time examples
Three quick walks through the math:
Aeration tank. Volume 4000 m³, flow 12,000 m³/day (500 m³/h). HRT = 4000 / 500 = 8 hours. Conventional activated sludge range; adequate for BOD removal and partial nitrification at warm temperatures.
Disinfection chamber. Need 30-minute chlorine contact at 1000 gpm. Q = 1000 gpm × 0.227 = 227 m³/h. V = Q · t = 227 × 0.5 = 113.5 m³ — about 30,000 US gallons. Add a baffling factor of 0.5 to reach effective contact, so actual sizing target is 227 m³.
Storage reservoir. A 10 million gallon tank serves 2 MGD demand. HRT = 10/2 = 5 days. Long enough that chlorine residual decays substantially — operators often add booster stations or monitor for nitrification in chloraminated systems.
Convert flow to m³/h first, then divide volume in m³. The intermediate units always work out cleanly. For US units, multiply gpm by 0.227 to get m³/h, or divide MGD by 0.158 to get m³/h.
Detention time for disinfection (CT values)
Drinking water disinfection uses CT — concentration of disinfectant in mg/L multiplied by contact time in minutes — to credit pathogen kill. The Surface Water Treatment Rule (SWTR) tables give required CT for each log-reduction of Giardia and viruses at different temperatures and pH. Free chlorine at 1.0 mg/L and 5°C needs about 35 min·mg/L for 3-log Giardia kill.
Designers use t₁₀ (10th-percentile residence time from a tracer test) instead of theoretical V/Q. Without a tracer test, the EPA's baffling factor table assigns 0.1 for unbaffled basins up to 0.7 for serpentine pipe contactors. Get this wrong and your plant may pass design review but fail field verification.
The 1993 Milwaukee Cryptosporidium outbreak sickened 403,000 people and killed at least 69. Subsequent investigation traced the failure partly to inadequate effective contact time during a runoff event. The case drove EPA to tighten CT requirements and mandate baffling-factor analysis nationwide.