Source: U.S. Environmental Protection Agency (EPA), Appendix J: Calculating Hardness; Water Professionals International (WPI), Formula/Conversion Table (2024) (as of December 2026).
Hardness questions come up in water treatment math and in softening topics. Most of the work is one habit: always express the result as CaCO₃ (calcium carbonate).
What hardness is
EPA describes hardness as primarily the sum of calcium and magnesium in water, a common lab parameter that is typically reported as mg/L as CaCO₃. USGS says the same in plain terms: hardness is generally the amount of dissolved calcium and magnesium.
Method 1: total hardness from calcium and magnesium
- 2.497 × Ca is the calcium hardness, as CaCO₃.
- 4.118 × Mg is the magnesium hardness, as CaCO₃.
- Total hardness = calcium hardness + magnesium hardness.
About rounding. The 2.497 and 4.118 factors come from the molecular weight of CaCO₃ divided by the atomic weights of calcium and magnesium. The WPI Formula/Conversion Table does not list these two factors. Rounding the same factors to two decimal places gives 2.50 and 4.12, which is what the free hardness calculator on this site uses. The class of the water does not change; the last digits of the hardness can. Use the factors your exam materials give you.
Method 2: hardness from an EDTA titration
Convert mg/L to grains per gallon (gpg)
The WPI table lists 1 grain per US gallon = 17.1 mg/L. So:
- gpg = hardness (mg/L as CaCO₃) ÷ 17.1
- mg/L = gpg × 17.1
Carbonate and noncarbonate hardness
USGS defines carbonate hardness as hardness equivalent to or less than the bicarbonate and carbonate concentration, and noncarbonate hardness as any hardness in excess of that. Alkalinity is normally reported as mg/L as CaCO₃, so the comparison is direct:
| If | Carbonate hardness | Noncarbonate hardness |
|---|---|---|
| Total hardness is greater than alkalinity | = alkalinity | = total hardness − alkalinity |
| Total hardness is less than or equal to alkalinity | = total hardness | = 0 |
Hardness classes
USGS general guidelines, in mg/L as calcium carbonate:
| Hardness (mg/L as CaCO₃) | Class |
|---|---|
| 0 to 60 | Soft |
| 61 to 120 | Moderately hard |
| 121 to 180 | Hard |
| More than 180 | Very hard |
Worked example 1: hardness from a lab report
A well sample has 52 mg/L calcium and 14 mg/L magnesium. Find the total hardness, the class, and the grains per gallon.
- Calcium hardness = 2.497 × 52 = 129.84 mg/L as CaCO₃
- Magnesium hardness = 4.118 × 14 = 57.65 mg/L as CaCO₃
- Total hardness = 129.84 + 57.65 ≈ 187.50 mg/L as CaCO₃ (unrounded terms), which is in the very hard class (above 180)
- Grains per gallon = 187.50 ÷ 17.1 = 10.96 gpg
Rounded to two decimal places (2.50 and 4.12): 130.00 + 57.68 = 187.68 mg/L, or 10.98 gpg. Same class; the last digits differ.
Worked example 2: carbonate and noncarbonate hardness
The same water has a total alkalinity of 140 mg/L as CaCO₃.
- Total hardness (187.50) is greater than alkalinity (140), so carbonate hardness = 140 mg/L
- Noncarbonate hardness = 187.50 − 140 = 47.50 mg/L
Worked example 3: EDTA titration
A 50 mL sample takes 12.4 mL of EDTA titrant, and the titration factor is 1.00.
- Hardness = (12.4 × 1,000) ÷ 50 = 248 mg/L as CaCO₃ (very hard)
- Grains per gallon = 248 ÷ 17.1 = 14.5 gpg
Worked example 4: grains per gallon back to mg/L
A softener sheet lists the raw water at 8.5 gpg.
- mg/L = 8.5 × 17.1 = 145.35 mg/L as CaCO₃, which is in the hard class (121 to 180)
Exam trap alert
Calcium and magnesium results are usually reported as the ion (mg/L Ca, mg/L Mg). Convert each to “as CaCO₃” before you add them, and use the factor that goes with each ion. Adding the raw ion numbers gives a wrong total.
Check your work with the free tools
- Free hardness and softening calculator: calcium and magnesium to total hardness, gpg, and carbonate versus noncarbonate split.
- Free alkalinity and LSI calculator for the alkalinity input.
- Formula and conversion quick-reference and the exam math practice problems.
Related how-to pages: the Langelier Saturation Index explained and how to calculate detention time.
FAQ
How do you calculate total hardness from calcium and magnesium?
Total hardness as mg/L CaCO₃ = 2.497 × calcium (mg/L) + 4.118 × magnesium (mg/L), the equation EPA publishes. Rounded to two decimal places, those factors are 2.50 and 4.12.
How do I convert hardness from mg/L to grains per gallon?
Divide mg/L as CaCO₃ by 17.1. The WPI Formula/Conversion Table lists 1 grain per US gallon as 17.1 mg/L.
What counts as hard or very hard water?
USGS guidelines: 0 to 60 mg/L as CaCO₃ is soft, 61 to 120 is moderately hard, 121 to 180 is hard, and more than 180 is very hard.
What is noncarbonate hardness?
It is the part of the total hardness that exceeds the carbonate and bicarbonate (alkalinity) concentration. With both values as mg/L as CaCO₃, noncarbonate hardness = total hardness − alkalinity, and it is zero if alkalinity is at least as large as the total hardness.
Independent study aid from Water Operator Desk. Not affiliated with, endorsed by, or sponsored by the CCWP Office, WWFOCB, CDPHE, PSI, U.S. EPA, WPI/ABC, or AWWA. All practice material is original and is not actual exam content. Passing a certification exam is not guaranteed.