Overview
Designing or auditing a water or wastewater treatment process comes down to answering a handful of quantitative questions: how much oxidizable material is actually in the water, how long does it need to sit in each treatment stage, and how do the physical mechanics of that stage — like injected air bubbles — actually behave. Chemical oxygen demand quantifies the first question, detention time and hydraulic retention time size the tanks and reactors that answer the second, and the Young-Laplace equation explains the bubble physics behind aeration and flotation, the third.
This guide works through those questions in the order they'd come up when sizing a real treatment train: first characterizing what's in the influent water, then sizing the physical settling stage, then sizing the biological treatment stage against that same oxygen-demand measurement, and finally examining the bubble-level physics that makes aeration work. Each step links to the calculator built for that specific piece of plant design or environmental chemistry coursework.
Step 1: Quantify Oxidizable Material with Chemical Oxygen Demand
Chemical oxygen demand (COD) measures how much oxygen would be required to chemically oxidize all the organic (and some inorganic) material in a water sample, using a strong oxidant like potassium dichromate under acidic, heated conditions. It's reported in milligrams of O₂ per liter and serves as the standard, fast proxy for a wastewater stream's overall pollution load — much faster to measure than the 5-day biochemical oxygen demand (BOD) test, though it captures a broader (and sometimes non-biodegradable) set of oxidizable compounds.
There are two ways to arrive at a COD value. Theoretical COD (ThCOD) is calculated directly from a compound's molecular formula by balancing its complete combustion to CO₂ and H₂O and converting the oxygen consumed into an equivalent mass — useful when you know exactly what compound you're dealing with, like glucose or a specific industrial solvent. Measured COD, by contrast, comes from an actual dichromate titration on a real (often mixed and unknown) sample, using the difference between a blank and sample titration volume, the dichromate normality, and the sample volume to back-calculate the oxygen demand. The Chemical Oxygen Demand Calculator supports both modes — enter a molecular formula for ThCOD, or enter titration volumes and normality for a measured result.
Step 2: Size the Physical Settling Stage with Detention Time
Once you know how polluted the influent is, the next design question for a physical treatment stage — a sedimentation basin, clarifier, or grit chamber — is how long water needs to remain in the tank for gravity to do its work. Detention time is the simplest possible residence-time calculation: detention time = tank volume ÷ flow rate, giving the average time any given parcel of water spends in the tank.
This number directly controls settling performance: too short a detention time and suspended solids don't have enough time to settle out before the water exits, degrading effluent quality and overloading downstream filtration. Typical design targets for primary sedimentation basins run 1.5 to 2.5 hours, while grit chambers are often sized for just a few minutes since they're removing much denser, faster-settling particles like sand. The Detention Time Calculator takes tank volume and flow rate in whatever units you have on hand and returns detention time in hours and minutes, along with the volume-to-flow ratio used to get there.
Step 3: Size the Biological Stage with Hydraulic Retention Time
Hydraulic retention time (HRT) uses the exact same formula as detention time — reactor volume ÷ flow rate — but the term is specifically used for biological treatment stages: activated sludge basins, anaerobic digesters, and other reactors where microorganisms, not gravity, are doing the treatment work. The distinction in terminology reflects a difference in what's being optimized: physical settling depends on particle size and density, while biological treatment depends on giving a microbial population enough contact time to metabolize the incoming organic load.
HRT targets vary enormously by process: aerobic activated sludge systems often run HRTs of just hours to a few days, while anaerobic digesters — which rely on slower-growing methanogenic organisms — typically need 15 to 30 days. Too short an HRT risks washing out the microbial population faster than it can reproduce, collapsing treatment performance; too long wastes reactor volume and capital cost. The Hydraulic Retention Time Calculator computes HRT from reactor volume and influent flow, and — if you supply both influent and effluent COD from Step 1's measurements — also reports the organic loading rate and the actual COD removal efficiency achieved.
Step 4: Understand Aeration Bubble Physics with the Young-Laplace Equation
Most biological treatment stages need oxygen delivered to the microorganisms doing the work, almost always through injected air bubbles, and the physical behavior of those bubbles is governed by the Young-Laplace equation: ΔP = γ × (1/R₁ + 1/R₂), where γ is the surface tension of the liquid and R₁, R₂ are the two principal radii of curvature of the interface. For a spherical bubble, this simplifies to ΔP = 2γ/R (one curved surface for a droplet) or ΔP = 4γ/R (two surfaces, inside and outside the thin film, for a true soap-film bubble).
The practical consequence for treatment design is a direct tradeoff: smaller bubbles require substantially higher internal pressure to form and sustain (since ΔP scales inversely with radius), but they also have a much larger total surface area per unit volume of air injected, which increases the interfacial area available for oxygen to diffuse into the surrounding water. This is exactly why fine-bubble diffusers — despite the extra blower energy needed to overcome their higher internal pressure — are the modern standard for activated sludge aeration, delivering substantially better oxygen transfer efficiency than older coarse-bubble systems. The same equation also governs dissolved air flotation, where fine bubbles need to be small enough to attach efficiently to suspended solids and oils without prematurely coalescing. The Young-Laplace Equation Calculator computes the pressure difference for a given surface tension and radius across spherical bubble or droplet geometries.
Key Terms
- Chemical oxygen demand (COD) — the oxygen equivalent, in mg/L, of all chemically oxidizable material in a water sample, measured with a strong oxidant
- Theoretical COD (ThCOD) — COD calculated directly from a compound's molecular formula via stoichiometric oxidation balance, rather than measured by titration
- Biochemical oxygen demand (BOD) — the oxygen consumed specifically by microorganisms metabolizing organic material over a 5-day incubation period
- Detention time — the average residence time of water in a physical treatment tank, equal to volume divided by flow rate
- Hydraulic retention time (HRT) — the same volume-over-flow calculation as detention time, applied specifically to biological treatment reactors
- Organic loading rate — the mass of organic material (as COD or BOD) fed into a reactor per unit volume per day
- Young-Laplace equation — the relationship ΔP = γ(1/R₁ + 1/R₂) describing the pressure difference across a curved liquid interface, such as a bubble or droplet
- Surface tension (γ) — the energy per unit area at a liquid interface, which determines how much pressure a curved surface like a bubble sustains