Wastewater Calculator

Comprehensive wastewater treatment calculator for BOD, COD, F/M ratio, hydraulic retention time, and sludge volume index. Essential for operators, engineers, and environmental scientists.

BOD Calculator

Biochemical Oxygen Demand - measures organic pollution in wastewater

Results
BOD Removal
--
mg/L
Removal Efficiency
--
%
BOD Load
--
lbs/day

COD Calculator

Chemical Oxygen Demand - measures total organic and inorganic oxidizable substances

Results
COD Removal
--
mg/L
Removal Efficiency
--
%
COD Load
--
lbs/day

F/M Ratio Calculator

Food to Microorganism Ratio - key parameter for activated sludge process control

Results
F/M Ratio
--
day¹
Classification
--

HRT Calculator

Hydraulic Retention Time - average time wastewater remains in a treatment tank

Results
Hydraulic Retention Time
--
hours

SVI Calculator

Sludge Volume Index - measures settling characteristics of activated sludge

Results
Sludge Volume Index
--
mL/g
Sludge Quality
--

What is Wastewater Treatment?

Wastewater treatment is the process of converting wastewater, which is water that is no longer needed or suitable for its most recent use, into water that can be safely discharged back into the environment or reused. The treatment process involves the removal of contaminants including suspended solids, organic matter, nutrients such as nitrogen and phosphorus, pathogens, and other pollutants. Wastewater originates from a variety of sources including households, commercial establishments, industrial facilities, and stormwater runoff. Each source contributes different types and concentrations of pollutants, making wastewater treatment a complex engineering challenge that requires multiple stages and technologies.

Municipal wastewater treatment plants (WWTPs), also commonly referred to as water resource recovery facilities (WRRFs), are designed to protect public health and the environment by treating wastewater before it is released into receiving water bodies such as rivers, lakes, and oceans. The effectiveness of treatment is measured using several key parameters, including Biochemical Oxygen Demand (BOD), Chemical Oxygen Demand (COD), Total Suspended Solids (TSS), and nutrient concentrations. Operators and engineers rely on calculators like the ones above to monitor plant performance, optimize treatment processes, and ensure compliance with discharge permits issued by regulatory agencies.

Three Stages of Wastewater Treatment

Wastewater treatment is typically divided into three main stages, each targeting specific categories of pollutants. Understanding these stages is fundamental to grasping how the various calculator parameters relate to each other and to the treatment process as a whole.

Primary Treatment

Primary treatment is the first stage of the process and focuses on the physical removal of settleable solids and floating materials from raw wastewater. The influent wastewater first passes through screening equipment that removes large objects such as rags, sticks, plastics, and other debris. After screening, the wastewater enters a grit chamber where dense inorganic particles like sand, gravel, and cinders settle out. The wastewater then flows into primary clarifiers (also called primary sedimentation tanks), where it is held for a period of one to two hours. During this time, heavier suspended solids settle to the bottom as primary sludge, while oils, grease, and lighter solids float to the surface and are skimmed off. Primary treatment typically removes 50 to 70 percent of total suspended solids and 25 to 40 percent of BOD.

Secondary Treatment

Secondary treatment is the biological stage of the process and is designed to substantially remove the dissolved and colloidal organic matter that remains after primary treatment. This stage uses microorganisms, primarily bacteria, to biologically degrade organic pollutants. The most common secondary treatment method is the activated sludge process, in which wastewater is mixed with a concentrated population of microorganisms (referred to as activated sludge or mixed liquor) in aeration tanks. Air or oxygen is supplied to support aerobic biological activity, and the microorganisms consume the organic matter as food, converting it to carbon dioxide, water, and new cellular material. The mixed liquor then flows to secondary clarifiers, where the biological solids settle and are either returned to the aeration tanks (return activated sludge) or wasted (waste activated sludge). Secondary treatment typically achieves 85 to 95 percent removal of BOD and TSS. The F/M ratio, HRT, and SVI are all critical parameters for monitoring and controlling the activated sludge process.

