An STP operator in Lahore sees the aeration-tank pH falling every afternoon. The inlet pH is still close to neutral, yet ammonia removal is becoming unstable. Should the operator add alkali, increase aeration, reduce sludge wasting, or look for an industrial discharge entering the sewer?

A single pH reading cannot answer that question. The operator needs alkalinity, ammonia, nitrate, dissolved oxygen, flow and a time-based record. pH describes the current acid-base condition. Alkalinity describes how strongly the water can resist an acid input. They are related, but they are not interchangeable.

This guide explains that relationship for students, plant operators, engineers and facility owners in Pakistan. It follows pH and alkalinity through biological treatment, shows why nitrification can consume the buffer, and works through calculations that can be checked against real plant data. The numerical examples are hypothetical teaching examples, not design criteria or measurements from an Aquenvia project.

What is pH?

pH expresses hydrogen-ion activity on a logarithmic scale. In plain language, it tells us whether water is acidic, neutral or alkaline at the time and temperature of measurement. A lower pH indicates greater hydrogen-ion activity. A higher pH indicates lower hydrogen-ion activity.

The logarithmic part matters. A change from pH 7 to pH 6 is not a small one-unit reduction. It represents about a tenfold increase in hydrogen-ion activity. A change from pH 7 to pH 5 represents about a hundredfold increase. The chemistry of real wastewater is more complicated than pure water, but the scale itself remains logarithmic.

pH is reported without a concentration unit. ISO 10523:2008 describes an electrometric method for pH in municipal and industrial wastewater as well as other waters. A credible result should identify the method, instrument calibration, temperature, sample point and measurement time.

For an activated-sludge, MBBR, SBR or MBR plant, pH influences enzyme activity, microbial growth, chemical equilibria and the form in which compounds occur. Many biological systems are operated near neutral conditions, but there is no single ideal pH that replaces a process design. The acceptable operating range depends on the organisms, wastewater, temperature, loading, treatment objective and permit or approval conditions.

What is alkalinity?

Alkalinity is the capacity of water to neutralize acid to a stated endpoint. It is commonly reported as milligrams per litre as calcium carbonate, written mg/L as CaCO3. The result does not mean that the sample literally contains that mass of solid calcium carbonate. It places different acid-neutralizing species on a common equivalent basis.

Bicarbonate is often an important contributor in sewage and many industrial wastewaters. Carbonate, hydroxide and other weak-acid systems can also contribute. The balance depends on the wastewater. ISO 9963-1 covers the determination of total and composite alkalinity by titration.

Think of pH as the position of a vehicle and alkalinity as part of its resistance to being pushed downhill. Two samples can have the same pH but very different ability to absorb an acid dose. The low-alkalinity sample may move sharply when acid is added. The better-buffered sample may show a much smaller pH change.

QuestionpHAlkalinity
What does it describe?Current acid-base conditionCapacity to neutralize added acid to a defined endpoint
How is it reported?A dimensionless pH valueUsually mg/L as CaCO3
How is it commonly measured?Calibrated electrode and meter, with temperature recordedLaboratory or controlled field titration using a stated method
Can it change quickly?Yes, especially during batch discharges or process reactionsYes, as acid-base reactions, dilution and biological reactions consume or create buffering capacity
What does it tell an operator?Whether the mixed liquor or outlet is currently acidic or alkalineHow much protection remains against acid production and incoming acid loads

Why can neutral pH hide low alkalinity?

Suppose two aeration-tank samples both read pH 7.2. Sample A has little alkalinity left. Sample B has substantial alkalinity. The pH display makes them look similar, but Sample A may be much closer to a sharp decline if nitrification continues or an acidic production batch arrives.

This is why an operator should not wait for pH to collapse before investigating the buffer. A declining alkalinity trend can provide earlier evidence that the plant is losing acid-neutralizing capacity. Conversely, high alkalinity does not automatically mean extremely high pH. Water can have useful bicarbonate buffering near neutral pH.

The relationship also explains why a corrected pH does not prove that the underlying process has been fixed. A chemical dose might raise the meter reading while the ammonia load, toxic input, aeration problem or dosing control fault remains unresolved.

How does biological treatment change pH and alkalinity?

Microorganisms do not simply remove one number called pollution. Carbon oxidation, nitrification and denitrification involve different substrates, oxygen conditions and acid-base effects. The operator should follow the transformations instead of judging the system from pH alone.

Carbon oxidation

Heterotrophic microorganisms use biodegradable organic matter. Carbon dioxide produced by biological activity can affect the carbonate system and pH. Aeration can also strip carbon dioxide from water. The net pH response depends on influent chemistry, loading, gas transfer and other reactions, so a change should be interpreted with COD or BOD, dissolved oxygen, flow and alkalinity.

