Wastewater Calculator

Calculate activated sludge process parameters for wastewater treatment.

Supports 8 calculation targets: BOD, COD, F/M ratio, HRT, MCRT, sludge age, SVI, and everything — with metric and imperial units.

Updated July 30, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

Introduction / overview

The Wastewater Calculator is a practical tool for modeling the activated sludge process — the biological heart of most modern wastewater treatment plants. It takes data from the primary clarifier, aeration tank, and secondary clarifiers, and computes key operational parameters that plant operators and engineers use every day.

Think of it as a digital model of your treatment plant. Enter the numbers you know, and the calculator instantly fills in the rest — BOD and COD loading, F/M ratio, HRT, MCRT, sludge age, and SVI — all from a single interface.

Who is this for?

  • Wastewater plant operators who need to monitor and adjust process parameters daily.
  • Environmental engineers designing or optimizing activated sludge systems.
  • Students learning wastewater treatment engineering and process control.
  • Consultants and regulators evaluating plant performance against permit limits.

You can choose from six calculation targets — F/M ratio, HRT, MCRT, sludge age, SVI, or run all calculations at once. The calculator supports both BOD and COD analyses, lets you enter tank dimensions or skip straight to volume, and works with metric and imperial units throughout. If you also need to determine MLVSS concentration from lab data, pair this with our MLVSS Calculator for a complete wastewater analysis workflow.

How to use / quick start

This calculator is designed around a real wastewater treatment plant flow. Start by selecting what you want to calculate, then work through the sections in order. The calculator automatically derives any missing value once enough inputs are provided.

General steps

  1. 1Pick your calculation target from the dropdown at the top — F/M ratio/MLVSS, HRT, MCRT, sludge age, SVI, or Everything. This decides which sections and formulas are active.
  2. 2Choose BOD, COD, or Both (only when F/M ratio or Everything mode is selected). This controls whether the calculation uses biochemical oxygen demand, chemical oxygen demand, or both.
  3. 3Fill in the primary clarifier data — average untreated and treated BOD/COD concentrations, plus the clarifier effluent flow rate. The calculator works out the effluent BOD/COD automatically.
  4. 4Define the aeration tank. Enter the tank dimensions (length, width, sidewall depth, free-board) or go straight to volume. Add BOD/COD loading rates — or let the calculator derive them from the primary clarifier data you already entered.
  5. 5Check the results section for your calculated parameters. Depending on your chosen mode, you will see HRT, MCRT, sludge age, SVI, or the full set of results.

Quick reference — what each mode calculates

ModePrimary outputsKey inputs needed
F/M ratioBOD/COD loading, MLVSS mass, MLVSS conc., F/M ratioClarifier BOD/COD, effluent flow, tank dimensions, F/M ratio
HRTHydraulic retention timeTank volume, flow rate through tank
MCRTMLSS total weight, SS leaving, mean cell residence timeTank volumes, MLSS conc., secondary clarifier flows & solids
Sludge ageMLSS weight (aeration), SS entering, sludge ageTank dimensions, MLSS conc., effluent SS conc., effluent flow
SVISludge volume indexSettled solids (lab measurement), MLSS conc.
EverythingAll of the aboveAll inputs for all modes

Walkthrough: calculating F/M ratio for a municipal plant

Suppose you are operating a municipal wastewater plant and want to check the food-to-microorganism ratio.

  1. 1. Select “F/M ratio/MLVSS” from the mode dropdown.
  2. 2. Choose BOD as your analysis type.
  3. 3. Enter untreated influent BOD = 0.5 g/L and primary treated BOD = 0.2 g/L. The calculator derives effluent BOD = 0.3 g/L.
  4. 4. Set effluent flow = 1,000 m³/day. BOD loading is automatically computed.
  5. 5. Enter tank dimensions: length = 10 m, width = 5 m, sidewall depth = 4 m, free-board = 0.5 m. Volume = 175 m³.
  6. 6. Set F/M ratio = 0.3. The calculator determines MLVSS mass and concentration.

Step-by-step examples

Example 1: Determining hydraulic retention time

An industrial wastewater treatment plant has an aeration tank volume of 175 m³ and a flow rate of 350 m³/day passing through it. What is the HRT?

Calculation:

HRT=VQ\text{HRT} = \frac{V}{Q}=175350\frac{175}{350}=0.5 days0.5\ \text{days}=12 hours12\ \text{hours}