Tertiary Treatment (Advanced Treatment)

Tertiary treatment goes beyond secondary treatment to achieve higher levels of pollutant removal and to target specific contaminants such as nitrogen, phosphorus, and pathogens. Common tertiary treatment processes include filtration (sand filters, membrane filters), chemical precipitation for phosphorus removal, biological nitrogen removal (nitrification and denitrification), and disinfection using chlorine, ultraviolet (UV) light, or ozone. Tertiary treatment is often required when the treated effluent is discharged to sensitive receiving waters or when it is intended for reuse purposes such as irrigation, industrial processes, or indirect potable reuse. The level of tertiary treatment required depends on the specific discharge permit limits and the intended use of the treated water.

BOD Explained: Biochemical Oxygen Demand

Biochemical Oxygen Demand (BOD) is one of the most widely used parameters in wastewater treatment and water quality assessment. BOD measures the amount of dissolved oxygen consumed by aerobic microorganisms as they decompose organic matter in a water sample over a specified period of time, typically five days at 20 degrees Celsius (known as BOD5). The result is expressed in milligrams of oxygen consumed per liter of water (mg/L). A higher BOD value indicates a greater concentration of biodegradable organic matter in the water, which in turn means a higher demand for oxygen.

Why does BOD matter? When wastewater with a high BOD is discharged into a natural water body, the microorganisms in the receiving water will consume dissolved oxygen as they break down the organic matter. If the oxygen demand exceeds the rate at which oxygen is replenished from the atmosphere and from aquatic plants, dissolved oxygen levels in the water body will drop. Low dissolved oxygen levels are harmful to fish, invertebrates, and other aquatic organisms and can lead to ecological damage, fish kills, and overall degradation of water quality.

Typical BOD Values:
Raw domestic wastewater: 200-300 mg/L
After primary treatment: 100-200 mg/L
After secondary treatment: 10-30 mg/L
Typical discharge limit: 20-30 mg/L

Our BOD calculator above helps operators determine BOD removal (the difference between influent and effluent BOD), removal efficiency (the percentage of BOD removed), and BOD loading (the total mass of BOD entering the plant per day). The BOD loading calculation uses the conversion factor of 8.34, which converts the product of concentration (mg/L) and flow (MGD) into pounds per day. This loading value is essential for designing treatment processes, determining the F/M ratio, and ensuring the plant is operating within its design capacity.

COD Explained: Chemical Oxygen Demand

Chemical Oxygen Demand (COD) is another critical water quality parameter that measures the oxygen equivalent of the organic matter in a water sample that is susceptible to oxidation by a strong chemical oxidant. Unlike BOD, which measures only the biologically degradable organic matter, COD measures both biodegradable and non-biodegradable organic compounds, as well as some inorganic substances that can be chemically oxidized. The COD test uses potassium dichromate as the oxidizing agent in a strong acid solution at an elevated temperature, and the result is expressed in mg/L of oxygen equivalent.

The COD test offers several advantages over the BOD test. It can be completed in about two to three hours, compared to the five days required for BOD5. It is also more reproducible and is not affected by the presence of toxic substances that might inhibit biological activity in a BOD test. However, because COD measures a broader range of substances than BOD, the COD value is always equal to or greater than the BOD value for the same sample. The ratio of BOD to COD (BOD/COD ratio) provides useful information about the biodegradability of the wastewater. A BOD/COD ratio of 0.5 or higher indicates that the wastewater is readily biodegradable, while a ratio below 0.3 suggests the presence of significant non-biodegradable organic matter or toxic substances.

Typical COD Values:
Raw domestic wastewater: 400-600 mg/L
After primary treatment: 200-400 mg/L
After secondary treatment: 40-100 mg/L
Typical BOD/COD ratio for domestic wastewater: 0.4-0.6

F/M Ratio: Food to Microorganism Ratio

