Water hardness is caused almost entirely by calcium and magnesium ions. Other divalent and trivalent metals have a similar effect, but usually are not present in high enough concentration in potable waters to cause problems. Hardness increases soap consumption in laundries and causes scale in boilers.