Pool pH Adjustment and Aeration Calculator

Estimate an acid or base amount from your readings and product strength, or see the pH the model predicts at equilibrium with air.

Calculator guide & FAQs

Enter your values

Calculation mode

A conditional carbonate, first-cyanurate and borate balance. Adjustment assumes a closed, mixed water sample; air mode allows CO2 exchange at unchanged alkalinity. Actual pool reactions and application limits can differ.

About this calculator

pH is logarithmic: a change of one pH unit changes hydrogen-ion activity tenfold. It cannot be dosed by multiplying gallons by a linear pH difference. This calculator balances carbonate species, the first dissociation of cyanuric acid, borate and water. Acid or base adjustment asks what known compound amount would give your chosen pH in a closed, mixed sample. Air mode instead asks where the same alkalinity would balance with explicitly supplied air CO2. These are conditional model results; real pools also exchange gas, consume chemicals and sometimes precipitate minerals.

Back to contents

How to use this calculator

  1. Choose acid/base adjustment or air CO2 equilibrium. Enter representative measured pH, water temperature in °F, total alkalinity as CaCO3, CYA, borate reported as elemental B and TDS including salt. Use known zero values only when those buffers are confirmed absent. Salinity alone is not total dissolved solids.
  2. For adjustment, enter pool volume and your chosen target pH. Select the exact compound: liquid HCl, anhydrous NaHSO4, liquid NaOH, anhydrous Na2CO3 or NaHCO3. Enter its mass assay; liquids also require product density in lb/US gal. A hydration form or acid-equivalent assay must not be silently substituted.
  3. For air mode, supply the contacting air CO2 fraction in ppm and total atmospheric pressure in atm on a consistent gas-mixture basis. Do not assume 420 ppm describes a particular site, enclosed pool or future day. This tool does not apply an unprovided humidity or altitude correction.
  4. Review the model limits and confirm the reporting bases. The reviewed scope is pH 6–9, 41–95°F and TDS 0–5,000 ppm; air pressure is limited here to 0.5–1.2 atm. These are implementation limits, not operating or safe-entry targets. An inconsistent alkalinity/carbon inventory prevents calculation.
  5. Calculate, then read the product amount and modeled alkalinity change, or the conditional air-equilibrium pH and direction of CO2 exchange. Product or mode changes require a new confirmation. Current product directions, real mixing and re-testing govern any treatment; this page does not generate an application schedule.
Back to contents

Formula and variables

pH, units and activity

h = 10^(−pH); TAeq = TAppm / 50,044; I ≈ 0.000025 × TDSppm

h is hydrogen-ion activity, TAeq is equivalent/L, and TA ppm is mg/L as CaCO3. The 50,044 mg/eq reporting factor follows the cited USGS method, rather than the rounded 50,000. I is a TDS-derived ionic-strength approximation. T = temperature_C + 273.15 K; 1 US gal = 3.785411784 L.

Carbonate distribution

r1 = K1 / (hγ1); r2 = K1K2 / (h²γ2); A(pH) = (r1 + 2r2) / (1 + r1 + r2)

K1, K2 are the stated thermodynamic carbonic-acid dissociation constants. γ1 andγ2 are the selected singly/doubly charged activity coefficients. A is alkalinity equivalents per mole of inorganic carbon. Neutral-species activities are approximated by concentrations.

Other included alkalinity and initial carbon

N(pH) = CYAT×Kc/(Kc+hγ1) + BT×Kb/(Kb+hγ1) + Kw/(hγ1) − h/γ1; CT = [TAeq − N(pH)] / A(pH)

CYAT = CYA ppm / 129,074.2 mol/L; BT = boron ppm / 10,810 mol/L. CT is total inorganic carbon, not total organic carbon. Kc describes only first cyanurate dissociation; Kb is boric-acid dissociation. A nonpositive CT is rejected rather than replacing it with zero.

Closed-system compound dose

Δ = CT×A(target) + N(target) − TAeq; x = Δ / [s − c×A(target)]

