Water softeners remove calcium and magnesium from hard water by replacing the calcium and magnesium ions with sodium ions. Because sodium does not separate and scale on pipes or react badly with soap, both problems of hard water are solved. From a health perspective, calcium and magnesium are better and healthier for our body systems than sodium. Water filters will generally solve the same problems as water softeners, without adding sodium to the water.