Inside your water softener is a tank filled with tiny resin beads. These beads are covered in sodium ions (yes, salt). They have a negative charge, like a magnet waiting to grab something positive. Hard water, full of positively charged calcium and magnesium, flows in and—zap!—the beads glom onto those minerals like a toddler with a cookie.
Here’s the fun part: The beads release sodium ions in exchange. So, your water gets a little saltier (not enough to taste, unless you’re a super-taster fish), but all the scale-causing villains are now trapped. Congrats: you just performed ion exchange, the superhero move of plumbing.