Residence time calculator
This residence time calculator solves τ = V/Q for the residence time, the volume or the flow rate of a tank, reactor or basin, works on a mass basis from hold-up mass and mass flow, and finds the time a fluid spends in a length of pipe.
Residence time, volume or flow rate (τ = V/Q)
Residence time on a mass basis
Residence time in a pipe
How to use the residence time calculator
The first panel solves the basic relation τ = V/Q: pick whether you want the residence time, the volume or the flow rate, and enter the other two; the residence time calculator rearranges the formula for you. The second panel works on a mass basis, which is the safer choice when the density in the vessel differs from the feed. The third panel gives the residence time in a pipe from its length, inside diameter and flow, and, if you add density and viscosity, tells you whether the pipe behaves like a plug flow reactor or has a broad laminar spread. The residence time calculator shows the result in seconds, minutes and hours and lists every step under “Show the working”.
Residence time formula used by the residence time calculator
For a vessel at steady state with a constant-density fluid, the mean residence time is the volume of fluid held in the vessel divided by the volumetric flow rate through it:
V is the fluid (working) volume, Q the volumetric flow, M the hold-up mass and ṁ the mass flow. The inverse 1/τ is the space velocity, the number of vessel volumes processed per unit time. In a pipe of inside diameter D and length L the fluid volume is π·D²·L/4, so τ = π·D²·L/(4Q), which equals L divided by the mean velocity. The residence time overview describes the same relation as the turnover or flushing time for lakes, atmospheric species and reservoirs.
Mean residence time versus space time
Reactor design texts such as Fogler and Levenspiel separate two quantities that a residence time calculator can easily confuse. Space time is τ = V/v₀, the reactor volume divided by the volumetric flow measured at inlet conditions. Mean residence time tm is the average time the fluid actually spends inside. The two are equal only when the density stays constant, which is true for most liquid-phase reactions. In a gas-phase reaction where the moles increase (A → 2B) or the temperature rises, the fluid speeds up along the reactor, the actual volumetric flow is larger than v₀ and the mean residence time is shorter than the space time. For such systems use the mass basis (second panel) with the hold-up mass, or integrate dV/v along the reactor as in the Plug Flow Reactor (PFR) Calculator.
Hydraulic retention time in wastewater treatment
In water and wastewater engineering the same ratio is called the hydraulic retention time (HRT) or detention time: basin volume divided by the influent flow. It is distinct from the solids retention time (SRT or sludge age), which is the mass of biomass in the system divided by the rate at which it is wasted and is usually days rather than hours. A WEF training course hosted by Oak Ridge National Laboratory gives an aeration detention time of 4 to 8 h for conventional activated sludge and 1.5 to 3 h for the high-rate variant.
Worked example with the residence time calculator
Tank (default values). A stirred tank holds 10 m³ of liquid and is fed at 2 m³/h. τ = 10 / 2 = 5 h = 300 min = 18,000 s. The space velocity is 0.2 h⁻¹ and the tank volume is exchanged 4.8 times per day. If the tank were ideally mixed, 63.2 % of the fluid entering at a given moment would already have left after 5 h, because the exit age distribution of a CSTR is E(t) = e−t/τ/τ.
Mass basis. In the second panel of the residence time calculator, a vessel holds 12 t of slurry and processes 3 t/h, so τ = 12 / 3 = 4 h; entering 12 m³ at 1000 kg/m³ in the volume-plus-density mode gives the same result.
Pipe. Water at 5 m³/h flows through 50 m of 2-inch schedule 40 pipe (inside diameter 52.5 mm). The cross-section is π × 0.0525² / 4 = 0.002165 m², so the pipe holds 0.1082 m³ and τ = 0.1082 / (5/3600) = 77.9 s. The mean velocity is 0.642 m/s and Re ≈ 33,600, so the flow is turbulent and close to plug flow. The residence time calculator panels return these numbers with their default values.
Typical residence times to compare with the residence time calculator
| Equipment | Typical residence time | Comment |
|---|---|---|
| Liquid-phase CSTR | minutes to hours | Set by the kinetics; use the CSTR design equation |
| Gas-phase tubular reactor | about 0.1 s to a few seconds | Cracking furnaces, combustion |
| FCC riser reactor | about 2 – 5 s | Catalyst and vapor contact time |
| Reflux drum or surge drum | 5 – 10 min (half full) | Common hold-up design rule |
| Conventional activated sludge aeration basin | 4 – 8 h HRT | WEF / ORNL training data |
| High-rate activated sludge | 1.5 – 3 h HRT | WEF / ORNL training data |
| Primary clarifier | about 1.5 – 2.5 h | Typical design detention time |
| Anaerobic digester | 15 – 30 days | Mesophilic; HRT equals SRT without recycle |
Use the residence time calculator to check your own vessel against these typical orders of magnitude; they are for orientation only, not design values. Always size from the kinetics, separation or regulatory requirement of your own process.
Beyond the residence time calculator: RTD and tanks in series
A residence time calculator based on τ = V/Q gives only the average. Real vessels have a residence time distribution (RTD), measured by injecting a tracer pulse and recording the outlet concentration. An ideal plug flow reactor has all fluid leaving at exactly τ; an ideal CSTR has an exponential distribution where a large share leaves early. Many real vessels lie in between and are described by the tanks-in-series model: N equal stirred tanks in series, each with τ/N, give a variance σ² = τ²/N, so N = 1 is a CSTR and large N approaches plug flow. Dead zones make the measured mean residence time shorter than V/Q, while bypassing shows up as an early tracer peak; both are signs that the effective volume is smaller than the geometric volume. To get the liquid volume of a partly filled vessel first, use the Tank Volume Calculator.
Common mistakes with a residence time calculator
Total instead of working volume. A 10 m³ tank run at 70 % level holds 7 m³ of liquid, and τ must use 7 m³. Wrong flow. Give the residence time calculator the flow that passes through the vessel; recycle streams add to the flow through a reactor and shorten τ per pass. Space time for gas reactions. When moles or temperature change, V/v₀ is not the real residence time. Unit slips. Volume in liters with flow in m³/h is off by 1000; the residence time calculator converts every field for you. Ignoring laminar spreading in pipes. In laminar flow some fluid leaves after half the mean time, which matters for heat treatment and pasteurization holding tubes.
Related calculators
Size a reactor for a target conversion with the CSTR Volume Calculator or the plug flow reactor calculator, find a vessel’s liquid volume with the tank volume calculator, and check the pipe flow regime with the Reynolds Number Calculator.
- CSTR Volume Calculator
- Plug Flow Reactor (PFR) Calculator
- Tank Volume Calculator
- Reynolds Number Calculator
- Mass Balance Calculator
- All chemical engineering calculators
Frequently asked questions
How do you calculate residence time?
Divide the fluid volume in the vessel by the volumetric flow rate through it, τ = V/Q. With 10 m³ and 2 m³/h, τ = 5 h. On a mass basis, divide hold-up mass by mass flow.
Is residence time the same as space time?
Only for constant density. Space time uses the inlet volumetric flow; mean residence time is the average time the fluid really spends inside. For gas reactions with mole or temperature change the two differ.
What is hydraulic retention time?
It is the wastewater name for V/Q: basin volume divided by influent flow, usually in hours. Conventional activated sludge aeration basins typically run at 4 to 8 h.
How do I find the residence time in a pipe?
Divide the pipe volume π·D²·L/4 by the flow rate, or divide the length by the mean velocity. The third panel of the residence time calculator does both and checks whether the flow is laminar.
Does recycle change the residence time?
Per pass, yes, and the residence time calculator needs the flow through the vessel: the flow through the reactor is fresh feed plus recycle, so τ per pass is V divided by that total. The overall time based on fresh feed is V divided by the fresh feed flow.
Is this residence time calculator free?
Yes. It runs in your browser, needs no sign-up and does not store or send the values you enter.