Detention Time Calculator

Find how long a liquid stays in a tank from its volume and flow.

Works in 6 volume, 18 flow-rate and 4 time units, with tank dimensions in metric and US units.

Updated October 19, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction

Detention time is how long the liquid stays in a basin. It is the volume the basin holds divided by the flow passing through it, and it is the number that decides whether a chemical has time to mix, whether solids have time to settle and whether a disinfection step gets the contact time it was designed around.

The calculator works that quotient in every direction. Give it a volume and a flow and it returns a time. Give it a target time and a flow and it returns the volume that holds the liquid that long. Give it a time and a volume and it returns the flow rate. If you do not have a volume but you do have the basin footprint, the Tank dimensions row turns a base area and a liquid height into the same volume, and the time follows from there.

The unit choices are deliberately wide, because detention time is used from seconds to days. A volume can be entered in cubic metres, cubic inches, cubic feet, litres, US gallons or 42-gallon oil barrels, and a flow in eighteen units from litres per second to thousands of US barrels per day. A municipal contact tank, a refinery separator and a laboratory batch vessel can each be worked in the units their own records already use.

V/QV / Q

The entire calculation: liquid volume divided by the flow through the basin

Seconds to days

The answer switches between seconds, minutes, hours and days

18 flow units

Or skip the volume and enter the base area and liquid height instead

One volume, two ways to enter it

The volume is a single quantity, so the calculator never keeps two competing copies of it. Type a volume, or open the dimensions row and let the base area and the liquid height produce it — both land in the same place, and a volume that agrees with the dimensions you entered does not move.

Quick start

One calculation needs two numbers: how much liquid the basin holds, and how fast liquid moves through it. Everything else on the card is optional.

1

Enter the liquid volume

Pick the unit your records use — cubic metres, litres, US gallons, cubic inches, cubic feet or oil barrels — and type the volume of liquid the basin holds at the level you are studying.

2

Enter the flow rate

Use the unit your log sheet or design basis uses. The calculator converts the volume to cubic metres and the flow to cubic metres per second before dividing, so the answer is the same whichever units you pick.

3

Read the time, in the unit your process speaks

Processes run on different clocks: flash mixing and hydrocyclones are measured in seconds, flocculation and separators in minutes, clarifiers and contact tanks in hours, and ponds and storage in days.

4

A 900 m³ contact tank taking 54 litres per second

Convert the flow first: 54 L/s54\ \mathrm{L/s} is 0.054 m3/s0.054\ \mathrm{m^3/s}. Then divide.

DT=VQ\mathrm{DT} = \frac{V}{Q}==900 m30.054 m3/s\frac{900\ \mathrm{m^3}}{0.054\ \mathrm{m^3/s}}==16 666.67 s16\,666.67\ \mathrm{s}==4.62963 h4.62963\ \mathrm{h}

The card returns 4.62963 h, just over four and a half hours, and the same time read in the other units is 277.778 min or 16,666.67 s. Compare that against the contact time the design basis or the permit requires.

5

No volume on hand? Use the tank dimensions

Open the Tank dimensions row and enter the base area and the liquid height. A 30 m² footprint holding 10 m of liquid is a 300 m³ volume, and the detention time follows from the flow exactly as above.

V=A×hV = A \times h==30 m2×10 m30\ \mathrm{m^2} \times 10\ \mathrm{m}==300 m3300\ \mathrm{m^3}

The number you read is the nominal detention time: the time the average drop of liquid spends in the basin when the flow and the liquid level are steady. Keep that meaning in mind when you compare it with a tracer test or with a field measurement.

Calculation method

The relation

Detention time is the liquid volume divided by the volumetric flow rate. Nothing else is involved, which is why the calculation stays readable at any plant scale.

DT=VQ\mathrm{DT} = \frac{V}{Q}

Because it is one simple product, the same relation runs backwards. Knowing the time and the flow gives the volume the basin must hold; knowing the time and the volume gives the flow the basin can accept.

Q=VDTQ = \frac{V}{\mathrm{DT}}\qquadV=DT×QV = \mathrm{DT} \times Q

Where the tank dimensions come in

A basin with a constant cross-section holds the product of its base area and the depth of liquid in it. That gives you a third input route, and it is the one to use when a drawing states the footprint rather than the volume.

V=A×hV = A \times h

It reverses the same way: divide the volume by the liquid height to get the base area, or by the base area to get the height that would hold that volume.

Units are normalised before the division

The quotient only works when both numbers describe the same system, so each input is converted into its SI base unit first: volume into cubic metres, flow into cubic metres per second, area into square metres, liquid height into metres and time into seconds. The division then cancels cleanly, leaving seconds.

m3m3/s\frac{\mathrm{m^3}}{\mathrm{m^3/s}}==s\mathrm{s}

The customary units use their exact definitions rather than rounded ones: one inch is 0.0254 m, one foot is 0.3048 m, one US gallon is 231 cubic inches, or 0.003785411784 m³, and one US oil barrel is 42 US gallons. The NIST conversion-factor table carries that barrel as 1.589 873×10−1 m31.589\,873 \times 10^{-1}\ \mathrm{m^3}, which the calculator holds as the exact 0.158987294928 m³ before the per-day division.

This matters most in the oilfield units. Entering 15 with the thousand-barrels-per-day unit means 15,000 barrels a day, which is 2,384.81 m³ a day or 0.0276020 m³ a second. Reading that 15 as cubic metres would understate the flow by several orders of magnitude.

Every direction the card solves

What you knowWhat the calculator returns
Volume and flow rateDetention time
Detention time and flow rateVolume
Detention time and volumeFlow rate
Base area and liquid heightVolume
Volume and liquid heightBase area
Volume and base areaLiquid height