x is mol compound/L. For HCl or NaHSO4: (s, c) = (−1, 0); NaOH: (1, 0); Na2CO3: (2, 1); NaHCO3: (1, 1). s adds alkalinity equivalents and c adds carbon moles per compound mole. Wrong acid/base direction and unreachable bicarbonate targets are blocked. Final TA = (TAeq + s×x)×50,044.

Product mass and liquid volume

product_lb = x × pool_USgal × 3.785411784 × molar_mass / mass_fraction / 453.59237; fl_oz = product_lb / density_lb_per_USgal × 128

Dry ounces = product_lb × 16, by weight. Reviewed molar masses: HCl 36.46, NaHSO4 120.06, NaOH 39.997, Na2CO3 105.988, NaHCO3 84.007 g/mol. Only the entered assay and identity are modeled; fillers and other active ingredients are not accounted for.

Air equilibrium at unchanged alkalinity

CO2eq = KH(T) × (air_CO2ppm / 1,000,000) × pressure_atm; solve TAeq = CO2eq×(r1 + 2r2) + N(pH)

KH is the pinned USGS CO2 gas-dissolution expression. Ideal gas fugacity and 1 kg water/L approximate its mol/kg basis as mol/L. The root is bracketed over pH 6–9. The initial CO2 = CT/(1+r1+r2); comparison with equilibrium determines release/rise or uptake/fall. No gas-transfer speed is supplied.

Back to contents

Interpret the result

Adjustment returns a model amount, its liquid/weight basis, and nominal alkalinity after the addition. It is not permission to apply that entire amount at once. Large additions especially weaken the fixed-ionic-strength and negligible-volume-change assumptions. Air mode returns an equilibrium for the supplied air conditions; it may be above or below current pH and is not a universal ceiling such as 8.2. Aeration changes the rate of gas exchange, but a runtime needs a separate mass-transfer model and field measurements. Neither mode chooses an operating target or establishes swimming safety.

Back to contents

Worked examples

Lower pH with an explicit HCl mass assay

Inputs: 10,000 US gal; measured pH 7.8, chosen target 7.2; 31.45% HCl by mass; density 9.6 lb/US gal. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: Independent charge-balance solution: initial inorganic carbon CT = 0.00155906105642 mol/L. At target pH 7.2, required alkalinity change is −14.7069919162 ppm as CaCO3, or −0.0002938812228 eq/L. HCl supplies one acid equivalent per mole. The active mass, scaled by 37,854.11784 L and divided by 0.3145, is 2.8432512714 lb product. Volume = 2.8432512714/9.6×128 = 37.9100169517 fl oz. Final modeled TA = 85.2930080838 ppm.

Calculator output: Displayed result: 37.9100 fl oz modeled product amount; final alkalinity 85.2930 ppm as CaCO3.

The same acid equivalents, a different compound mass

Inputs: Same water and pH change; 93.2% anhydrous sodium bisulfate mass assay. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: The target still requires 0.0002938812228 mol acid equivalents per liter. Anhydrous NaHSO4 contributes one equivalent per mole and uses 120.06 g/mol in this model. Product = 3.1593784691 lb, so 3.1593784691×16 = 50.5500555060 oz by weight. Final modeled TA remains 85.2930080838 ppm; fluid ounces are not calculated for a dry solid.

Calculator output: Displayed result: 50.5501 oz by weight modeled product amount.

Raise pH with a carbon-free base

Inputs: 10,000 US gal; measured pH 7.2, target 7.8; 20% NaOH by mass, 10 lb/gal density. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: The different starting pH gives initial CT = 0.00188492898819 mol/L. At constant CT the target requires +15.9671123232 ppm alkalinity, or 0.0003190614724 eq/L. One mole NaOH adds one equivalent and no carbon. Product = 5.3249946594 lb; 5.3249946594/10×128 = 68.1599316401 fl oz. Final modeled TA = 115.9671123232 ppm.

Calculator output: Displayed result: 68.1599 fl oz modeled product amount.

Soda ash also changes the inorganic-carbon inventory

