To fix a cavity, you can:

1. Use fluoride treatments such as toothpaste, gels, varnishes, or fluoride-enriched water when the cavity is barely a hole in your tooth.
2. Visit a dentist when the cavity eats through the dentin. The dentist will remove the decayed part of the tooth and replace it with a dental filling.
3. Prevent cavities by brushing teeth twice a day with a fluoride toothpaste, flossing and rinsing with an oral rinse.
4. Visit a dentist for treatments such as professional fluoride treatments, fillings, or crowns when the cavity has progressed beyond the enamel.