Detention Time Calculator
How it Works
01Enter Tank Volume
Working volume of the tank, basin, reactor, or pipe segment. 18 unit options (m³, L, gal, ft³, etc.).
02Enter Flow Rate
Volumetric flow Q in any standard unit (gpm, MGD, m³/hr, L/min, BPD). 18 flow-rate options.
03Apply t = V / Q
Hydraulic detention / retention time = working volume divided by volumetric flow.
04Compare to Process Spec
Result auto-rendered in cleanest unit (s/min/hr/days). Compared to typical HRT for sed, AS, anaerobic, UV.
What is a Detention Time Calculator?
The calculator handles 18 volume units (cubic mm through cubic yards, mL through liters, US/UK gallons and quarts) and 18 flow-rate units matching every standard expressed by environmental, water, and oil-and-gas industries: gallons / cubic feet / cubic meters / liters per second / minute / hour / day, plus the petroleum-industry US BPD (barrels per day) and US MBPD (thousand barrels per day). Output is auto-rendered in the cleanest time unit for the magnitude — seconds for short-residence reactors and UV contact basins, minutes for grit chambers and rapid-mix tanks, hours for sedimentation and aeration basins, days for anaerobic digesters and waste-stabilization lagoons.
The result panel surfaces typical detention-time targets across 14 common unit-process types (sedimentation, activated sludge conventional and extended, anaerobic digestion mesophilic and thermophilic, UV disinfection, chlorine contact, flocculation, grit removal, lagoons, etc.) per Metcalf & Eddy Wastewater Engineering (5th ed.) and the Ten States Standards. Designed for water and wastewater process engineers running design checks, plant operators verifying as-built performance, regulatory inspectors validating CT credit calculations for disinfection compliance, undergraduate environmental-engineering courses, and chemical-reactor designers comparing CSTR vs PFR residence-time distributions.
Pro Tip: Pair this with our Cubic Cell Calculator for tank-volume calculations from dimensions, our Wastewater Calculator for organic loading and aeration sizing, or our Serial Dilution Calculator for analytical-chemistry preparation of standards.
How to Use the Detention Time Calculator?
How is detention time calculated?
Hydraulic detention time math is the simplest possible piece of process engineering — divide working volume by volumetric flow. Despite the simplicity, this single calculation underpins virtually every flow-through unit operation in water and wastewater treatment, chemical reactor design, anaerobic digestion, and pharmaceutical bioprocessing.
Standard reference: Metcalf & Eddy "Wastewater Engineering: Treatment and Resource Recovery" (5th ed., 2014); Ten States Standards (Recommended Standards for Wastewater Facilities, 2014); WEF Manual of Practice; Levenspiel "Chemical Reaction Engineering" for reactor analogies.
Core Formula
For a tank with working volume V (m³) receiving volumetric flow Q (m³/s):
t = V / Q
The result has units of time. With V in m³ and Q in m³/s, t is in seconds. The calculator handles all unit conversions internally and renders output in the cleanest unit (seconds / minutes / hours / days / weeks based on magnitude).
Quick Conversions
- 1 m³ = 1000 L = 264.17 US gal = 219.97 UK gal = 35.31 ft³ = 6.29 US barrels (oil)
- 1 m³/s = 86,400 m³/day = 22.82 MGD (million gallons/day) = 543,439 BPD (US barrels/day)
- 1 MGD = 0.0438 m³/s = 3,785 m³/day = 2,629 gpm = 23,810 BPD
- 1 gpm (US) = 6.31×10⁻⁵ m³/s = 5.45 m³/day = 0.0631 L/s
A clean intuition: 1 MGD into 1 MG of working volume gives 24 hr (1 day) HRT — the natural unit-pairing of the US wastewater industry. Similarly, 1 m³/min into 60 m³ gives 1 hour HRT for the metric-using world.
Worked Examples
Example A — Activated Sludge Aeration Basin
Aeration basin V = 4,000 m³; influent flow Q = 12,000 m³/day:
- t = V / Q = 4,000 / 12,000 = 0.333 days = 8 hours.
- Per Metcalf & Eddy, conventional activated sludge HRT is 4-8 hr — this is at the long end of conventional, supporting nitrification.
Example B — Chlorine Contact Basin
Contact basin V = 50 m³; flow Q = 100 m³/hr:
- t = 50 / 100 = 0.5 hr = 30 minutes.
- Per the SWTR, primary disinfection requires CT credit based on t10 (not theoretical t). For a well-baffled basin (t10/t ≈ 0.7), t10 ≈ 21 min.
- At 1.0 mg/L free chlorine residual, CT = 1.0 × 21 = 21 mg·min/L. Check against species-and-pH-specific CT requirements (typical Giardia inactivation requires 50-200 mg·min/L at pH 7-8, 5-15 °C).
Example C — Anaerobic Digester
Digester V = 3,000 m³; sludge feed Q = 150 m³/day:
- t = 3,000 / 150 = 20 days.
- Per Metcalf & Eddy, mesophilic anaerobic digestion targets 15-30 days HRT — this is in the standard range, supporting full pathogen kill (Class B biosolids per 40 CFR 503).
Theoretical t vs Operational t10
The formula t = V/Q gives the AVERAGE residence time assuming ideal mixing or ideal plug flow. Real tanks have non-ideal hydraulics:
- Short-circuiting: some fluid takes a direct path from inlet to outlet (faster than t).
- Dead zones: some fluid stagnates in corners or behind baffles (much slower than t).
- Mixing intensity: CSTR (continuous stirred-tank reactor) has fully mixed contents; PFR (plug flow reactor) has zero back-mixing.
Tracer studies (typically using Rhodamine WT, NaCl, or fluorescein) measure the residence-time distribution (RTD) and report several key statistics:
- t10: time at which 10% of tracer has exited. The conservative "early-exit" measure used for disinfection CT credit per the SWTR and LT2ESWTR.
- t50 (median): time at which 50% has exited.
- t (mean): the first moment of the RTD — equals theoretical V/Q for inert tracers in a closed system.
- Morrill Index = t90/t10: measure of mixing — < 2 is plug flow, > 22 is fully mixed CSTR.
Typical t10/t ratios from tracer studies: poorly baffled tank 0.3-0.5; partially baffled 0.5-0.7; well-baffled with serpentine flow 0.7-0.85; ideal plug flow 1.0. For regulatory compliance, always use tracer-validated t10, never theoretical t.
Process-Specific HRT Sizing Guidance
- Sedimentation: sized by surface overflow rate (SOR = Q/A) AND HRT. Both must be met. Typical: SOR 1-2 m/hr (24-48 m/day) for primary; 0.4-0.8 m/hr for secondary clarifiers; HRT 1.5-2.5 hr.
- Activated sludge: sized by F/M ratio AND HRT. Conventional 4-8 hr HRT; extended aeration 18-36 hr; high-rate (industrial) 1-3 hr.
- Disinfection: sized by CT (concentration × t10), not just HRT. Typical chlorine contact basin theoretical t = 30-60 min, t10 = 20-50 min depending on baffling.
- Anaerobic digestion: sized by SRT (solids retention time) which equals HRT in a single-pass digester. Mesophilic 37 °C: 15-30 days; thermophilic 55 °C: 12-15 days.
- Lagoons: very long HRT to compensate for lower temperature kinetics. Aerated 5-30 days; facultative 20-60 days; waste stabilization 90-180+ days in cold climates.
Detention Time Calculator – Worked Examples
- t = 800 / 8,000 = 0.1 day = 2.4 hours.
- Per Metcalf & Eddy, primary sedimentation HRT 1.5-2.5 hr — slightly above range but acceptable.
- Typical performance at 2.4 hr HRT: 30-40% BOD removal, 55-65% TSS removal.
- Surface overflow rate also needs check: SOR = Q/A. If clarifier diameter is 14 m → A = 154 m² → SOR = 8000/154/24 = 2.16 m/hr (in range 1.6-2.4 for primary).
Example 2 — Chlorine Contact for SWTR Compliance. Contact tank V = 40 m³; Q = 5 MGD = 18,925 m³/day = 788.5 m³/hr.
- t = 40 / 788.5 = 0.0507 hr = 3.04 minutes theoretical.
- Tank is poorly baffled (assumed t10/t = 0.4): t10 = 1.22 min.
- At 1.5 mg/L free chlorine: CT = 1.5 × 1.22 = 1.83 mg·min/L. WAY below SWTR Giardia inactivation requirement (typically 50-200 mg·min/L).
- Action: add baffling to raise t10/t to 0.7+ (would give t10 = 2.1 min, CT = 3.2 — still inadequate); OR increase chlorine residual to 30+ mg/L (impractical / hazardous); OR increase tank volume substantially. New tank V ≥ 800 m³ would give 1+ hr HRT.
Example 3 — Activated Sludge Conventional vs Extended Aeration. Aeration basin V = 6,000 m³; ADF = 18,000 m³/day.
- t = 6,000 / 18,000 = 0.333 day = 8 hours.
- Conventional AS range 4-8 hr — at the long end of conventional. Supports full nitrification at typical SRT 5-10 days.
- If owner wants extended aeration (less sludge production, more stable operation but capital-intensive): need 18-36 hr HRT, which means basin V = 13,500-27,000 m³ at this flow. Capital trade-off: 2-4× larger basin for 30-50% lower sludge handling cost — typical break-even at small plants (< 1 MGD).
Example 4 — Mesophilic Anaerobic Digester. Digester V = 4,500 m³; sludge feed Q = 200 m³/day.
- t = 4,500 / 200 = 22.5 days.
- Per Metcalf & Eddy, mesophilic 37 °C: 15-30 days HRT. Solidly in range.
- Volatile solids reduction at 22.5 days HRT: ~50-55% (typical).
- Class B biosolids per 40 CFR 503 require 15+ days at 35-55 °C — meets pathogen-reduction requirement.
- Biogas yield: ~0.5-1.0 m³ biogas / kg VS destroyed; with 200 m³/day sludge at 25 g/L VS feed and 50% VS destruction = ~2,500 kg VS/day × 0.7 m³/kg = ~1,750 m³ biogas/day = 36,000 m³/day at 60% methane = 360 kW thermal at 9.7 kWh/m³ CH₄ heat content.
Example 5 — Industrial Process Reactor (CSTR). Reactor V = 5 m³; flow Q = 50 L/min.
- Q = 50 L/min × 60 min/hr = 3,000 L/hr = 3 m³/hr = 0.000833 m³/s.
- t = 5 / 0.000833 = 6,000 sec = 100 minutes = 1.67 hours.
- For a CSTR with first-order reaction kinetics (rate = k × C), conversion X = k·t / (1 + k·t). At k = 0.05 min⁻¹ and t = 100 min: X = 5/(1+5) = 83%.
- For higher conversion (95%+), need either longer HRT (V = 19 m³ for X = 95%) OR series of CSTRs OR switch to PFR (only 60 min HRT for same conversion).
- Engineering trade-off: CSTRs are cheaper to build (vertical tank with impeller) but need more volume for high conversion than PFRs (long pipe / packed bed).
Who Should Use the Detention Time Calculator?
Technical Reference
Mathematical Foundation. For an open system at steady state with constant volumetric flow Q in and Q out, the hydraulic detention time is t = V/Q where V is the working volume. This is the first moment of the residence-time distribution (RTD) for inert tracers in a closed system. For ideal CSTR: F(t) = 1 − exp(−t/τ) where τ = V/Q is the mean residence time and F(t) is the cumulative tracer-exit fraction. For ideal PFR: F(t) = 0 for t < τ and F(t) = 1 for t ≥ τ (perfect step response). Real tanks fall between these limits.
Tracer Studies and Hydraulic Characterization. The standard method for characterizing real tank hydraulics is a tracer study using a chemically inert, easily measured tracer:
- Rhodamine WT — fluorescent dye, detection by fluorometer down to ng/L levels. Most-used water-treatment tracer.
- Sodium chloride (NaCl) — measured by conductivity. Cheap; suitable when background conductivity is low.
- Lithium chloride (LiCl) — measured by atomic absorption. Used when other tracers interfere.
- Fluorescein, sodium bromide, deuterium oxide — specialty tracers for specific applications.
Test methods: step injection (continuous tracer addition until equilibrium) gives F(t) directly. Pulse injection (single bolus of tracer) gives E(t) (the residence-time distribution); F(t) is the integral. AWWA's M53 manual and EPA's CT-credit guidance describe the protocols in detail.
Key RTD Statistics:
- t10: time at which 10% of tracer mass has exited. The "early-exit" measure used for disinfection CT credit per the SWTR and LT2ESWTR. Conservative — protects against short-circuiting failures.
- t50 (median): time at which 50% has exited. For ideal plug flow t50 = τ; for ideal CSTR t50 = 0.69τ.
- t90: time at which 90% has exited.
- τ (theoretical mean) = V/Q: the first moment of E(t) for an inert tracer in a closed system equals V/Q exactly.
- Morrill Index (MI) = t90/t10: dispersion measure. MI < 2 = approximately plug flow; MI = 2-5 = baffled/serpentine; MI = 5-22 = mixed; MI > 22 = approximately CSTR.
- Volumetric efficiency = τ_actual / τ_theoretical: > 0.95 = excellent; 0.7-0.95 = good; 0.5-0.7 = poor; < 0.5 = severe short-circuiting.
EPA Surface Water Treatment Rule (SWTR) — t10 Use. The SWTR (40 CFR 141.71) and the long-term enhancements LT2ESWTR require disinfection compliance based on CT credit, where C is the disinfectant residual (mg/L) and t is the t10 contact time (min). Default t10/τ ratios per the EPA Guidance Manual for Compliance with the SWTR (the "Pink Book"):
- Unbaffled tank or basin: t10/τ = 0.1 (10% — almost all tracer in dead zones / short-circuit).
- Poor baffling (open inlet/outlet): t10/τ = 0.3.
- Average baffling (some baffles, large openings): t10/τ = 0.5.
- Superior baffling (serpentine flow, multiple baffles): t10/τ = 0.7.
- Perfect baffling (closely approximating plug flow): t10/τ = 1.0.
Tracer studies can be used to demonstrate higher t10/τ values than the conservative defaults. CT requirements are species-and-pH-specific; e.g., 99.9% Giardia inactivation at 5 °C, pH 7 requires 104 mg·min/L with free chlorine.
Process-Specific HRT Reference (Metcalf & Eddy 5th ed., Ten States Standards):
- Bar screens: hydraulic; flow velocity 0.6-0.9 m/s, no HRT spec.
- Aerated grit chamber: 3-5 min at peak hour flow.
- Vortex grit chamber: 30-180 sec.
- Equalization basin: 4-8 hr (peak shaving).
- Rapid mix (flash mix): 15-60 sec, G = 600-1000 s⁻¹ for coagulation.
- Flocculation basin: 15-30 min, G = 20-70 s⁻¹.
- Primary sedimentation: 1.5-2.5 hr at ADF; SOR 24-48 m/day.
- Activated sludge — conventional: 4-8 hr, MLSS 1500-3000 mg/L, F/M 0.2-0.4.
- Activated sludge — extended aeration: 18-36 hr, MLSS 3000-5000 mg/L, F/M 0.04-0.10.
- Activated sludge — high rate: 2-3 hr, MLSS 4000-10,000 mg/L, F/M 0.4-1.5.
- Sequencing batch reactor (SBR): 8-24 hr cycle (fill + react + settle + decant + idle).
- Trickling filter (low rate): recirculation 0-1×, BOD removal 80-90%; HRT not the design variable (loading rate is).
- Membrane bioreactor (MBR): 4-6 hr typical; allows higher MLSS (8000-15,000 mg/L) than conventional AS.
- Secondary / final clarifier: 2-3 hr at ADF; SOR 16-24 m/day; sludge return rate 50-150% of influent.
- Chlorine contact basin: 30-60 min t10 at peak hour flow; serpentine flow strongly preferred.
- UV disinfection: 5-30 sec at design flow; design for 40 mJ/cm² dose for typical drinking water.
- Aerobic digester: 10-15 days at 20 °C; 7-10 days at 30 °C.
- Anaerobic digester (mesophilic, 35-37 °C): 15-30 days; targets 50% VS reduction.
- Anaerobic digester (thermophilic, 50-55 °C): 12-15 days; faster kinetics, better pathogen kill, more expensive heating.
- Aerated lagoon: 5-30 days; longer in cold climates.
- Facultative pond (oxidation pond): 20-60 days; multi-cell systems standard.
- Waste stabilization lagoon (cold climate): 90-180+ days; multi-cell with winter ice cover.
SRT vs HRT. In simple flow-through reactors HRT = SRT (solids retention time). In activated sludge with sludge wasting, SRT >> HRT because sludge is retained while liquid passes through: SRT = (Mass MLSS in aeration basin) / (Mass MLSS wasted per day). Typical SRT 5-15 days for conventional AS; 20-30+ days for nitrifying systems and extended aeration. Membrane bioreactors decouple SRT and HRT entirely — SRT can be 30-60 days at HRT of 4-6 hr.
Relationship to Reactor Design Equations. For first-order reactions (rate = k·C):
- CSTR: X = k·t / (1 + k·t) where X is fractional conversion, t = V/Q.
- PFR: X = 1 − exp(−k·t).
- n CSTRs in series (each V/n): X = 1 − 1/(1 + k·t/n)^n. As n → ∞, approaches PFR.
For 95% conversion of first-order reaction: PFR needs k·t = 3 (i.e. t = 3/k); single CSTR needs k·t = 19 (t = 19/k — about 6× more volume). This is why disinfection contact basins are baffled to approximate plug flow; CSTR-style mixing wastes ~80% of the disinfectant capability.
Key Takeaways
Frequently Asked Questions
What is the Detention Time Calculator?
Designed for water and wastewater process engineers, plant operators, regulatory inspectors, chemical reactor designers, anaerobic-digestion / biogas engineers, and environmental-engineering students.
Pro Tip: Pair this with our Cubic Cell Calculator to compute tank volume from dimensions first.
What's the formula for detention time?
What's the difference between detention time, retention time, residence time, and HRT?
How do I find the working volume of a tank?
What's the difference between theoretical t and operational t10?
What's a typical HRT for activated sludge?
How do I check if my disinfection contact basin meets the SWTR?
What's a typical HRT for an anaerobic digester?
Why is plug flow better than CSTR for disinfection?
How does temperature affect HRT design?
What flow rate should I use — average, peak, or minimum?
Disclaimer
Hydraulic detention time t = V/Q is the AVERAGE residence time assuming ideal plug flow or perfectly mixed (CSTR) behavior — real tanks have non-ideal mixing with short-circuiting and dead zones. Tracer studies show operational HRT in practice is often 50-80% of theoretical HRT due to short-circuiting; well-baffled tanks approach 95%+ of theoretical. For regulatory compliance (e.g. CT credit for disinfection per the SWTR and LT2ESWTR), use the t10 contact time from a tracer study rather than the theoretical HRT — typically 0.3-0.85× the theoretical value depending on baffle configuration. Reference detention-time bands are typical design ranges; site-specific factors (temperature, BOD/COD load, mixed-liquor concentration, sludge age, climate) shift optimal HRT significantly. This tool is for educational use and preliminary design checks — final process design must be verified by a licensed P.E. and validated with full hydraulic modeling and tracer studies. Source data: Metcalf & Eddy 'Wastewater Engineering: Treatment and Resource Recovery' (5th ed., 2014), Ten States Standards (Recommended Standards for Wastewater Facilities, 2014), WEF Manual of Practice, EPA Guidance Manual for Compliance with the SWTR.