Water Softening Water Softeners
The most common solution to hard water is the use of a water softener. The calcium and magnesium ions in the water are replaced with sodium ions. Since sodium does not precipitate out in pipes or react badly with soap, both of the problems of hard water are eliminated. To facilitate the ion replacement, the water flows through bed of small plastic beads or through a chemical matrix called zeolite. The beads or zeolite are covered with sodium ions. As the water flows past the sodium ions, they swap places with the calcium and magnesium ions. Eventually, the beads or zeolite contain nothing but calcium and magnesium and no sodium, and at this point they stop softening the water. It is then time to regenerate the beads or zeolite.
Regeneration involves soaking the beads or zeolite in a stream of sodium ions. Salt is sodium chloride, so the water softener mixes up a very strong brine solution and flushes it through the zeolite or beads (this is why you load up a water softener with salt). The strong brine displaces all of the calcium and magnesium that has built up in the zeolite or beads and replaces it again with sodium. The remaining brine plus all of the calcium and magnesium is flushed out through a drain pipe.