Hardness is determined by the amount of Calcium and Magnesium cations in the water. Comes from the dissolution of limestone.