Worked examples

How long a three-phase separator holds its liquid

A separator has a liquid volume of 2,100 ft³ and takes 15,000 barrels of oil a day. Both numbers are already in field units, so they go straight in: 2,100 with the cubic-feet unit, 15 with the thousand-barrels-per-day unit.

DT=2100 ft315 000 bbl/d\mathrm{DT} = \frac{2100\ \mathrm{ft^3}}{15\,000\ \mathrm{bbl/d}}==59.4654 m30.0276020 m3/s\frac{59.4654\ \mathrm{m^3}}{0.0276020\ \mathrm{m^3/s}}==2154.39 s2154.39\ \mathrm{s}≈\approx35.9 min35.9\ \mathrm{min}

Switch the time unit to minutes and the box reads 35.9065 min, which is 0.598442 h. A little under thirty-six minutes is what that volume and that flow imply, so the useful comparison is against the residence time the separator was specified for. If the figure looks nothing like the vendor's datasheet, the usual explanation is a flow quoted per day on one document and per hour on another.

Sizing a contact tank backwards from the time it must give

A 500 m³ tank has to hold water for 30 minutes before it leaves. Set the detention-time unit to minutes first — the card opens in hours, so 30 typed as hours would mean half a day — then enter the volume and the target time.

Q=VDTQ = \frac{V}{\mathrm{DT}}==500 m31800 s\frac{500\ \mathrm{m^3}}{1800\ \mathrm{s}}==0.277778 m3/s0.277778\ \mathrm{m^3/s}==16 666.67 L/min16\,666.67\ \mathrm{L/min}

That is the throughput the tank can take while still giving every drop half an hour. Run it the other way — keep the flow and ask for the volume — and you get the tank size needed at the flow you actually have.

Tips and pitfalls

Volume means liquid, not nameplate

A basin drawn down to half its working depth holds half the volume, and the detention time halves with it. Use the volume of liquid actually present at the level you are studying, not the nominal capacity printed on the tank.

Match the flow basis to the question

An average daily flow and a peak-hour flow give quite different answers, and the peak always gives the shortest time because it divides the same volume by a bigger number. Decide which basis your permit or design case uses before you compare results.

Check the unit before you trust a surprise

If the answer comes back flagged for being longer than a year, the two inputs are almost certainly on different scales — a flow given per minute but entered with a per-day unit leaves only 1/1,440 of the real flow, and the time stretches by the same factor.

Expect a tracer test to read shorter

Short-circuiting, dead zones and density currents all push the real average time below the ideal quotient. Use this number for design and comparison, and a tracer result when you need to know how the basin actually behaves.

If the volume you hold is written in a unit the menu does not offer, such as UK gallons, convert it first with the volume conversion calculator, which covers metric, US, UK and cooking volume units, and bring the result back in litres or cubic metres.

Questions

Q

Why did the volume I typed change after I entered the tank dimensions?

Both routes describe the same volume, so the card will not hold a volume that contradicts the dimensions you just finished entering. Finish the pair and the calculator keeps the base area and the liquid height, then recalculates the volume as their product — 30 m² under 10 m of liquid becomes 300 m³.

It works the other way too: type a volume on top of a completed dimension pair and the volume stands while one dimension is recalculated from it. When the numbers agree with each other, nothing moves at all.

Q

Why is a detention time of more than a year flagged?

Detention times from seconds to days or weeks are normal for basins, clarifiers, separators and contact tanks — the time units run from seconds to days for that reason. A year is the point where the number almost always means the two inputs are on different scales rather than that the basin is unusually large.

The figure stays visible so you can see what happened, with a note explaining the likely cause. Check the flow unit first: a flow measured per minute but entered with a per-day unit is out by a factor of 1,440, and one entered per second is out by 86,400.

Q

Why is the result empty?

Two situations produce an empty box rather than a number, and both are mathematical rather than mechanical. A flow rate of exactly zero is refused as an input, because there is no throughput to divide the volume by. And a target detention time of exactly zero asks for the flow that holds a positive volume for no time at all, which has no solution.

Both cases explain themselves in place. A zero flow is not an infinite detention time — with no flow at all, the basin simply fills and nothing leaves.

Q

Is detention time the same as hydraulic retention time?

In water and wastewater work the two names describe the same quantity, and the treatment industry usually writes HRT. In petrochemical and reactor engineering the same quotient is called residence time. Whichever name is in use, the arithmetic is the volume held divided by the flow through.

If the basin you are sizing is an aeration tank, the activated sludge calculator takes the same tank volume and influent flow and adds the process parameters around it: F/M ratio, mean cell residence time, sludge age and sludge volume index.

Limitations

  • Steady state only. The quotient assumes the flow and the liquid level hold still. While a basin fills, drains or takes a storm surge, both are changing, so one answer describes one operating condition.
  • Nominal, not measured. Short-circuiting, dead zones, density currents and sludge blankets are not part of the formula, so a real basin often holds liquid for less time than the ideal quotient suggests.
  • The target comes from your process. Mixing, settling, disinfection contact and storage each need their own residence time, and the value to design against comes from your design basis, the equipment supplier or the operating permit rather than from this card. In the United States, the discharge limits behind those permit conditions are issued under the NPDES permit program.
  • Sizing and compliance need a signature. A basin sized, re-rated or re-purposed for treatment duty should be checked by a qualified engineer, and a change that touches a permit needs the regulator's agreement.
  • Displayed digits are rounded for reading. When a quotient does not terminate — 4.62963 hours is really a repeating decimal — the last digit shown is approximate. Treat it as a reading of the answer, not as the limit of the calculation.
Detention Time Calculator - Residence Time From Volume and Flow