Aquenvia's BOD, COD and TSS guide explains why concentration and daily load need to be read together. A pH upset may coincide with a high organic batch, but pH does not measure that organic load.

Nitrification consumes alkalinity

Nitrification is the aerobic biological oxidation of ammonium through nitrite to nitrate. The reactions produce acid and consume alkalinity. They also require oxygen and suitable biomass retention. If ammonia loading increases while available alkalinity is limited, pH can fall and nitrification can slow further.

A commonly used theoretical engineering relationship is about 7.14 mg of alkalinity as CaCO3 consumed for each mg of ammonium-nitrogen oxidized. The value is a stoichiometric approximation, not a Pakistan discharge limit and not a substitute for measuring the actual plant. An original IWA-published activated-sludge modelling study uses the same theoretical relationship and also describes the importance of inorganic carbon for nitrifying biomass.

Denitrification returns part of the alkalinity

Denitrification occurs under anoxic conditions when suitable microorganisms reduce nitrate or nitrite, normally using an available electron donor such as biodegradable carbon. The process can recover alkalinity. A useful theoretical relationship is about 3.57 mg as CaCO3 produced for each mg of nitrate-nitrogen reduced.

That recovery can help the plant's overall alkalinity balance, but it does not make an anoxic tank self-correcting. Nitrate must reach the zone, usable carbon must be available, dissolved oxygen carryover must be controlled, mixing must be effective and the flow path must make sense. Read the anoxic versus anaerobic tanks guide for the full nitrogen pathway and recycle questions.

Worked example: estimate alkalinity consumed by nitrification

Hypothetical teaching example. A Pakistan facility treats 500 m3/day. Representative testing indicates that 30 mg/L of ammonium-nitrogen is oxidized through the biological process. Assume the theoretical alkalinity consumption factor of 7.14 mg as CaCO3 per mg ammonium-nitrogen oxidized.

Alkalinity consumed = 30 mg/L × 7.14 = 214.2 mg/L as CaCO3.

Convert that concentration to a daily equivalent load:

Daily alkalinity consumption = 500 m3/day × 214.2 mg/L ÷ 1,000 = 107.1 kg/day as CaCO3 equivalent.

If the measured influent alkalinity is 280 mg/L as CaCO3, a simplified concentration balance before other sources and sinks is:

280 − 214.2 = 65.8 mg/L as CaCO3 remaining.

That 65.8 mg/L is not a universal minimum, a guaranteed outlet result or a dosing instruction. The real plant can differ because of biomass synthesis, carbon dioxide transfer, other acid or base inputs, industrial batches, recycle streams, denitrification and measurement uncertainty. The calculation is a screening check. It tells the operator that the alkalinity margin deserves measurement and trend review.

Worked extension: theoretical recovery through denitrification

Hypothetical teaching extension. If the plant reduces 20 mg/L of nitrate-nitrogen in a functioning anoxic zone, the theoretical alkalinity recovery is:

20 mg/L × 3.57 = 71.4 mg/L as CaCO3.

A simplified combined balance would then be 280 − 214.2 + 71.4 = 137.2 mg/L as CaCO3. Do not add this recovery unless nitrate reduction is actually measured and the mass balance accounts for flows and recycles. A drop in nitrate concentration can also reflect dilution or a different sample, not necessarily denitrification.

What the Lahore evidence teaches about sampling

Pakistan wastewater does not have one fixed pH, alkalinity or nitrogen profile. A UET Lahore study of the city's Main Outfall collected samples every two hours on 5 and 6 May 2009 and analysed pH, alkalinity, TKN, ammonia, nitrate, BOD and other parameters. The study reported substantial diurnal variation and emphasized nitrogenous oxygen demand in treatment planning.

The value of this original Lahore study is not that its old outfall results can be copied into a 2026 design. They cannot. Its practical lesson is that time of day and mixed industrial activity matter. A single convenient morning grab from a combined sewer cannot define a full-day alkalinity or ammonia load for a new Lahore STP.

For a housing development near Raiwind, a dyeing facility near Sheikhupura or an industrial site around Kasur, the sampling plan must reflect the site's own drains, shifts, cleaning events and receiving route. Location alone does not prove wastewater strength.

pH at the discharge point is not the same as biological control pH

In Punjab, the current official PEQS page lists standards for municipal and liquid industrial effluents. The linked 2016 Gazette schedule gives a pH range of 6 to 9 and a daily testing frequency in that schedule.

