CalcMyPool

How we calculate

Pool chemistry is simple arithmetic once the inputs are right. The hard part is knowing which numbers to trust. This page explains where ours come from.

Sources

  • Makers' manuals and labels for anything that depends on the product: the salt level a generator is built for, the strength of a chemical, the most you should add at once.
  • Government and university sources for unit conversions and general formulas, such as NIST for the size of a US gallon and state water agencies for dose formulas.
  • Formulas and conversions are checked against at least two independent sources. Product targets come from the maker's own manual, which is the authority for that product. If good sources disagree, we say so on the page and explain which one we use and why.

Every calculator page ends with a list of its sources and the date the numbers were last checked.

The core formulas

Gallons = surface area (sq ft) × average depth (ft) × 7.4805
Pounds of a chemical = gallons × change in ppm × 8.345 ÷ 1,000,000

Grams of chlorine = liters × change in ppm ÷ 1,000
Grams of chlorine per liter of liquid chlorine = % sodium hypochlorite × 0.9525 × density × 10

For chlorine, the product's strength matters as much as the arithmetic. Labels give liquid chlorine and bleach as percent sodium hypochlorite by weight, so we convert that to grams of chlorine per liter using the chlorine share of sodium hypochlorite (0.9525) and the liquid's density from makers' specification sheets. Granules and tablets use the "available chlorine" percentage on the label.

Share of water to replace = (current ppm − target) ÷ (current ppm − ppm in the fill water)

Salt and stabilizer (CYA) only leave a pool with the water, so lowering them means replacing part of it; the formula above gives the share. Granular stabilizer is dosed from the cyanuric acid percentage on its label, liquid stabilizer from the rate its label gives (on common brands, 1 gallon raises 10,000 gallons by 32 ppm).

Chlorine targets and shock levels that depend on stabilizer (CYA) come from Trouble Free Pool's chlorine/CYA chart, checked against the rules of thumb other sources use: an everyday minimum of about 7.5% of the CYA (Orenda) and a shock level of about 40% (Clear Comfort). A suggested level never overrides the swimming limit on the product label.

Milliequivalents of alkalinity = liters × change in TA (ppm) ÷ 50.04
Baking soda: 84.01 mg per milliequivalent · Dry acid (sodium bisulfate): 120.06 mg · Muriatic acid: from its % HCl and density

Alkalinity is reported as if it were calcium carbonate (50.04 mg per milliequivalent), so every alkalinity dose goes through milliequivalents. Where a calculator estimates pH after a dose, or splits acid into rounds, it uses a model of the carbonate buffer with standard equilibrium constants (Plummer and Busenberg), the Davies activity correction and the cyanurate share of the TA reading. We check it against published worked cases and the industry's cyanuric acid correction table; it is an estimate for the moment a dose mixes in, so the calculators always say to test again.

Soda ash: 53.0 mg per milliequivalent (105.99 ÷ 2) · Borax (decahydrate): 190.7 mg (381.37 ÷ 2), plus 4 boron atoms per molecule

For pH, the same model adds borates and the effect of water temperature on the equilibrium constants. Lowering pH, it works out how much alkalinity the acid must use up to reach the target (the acid demand); raising it, how much soda ash or borax lands on the target, counting the carbonate or boric acid each one brings. Its acid doses match John Wojtowicz's published tables (Journal of the Swimming Pool and Spa Industry) within a few percent.

Calcium chloride: grams = liters × change in calcium hardness (ppm) ÷ 1,000 × 110.98 ÷ 100.09 (anhydrous), or × 147.01 ÷ 100.09 (dihydrate)

The all-in-one chemical calculator uses the same formulas, but in order, each step starting from the water the step before leaves: baking soda raises pH a little, acid lowers alkalinity, soda ash raises it, and stabilizer (cyanuric acid) lowers pH as it dissolves without changing the TA reading. So when TA and pH both need work, the baking soda is set for the TA that will be left after the acid. Calcium hardness is reported as calcium carbonate, so the dose uses the ratio of the molar masses; the results match calcium chloride labels (about 0.9 lb of anhydrous or 1¼ lb of dihydrate per 10,000 gallons for 10 ppm).

