Water Hardness Calculator
Enter your calcium and magnesium ion concentrations to calculate total water hardness, or paste a reading from your test kit and convert it instantly between ppm (mg/L as CaCO₃), grains per gallon, German degrees, French degrees, Clark degrees, and mmol/L. The result is classified as soft, moderately hard, hard, or very hard, and the show-your-work panel walks through every step.
What is water hardness?
Water hardness is a measure of the total concentration of dissolved calcium (Ca2+) and magnesium (Mg2+) ions, expressed as the equivalent amount of calcium carbonate (CaCO3) that would be needed to match those ions. Hard water is not a health hazard, but it leaves visible scale on taps, kettles, and showerheads, reduces the lathering ability of soap, and can significantly shorten the life of water heaters and washing machines. The WHO and USGS use four categories: soft (below 60 ppm), moderately hard (60-120 ppm), hard (120-180 ppm), and very hard (above 180 ppm).
How total hardness is calculated from ion concentrations
When you have a water report or test kit that gives separate calcium and magnesium readings in mg/L, the total hardness as CaCO3 is found with the formula: Hardness = 2.497 x Ca + 4.118 x Mg. The multipliers convert the atomic-weight ratios of each ion to their CaCO3 equivalent. For calcium: the molar mass ratio of CaCO3 to Ca is 100.09 / 40.08 = 2.497. For magnesium: 100.09 / 24.31 = 4.118. Summing the two contributions gives the total hardness in ppm (mg/L as CaCO3), which is identical to the result of an EDTA titration. For example, water with 40 mg/L Ca and 10 mg/L Mg has a hardness of 2.497 x 40 + 4.118 x 10 = 99.9 + 41.2 = 141.0 ppm, which falls in the hard category.
Temporary vs. permanent hardness
Hardness is often divided into two types based on the anion that accompanies the calcium or magnesium. Temporary hardness comes from bicarbonate salts (calcium bicarbonate, magnesium bicarbonate). It is called temporary because boiling the water decomposes the bicarbonates into insoluble carbonates that precipitate out, forming the white scale inside kettles. This type of hardness can also be reduced by adding lime (calcium hydroxide). Permanent hardness is caused by sulfate and chloride salts (calcium sulfate, magnesium sulfate, calcium chloride). Boiling alone does not remove it; an ion-exchange resin or reverse-osmosis membrane is needed. Total hardness = temporary + permanent hardness.
Hardness unit systems and conversion
Six hardness scales are in common use worldwide, each defined relative to CaCO3. The ppm scale (parts per million, equal to mg/L) is the standard in the United States and recommended by the WHO. Grains per gallon (gpg) is preferred by the US water-treatment industry - 1 gpg equals 17.118 ppm. German degrees (dH) define one degree as 10 mg/L of calcium oxide, giving a conversion factor of 17.848 ppm per degree. French degrees (fH) define one degree as 10 mg/L of CaCO3, so 1 fH = 10 ppm exactly. Clark degrees (e), used historically in the UK, define one degree as 1 grain of CaCO3 per Imperial gallon, equalling 14.254 ppm. Millimoles per litre (mmol/L) is the SI laboratory unit: since CaCO3 has a molar mass of 100.09 g/mol, 1 mmol/L = 100.09 ppm.
Water hardness classification and conversion table
| Category | ppm (mg/L) | gpg | °dH | °fH | °e (Clark) | mmol/L |
|---|---|---|---|---|---|---|
| Soft | 0-60 | 0-3.5 | 0-3.4 | 0-6.0 | 0-4.2 | 0-0.60 |
| Moderately hard | 61-120 | 3.6-7.0 | 3.4-6.7 | 6.1-12.0 | 4.3-8.4 | 0.61-1.20 |
| Hard | 121-180 | 7.1-10.5 | 6.8-10.1 | 12.1-18.0 | 8.5-12.6 | 1.21-1.80 |
| Very hard | 181-300 | 10.6-17.5 | 10.1-16.8 | 18.1-30.0 | 12.7-21.0 | 1.81-3.00 |
WHO and USGS classification ranges expressed in all six common hardness scales.
Frequently asked questions
What is a good water hardness level?
For drinking water, the WHO considers 0-60 ppm (0-3.5 gpg) as soft, 61-120 ppm as moderately hard, 121-180 ppm as hard, and above 180 ppm as very hard. Most plumbing and appliance manufacturers consider 50-150 ppm (3-9 gpg) to be acceptable for normal use, with softening recommended above 180 ppm. Very soft water (below 25 ppm) can be slightly corrosive to copper pipes and may taste flat.
What is the difference between ppm and gpg?
Both ppm (parts per million, equal to mg/L as CaCO3) and grains per gallon (gpg) measure the same thing - the total dissolved hardness minerals - but in different units. One gpg equals 17.118 ppm. US municipal water reports typically use ppm, while water-softener installers and salt bag labels almost always use gpg. To convert, divide your ppm reading by 17.118 to get gpg, or multiply gpg by 17.118 to get ppm.
How do I read a water test strip for hardness?
Most water test strips have a hardness pad that changes color from yellow through orange to purple as hardness increases. You dip the strip for the number of seconds stated on the packaging (usually 1-2 seconds), then hold it flat for 30-60 seconds before comparing it to the color chart on the bottle. Each color block corresponds to a range in ppm or gpg. For a more precise reading, a liquid drop test (EDTA titration kit) or a laboratory analysis is more accurate than a strip.
Is hard water safe to drink?
Yes. Hard water is not a health risk. In fact, the minerals in hard water - calcium and magnesium - are nutritionally beneficial, and some research links moderately hard water to reduced risk of cardiovascular disease. The problems with hard water are practical rather than medical: scale buildup in appliances, reduced soap efficiency, and aesthetic issues such as cloudy glassware and stiff laundry.
How does a water softener work?
A standard ion-exchange water softener passes water through a bed of resin beads charged with sodium (or potassium) ions. Calcium and magnesium ions in the water have a stronger attraction to the resin than sodium does, so they swap places with the sodium, removing hardness from the water. Over time the resin becomes saturated with calcium and magnesium and must be regenerated by flushing it with a concentrated salt (sodium chloride) solution. The hardness minerals are rinsed to drain, and the resin is re-charged with sodium for the next cycle.
What is the formula for calculating water hardness from calcium and magnesium?
Total hardness (in ppm as CaCO3) = 2.497 x [Ca2+ in mg/L] + 4.118 x [Mg2+ in mg/L]. The factor 2.497 is the ratio of the molar mass of CaCO3 (100.09) to that of calcium (40.08). The factor 4.118 is the ratio of CaCO3 to magnesium (24.31). For example, water with 50 mg/L calcium and 15 mg/L magnesium has a hardness of 2.497 x 50 + 4.118 x 15 = 124.85 + 61.77 = 186.6 ppm, classified as very hard.