A cavity is formed due to the loss of minerals from the enamel. This is definitely reversible in early stages with the help of different remedies like baking soda, fluoride toothpaste, and probiotics.