The Food to Microorganism (F/M) ratio is a fundamental operating parameter for the activated sludge process. It represents the ratio of the food supply (measured as BOD loading in pounds or kilograms per day) to the mass of microorganisms in the aeration tank (measured as Mixed Liquor Volatile Suspended Solids, or MLVSS, in the aeration tank). The F/M ratio is expressed in units of day inverse (day minus one) and provides an indication of how heavily or lightly loaded the biological system is.

The F/M ratio directly influences the quality of treatment, the settling characteristics of the sludge, and the overall stability of the process. A lower F/M ratio means the microorganisms are in a food-limited condition (endogenous respiration phase), which generally produces better effluent quality and more stable operation but can also lead to filamentous bulking if the ratio drops too low. A higher F/M ratio means the microorganisms have an abundance of food, which can lead to poorer effluent quality, dispersed growth, and poor settling.

F/M Range (day-1) Process Type Characteristics
0.05 - 0.15 Extended Aeration Very high quality effluent, long SRT
0.2 - 0.5 Conventional Activated Sludge Normal operating range, good effluent
0.5 - 1.0 High-Rate Process Higher loading, lower effluent quality
>1.0 Roughing / Contact Stabilization Very high loading, used as pre-treatment

Operators adjust the F/M ratio by changing the waste activated sludge (WAS) rate, which controls the MLVSS concentration. Increasing the WAS rate decreases MLVSS and increases the F/M ratio, while decreasing the WAS rate allows MLVSS to build up and lowers the F/M ratio. The BOD loading (the numerator) is largely determined by the influent flow and strength, which are often outside the operator's direct control.

Hydraulic Retention Time (HRT)

Hydraulic Retention Time (HRT), also known as detention time or residence time, is the average length of time that wastewater remains in a treatment tank or reactor. It is calculated by dividing the tank volume by the flow rate and is typically expressed in hours. HRT is a critical design and operational parameter because it determines the amount of time available for physical, chemical, or biological processes to act on the wastewater.

Different treatment processes require different HRTs depending on the type of treatment and the pollutants being targeted. Primary clarifiers typically have an HRT of 1.5 to 2.5 hours, which provides sufficient time for settleable solids to separate from the liquid. Conventional activated sludge aeration tanks usually have an HRT of 4 to 8 hours, providing enough contact time for the microorganisms to consume organic matter. Extended aeration systems may have HRTs of 18 to 36 hours or even longer. Anaerobic digesters, which break down concentrated sludge in the absence of oxygen, typically require HRTs of 15 to 30 days.

Typical HRT Values:
Primary clarifier: 1.5 - 2.5 hours
Conventional activated sludge: 4 - 8 hours
Extended aeration: 18 - 36 hours
Anaerobic digester: 15 - 30 days
Trickling filter: 1 - 3 hours

An HRT that is too short means the wastewater passes through the system too quickly, resulting in incomplete treatment and poor effluent quality. An HRT that is too long may mean the treatment unit is oversized for the current flow, which can waste energy and resources. Operators must also consider the impact of peak flow events, during which HRT decreases as flow increases, potentially reducing treatment performance.

Sludge Volume Index (SVI)

The Sludge Volume Index (SVI) is a measure of the settling characteristics of activated sludge. It is defined as the volume in milliliters occupied by one gram of activated sludge after settling for 30 minutes in a one-liter graduated cylinder (Imhoff cone or graduated cylinder). The test is simple to perform and provides a rapid assessment of sludge settleability, which is essential for maintaining proper operation of secondary clarifiers.

The SVI is calculated by dividing the settled sludge volume (in mL/L) by the MLSS concentration (in mg/L) and multiplying by 1000 to convert the units to mL/g. For example, if the settled sludge volume after 30 minutes is 250 mL/L and the MLSS is 2500 mg/L, the SVI would be (250 times 1000) divided by 2500, which equals 100 mL/g.

SVI Range (mL/g) Quality Interpretation
< 80 Excellent Very dense, well-settling sludge (possible pin floc)
80 - 100 Good Good settling, dense sludge blanket
100 - 200 Fair Moderate settling, acceptable operation
> 200 Poor Bulking sludge, poor settling, potential clarifier problems

