Source: Water Professionals International (WPI), Formula/Conversion Table (2024) (as of December 2026).
Detention time shows up often in drinking-water treatment and distribution math, and it is easy to miss on units. The formula is short. The work is getting the volume and the flow into units that match.
The detention time formula
The result is a calculated, theoretical time: it assumes the full volume of the basin or tank is in use. It is not a measured contact time, and it is not the same thing as CT (see the FAQ below).
Match the units first
| Volume in | Flow in | Detention time comes out in |
|---|---|---|
| gallons (gal) | gallons per minute (gpm) | minutes |
| gallons (gal) | gallons per day (gpd) | days |
| million gallons (MG) | million gallons per day (MGD) | days |
| cubic feet (ft³) | cubic feet per second (cfs) | seconds |
To change the answer to hours: minutes ÷ 60, or days × 24.
Step by step
- Find the volume in cubic feet. Rectangular basin: Length × Width × Water depth. Round tank: 0.785 × Diameter² × Water depth. The WPI table lists 0.785 × Diameter² as the area of a circle, and it already uses the diameter, so do not halve it. Use the water depth, not the height of the wall.
- Change cubic feet to gallons. Multiply by 7.48. The WPI table lists 1 cubic foot of water = 7.48 gal.
- Change the flow to gallons per minute. If the flow is in MGD: gpm = MGD × 1,000,000 ÷ 1,440 (there are 1,440 minutes in a day). The WPI table rounds this to 1 MGD = 694 gpm, so a small difference in the last digits is normal. If you do the exact division, you match the free calculator.
- Divide. Gallons ÷ gpm = minutes. Divide by 60 for hours.
Worked example 1: rectangular basin, flow in MGD
A rectangular basin is 60 ft long, 20 ft wide, with 12 ft of water. The plant flow is 1.5 MGD. What is the detention time?
- Volume = 60 × 20 × 12 = 14,400 ft³
- Gallons = 14,400 × 7.48 = 107,712 gal
- Flow in gpm = 1.5 × 1,000,000 ÷ 1,440 = 1,041.67 gpm
- Detention time = 107,712 ÷ 1,041.67 = 103.4 minutes
- In hours: 103.4 ÷ 60 = 1.72 hours
Check with the WPI rounding: 1.5 × 694 = 1,041 gpm, and 107,712 ÷ 1,041 = 103.5 minutes. Same answer to within rounding.
Worked example 2: round clearwell, flow in gpm
A round tank is 40 ft in diameter with 18 ft of water. Water moves through it at 1,200 gpm. What is the detention time?
- Area = 0.785 × 40² = 0.785 × 1,600 = 1,256 ft²
- Volume = 1,256 × 18 = 22,608 ft³
- Gallons = 22,608 × 7.48 = 169,107.84 gal
- Detention time = 169,107.84 ÷ 1,200 = 140.9 minutes
- In hours: 140.9 ÷ 60 = 2.35 hours
Worked example 3: solve for the volume you need
A design target calls for 2.0 hours of detention at 3.0 MGD. How many gallons of volume does that take?
Rearrange the formula: Volume = Flow × Detention time.
- Flow in gpm = 3.0 × 1,000,000 ÷ 1,440 = 2,083.33 gpm
- Time in minutes = 2.0 × 60 = 120 min
- Volume = 2,083.33 × 120 = 250,000 gal (0.25 MG)
Worked example 4: skip the conversion with MG and MGD
A basin holds 0.15 MG and the flow is 1.5 MGD.
- Detention time = 0.15 MG ÷ 1.5 MGD = 0.10 day
- In hours: 0.10 × 24 = 2.4 hours
When both numbers already use “million gallons,” the units match and no gpm conversion is needed.
Exam trap alert
Mixing gallons with MGD. If the basin is in gallons and the flow is in MGD, the answer is wrong until one of them is converted. Also watch for: using the radius with the 0.785 factor, using wall height instead of water depth, and reporting minutes when the question asks for hours.
Check your work with the free tools
- Free detention time and basin volume calculator (rectangular and round tanks, MGD or gpm, with the math shown line by line).
- Free tank volume calculator for the volume step.
- Free flow unit conversions for MGD, gpm and gpd.
- CT disinfection and pipe flow calculator when the question is about CT instead.
- Formula and conversion quick-reference and the exam math practice problems.
More how-to pages in this series: the pounds formula (8.34) and how to calculate water hardness.
Check your exam’s table. WPI notes that the right preparation materials depend on your state’s certifying authority. Confirm which Formula/Conversion Table and exam edition apply to you with your certifying agency. Colorado operators can start at the Colorado Hub and the state exam-edition lookup.
FAQ
What is the formula for detention time?
Detention time = volume ÷ flow, with compatible units. Gallons ÷ gpm gives minutes. Million gallons ÷ MGD gives days.
How do I convert MGD to gpm for a detention time problem?
Multiply MGD by 1,000,000 and divide by 1,440 minutes per day. For 1 MGD that is 694.4 gpm; the WPI Formula/Conversion Table lists 1 MGD as 694 gpm.
How many gallons are in a cubic foot?
7.48 gallons per cubic foot of water, as listed in the WPI Formula/Conversion Table.
Is detention time the same as CT?
No. Detention time is volume ÷ flow. CT is the disinfectant residual in mg/L multiplied by the time in minutes. The WPI table lists them as separate formulas.
Independent study aid from Water Operator Desk. Not affiliated with, endorsed by, or sponsored by the CCWP Office, WWFOCB, CDPHE, PSI, U.S. EPA, WPI/ABC, or AWWA. All practice material is original and is not actual exam content. Passing a certification exam is not guaranteed.