About this calculator
Total alkalinity measures acid-neutralizing capacity; pH measures hydrogen-ion activity. They are related but are not interchangeable readings. Adding acid lowers alkalinity and pH together. CO2 exchange can then change pH without restoring the lost alkalinity. This planner works one measured stage at a time: it uses fresh sample readings, a stated product limit and, for lowering, your procedure pH floor and supplied air conditions. It never turns the unmeasured future of a pool into an automatic series of doses.
Back to contentsHow to use this calculator
- Choose raise or lower total alkalinity. Enter measured pH, water temperature in °F, total alkalinity as CaCO3, CYA, borate as elemental boron, TDS including salt, and actual pool volume. Match the reporting basis; only use zero for a known absence. The model must leave a positive inorganic-carbon inventory.
- Enter your chosen total-alkalinity target and the applicable absolute product limit for one stage in this pool. Select lb, ounces by weight, or fluid ounces for liquid HCl only. The calculator does not select the target, infer a per-10,000-gallon rate, or invent a product maximum.
- Raise mode uses sodium bicarbonate. Enter its exact mass assay. Lower mode uses either liquid HCl or anhydrous sodium bisulfate; choose one acid and enter the corresponding mass assay. HCl also needs its liquid density. Do not add a separate pH acid estimate on top of the alkalinity amount.
- For lowering, enter the pH floor from your applicable reviewed procedure, the contacting-air CO2 fraction and atmospheric pressure on a consistent gas-mixture basis. No pH floor, outdoor CO2 value or pressure is assumed. If the air conditions cannot support the modeled recovery, the result offers no acid stage.
- Confirm the readings, product basis, stage limit, model applicability and current application procedure. Calculate, then read the limiting factor, first-stage amount, modeled stage pH and TA, and conditional next action. The nominal total product budget is not a one-time dose or an instruction to use the remainder.
- Follow current product directions for addition, circulation and retesting. When more adjustment is needed, select “Enter fresh pH and alkalinity.” This clears both measured readings, the old result and confirmation while retaining your target and product settings. Enter actual new readings and update any other changed conditions before calculating again. No predicted value is copied into a measurement field.
Formula and variables
Alkalinity equivalents and overall nominal budget
ΔTAeq = |target_TA − measured_TA| / 50,044; nominal_product_lb = ΔTAeq × V_L × molar_mass / assay_fraction / 453.59237
TA uses mg/L as CaCO3; V_L = pool_USgal × 3.785411784. The selected NaHCO3, HCl or NaHSO4 contributes one alkalinity equivalent per mole, with acid changing its sign. This overall budget is stoichiometric bookkeeping, not an approved full-dose application.
Per-stage product cap
cap_lb = entered_lb, or weight_oz / 16, or liquid_fl_oz × density_lb_per_USgal / 128; cap_eq_L = cap_lb × 453.59237 × assay_fraction / (molar_mass × V_L)
Fluid-ounce caps require the liquid HCl density. Dry acid and bicarbonate require weight units. The input is an absolute cap for the actual pool and applicable procedure, not a universal limit.
Acid room above a chosen pH floor
TA_floor = CT_initial × A(pH_floor) + N(pH_floor); acid_room = max(0, TA_initial − TA_floor)
TA terms here are equivalents/L. CT, carbonate alkalinity fraction A and included noncarbonate alkalinity N follow the same disclosed USGS/Wahman carbonate, first-cyanurate and borate model as the pH calculator. If measured pH is already at or below the floor, acid room is zero. The floor is user supplied, not a model-generated safety recommendation.
First-stage bounds and new balance
lower_stage_eq_L = min(needed_eq_L, cap_eq_L, acid_room); raise_stage_eq_L = min(needed_eq_L, cap_eq_L)
For acid, TA_stage = TA_initial − stage_eq_L and inorganic carbon stays fixed in the closed-sample approximation. For bicarbonate, TA_stage = TA_initial + stage_eq_L and CT_stage = CT_initial + stage_eq_L. Solve TA_stage = CT_stage × A(pH_stage) + N(pH_stage); do not assume the pH stays fixed or always rises with bicarbonate.
Conditional aeration recovery and stop conditions
CO2eq = KH(T) × air_CO2ppm / 1,000,000 × pressure_atm; solve TA = CO2eq × (r1 + 2r2) + N(pH)
Air exchange holds alkalinity fixed while changing inorganic carbon. The target and stage air-equilibrium checks use the reviewed pH 6–9 domain. A target equilibrium below the supplied floor or an unsupported equilibrium root blocks the acid sequence. Recovery direction is not a runtime prediction. If a stage is merely product-limited, mix and retest before deciding another stage; if floor-limited with a supported upward direction, recovery and fresh readings are required.
Interpret the result
The primary result is a model-bounded first stage and a next decision. A floor-limited result is not permission to keep adding acid at that floor. A product-limited result is not permission to immediately apply another cap. A zero acid result can mean the measured pH leaves no room, or the supplied air/target does not support the method. “Stop additions and retest” means the arithmetic has reached the chosen TA, not that the pool is cleared for swimming. Use actual new measurements for continuation; no chemical waiting period or aeration time is invented.
Back to contentsWorked examples
A pH floor limits the first acid stage
Inputs: TA 160 to 80 ppm as CaCO3; pH 7.8; procedure floor 7.2; 31.45% HCl, 9.6 lb/US gal; a supplied 10 lb stage cap; air CO2 420 ppm at 1 atm. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: Nominal full-change product budget = 15.4661199929 lb. Independently solving the closed-sample balance at pH 7.2 leaves TA 140.5578234812 ppm, a first-stage reduction of 19.4421765188 ppm. That needs 3.7586879370 lb product, below the 10 lb cap. Liquid volume = 3.7586879370 / 9.6 × 128 = 50.1158391603 fl oz. Remaining nominal change is 60.5578234812 ppm. At unchanged stage TA, supplied-air equilibrium is pH 8.3742248399, so CO2 release can support recovery before fresh readings are taken. No recovery time or second dose is predicted.
Calculator output: Displayed result: 50.1158 fl oz modeled first-stage amount; aeration and fresh readings are needed before more acid.
A lower product cap stops the stage before the pH floor
Inputs: Same lowering scenario, but a supplied 2 lb per-stage cap. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: The product cap is lower than the floor-limited 3.7586879370 lb. A 2 lb stage is 26.6666666667 fl oz at the supplied density. Its acid equivalents lower modeled TA to 149.6548067600 ppm; a separate hydrogen-activity root gives pH 7.4456434582. The next decision is mixing and retesting under the applicable directions, not automatically applying the rest of the nominal budget.
Calculator output: Displayed result: 26.6667 fl oz modeled first-stage amount; mix and retest before another stage.
A fluid-ounce limit must use the liquid density
Inputs: Same water and acid, with an explicitly supplied 32 fl oz stage limit instead of a weight limit. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: Convert the liquid cap first: 32 / 128 × 9.6 = 2.4 lb. This is below the pH-floor cap, so the modeled first stage is exactly the supplied 32 fl oz. Treating those 32 fluid ounces as 32 weight ounces would instead imply 2 lb and a different alkalinity change. Dry products cannot use this unit.
Calculator output: Displayed result: 32.0000 fl oz modeled first-stage amount.
Keep dry-acid ounces on a weight basis
Inputs: Same lowering scenario; 93.2% anhydrous NaHSO4 and an illustrative 160 oz by-weight stage cap. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: The cap is 160 / 16 = 10 lb. At the same pH floor the required acid equivalents are unchanged, but NaHSO4 has a different molar mass and assay. Product = 4.1765980587 lb = 66.8255689389 oz by weight. Modeled TA remains 140.5578234812 ppm. This is an alternative acid calculation, not an additional acid dose to combine with HCl.
Calculator output: Displayed result: 66.8256 oz by weight modeled first-stage amount.
No more acid when measured pH is already below the floor
Inputs: Measured TA 160 ppm and pH 7.0, while the supplied procedure floor is 7.2. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: There is no acid capacity above the supplied pH floor, so the offered acid amount is zero. The supplied-air equilibrium at the current TA is pH 8.4374935846; it is above both current pH and the floor, so the model supports a CO2-release recovery direction. It does not say how long to aerate. Mix and obtain valid new pH and TA readings before recalculating.
Calculator output: Displayed result: 0.0000 fl oz modeled first-stage amount; aeration and fresh readings are needed before more acid.
Recalculate from a new sample instead of replaying a prior dose
Inputs: New measured pH 7.6 and TA 138 ppm; the target remains 80 ppm and the other supplied conditions remain applicable. These readings are a separate sample scenario, not a promised result of the first example. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: Re-infer inorganic carbon from the new readings. The pH-floor solution now gives stage TA 125.2183886658 ppm, requiring 2.4710241825 lb HCl product or 32.9469890996 fl oz. The remaining nominal change is 45.2183886658 ppm. The earlier 50.1158 fl oz stage is not reused, and the target TA is not replaced with a modeled stage reading.
Calculator output: Displayed result: 32.9470 fl oz modeled first-stage amount.
Air conditions can invalidate the assumed recovery sequence
Inputs: Same water and intended change, but the explicitly supplied air scenario is 30,000 ppm CO2 at 1 atm. This is not a recommendation or a measured room condition. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: At the selected target TA of 80 ppm, the supplied-air equilibrium is pH 6.4089960112, below the procedure floor 7.2. The staged acid-plus-aeration sequence therefore cannot be offered on these assumptions. Offered acid is zero; review the air, target, procedure and model applicability. Current-water air equilibrium would also drive pH downward rather than upward.
Calculator output: Displayed result: Review conditions before dosing. No acid stage is offered.
Raise alkalinity while including added inorganic carbon
Inputs: TA 80 to 100 ppm as CaCO3, measured pH 7.2; 99% sodium bicarbonate mass assay and a supplied 3 lb stage cap. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: Required equivalents = 20 / 50,044 per liter. One mole NaHCO3 adds one alkalinity equivalent and one inorganic-carbon mole. Product = (20 / 50,044) × 37,854.11784 × 84.007 / 0.99 / 453.59237 = 2.8301252143 lb, or 45.2820034281 oz by weight. This is below the 3 lb cap. A separate carbon-balance root gives pH 7.2620721659. Stop additions at the modeled target and retest; pH is not held artificially constant.
Calculator output: Displayed result: 45.2820 oz by weight modeled first-stage amount; stop additions and retest.
A bicarbonate stage cap leaves a measurable remainder
Inputs: Same raising scenario, with a supplied 1 lb cap. Common synthetic inputs: 10,000 US gal, 77°F, CYA 50 ppm, borate 30 ppm as elemental B, and TDS 3,500 ppm. Targets, the pH floor, product assay, density, stage cap and air conditions are illustrative supplied values, not recommended settings.
Calculation: A 1 lb stage is 16 oz by weight. Its assay-adjusted bicarbonate equivalents add 7.0668251352 ppm as CaCO3, giving modeled TA 87.0668251352 ppm and pH 7.2234365496. The remaining nominal change is 12.9331748648 ppm. Mix and retest before calculating another stage; do not treat the remainder as an automatic dose.
Calculator output: Displayed result: 16.0000 oz by weight modeled first-stage amount.
FAQs
Why not apply the full alkalinity acid budget in one go?
The nominal equivalents do not account for how low pH falls during a particular closed stage or the product’s application limit. The stage planner bounds that amount using both conditions, then requires retesting. Real gas exchange, mixing and unmodeled reactions can differ from the sampled calculation.
Does aeration put the removed alkalinity back?
In this model CO2 exchange changes inorganic carbon and pH, while total alkalinity remains unchanged. Adding soda ash or bicarbonate to raise pH is chemically different because those compounds also add alkalinity. Their effect cannot be substituted for the air-exchange step without recalculating the task.
Can the tool tell me how long to aerate or circulate?
No. This model does not contain gas-transfer rates, equipment-specific mixing data or a product-specific waiting interval. Follow the applicable current directions and obtain representative new readings. Do not interpret a conditional equilibrium as a timer or a guaranteed endpoint.
Why is my next stage different after new readings?
The updated pH and TA imply a different carbon inventory and a different amount of acid that can be added before reaching the pH floor. Real loss of CO2 and measurement variation can change that inventory. The fresh-readings button deliberately clears measurements rather than copying the prior predicted pH or TA.
Should I add both a pH dose and an alkalinity dose?
No. An acid amount used to reduce alkalinity already changes pH. This planner calculates one bounded amount of one selected acid. An HCl amount and a sodium-bisulfate amount are alternative product calculations, not two doses to add together.
Why can the planner refuse a recovery sequence?
The supplied contacting air may make equilibrium pH fall below the chosen floor, or a root may lie outside the reviewed model. The tool offers no acid stage for that unsupported sequence. Review readings, air conditions, the target and the applicable procedure instead of assuming aeration always raises pH.
Does a rise in alkalinity always mean pH rises?
No. Bicarbonate adds both alkalinity and inorganic carbon. Its effect depends on the starting state; in a high-pH sample, adding bicarbonate can raise TA while lowering pH. The planner solves the two balances instead of assuming a fixed sign or using a linear pH multiplier.
Assumptions and calculation details
- This single-stage workflow uses the carbonate, first-cyanurate, and borate model described in the pH calculator. It does not reproduce an Orenda dosing engine or supply a complete treatment procedure. The target, pH floor, and application limit must come from directions that apply to your pool and product.
- The underlying USGS database remains pinned to commit 5c2475cadd37ec1e1b7124a86bc33366597b9b6e. Constants, the Wahman 2018 first-CYA dissociation and 0.2 Davies term, the TDS ionic-strength proxy and 50,044 mg/eq alkalinity basis are unchanged from the existing pH module. Input domain: pH 6–9, water 41–95°F, TDS 0–5,000 ppm, and lowering-mode pressure 0.5–1.2 atm. These are implementation limits, not recommended operating values.
- Acid stages hold inorganic carbon, CYA and boron fixed. Bicarbonate adds one inorganic-carbon mole and one alkalinity equivalent per mole. Subsequent air exchange holds alkalinity fixed. Temperature and the initial TDS-derived ionic strength stay fixed during each calculation; product-volume change, precipitation, ion pairing, active chlorine / chlorinated cyanurates, phosphate, silicate and organic buffers are omitted.
- Molar masses are the previously reviewed molecular identities: NaHCO3 84.007, HCl 36.46 and anhydrous NaHSO4 120.06 g/mol. The entered assay is on that exact compound mass basis. Liquid density is required for HCl fluid-ounce output or a liquid-volume cap. This does not verify a commercial formulation, other active ingredients or an unlabeled product use.
- Target and stage air roots outside pH 6–9 are not extrapolated. If a lowering sequence needs an unsupported recovery or the target air root is below the user’s floor, no first acid stage is offered. Zero change still validates the measurement and product/procedure inputs. Floating residuals below 0.00000001 ppm are treated as a zero remaining arithmetic change, not a test-resolution claim.
- Results describe the stated model, not field performance or application timing. Choose stage limits from the applicable product directions and retest before continuing.