A high SVI (above 200 mL/g) typically indicates bulking sludge, which is often caused by an overgrowth of filamentous bacteria. Filamentous bulking can result from low dissolved oxygen levels, low F/M ratio, nutrient deficiency, or the presence of certain industrial wastes. A very low SVI (below 50 mL/g) may indicate pin floc, where the biological floc particles are very small and do not settle well despite being dense, leading to turbid effluent with small suspended particles.

How to Reduce BOD in Wastewater

Reducing BOD in wastewater is a primary goal of treatment and can be accomplished through several approaches depending on the source of the wastewater and the treatment configuration:

  • Source control: Reducing the amount of organic matter entering the sewer system through industrial pretreatment programs, grease trap maintenance, and public education about proper disposal of food waste and fats, oils, and grease (FOG).
  • Optimizing primary treatment: Ensuring primary clarifiers are operating properly with correct HRT and sludge removal schedules to maximize the physical removal of settleable organic solids before secondary treatment.
  • Maintaining proper F/M ratio: Keeping the food-to-microorganism ratio in the optimal range (0.2 to 0.5 for conventional activated sludge) ensures the biological population is appropriately sized to consume the incoming organic load.
  • Adequate aeration: Maintaining dissolved oxygen levels of at least 2.0 mg/L in the aeration tanks ensures the aerobic microorganisms have sufficient oxygen for efficient metabolism of organic compounds.
  • Nutrient supplementation: Microorganisms require nitrogen and phosphorus in addition to organic carbon. A BOD:N:P ratio of approximately 100:5:1 is typically recommended. If nutrients are deficient, biological treatment efficiency will suffer.
  • Temperature management: Biological activity is temperature-dependent and generally increases with temperature up to about 35 degrees Celsius. During cold weather, operators may need to increase MLSS levels or detention times to compensate for reduced biological activity.
  • Regular process monitoring: Using tools like the calculators above to track BOD removal efficiency, F/M ratio, SVI, and other parameters allows operators to detect problems early and make corrective adjustments before effluent quality is compromised.

Wastewater Treatment Plant Schematic

A typical municipal wastewater treatment plant follows a logical sequence of unit processes designed to progressively remove pollutants. Below is a text description of the flow through a conventional activated sludge treatment plant:

  1. Influent pump station: Raw wastewater arrives via the collection system and is pumped to the headworks if the plant is not located at a low point where gravity flow is possible.
  2. Screening and grit removal: Coarse screens or bar racks remove large debris, while grit chambers allow heavy inorganic particles to settle. Some plants also include fine screens or comminutors to shred remaining solids.
  3. Primary clarifiers: Wastewater flows through large circular or rectangular tanks where settleable solids sink to the bottom as primary sludge. Floating materials are skimmed from the surface. HRT is typically 1.5 to 2.5 hours.
  4. Aeration tanks: Primary effluent is mixed with return activated sludge and aerated for 4 to 8 hours. Microorganisms consume dissolved organic matter. The F/M ratio and dissolved oxygen levels are carefully controlled.
  5. Secondary clarifiers: Mixed liquor from the aeration tanks flows to secondary clarifiers where biological solids settle. Clarified effluent overflows weirs at the surface. SVI is monitored to ensure good settling.
  6. Return activated sludge (RAS): A portion of the settled sludge is pumped back to the aeration tanks to maintain the desired MLSS concentration.
  7. Waste activated sludge (WAS): Excess biological solids are wasted from the system to maintain the target sludge age (SRT) and F/M ratio.
  8. Disinfection: Effluent is disinfected using chlorine, UV, or ozone to inactivate pathogenic organisms before discharge.
  9. Effluent discharge: Treated and disinfected effluent is released to the receiving water body through an outfall structure.
  10. Sludge treatment: Primary and waste activated sludge are thickened, digested (anaerobically or aerobically), dewatered, and disposed of through land application, landfilling, incineration, or beneficial reuse.

