Solution:
Calcium forms insoluble compounds with stearate ion present in the soap causing hardening of water.
Why do calcium ions make water hard but sodium ions do not
Calcium forms insoluble compounds with stearate ion present in the soap causing hardening of water.