A water softener removes hard water minerals such as calcium and magnesium, while a water filter removes a range of contaminants such as chlorine, sediment, and heavy metals. Both can improve the taste and quality of drinking water.