Frequently Asked Questions

BOD (Biochemical Oxygen Demand) measures the amount of oxygen required by microorganisms to biologically decompose organic matter over a period of five days at 20 degrees Celsius. It only measures biodegradable organic compounds. COD (Chemical Oxygen Demand) uses a strong chemical oxidant to measure the total amount of oxidizable matter, including both biodegradable and non-biodegradable organic compounds as well as some inorganic substances. As a result, COD values are always equal to or higher than BOD values. The BOD/COD ratio is a useful indicator of how biodegradable a particular wastewater is.

The 8.34 conversion factor is the weight of one gallon of water in pounds (8.34 lbs/gallon). It is used in wastewater calculations to convert concentration (mg/L) and flow (MGD, million gallons per day) into a mass loading rate (lbs/day). The formula is: Load (lbs/day) = Concentration (mg/L) x Flow (MGD) x 8.34. This factor works because 1 mg/L is equivalent to 1 part per million, and when multiplied by the volume in million gallons and the weight of water per gallon, it yields the mass in pounds.

Several key parameters should be monitored to assess activated sludge performance. The F/M ratio should be maintained in the range of 0.2 to 0.5 for conventional activated sludge. The SVI should ideally be below 150 mL/g, indicating good settling characteristics. Dissolved oxygen in the aeration tanks should be maintained at 2.0 mg/L or higher. BOD removal efficiency should typically exceed 85 percent. MLSS concentrations usually range from 1,500 to 4,000 mg/L. Additionally, regular microscopic examination of the mixed liquor can reveal important information about the health and diversity of the microbial population.

Sludge bulking is characterized by a high SVI (typically above 200 mL/g) and is most commonly caused by an overgrowth of filamentous microorganisms. Common causes include low dissolved oxygen levels, low F/M ratio, nutrient deficiency (particularly nitrogen or phosphorus), low pH, and the presence of slowly biodegradable substrates such as certain industrial wastes. Control measures include maintaining adequate dissolved oxygen (above 2.0 mg/L), adjusting the F/M ratio, supplementing nutrients if deficient, adding chlorine or hydrogen peroxide to selectively control filaments (RAS chlorination), and ensuring pH is in the optimal range of 6.5 to 8.5.

Hydraulic retention time determines how long the wastewater is in contact with the treatment process, whether physical, chemical, or biological. If the HRT is too short, pollutants do not have sufficient time to settle, react, or be biologically consumed, resulting in poor treatment and non-compliant effluent. If HRT is too long, the treatment unit may be over-designed, wasting energy and capital costs. Proper HRT design must also account for peak flow conditions, such as during wet weather events when stormwater infiltration and inflow can dramatically increase the volume of wastewater entering the plant and reduce HRT.

Wastewater calculations use a mix of US customary and metric units depending on the region. In the United States, flow is typically measured in million gallons per day (MGD) or gallons per day (GPD), concentrations in milligrams per liter (mg/L), mass loadings in pounds per day (lbs/day), and volumes in gallons or million gallons. In countries using the metric system, flow is measured in cubic meters per day (m3/day), volumes in cubic meters or liters, and mass loadings in kilograms per day (kg/day). Concentration units (mg/L) are the same in both systems. Our calculators above support both unit systems.

The F/M ratio and sludge age (Solids Retention Time, or SRT) are inversely related. A low F/M ratio corresponds to a long sludge age because the microorganisms remain in the system longer relative to the food supply, consuming most of the available organic matter. A high F/M ratio corresponds to a short sludge age. For conventional activated sludge, an F/M ratio of 0.2 to 0.5 corresponds to an SRT of approximately 5 to 15 days. Extended aeration plants with F/M ratios of 0.05 to 0.15 typically have SRTs of 20 to 40 days. Operators typically control SRT through the waste activated sludge (WAS) rate, which indirectly controls the F/M ratio.