That pH row is an outlet requirement in the Punjab schedule. It is not a complete biological process-control specification. A nitrifying reactor can become unstable before a final sample falls outside a broad discharge range. Conversely, an outlet pH inside that range does not prove adequate ammonia, COD, solids or pathogen control.

Start with Aquenvia's Punjab wastewater standards guide to read the table, units, receiving context and footnotes. A site in Sindh should instead identify the applicable provincial system through the Sindh wastewater standards guide. Do not carry one province's table into another jurisdiction or confuse a provincial discharge standard with an internal reactor target.

What can push a Pakistan STP or ETP outside its stable range?

ObservationPossible cause to investigateUseful checks
pH falls through the aeration tank while ammonia fallsNitrification consuming alkalinityInfluent and effluent ammonia, nitrate, alkalinity profile, DO, flow and sludge age
pH and alkalinity fall suddenly at the inletAcidic production or cleaning batch, changed source water, dosing errorSource-drain pH, production log, chemical inventory, equalization level and batch timing
pH rises sharply but alkalinity history is unclearCaustic cleaning batch or excessive chemical doseDosing-pump output, tank concentration, interlocks, calibration and upstream drain map
pH appears normal but ammonia risesLow DO, insufficient biomass retention, temperature change, toxicity or hydraulic overloadDO profile, SRT or wasting records, MLSS, flow peaks, temperature and source-specific events
Online pH is flat while grab checks moveFouled or dry probe, failed calibration, poor location or signal faultClean and calibrate against traceable buffers, compare a separate meter and inspect installation
pH swings after rainInfiltration, stormwater connection, dilution or a changed sewer mixtureRainfall, inlet flow, conductivity, alkalinity, pump runtime and drain inspection

Equalization can reduce the size and speed of a chemical or hydraulic shock by mixing variable batches. It does not create alkalinity or destroy a toxic compound. A tank labelled equalization is useful only if its volume, mixing, level control and operating strategy match the incoming events.

Industrial wastewater deserves source-specific attention. Textile operations can send alkaline scouring or dyeing streams and changing salt loads, discussed in the textile wastewater guide. Food and dairy cleaning can create pH and organic-load shocks, as shown in the food and dairy wastewater guide. Pharmaceutical drains require mapped batch and cleaning events rather than a generic pH assumption, explained in the pharmaceutical effluent characterization guide.

How should operators measure and trend the two parameters?

Measure pH where the decision is made

An inlet pH answers a different question from an equalization-tank, aeration-tank or final-outlet pH. Mark the sample point, date, time, temperature and operating condition. For an online probe, record its exact location and maintenance history. Calibrate with appropriate buffers, inspect the electrode and compare the online reading with an independent check under a documented procedure.

pH can change after collection through gas exchange, continuing biological activity or temperature change. A time-weighted composite can hide a brief extreme and pH is not generally a parameter to average casually. Agree the sampling and measurement method with the responsible laboratory and regulatory or project authority for the purpose at hand.

Use alkalinity as a measured process balance

Alkalinity is normally determined by titration to stated endpoints and reported on a defined basis. Record the laboratory method, units and whether the result is total or another alkalinity definition. Compare influent, biological-zone and outlet results with ammonia and nitrate rather than treating alkalinity as an isolated compliance number.

A useful daily or weekly operating sheet can include:

  • Flow and significant hourly or batch peaks.
  • pH at the inlet, equalization tank, biological zones and final outlet.
  • Alkalinity at points chosen for the nitrogen and chemical balance.
  • Ammonium-nitrogen, nitrate-nitrogen and, where relevant, nitrite-nitrogen.
  • Dissolved oxygen and temperature through the aerobic zones.
  • MLSS, sludge wasting, RAS flow and sludge-age information for activated-sludge systems.
  • Production, cleaning, chemical dosing, rainfall, alarms and bypass events.

Trends are more useful than isolated numbers. A gradual decline in residual alkalinity, a higher ammonia load and a falling end-of-aeration pH tell a coherent story. A single pH value at the final outlet does not.

When is chemical addition appropriate?

Chemical addition may be needed when measured wastewater does not provide enough acid-neutralizing capacity for the required biological reaction or when a controlled neutralization duty exists. The chemical, concentration, storage, mixing, dosing location and control method must be selected for the actual water and safety conditions.

Do not copy a sodium bicarbonate, lime, caustic soda or other dose from another plant. Equal alkalinity equivalents do not mean equal handling, solubility, reaction speed, purity, sludge impact, cost or occupational risk. Strong acids and alkalis can cause severe injuries and can damage equipment. Dosing systems need compatible materials, secondary containment, safe transfer, interlocks, calibration and trained operators.

