A colorimetric probe based on 2-mercaptosuccinic acid-functionalized gold nanoparticles has been developed to exhibit selectivity towards Ca2+, Sr2+, and Ba2+ ions over other metallic cations under specified conditions and finds its practical application in detecting Ca2+ levels in water.