The calcium and magnesium hardness is the concentration of calcium and magnesium ions expressed as equivalent of calcium carbonate. Total permanent water hardness expressed as equivalent of CaCO3 can be calculated with the following formula: Total Permanent Hardness (CaCO3) = 2.5(Ca2+) + 4.1(Mg2+).