Inputs: 10,000 US gal; pH 7.2 to 7.8; 99% anhydrous Na2CO3. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: Solve the target charge balance with CTfinal = CTinitial+x and TAfinal = TAinitial+2x. The independent mole root is x = 0.000312533530890 mol/L; treating the product as a carbon-free strong base would miss this addition. Product = 2.7923220778 lb = 44.6771532454 oz by weight; added TA = 31.2808560398 ppm, final TA = 131.2808560398 ppm.

Calculator output: Displayed result: 44.6772 oz by weight modeled product amount.

A mathematical bicarbonate result is not an application instruction

Inputs: Same water and pH rise; 99% NaHCO3. This deliberately illustrates a large estimate that should not be applied without review. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: Bicarbonate adds one carbon and one equivalent per mole. At target pH 7.8, the carbonate alkalinity fraction per CT is close to 1, so much of the added alkalinity accompanies added carbon. The independent root is 0.0152754752579 mol/L. It gives 108.1738785348 lb = 1,730.7820565560 oz and modeled TA 864.4458838057 ppm. This large change particularly weakens the fixed-ionic-strength approximation. A higher target may be mathematically unreachable; the tool rejects it rather than returning negative product.

Calculator output: Displayed result: 1730.7821 oz by weight modeled product amount. This is a model illustration, not a recommended treatment.

CO2 release can raise pH without adding alkalinity

Inputs: Initial pH 7.5; contacting air 420 ppm CO2 and 1 atm total pressure, both explicitly supplied assumptions. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: At 25°C the selected Henry expression gives KH≈0.03402779056 mol/kg/atm. CO2 eq = KH×420/1,000,000×1; on the 1 kg/L approximation this is 0.6289693405 mg/L. Initial dissolved CO2 = 3.9308701793 mg/L. Independent hydrogen-activity bisection at unchanged TA 100 ppm gives pH 8.2011994045; inorganic carbon falls from 0.00170356929329 to 0.00132864014422 mol/L.

Calculator output: Displayed result: 8.2012 conditional air-equilibrium pH; modeled pH rise.

Higher air CO2 reverses the direction

Inputs: Same pH 7.5 water, but 3,000 ppm contacting-air CO2 at 1 atm. This is a supplied scenario, not a measured room condition. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: Air-equilibrium dissolved CO2 = 4.4926381465 mg/L, above the initial 3.9308701793 mg/L. CO2 uptake adds inorganic carbon while leaving modeled alkalinity unchanged. Independent hydrogen-activity bisection gives pH 7.4462520437 and final CT 0.00173167435859 mol/L. Calling this result an always-higher ceiling would be incorrect.

Calculator output: Displayed result: 7.4463 conditional air-equilibrium pH; modeled pH fall.

The same air fraction at a lower total pressure

Inputs: Same water; 420 ppm CO2, total pressure 0.8 atm. 77°F, TA 100 ppm as CaCO3, CYA 50 ppm, borate 30 ppm as elemental B and TDS 3,500 ppm. Product assays and air conditions below are synthetic supplied values, not recommended settings.

Calculation: CO2 partial pressure = 420/1,000,000×0.8 = 0.000336 atm. The equilibrium dissolved CO2 becomes 0.5031754724 mg/L. Solving the same unchanged alkalinity balance gives pH 8.2781276716. The tool does not infer pressure from a ZIP code or silently assume sea level.

Calculator output: Displayed result: 8.2781 conditional air-equilibrium pH.

Back to contents

FAQs

Why does the tool need alkalinity, CYA and borate for a pH dose?

Those buffers consume or release acid equivalents as pH changes. The same pH difference in two pools can therefore require different amounts. The model first infers a positive inorganic-carbon inventory from total alkalinity and the included buffer contributions.

Why can’t I enter boric-acid ppm in the borate field?

The field is elemental boron in mg/L. A boric-acid mass, borax mass or other reporting basis has a different molecular conversion. Obtain a valid elemental-B reading or independently verified conversion; the calculator does not guess the reporting basis.

Are baking soda, soda ash and caustic soda interchangeable?

No. Bicarbonate adds one carbon and one alkalinity equivalent per mole, carbonate adds one carbon and two equivalents, and hydroxide adds no carbon and one equivalent. Bicarbonate has a closed-system reach limit; near that limit a very large mathematical dose can result. Review actual product limits and the model assumptions instead of treating it as a useful treatment.

