How Cavities Form (and How to Stop Them Before They Start)
By Dr. Pia Lieb

A cavity is permanent damage to a tooth caused by acid that bacteria produce when they feed on sugar. Tooth decay is largely preventable once you understand the simple chain reaction driving it. Cavities remain one of the most common chronic conditions worldwide, according to the CDC, but consistent habits keep them off your teeth.
What actually causes a cavity?
A cavity is caused by acid: bacteria in dental plaque feed on sugars and starches, produce acid as waste, and that acid strips minerals from tooth enamel. Repeat this cycle often enough and the enamel breaks down into a hole. The equation is bacteria plus sugar equals acid, and acid equals decay.
Your mouth naturally hosts these bacteria. They cannot be eliminated, only managed. Every time you eat something sugary or starchy, you feed them, and they answer with an acid attack that lasts for a stretch of time before saliva neutralizes it.
What are the stages of tooth decay?
Tooth decay progresses in four stages, and only the earliest one is reversible. Catching decay at the white-spot stage means you can rebuild the enamel; letting it advance means you need a filling or more.
- Early demineralization — a faint white spot appears, and the enamel can still be remineralized
- Enamel erosion — visible pitting or discoloration forms, and a filling is now needed
- Dentin involvement — decay reaches the softer layer beneath enamel, causing sensitivity to hot, cold, and sweet
- Pulp infection — bacteria reach the nerve, causing pain and possible abscess, entering root canal territory
Why are cavities so widespread?
Cavities are so widespread because most people graze on sugary and starchy foods throughout the day, restarting the acid attack with every snack and sip. It is frequency, not total quantity, that does the damage.
A can of soda sipped slowly over an hour bathes your teeth in acid far longer than the same soda finished in five minutes. Constant snacking never lets saliva catch up and repair the enamel between meals.
How do you prevent cavities?
You prevent cavities by controlling how often you feed the bacteria and by strengthening enamel with fluoride, flossing, and regular dental care. No single step is magic; the protection comes from stacking simple habits every day.
Brush twice a day with fluoride toothpaste
Fluoride actively remineralizes early damage and hardens enamel against future acid. See our post on whether fluoride is safe.
Floss daily
Flossing cleans between teeth, exactly where decay likes to hide and a brush cannot reach. See whether flossing actually matters.
Cut the frequency of sugar, not just the amount
Constant snacking is worse than the same sugar eaten in one sitting. Give your teeth long stretches with no acid attack.
Drink water, especially fluoridated tap water
Water rinses away food debris and, when fluoridated, bathes teeth in protective minerals between meals.
Keep regular checkups
A dentist can catch and reverse decay at the white-spot stage, long before you feel anything. Consistent preventive checkups are the backbone of cavity prevention.
Use sealants and professional fluoride treatments
These add a protective barrier and extra remineralization, and they are especially valuable for children. See our guide to a child's first dental visit.
Who is at higher risk for cavities?
People with frequent snacking habits, dry mouth, sugary diets, acid reflux, or uncontrolled diabetes face higher cavity risk. Knowing your risk factors tells you where to focus your prevention.
| Higher risk | Lower risk |
|---|---|
| Frequent snacking | Defined eating windows |
| Dry mouth | Healthy saliva flow |
| Sugary drinks | Water |
| Acid reflux | No reflux |
| Poor hygiene | Brushing and flossing |
| No fluoride | Fluoride toothpaste and water |
| Uncontrolled diabetes | Controlled blood sugar |
Frequently asked questions
Can a cavity heal itself?
Only at the earliest white-spot stage, where fluoride and good hygiene can remineralize the enamel. Once the enamel surface breaks, a filling is required.
Why do I get cavities even though I brush?
Common reasons include frequent snacking, insufficient flossing, dry mouth, an acidic diet, or hidden decay between teeth that a brush never reaches.
Are cavities genetic?
Genetics influence enamel quality and saliva composition, but diet and daily habits matter more for whether you actually develop decay.
Do cavities in baby teeth matter?
Yes. Decay in baby teeth can affect the adult teeth forming underneath and cause early tooth loss that disrupts spacing.
With consistent habits, cavities are far from inevitable. Decay is a problem you can largely design out of your life, one small routine at a time.
This article is for educational purposes only and is not a substitute for professional dental advice.