Water Hardness

Calculate water hardness from calcium and magnesium ion levels. Free online hardness tester with classification, gpg conversion, and charts for water quality.

Measure your water hardness

About This Calculator

The Water Hardness Calculator estimates the total dissolved mineral content in your water supply by measuring the concentrations of calcium (Ca²⁺) and magnesium (Mg²⁺) ions. Water hardness is an important parameter for water quality testing, household plumbing maintenance, and understanding the suitability of water for industrial applications, agriculture, and daily use.

The calculator uses the standard formula: Hardness (mg/L as CaCO₃) = 2.497 × [Ca²⁺] + 4.118 × [Mg²⁺]. The conversion factors 2.497 and 4.118 come from the ratio of the molecular weight of calcium carbonate (100.09 g/mol) to the atomic weights of calcium (40.08 g/mol) and magnesium (24.31 g/mol). The result is expressed in mg/L (equivalent to parts per million) as CaCO₃, which is the universal standard unit for reporting water hardness.

Based on the calculated hardness value, water is classified as: Soft (0–60 mg/L), Moderately Hard (61–120 mg/L), Hard (121–180 mg/L), or Very Hard (over 180 mg/L). The calculator also converts the result to grains per gallon (gpg) commonly used in the United States, and to millimoles per liter (mmol/L) used in scientific contexts.

Regional Notes: In the US, water hardness is often reported in grains per gallon (gpg) where 1 gpg = 17.1 mg/L. The USGS classifies water as soft (less than 60 mg/L), moderately hard (61–120 mg/L), hard (121–180 mg/L), and very hard (over 180 mg/L). In the UK, water hardness varies significantly by region — areas with chalk and limestone bedrock like the South East and East Anglia have very hard water, while Scotland and Northern Ireland typically have soft water. In India, groundwater hardness is a common issue with many regions experiencing hard to very hard water due to the geological composition of the Indian subcontinent.

Frequently Asked Questions

What is water hardness?

Water hardness is a measure of dissolved calcium and magnesium minerals in water. It is expressed in mg/L as calcium carbonate (CaCO₃). Hard water contains high levels of these minerals, which can cause scaling in pipes, reduce soap lathering, and affect appliance efficiency.

How do you calculate water hardness?

Water hardness is calculated using the formula: Hardness (mg/L as CaCO₃) = 2.497 × Ca²⁺ (mg/L) + 4.118 × Mg²⁺ (mg/L). The constants 2.497 and 4.118 are derived from the ratio of the molecular weight of CaCO₃ to the atomic weights of calcium and magnesium respectively.

What is the difference between hard and soft water?

Soft water has a hardness value of 0–60 mg/L as CaCO₃, moderately hard 61–120 mg/L, hard 121–180 mg/L, and very hard over 180 mg/L. Soft water produces more lather with soap and leaves less scale. Hard water contains dissolved calcium and magnesium that can form deposits in pipes and appliances.

What causes hard water?

Hard water is caused by the presence of dissolved calcium and magnesium compounds in groundwater. As water flows through limestone, chalk, or gypsum deposits, it picks up calcium carbonate, calcium sulfate, and magnesium compounds. Areas with these geological formations typically have harder water supplies.

How do I convert water hardness to grains per gallon?

To convert water hardness from mg/L as CaCO₃ to grains per gallon (gpg), divide the hardness value by 17.1. For example, 120 mg/L hardness equals approximately 7.0 gpg. In the United States, water with less than 1 gpg is considered soft, 1–3.5 gpg slightly hard, 3.5–7 gpg moderately hard, 7–10.5 gpg hard, and over 10.5 gpg very hard.

Can I drink hard water?

Yes, hard water is generally safe to drink. Calcium and magnesium are essential minerals that contribute to human health. The WHO has not established health-based guidelines for water hardness. However, some people may notice a slight mineral taste. The main concerns with hard water are scaling in plumbing and reduced efficiency of soaps and detergents.

How do I remove hardness from water?

Common methods to remove water hardness include ion-exchange water softeners that replace calcium and magnesium with sodium or potassium, reverse osmosis systems, distillation, and chemical treatment with lime (lime softening). Boiling removes temporary hardness caused by bicarbonates but not permanent hardness from sulfates and chlorides.

What is temporary vs permanent hardness?

Temporary hardness is caused by dissolved calcium bicarbonate and magnesium bicarbonate. It can be removed by boiling, which converts bicarbonates to insoluble carbonates. Permanent hardness is caused by calcium sulfate, calcium chloride, magnesium sulfate, and magnesium chloride. It cannot be removed by boiling and requires ion exchange or chemical treatment.