7.4805 is the number of US gallons in a cubic foot (1,728 ÷ 231). 8.345 is the weight of a gallon of water in pounds, which is what turns parts per million into pounds. In metric, a liter of water weighs 1 kg, so kilograms = liters × change in ppm ÷ 1,000,000.

Pump flow (gpm) = gallons ÷ (turnover hours × 60) · Head (ft) = k × flow² · Water horsepower = gpm × feet ÷ 3,960
Filter area (sq ft) = flow ÷ design rate (cartridge 0.375, sand 15, DE 2 gpm per sq ft)

Pump and filter sizing follow the US energy codes for pools (California Title 24 and ANSI/APSP/ICC-15): their pipe-velocity limits, the 6-hour turnover cap on filtration flow and their filter rates, which are based on NSF/ANSI 50. Plumbing resistance comes from the standard system curves that ENERGY STAR and the Department of Energy use to rate pool pumps, or from your own filter gauge. Filter areas and backwash flows are checked against Pentair's and Hayward's labels.

Heat to warm a pool (BTU) = gallons × 8.33 × temperature rise (°F)
Surface loss (BTU per sq ft per hour) = (63.6 + 32V)(Pw − Pdp) + (0.5 + 0.235V)(Tw − Ta) + 1.0 × (Tw − Ta)

The heater and evaporation calculators use the pool energy model in ENERGY STAR's technical reference for swimming pools: evaporation, convection and radiation from the surface, from the water and air temperatures, humidity (as water vapor pressure) and wind. We use its activity factor of 1, a quiet pool. At everyday wind speeds its evaporation part gives about 70 to 80% of the older ASHRAE formula, in line with Colorado State University measurements on quiet pools (72% to 82% on an outdoor pool, 74% across indoor and outdoor pools). Water vapor pressure uses the Magnus formula (Alduchov and Eskridge), and the heat each pound of evaporated water carries off comes from steam tables (1,048 BTU at 80°F, as the US Department of Energy gives). The heater calculator works out the heat-up degree by degree, because a warmer pool loses heat faster. Heat pump output at cooler air follows the AHRI 1160 ratings on Hayward, Pentair and Nirvana spec sheets, and a cover is counted as stopping 95% of evaporation (EPA WaterSense) while it is on.

CSI = pH − 11.677 + log(calcium hardness) + log(carbonate alkalinity) − 2.56√I ÷ (1 + 1.65√I) − 1412.5 ÷ (°C + 273.15) + 4.7375

The saturation index uses the calcite saturation index equation from Trouble Free Pool's Pool Math (also printed by Swim University), which is based on John Wojtowicz's revised Langelier index. Carbonate alkalinity is the TA reading minus the share from cyanurate and borates at your pH; the ionic strength I comes from calcium, alkalinity and salt. We check it against Wojtowicz's own revised equation, which agrees within about 0.07 across ordinary pool water, and the cyanurate share against the industry's correction table. The doses that fix an index use the carbonate model above.

The hot tub calculator uses the same dose formulas at hot-tub scale. Spoon amounts assume about 4.7 g per level teaspoon of granules, from spa labels that state both a weight and a spoon measure; the one-time acid limit (½ oz of dry acid per 500 gallons) and the refill rule (gallons ÷ 3 ÷ soakers per day) come from makers' labels and manuals.

Testing

Before a calculator goes live it is checked against results worked out by hand, on phones and desktop screens, including empty boxes, wrong units and unusual sizes. It is then reviewed separately before release. When a maker publishes a dosing chart, we check that our result matches it, or explain on the page why it does not.

What the results can and cannot do

A calculator is only as good as what goes in: a tape-measure volume can be 10% off, and test kits disagree. That is why the chemical calculators tell you to test again after adding, and some suggest adding part of a dose first. Always follow the label on the product you are using, and when a calculator and a label disagree, follow the label.

Your data

The calculators run in your browser. My pool is saved in your browser only (local storage) and never sent to us. See the privacy policy.

Found a mistake? Please tell us; corrections are fixed quickly and the page date is updated.