A divalent cation. Magnesium can account for about a third of the hardness in a brackish water, but can have a concentration five times higher than calcium in sea water. The solubility of magnesium salts is high and typically does not cause a scaling problem in RO systems.