Hardness is the calcium and magnesium content expressed as an equivalent amount of calcium carbonate, so that the two ions can be added. Microbrew.it uses two forms. Total hardness = 2.5 × Ca + 4.1 × Mg (mg/L as CaCO₃) The factors are the ratio of CaCO₃'s equivalent weight (50) to each ion's (Ca 20.0, Mg 12.15). Water with 75 mg/L Ca and 18 mg/L Mg is 261 ppm hard. Effective hardness = Ca ÷ 1.4 + Mg ÷ 1.7 (ppm as CaCO₃) is the part of that hardness that acts against alkalinity in the mash: Kolbach found a calcium equivalent neutralises 1/3.5 of a bicarbonate equivalent and a magnesium equivalent 1/7, and these factors are 2.5 ÷ 3.5 and 4.1 ÷ 7. Subtracting it from alkalinity gives Residual Alkalinity. Ca and Mg are in mg/L in both formulas. In German degrees, 1 °dH = 17.85 ppm as CaCO₃.