An HRT of 12 hours is typical for activated sludge systems. This means each particle of wastewater spends about half a day inside the aeration tank — enough time for microorganisms to break down the organic matter but not so long that the plant throughput becomes a bottleneck.

Example 2: Calculating mean cell residence time (MCRT)

A plant has an MLSS concentration of 3 g/L across the system. The aeration tank volume is 175 m³ and the secondary clarifier volume is 96 m³. The secondary effluence carries 30 mg/L of solids at 1,000 m³/day, while the waste sludge runs at 5 g/L and 20 m³/day. What is the MCRT?

Step 1 — Total MLSS mass:

MLSStotal\text{MLSS}_{\text{total}}=3×(175+96)3 \times (175 + 96)=813 kg813\ \text{kg}

Step 2 — SS leaving the system per day:

SSout=(30×103×1000)+(5×20)\text{SS}_{\text{out}} = (30 \times 10^{-3} \times 1000) + (5 \times 20)=130 kg/day130\ \text{kg/day}

Step 3 — MCRT:

MCRT=813130\text{MCRT} = \frac{813}{130}=6.25 days6.25\ \text{days}

An MCRT of about 6 days is in the conventional range for activated sludge. If the MCRT is too low, microorganisms are washed out before they can fully digest the waste. If too high, the sludge becomes old and less effective.

Example 3: Evaluating sludge settleability with SVI

A lab technician takes a 1 L sample of mixed liquor from the aeration tank effluent and lets it settle for 30 minutes. After settling, 200 mL of solids have settled at the bottom. The MLSS concentration is 3 g/L. What is the SVI?

Calculation:

SVI=200 mL/L3 g/L\text{SVI} = \frac{200\ \text{mL/L}}{3\ \text{g/L}}=66.7 mL/g66.7\ \text{mL/g}

An SVI of 66.7 mL/g indicates dense, rapidly settling sludge — typical of a well-operated plant. Values below 80 mL/g suggest the sludge is over-oxidized, while values above 250 mL/g point to bulking sludge that settles too slowly. The ideal range is generally 100–200 mL/g.

Common scenarios

Troubleshooting bulking sludge

When the secondary clarifier shows poor settling, run the SVI mode. A high SVI (>250 mL/g) confirms bulking sludge. Then switch to F/M ratio mode — a low F/M ratio often correlates with filamentous bacteria. Adjust the waste sludge rate and check again.

Designing a new aeration tank

Use the HRT mode when dimensioning a new tank. Enter the target flow rate and desired retention time, and the calculator tells you the required volume. Then use the tank dimension inputs to find optimal length, width, and depth combinations that meet that volume.

Optimizing biological treatment efficiency

Switch to Everything mode for a full process audit. Enter all available plant data — from primary clarifier through to secondary clarifiers and lab SVI test — and review the complete set of parameters at once. This holistic view helps identify whether the issue is hydraulic (HRT), biological (F/M, MCRT), or settling-related (SVI).

Tracking MLVSS from lab data

If you have laboratory measurements for MLSS and fixed solids, use our MLVSS Calculator to determine the volatile fraction. Then bring that MLVSS concentration back to this calculator to compute the F/M ratio — giving you a precise picture of the food-to-biomass balance in your aeration tank.

Tips & best practices

Start with what you know

You do not need to fill every field. The calculator works backwards from whatever data you have. For example, if you know the tank volume and the flow rate, leave the dimensions blank — just enter the volume directly. The solver will figure out the rest.

Watch the free-board carefully

Free-board is the distance from the water surface to the top of the tank wall. It subtracts from the sidewall depth to give the actual water depth. A small free-board relative to sidewall depth means the tank is operating near full capacity — useful to know if you expect storm flows.

Cross-check BOD and COD results

When running F/M ratio mode, selecting Both for BOD and COD lets you compare the two analyses side by side. A typical domestic wastewater has a COD-to-BOD ratio of about 2:1. If your ratio is significantly different, it may indicate industrial discharge or unusual organic composition worth investigating.

Use consistent units

The calculator handles unit conversion automatically, but the results are clearest when you settle on either metric or imperial before you start. Switching units mid-calculation is fine — the underlying values remain correct — but it is easier to spot-check your numbers when everything is in the same measurement system.

Pro tip: Run the same scenario in both F/M ratio and HRT modes. Together, these two parameters tell you whether a process issue is biological (F/M out of range) or hydraulic (HRT too short), helping you target your troubleshooting efforts.

