Skip to content

Detention Time Calculator - Water Treatment & HRT Tool

Find how long water stays in a tank or basin with this detention time calculator. Enter volume and flow rate to get results in hours, minutes, or seconds.

Detention Time Calculator

Calculate the detention time based on volume and flow rate.

Results

Detention Time
5.00hours

Formula

Detention Time = Volume / Flow Rate

Detention Time = 100 m³ / 20 m³/h = 5.00 hours

Visualization

Visual representation of detention time in a tank.

Loading calculator...
📚

Documentation

A detention time calculator finds how long a liquid, usually water or wastewater, stays inside a tank, basin, or other holding structure. It works by dividing the volume of the structure by the flow rate passing through it. The result is called detention time, or hydraulic retention time (HRT), and it is used in water treatment, wastewater treatment, and stormwater management.

What Is Detention Time?

Detention time is the average time a particle of water spends inside a tank or basin before it leaves. Engineers also call it retention time or residence time. It equals the volume of the basin divided by the flow rate of water moving through it.

The formula assumes an ideal case. Either the water moves through in order, like cars in a single-lane tunnel (called plug flow), or new water blends evenly with everything already inside (called complete mix flow). Real tanks rarely match either case exactly. Water can take a shortcut between the inlet and outlet, a problem called short-circuiting. Some corners of a tank barely move at all; these are called dead zones. Because of this, the time water actually spends in a tank is often shorter than the calculated detention time.

Detention Time Formula

The basic formula is:

Detention Time (t) = Volume (V) ÷ Flow Rate (Q)

  • t = detention time, usually in hours
  • V = volume of the tank or basin
  • Q = flow rate through the tank or basin

Volume and flow rate must use compatible units before dividing. This calculator handles the conversion automatically. The units it supports are:

Volume: cubic meters (m³), liters (L), gallons (gal)

  • 1 m³ = 1,000 L
  • 1 m³ ≈ 264.17 gal

Flow rate: cubic meters per hour (m³/h), liters per minute (L/min), gallons per minute (gal/min)

  • 1 m³/h ≈ 16.67 L/min
  • 1 m³/h ≈ 4.40 gal/min

Time: hours, minutes, seconds

  • 1 hour = 60 minutes = 3,600 seconds

How to Calculate Detention Time

  1. Enter the volume of the tank or basin and select its unit.
  2. Enter the flow rate through the tank and select its unit.
  3. Select the unit for the result: hours, minutes, or seconds.
  4. The calculator converts volume to cubic meters and flow rate to cubic meters per hour, then divides volume by flow rate to get the detention time.

Worked Examples

Example 1: Chlorine Contact Basin

A water treatment plant has a chlorine contact basin with a volume of 500 m³. Water flows through it at 100 m³/h.

Detention time = 500 m³ ÷ 100 m³/h = 5 hours

Example 2: Mixed Units

A tank holds 5,000 liters, with water flowing in at 250 liters per minute.

First convert to cubic meters and cubic meters per hour:

  • 5,000 L = 5 m³
  • 250 L/min × 0.06 = 15 m³/h

Detention time = 5 m³ ÷ 15 m³/h = 0.33 hours, or 20 minutes

Example 3: Gallons

A pool filtration system holds 50,000 gallons, with a flow rate of 100 gallons per minute.

Convert to cubic meters and cubic meters per hour:

  • 50,000 gal × 0.00378541 ≈ 189.27 m³
  • 100 gal/min × 0.227125 ≈ 22.71 m³/h

Detention time = 189.27 m³ ÷ 22.71 m³/h ≈ 8.33 hours

Where Detention Time Is Used

Water treatment. Detention time controls how long water contacts a disinfectant such as chlorine. Regulators such as the U.S. Environmental Protection Agency set minimum contact times so pathogens are inactivated before treated water reaches consumers. Sedimentation basins use longer detention times, often several hours, to let suspended particles settle out.

Wastewater treatment. Biological treatment processes, such as activated sludge systems, need enough detention time for microorganisms to break down organic matter. This hydraulic detention time differs from solids retention time (SRT), which measures how long the microorganisms themselves stay in the system. SRT is usually much longer than the time the water itself spends there.

Stormwater management. Detention ponds hold runoff after storms so sediment and pollutants can settle before the water is released. A longer detention time generally removes more fine particles, but it also requires a larger pond.

Other systems. Detention time also applies to chemical reactors, oil-water separators, and constructed wetlands, and to any system where a fixed volume processes a continuous flow.

Common Mistakes

  • Using average flow instead of peak flow. A basin must provide enough detention time at maximum flow, not just under typical conditions.
  • Ignoring short-circuiting. Real basins often provide less effective detention time than the calculated value because flow does not spread evenly through the tank.
  • Mixing up time units. Confusing minutes with hours changes the result by a factor of 60.
  • Using gross volume instead of net volume. Equipment, baffles, and accumulated sediment reduce the space actually available to water.

Frequently Asked Questions

What is detention time in water treatment? Detention time is the average time water spends in a tank or basin, found by dividing volume by flow rate. It shows whether a process, such as disinfection or settling, has enough time to work.

Is detention time the same as residence time? The terms are often used interchangeably. Some engineers use "detention time" for the calculated, theoretical value and "residence time" for how long water actually stays, once short-circuiting and dead zones are taken into account.

Why does detention time matter? Many treatment processes need a minimum amount of time to work. Chlorine needs contact time to inactivate pathogens. Particles need time to settle. Microorganisms need time to consume organic matter. Regulators set minimum detention times for several of these processes.

Can detention time be too long? Yes. Excess detention time can let algae grow in open basins, waste energy on unneeded aeration, and raise construction costs from oversized tanks.

What makes the real detention time in a tank different from the calculated value? Short-circuiting, dead zones, wind acting on open basins, and temperature layering can all make the effective detention time shorter than the calculated value.

What time unit should I use? Fast processes, such as rapid mixing, are usually measured in seconds or minutes. Sedimentation and biological treatment are usually measured in hours. Slow processes, such as anaerobic digestion, are measured in days.