Home / Calculators / Hardness & Softening

Water chemistry math

Water hardness and softening calculator

Convert calcium and magnesium to hardness as CaCO₃, split total hardness into carbonate and non-carbonate hardness, convert to grains per gallon, and review the lime–soda ash softening concepts tested on drinking-water operator exams.

Calculator

Calcium hardness: Ca²⁺ mg/L × 2.50. Magnesium hardness: Mg²⁺ mg/L × 4.12. TH = CaH + MgH, gpg = TH ÷ 17.1. Carbonate hardness: CH = min(TH, Alkalinity). Non-carbonate: NCH = TH − Alkalinity (never below 0).

As the ion, not as CaCO₃.
As the ion, not as CaCO₃.

Example — Hardness from a lab report

A well water has 60 mg/L calcium, 12 mg/L magnesium, and 120 mg/L total alkalinity as CaCO₃. Find total, carbonate, and non-carbonate hardness, and the grains per gallon.

  1. Ca hardness = 60 × 2.50 = 150.00 mg/L as CaCO₃
  2. Mg hardness = 12 × 4.12 = 49.44 mg/L as CaCO₃
  3. Total hardness = 150.00 + 49.44 = 199.44 mg/L (Very hard)
  4. Grains per gallon = 199.44 ÷ 17.1 → 11.66 gpg
  5. Carbonate hardness = min(199.44, 120) = 120.00 mg/L
  6. Non-carbonate hardness = 199.44 − 120 = 79.44 mg/L

Factors used: standard exam values 2.50 for calcium (100.09 ÷ 40.08 = 2.497) and 4.12 for magnesium (100.09 ÷ 24.305 = 4.118). The calculator and this example use exactly 2.50 and 4.12.

Hardness classification

mg/L as CaCO₃Class
Less than 60Soft
60 to 120Moderately hard
121 to 180Hard
More than 180Very hard

Lime–soda ash softening overview (exam-prep concepts)

Softening questions on drinking-water exams usually test which chemical removes which kind of hardness. This overview is educational framing only, not dosing guidance for a live plant.

  • Lime (Ca(OH)₂) raises pH and converts bicarbonate alkalinity to carbonate, so calcium carbonate hardness precipitates as CaCO₃. Lime also removes magnesium as Mg(OH)₂, which needs excess lime and a higher pH (about 11).
  • Soda ash (Na₂CO₃) supplies the carbonate needed to remove non-carbonate (permanent) hardness, such as calcium sulfate or calcium chloride, by precipitating CaCO₃.
  • Carbonate hardness is limited by alkalinity: when alkalinity is less than total hardness, the difference is non-carbonate hardness and calls for soda ash in the stoichiometry.
  • After softening, recarbonation with CO₂ lowers the pH and stabilizes the water so CaCO₃ does not keep depositing in filters and pipes.
  • Stoichiometry overview: each mg/L of hardness or alkalinity expressed as CaCO₃ reacts on an equivalent basis, which is why exam problems convert everything to mg/L as CaCO₃ first.

Keep practicing

Take the free quiz, download the formula sheet, or go deeper with a full study guide

The 10-question quiz, 16 free calculators, and formula quick-reference stay free on this site, with printable PDFs you can download immediately. The $29 Math Workout adds the full 50-problem simulator and workbook. The $39 Class D & C, $39 Small Water System, and $59 Class B & A study guides are printable PDFs plus offline HTML companions, each with a 14-day money-back guarantee. The $99 Small System + Contract ORC Bundle combines the $39 Small Water System Study Guide and the $79 Colorado Contract ORC Playbook. The Contract ORC Playbook is educational only — not legal, tax, or financial advice, and no income, client, or earnings guarantee, with a 14-day money-back guarantee. Prefer paper for shift study? See the Water Operator Math Exam Prep Series print editions. Passing a certification exam is not guaranteed.