→ adding sodium carbonate (which reacts with the calcium/magnesium ions to form a precipitate of calcium/magnesium carbonate)
→ using commercial water softeners (such as ion exchange columns containing hydrogen ions or sodium ions, which replace the calcium and magnesium ions when hard water passes through the column)