What is water hardness?
Water hardness measures the amount of dissolved calcium and magnesium in water. It is conventionally expressed as the equivalent concentration of calcium carbonate (CaCO₃) in milligrams per litre (mg/L), which is the same as parts per million (ppm). Hard water can cause scale buildup in pipes, kettles and appliances, while very soft water can be corrosive.
How to use this calculator
Enter the calcium concentration and magnesium concentration of your water sample in mg/L (these values usually come from a lab report or test kit). The calculator converts each ion to its CaCO₃ equivalent, adds them together to give total hardness, also reports the value in grains per gallon (gpg), and classifies the water from soft to very hard.
The formula explained
Each ion is converted using the ratio of CaCO₃ molar mass (100.09 g/mol) to the ion's effective equivalent mass. For calcium the factor is about \(2.497\) and for magnesium about \(4.118\):
$$\text{Hardness (mg/L as CaCO}_3\text{)} = \text{Ca} \times 2.497 + \text{Mg} \times 4.118$$
To express hardness in grains per gallon, divide the result by \(17.118\).
Worked example
Suppose a water sample contains 80 mg/L calcium and 25 mg/L magnesium. Calcium contributes \(80 \times 2.497 = 199.76\) mg/L and magnesium contributes \(25 \times 4.118 = 102.95\) mg/L. Total hardness:
$$\text{Total hardness} = 199.76 + 102.95 = 302.71 \text{ mg/L as CaCO}_3$$
equal to about 17.68 gpg — classified as "very hard".
Hardness Unit Conversion Table
Water hardness is reported in many units. All values below are expressed relative to hardness as CaCO3. Note that the grain, German, French and English degrees are regional conventions; check which one your local water report uses.
| Unit | Equivalent in mg/L as CaCO3 | 1 mg/L equals |
|---|---|---|
| ppm (as CaCO3) | 1 ppm = 1 mg/L | 1 ppm |
| gpg (US grains per gallon) | 1 gpg = 17.118 mg/L | 0.0584 gpg |
| °dH (German degree) | 1 °dH = 17.848 mg/L | 0.0560 °dH |
| °f (French degree) | 1 °f = 10 mg/L | 0.1 °f |
| °e (English/Clark degree) | 1 °e = 14.254 mg/L | 0.0702 °e |
| mmol/L | 1 mmol/L = 100.09 mg/L | 0.00999 mmol/L |
Example rows
| mg/L as CaCO3 | gpg | °dH | °f | °e | mmol/L |
|---|---|---|---|---|---|
| 60 | 3.505 | 3.362 | 6.0 | 4.209 | 0.599 |
| 120 | 7.010 | 6.724 | 12.0 | 8.419 | 1.199 |
| 180 | 10.515 | 10.085 | 18.0 | 12.628 | 1.798 |
| 300 | 17.525 | 16.808 | 30.0 | 21.047 | 2.997 |
To convert, divide the mg/L value by the factor in the second column (for example, \(120 \div 17.118 = 7.010\) gpg). The US grain definition (1 grain = 64.8 mg per US gallon) is the one used here.
Constants and Conversion Factors Used
| Constant | Value | Units | How it is derived / used |
|---|---|---|---|
| Molar mass of CaCO3 | 100.09 | g/mol | Reference compound; hardness is expressed as the equivalent amount of CaCO3 |
| Molar mass of Ca | 40.078 | g/mol | Atomic mass of calcium |
| Molar mass of Mg | 24.305 | g/mol | Atomic mass of magnesium |
| Calcium factor | 2.497 | mg CaCO3 per mg Ca | \(100.09 \div 40.078 = 2.497\); one mole of Ca corresponds to one mole of CaCO3 |
| Magnesium factor | 4.118 | mg CaCO3 per mg Mg | \(100.09 \div 24.305 = 4.118\); one mole of Mg corresponds to one mole of CaCO3 |
| Grain conversion | 17.118 | mg/L per gpg | 1 US grain = 64.79891 mg; 1 US gallon = 3.78541 L; \(64.79891 \div 3.78541 \approx 17.118\) |
Total hardness is therefore:
$$\text{Hardness (mg/L as CaCO}_3\text{)} = 2.497 \times \text{Ca (mg/L)} + 4.118 \times \text{Mg (mg/L)}$$
Example: water with 40 mg/L calcium and 10 mg/L magnesium gives \(2.497 \times 40 + 4.118 \times 10 = 99.88 + 41.18 = \)141.06 mg/L as CaCO3, which is about \(141.06 \div 17.118 = 8.24\) gpg.
FAQ
What counts as hard water? A common scale: under 60 mg/L is soft, 60–120 is moderately hard, 120–180 is hard, and above 180 mg/L is very hard.
Is hard water bad for health? No. Hard water is not a health risk and actually supplies dietary calcium and magnesium; the main drawback is scale and reduced soap lathering.
How do I convert ppm to grains per gallon? Divide the mg/L (ppm) value by \(17.118\). So 171.18 mg/L equals exactly 10 gpg.