Calculation method / formulas

The activated sludge process follows a straightforward set of mass-balance and kinetic relationships. Below are the core formulas used in this calculator.

1

Primary effluent concentration

The BOD or COD entering the aeration tank equals the untreated load minus what the primary clarifier removed.

Ceff=CuntreatedCremovedC_{\text{eff}} = C_{\text{untreated}} - C_{\text{removed}}

Where CC is the concentration (BOD or COD) in g/L or mg/L.

2

BOD/COD loading rate

The mass of organic matter entering the aeration tank each day.

Loading=Q×Ceff\text{Loading} = Q \times C_{\text{eff}}

Where QQ is the effluent flow rate (m³/day) and CeffC_{\text{eff}} is the BOD or COD concentration (kg/m³).

3

Aeration tank volume

The effective water volume in the aeration tank.

V=L×W×(DswFb)V = L \times W \times (D_{\text{sw}} - F_{\text{b}})

Where L,WL, W are length and width, DswD_{\text{sw}} is the sidewall depth, and FbF_{\text{b}} is the free-board — all in meters.

4

Hydraulic retention time (HRT)

The average time wastewater spends in the aeration tank.

HRT=VQthrough\text{HRT} = \frac{V}{Q_{\text{through}}}

Where VV is the aeration tank volume and QthroughQ_{\text{through}} is the flow rate through the tank.

5

Food-to-microorganism (F/M) ratio

The daily organic load divided by the biomass (MLVSS) in the aeration tank.

F/M=BOD loading (kg/day)MLVSS (kg)\text{F/M} = \frac{\text{BOD loading (kg/day)}}{\text{MLVSS (kg)}}
MLVSS (kg)=BOD loadingF/M\text{MLVSS (kg)} = \frac{\text{BOD loading}}{\text{F/M}}

Typical F/M ratios range from 0.2–0.6 for conventional activated sludge and 0.05–0.2 for extended aeration systems.

6

MLVSS concentration

The concentration of volatile (biological) solids in the aeration tank.

MLVSS=MLVSS mass (kg)Vaeration\text{MLVSS} = \frac{\text{MLVSS mass (kg)}}{V_{\text{aeration}}}
7

Mean cell residence time (MCRT)

The average time solids spend in the entire activated sludge system.

MCRT=Total MLSS (kg)SS leaving (kg/day)\text{MCRT} = \frac{\text{Total MLSS (kg)}}{\text{SS leaving (kg/day)}}

Where:

SS leaving=(Se×Qe)+(Sw×Qw)\text{SS leaving} = (S_e \times Q_e) + (S_w \times Q_w)

SeS_e and SwS_w are solids concentrations in the effluence and waste flows, and Qe,QwQ_e, Q_w are the corresponding flow rates.

8

Sludge age

The average time a particle stays in the aeration tank alone (not including clarifiers).

Sludge age=MLSS in aeration (kg)SS entering (kg/day)\text{Sludge age} = \frac{\text{MLSS in aeration (kg)}}{\text{SS entering (kg/day)}}

SS entering is the mass of suspended solids coming from the primary clarifier each day:

SS entering=Effluent SS conc.×Qeffluent\text{SS entering} = \text{Effluent SS conc.} \times Q_{\text{effluent}}
9

Sludge volume index (SVI)

A lab-derived measure of how well the sludge settles.

SVI (mL/g)=Settled solids after 30 min (mL/L)MLSS conc. (g/L)\text{SVI (mL/g)} = \frac{\text{Settled solids after 30 min (mL/L)}}{\text{MLSS conc. (g/L)}}

Interpretation: ≤80 mL/g = very dense sludge (over-oxidized); 100–200 mL/g = ideal settling; ≥250 mL/g = bulking sludge (poor settling).

Related concepts / background

BOD vs. COD — what is the difference?

BOD (Biochemical Oxygen Demand) measures the oxygen microorganisms consume while breaking down organic matter over 5 days (BOD₅). It represents the biologically degradable fraction. COD (Chemical Oxygen Demand) measures the oxygen equivalent consumed by chemical oxidation — it captures both biodegradable and non-biodegradable organics. COD is always higher than BOD for the same sample, and the COD/BOD ratio gives insight into the wastewater composition. Typical domestic wastewater has a COD/BOD ratio around 2:1. A higher ratio suggests industrial discharge or recalcitrant compounds.

Why MCRT matters more than sludge age

