The concentration of calcium and magnesium salts in the water. Water hardness is responsible for most scale formation in pipes and water heaters. Hardness is usually expressed in grains per gallon, parts per million, or milligrams per liter, all as calcium carbonate equivalent.