Does the air-mode result tell me how long to aerate?

No. Gas-transfer rate depends on the equipment, mixing, exposed surface, airflow and changing chemistry. This mode determines a conditional equilibrium only. It retains alkalinity during CO2 exchange and can predict a fall when contacting air contains more CO2 than the water would balance with.

Does a demand-test calculator give the same amount?

Not necessarily. A compatible demand test measures the actual sample response and uses its own kit chart. This page is a disclosed chemical approximation. Differences may reflect unmodeled buffers, gas exchange, product basis or reading error; do not change a verified kit coefficient to force agreement.

Does including CYA make this a disinfectant or chlorinated-cyanurate model?

No. It includes unchlorinated cyanuric acid’s first dissociation only. Hypochlorite, chlorinated cyanurates, bromine, phosphate, silicate, organic buffers, ion pairs and precipitation are omitted. Their contribution can make the estimate inaccurate. No FC target, safety or disinfection conclusion is calculated.

Back to contents
Assumptions and calculation details
  • USGS phreeqc.dat is pinned to commit 5c2475cadd37ec1e1b7124a86bc33366597b9b6e. This code uses identified equilibrium constants, not the PHREEQC engine or its full species/activity database. The analytic temperature expression is P(T) = a + bT + c/T + d log10(T) + e/T² + fT²; analytical coefficients take precedence over a rounded 25°C logK.
  • Pinned carbonate protonation coefficients P2 = [107.8871, 0.03252849, −5151.79, −38.92561, 563713.9, 0]; combined protonation P12 = [464.1965, 0.09344813, −26986.16, −165.75951, 2248628.9, 0]. log10 K2 = −P2; log10 K1 = P2 − P12. Kw coefficients = [293.29227, 0.1360833, −10576.913, −123.73158, 0, −0.00006996455]. These reaction directions are not interchangeable.
  • Pinned CO2(g) dissolution coefficients = [10.5624, −0.023547, −3972.8, 0, 587460, 0.000019194]. Boric-acid log10 K25 = −9.24 with ΔH = 3.224 kcal/mol; ln[K(T)/K25] = −ΔH/R × (1/T − 1/298.15), using 4184 J/kcal and R 8.31446261815324 J/mol/K. The database labels its dissociated borate H2BO3−; no boron-fluoride complexes are included here.
  • Wahman 2018 equations 8–10 and 14, Table 2: lnKc = −4013/T−2.58, zero-ionic-strength thermodynamic constant. γz = 10^[−ADH z²(√I/(1+√I)−0.2I)], ADH = 1.82×10⁶(εT)^−1.5, ε=87.740−0.40008Tc+0.0009398Tc²−0.000001410Tc³. The paper explicitly uses 0.2 in its Davies relation; this implementation does not silently substitute the common 0.3 variant. Published pKa rounds to 7.39 at 5°C, 6.97 at 25°C and 6.78 at 35°C. Rounded fit/table differences are retained.
  • I≈0.000025×TDS uses the ionic-strength/TDS relationship described by USGS. It is not a complete measured ion inventory. The same initial I is held during dosing and air exchange. Neutral species use activity coefficient 1, water density is approximated as 1 kg/L and gas fugacity as partial pressure. We do not apply the database’s species-specific gamma, salting-out, pressure or ion-pair corrections.
  • TA is interpreted as the formal included-species alkalinity using the USGS 50,044 mg/eq reporting conversion. A real titration endpoint, high disinfectant, other buffers, precipitation, unequal mixing or appreciable product-volume change can differ from this approximation. No fixed alkalinity/pH change-per-gallon coefficient is substituted. Sodium bisulfate is treated as a one-equivalent acid over the selected pH domain; remaining sulfate acid-base effects are omitted.
  • Worked examples check the stated equilibrium balance. Dose cases solve for added compound moles; air-equilibrium cases solve for hydrogen activity. Results display four decimal places. These examples do not calibrate the model for a particular product or pool.
  • Required product assay, air CO2, density, and treatment targets must be supplied on the stated basis. The calculator does not infer missing values from a product name or a generic pool profile.