The hardness of water can be either
Temporary hardness can be removed simply by boiling the water (see later).
Permanent hardness cannot be removed by boiling but can often be removed by chemical treatment (see later).
Temporary hardness is caused by calcium and/or magnesium hydrogencarbonate. These are formed as carbonated rain water passes over rocks containing carbonate ions, for example
H2O(l) + CO2(g) + CaCO3(s)
Ca(HCO3)2(aq)
H2O(l) + CO2(g) + MgCO3(s)
Mg(HCO3)2(aq)
Permanent hardness is caused by calcium and/or magnesium sulphate. These are formed as water passes over rocks containing sulphate ions, for example
aq. + CaSO4(s)Ca2+(aq)
+ SO42-(aq)
aq. + MgSO4(s)Mg2+(aq)
+ SO42-(aq)