Water Treatment
Water pH Adjustment Calculator
Changing pH is not like adding a fixed amount of acid or alkali per litre. Water resists change in proportion to its alkalinity, and the carbonate system is nonlinear: moving from pH 6.5 to 7.5 takes far more chemical than moving from 7.5 to 8.5.
This calculator uses a closed-tank carbonate equilibrium model at 25 °C with pK₁ = 6.35 and pK₂ = 10.33. It supports eight common products grouped into five calculation modes — strong base, strong acid, carbonate, bicarbonate and weak acid — and returns a dose in grams or millilitres.
Calculator
How to use this calculator
- Calibrate your pH meter or strip and measure a fresh sample from the middle of the tank. Take two readings and average them.
- Choose the target. Drinking water is commonly 6.5–8.5, swimming pools 7.2–7.6, and most freshwater aquariums 6.8–7.5.
- Enter the actual volume of water and select its unit. Use the water present, not the tank nameplate.
- Enter total alkalinity from a test or report, or pick a water-type preset. Select the chemical you plan to use.
- Add the dose in 20–30% increments, mixing and waiting about 30 minutes between additions, then retest. Always add acid to water, never the reverse. For drinking water, use NSF/ANSI/CAN 60 certified products and confirm the final pH.
The formula
C_T (α₁ + 2α₂) + [OH⁻] − [H⁺], with pK₁ = 6.35, pK₂ = 10.33 at 25 °C.Convert mg/L as CaCO₃ to eq/L by dividing by 50,000.
Base needed (eq/L) =
C_T × α₂(target) + [OH⁻](target) − alkMoles of product = base needed ÷ equivalents (or ÷ protons released for a weak acid).
Variables
| Symbol | Meaning | Unit | Note |
|---|---|---|---|
C_T | Total dissolved inorganic carbon | mol/L | Back-calculated from current pH and alkalinity. |
alk | Total alkalinity | eq/L | mg/L as CaCO₃ divided by 50,000. |
pK₁, pK₂ | Carbonic acid dissociation constants | — | 6.35 and 10.33 at 25 °C. |
baseNeeded | Equivalents of acid or alkali required | eq/L | Positive means raise pH; negative means lower it. |
Chemical reference
| Product | Direction | Form | Key point |
|---|---|---|---|
| Soda ash, Na₂CO₃ | Raise | Powder | Most practical way to raise pH substantially. |
| Baking soda, NaHCO₃ | Raise slightly | Powder | Mainly raises alkalinity; struggles past pH 8.2. |
| Hydrated lime, Ca(OH)₂ | Raise | Powder | Strong and caustic; adds calcium. |
| Caustic soda 10%, NaOH | Raise | Liquid | Very caustic; measure carefully. |
| Citric acid | Lower | Powder | Common household choice; mild and easy to handle. |
| White vinegar 5% | Lower | Liquid | Gentle but requires large volumes. |
| HCl 10% / H₂SO₄ 35% | Lower | Liquid | Strong acids for controlled applications. |
The model assumes a closed tank at 25 °C. Stirring or aerating lets CO₂ escape, which raises pH on its own, so you may need less base than calculated.
Why the dose is nonlinear
Alkalinity is the dominant input: doubling alkalinity roughly doubles the dose. The carbonate system also means each pH step is not equal. Around 100 mg/L alkalinity, raising pH from 6.5 to 7.0 needs roughly 71 g of soda ash per 1,000 L, while 7.0 to 7.5 needs about 29 g. Lowering pH from 8.0 to 7.0 needs about 23 g of citric acid per 1,000 L.
Soda ash and baking soda add carbonate themselves, which the model accounts for. Baking soda cannot push pH much above about 8.2 because its solution buffers near that value.
Safety and drinking-water limits
EPA lists pH 6.5–8.5 as a secondary, non-enforceable guideline; WHO does not set a health-based pH limit. pH matters because it affects corrosion, pipe metals and how well chlorine disinfects — chlorination is much less effective above about pH 8.
Always add acid to water, never water to acid. Wear gloves and eye protection, dose gradually with mixing, and retest. Use NSF/ANSI/CAN 60 certified products for drinking water, and have a qualified water treatment engineer review installations above roughly 10,000 L. This is an estimate: final pH depends on mixing, temperature and CO₂ exchange, and it says nothing about microbial or chemical safety.
Worked example
1,000 L of tap water at pH 7.0, alkalinity 100 mg/L as CaCO₃, raised to pH 7.5 with soda ash.
- Alkalinity = 100 ÷ 50,000 = 0.0020 eq/L.
- Back-calculate total inorganic carbon from pH 7.0 and the carbonate factors.
- Evaluate the alkalinity needed at pH 7.5 and take the difference: about 0.00027 eq/L.
- Soda ash contributes two equivalents and shifts the carbonate factor at the target, giving roughly 0.028 mol per litre.
- Dose = 0.028 × 105.99 ≈ 29 g per 1,000 L, or about 7 tsp.
Result: About 29 g of soda ash for 1,000 L (roughly 7 teaspoons), added gradually with retesting.
Frequently asked questions
What is the ideal pH for drinking water?
EPA gives a secondary guideline of 6.5–8.5. WHO sets no health-based pH limit, but pH affects corrosion and how well chlorine works.
How do I raise the pH of my water tank naturally?
Aeration can let CO₂ escape and lift pH slightly. Soda ash is the usual practical chemical for a larger change; baking soda mainly raises alkalinity and struggles past pH 8.2.
How do I lower pH safely?
Citric acid is a mild household option. Always add acid to water, wear protection, dose in small increments and retest after mixing.
Why does the calculator suggest more than I expected?
Alkalinity buffers the water. The dose scales roughly with alkalinity, and moving pH across the carbonate system is nonlinear, so lower starting pH steps cost more.
Can I use this for pool water?
Yes as an estimate, using your pool alkalinity. Pools are usually open to the air, so CO₂ exchange and sunlight make real-world results less predictable than the closed-tank model.
Is baking soda safe for drinking water pH?
It is generally regarded as safe, but it lifts alkalinity more than pH and cannot raise pH much above 8.2. Use a NSF/ANSI/CAN 60 certified product for drinking water.
How long does pH take to stabilise?
After thorough mixing, allow around 30 minutes and retest. Aeration and temperature changes can shift the reading over the following hours.
Sources and verification
- US EPA — 40 CFR 143.3 Secondary Drinking Water Standards — Secondary pH guideline of 6.5–8.5.
- WHO — Guidelines for Drinking-water Quality, 4th edition — Effect of pH on disinfection and corrosion.
- NIST — Special Publication 811 — Unit and concentration conventions used in the model.
Formula verification uses published references and hand-checked examples. We do not claim a named professional has reviewed this page; the method and sources are published instead.
Results are estimates for general information, based on standard geometry, hydraulics and published reference values. They are not engineering, medical, legal or professional advice. Verify critical calculations with a qualified professional and check local requirements.
Keep calculating
Chlorine Dosage Calculator
Size a chlorine dose for a water tank from its volume and the target mg/L, for powder, liquid or tablets.
Water Hardness Calculator
Calculate total hardness from calcium and magnesium, convert between units and check softener capacity.
TDS Water Calculator
Interpret a TDS meter reading against WHO taste bands, convert to EC and compare with the EPA guideline.
Water Tank Disinfection Calculator
Plan chlorine dosing for a tank using the AWWA C652 fill, spray or partial-fill method.