MCRT (mean cell residence time) measures the average time solids stay in the entire system — aeration tank plus secondary clarifiers. Sludge age only counts time in the aeration tank. Because a significant portion of solids can be held in the clarifiers (especially in large plants), MCRT is the more comprehensive parameter for process control. Most regulatory permits and design guidelines reference MCRT rather than sludge age.

The activated sludge process — a quick overview

The activated sludge process is the most widely used biological wastewater treatment method worldwide. It works by circulating oxygen through a mixture of wastewater and microorganisms (the “mixed liquor”) in an aeration tank. The microorganisms consume organic pollutants, turning them into carbon dioxide, water, and new biomass. The mixture then flows to a secondary clarifier where the biomass settles out as sludge. Some sludge is returned to the aeration tank to maintain the microorganism population, while the excess is wasted for further treatment and disposal. The six parameters in this calculator — BOD/COD loading, F/M ratio, HRT, MCRT, sludge age, and SVI — give operators a complete picture of how well this biological process is performing.

Frequently asked questions

What is a normal F/M ratio range?

For conventional activated sludge, F/M ratios typically fall between 0.2 and 0.6. Extended aeration systems (longer aeration time) operate lower, around 0.05–0.2. High-purity oxygen systems can go up to 0.8–1.2. If your F/M ratio is outside these ranges, consider adjusting the waste sludge rate or checking for unusual influent conditions.

How do I reduce a high SVI?

High SVI (>250 mL/g) usually means bulking sludge caused by filamentous bacteria. To address this:

  • Increase the waste sludge rate to lower the MCRT.
  • Check dissolved oxygen levels — low DO in the aeration tank can promote filamentous growth.
  • Consider adding a selectors zone (anoxic or aerobic) to favor floc-forming bacteria.

What is the difference between MLSS and MLVSS?

MLSS (Mixed Liquor Suspended Solids) is the total weight of all solids — both organic (volatile) and inorganic (fixed) — in the mixed liquor. MLVSS (Mixed Liquor Volatile Suspended Solids) is the organic fraction only, which represents the active biomass. The F/M ratio should always use MLVSS because only the volatile solids are biologically active. Use our MLVSS Calculator to determine MLVSS from lab measurements of MLSS and fixed solids.

Can I use this calculator for industrial wastewater?

Yes. The same activated sludge principles apply to industrial systems. Keep in mind that industrial wastewater often has a different COD/BOD ratio, may contain inhibitory compounds, and may require different F/M and MCRT targets than municipal sewage. Always compare your results against design guidelines specific to your industry.

What if my results seem unreasonable?

First, double-check your units. A common mistake is entering flow in m³/hr when the calculator expects m³/day, or entering BOD in mg/L when the field is set to g/L. The calculator shows error messages with field-specific validation. If a result shows as “undefined” or blank, it usually means one of the required inputs for that calculation path is missing or zero — check that all fields in the section are filled.

How do the volume calculations work when I enter dimensions?

When you enter tank length, width, sidewall depth, and free-board, the calculator computes the effective water volume as:

V=L×W×(DF)V = L \times W \times (D - F)

The free-board is subtracted because it represents the empty space above the water level. If you already know the volume (from design documents or a straight measurement), you can enter it directly and leave the dimension fields blank — the calculator will use your volume as-is.

Limitations / disclaimers

This calculator provides estimates based on standard activated sludge formulas. It is intended for educational, planning, and preliminary assessment purposes — not as a substitute for detailed engineering analysis, regulatory compliance calculations, or professional judgment.

  • Idealized model: The calculator assumes steady-state conditions and does not account for diurnal flow variations, temperature effects on biological activity, toxicity events, or seasonal changes in influent strength.
  • Simplified clarifier model: Secondary clarifier performance depends on many factors not captured here — sludge blanket depth, inlet design, weir loading rate, and temperature gradients. The SVI provides an indication of settleability but does not replace a full settlement analysis.
  • No aeration configuration: The calculator does not model diffuser layout, oxygen transfer efficiency, or blower sizing. These require specialized tools and site-specific data.
  • Regulatory compliance: Parameters like MCRT and SVI are often specified in discharge permits or design standards. Always verify that your target values meet local regulatory requirements before making operational changes.

Remember: For detailed process design, troubleshooting, or permit compliance, consult a licensed environmental engineer or your facility's design documents.

Wastewater Calculator — Activated Sludge Process BOD, COD, HRT, MCRT, SVI