The most common way to remove hardness from drinking water is to install a water softener, which replaces the calcium and magnesium ions with sodium ions. For every milligram of hardness that is removed, 0.46 milligrams of sodium will be added to the water.