A sensible assessment starts with a verified alkalinity demand and a bench or controlled plant trial where appropriate. It includes chemical purity, active content, required residual buffer, flow variation and measurement uncertainty. It also checks whether upstream source control or segregation can reduce the load more safely than continuous neutralization.

A troubleshooting sequence for a falling aeration-tank pH

  1. Verify the instrument. Clean and calibrate the probe, record temperature and compare with an independent meter.
  2. Locate the change. Measure pH and alkalinity from the inlet through equalization, biological zones and outlet.
  3. Check nitrogen conversion. Compare ammonium entering and leaving the aerobic zone with nitrate and nitrite.
  4. Check oxygen and biomass. Review the DO profile, aeration delivery, sludge inventory, wasting and retention time.
  5. Check the source. Match pH changes to production, cleaning, laboratory, kitchen, laundry or other drain events.
  6. Calculate a first balance. Estimate theoretical alkalinity demand from measured ammonium oxidation and compare it with measured influent and residual alkalinity.
  7. Test the response safely. If dosing or source control is justified, use a controlled procedure and verify ammonia, pH and alkalinity together.

This sequence avoids a common mistake: increasing chemical dose every time the meter moves. The cause may be nitrification demand, but it may instead be a calibration fault, oxygen limitation, a batch discharge or a change in flow.

Questions for an STP or ETP proposal

A proposal should not promise stable biology from inlet pH alone. Ask the designer or bidder to state:

  • The measured influent pH and alkalinity ranges, including batch and seasonal conditions.
  • The ammonia and organic loads used for design, in concentration and kg/day.
  • Whether nitrification is required and how alkalinity demand was calculated.
  • Whether denitrification is included, where nitrate and carbon come from, and how recycle flows affect the balance.
  • The pH and alkalinity monitoring points, instruments, calibration duties and alarm actions.
  • The chemical-dosing basis, active chemical purity, storage autonomy, safety measures and exclusions.
  • The commissioning tests that will demonstrate stable performance under agreed flow and load conditions.

Aquenvia's sewage treatment planning page and industrial effluent treatment page outline the wider information needed before selecting a treatment train. Facility owners can request a free initial site assessment or quotation discussion to organize existing records and identify testing still needed. This is not a free laboratory investigation.

Frequently asked questions

Is alkalinity the same as high pH?

No. pH is the current acid-base condition. Alkalinity is acid-neutralizing capacity. Water can have near-neutral pH and still contain useful bicarbonate alkalinity.

Can a plant meet a pH limit and still fail biological treatment?

Yes. A final pH result does not establish ammonia removal, COD removal, solids separation, disinfection or process stability. Review the full outlet requirements and operating evidence.

Why does nitrification lower alkalinity?

Ammonium oxidation produces acid. The wastewater's buffer neutralizes that acid, so alkalinity is consumed. If the remaining buffer becomes insufficient, pH may fall and nitrification can become less stable.

Does denitrification replace all alkalinity used by nitrification?

No. The theoretical recovery per milligram of nitrate-nitrogen reduced is about half the theoretical alkalinity consumed per milligram of ammonium-nitrogen oxidized. Actual recovery also depends on measured nitrate reduction and the real plant balance.

Should an operator dose alkali when pH starts falling?

First verify the instrument and identify the cause. Measure alkalinity, ammonia, nitrate, DO, flow and source events. Dose only through a site-specific, safe and controlled basis that considers chemical strength and handling.

What should a student remember?

Remember three statements. pH is logarithmic. Alkalinity is buffer capacity, not another name for pH. Nitrification consumes alkalinity while denitrification can return part of it. A useful interpretation connects all three to measured nitrogen, flow and operating conditions.

The practical conclusion

pH is the value an operator sees now. Alkalinity helps explain how easily that value may move when biological and industrial acid-base loads arrive. Nitrification can consume a large alkalinity load even when the inlet pH looks normal. Denitrification can recover part of it, but only when the anoxic process is actually working.

For a defensible Pakistan STP or ETP, measure the wastewater through time, separate provincial discharge requirements from internal process targets, calculate loads from flow and concentration, and verify the result through ammonia, nitrate, pH and alkalinity trends. The meter reading is a clue. The process balance is the explanation.

Sources checked 16 November 2026. The Punjab pH value cited above comes from the official PEQS page and its linked 2016 Gazette schedule. ISO pages describe analytical method scopes, not Pakistan discharge limits. The Lahore study reports samples collected in May 2009 and must not be treated as current design data. All calculations are clearly hypothetical.