How Cavities Form: The Acid Attack
Cavities do not appear suddenly. They develop over weeks and months through a repeated cycle of acid attacks on the tooth surface. Here is how the process works.
Your mouth is home to hundreds of species of bacteria. Some of these bacteria form a sticky film on your teeth called plaque. When you eat or drink something containing sugar or starch, the bacteria in plaque break it down and produce acid. This acid lowers the pH on the tooth surface and begins dissolving the minerals in your enamel, a process called demineralization.
Your saliva works to repair this damage. It contains calcium, phosphate, and fluoride that help rebuild (remineralize) the enamel after each acid attack. When the acid attacks happen more often than your saliva can repair, the enamel breaks down permanently. A cavity forms.
Risk Factors for Cavities
Some people get cavities more easily than others. While bacteria and sugar are the direct cause, several factors influence how likely you are to develop tooth decay.
Diet and Eating Habits
Frequent snacking and sipping sugary drinks throughout the day keeps acid levels high in your mouth for extended periods. Sticky foods like dried fruit, candy, and granola bars cling to teeth and give bacteria more time to produce acid. Acidic drinks like soda, sports drinks, and citrus juice also erode enamel directly, even without bacterial involvement.
The timing and frequency of sugar exposure matters more than the total amount. Eating a piece of candy once and then rinsing your mouth causes less damage than slowly sipping a sugary coffee over two hours.
Dry Mouth (Xerostomia)
Saliva is your mouth's natural defense against cavities. It washes away food particles, neutralizes acid, and delivers minerals that repair early enamel damage. When saliva production drops, cavity risk increases significantly. Dry mouth can be caused by medications (antihistamines, antidepressants, blood pressure drugs), medical conditions (Sjogren's syndrome, diabetes), radiation therapy to the head and neck, and mouth breathing.
Oral Hygiene Habits
Brushing twice daily with fluoride toothpaste and flossing once daily removes plaque before it can do damage. Skipping these steps allows plaque to accumulate and harden into tartar (calculus) within 24 to 48 hours. Tartar cannot be removed by brushing alone and requires professional cleaning.
Genetics and Enamel Quality
Some people inherit thinner enamel or enamel with a mineral composition that is more vulnerable to acid. The shape and spacing of your teeth also matters. Teeth with deep grooves and pits on the chewing surface trap food and bacteria more easily. Crowded or overlapping teeth are harder to clean, which increases plaque buildup in those areas.
The Four Stages of Tooth Decay
Cavities develop in stages. Catching decay early makes treatment simpler and less costly.
Stage 1: White Spot Lesion (Reversible)
The earliest sign of decay is a white, chalky spot on the tooth surface. This indicates that minerals are being lost from the enamel (demineralization), but no actual hole has formed yet. At this stage, the process can be reversed with fluoride treatment, improved oral hygiene, and dietary changes. No drilling or filling is needed.
Stage 2: Enamel Decay
If demineralization continues, the enamel breaks down and a small cavity forms. Enamel has no nerve endings, so you typically will not feel pain at this stage. Your dentist can detect these cavities during a routine exam or on X-rays. Treatment involves removing the decayed portion and placing a filling.
Stage 3: Dentin Decay
Beneath the enamel is a softer layer called dentin. Once decay reaches the dentin, it spreads faster because dentin is less mineralized than enamel. You may start to feel sensitivity to hot, cold, or sweet foods and drinks. A filling is still the standard treatment, but a larger portion of the tooth may need to be removed. In some cases, a crown is necessary.
Stage 4: Pulp Involvement
If decay reaches the innermost layer of the tooth, the pulp, it causes inflammation and infection. The pulp contains nerves and blood vessels, so this stage typically produces significant pain, sensitivity to temperature, and sometimes swelling. At this point, a simple filling is no longer enough. You will need either a root canal to remove the infected pulp and save the tooth, or an extraction if the tooth cannot be saved.
An endodontist is the specialist trained to perform root canal treatment. If your dentist determines that decay has reached the pulp, they may refer you to an endodontist for evaluation.
Cavities in Children vs. Adults
Children are especially prone to cavities for several reasons. Their enamel is thinner and less mineralized than adult enamel. They tend to eat more sugary snacks and may not brush as thoroughly. Baby teeth also have thinner enamel than permanent teeth, which means decay can progress to the nerve faster.
Adults develop cavities too, particularly in areas where gums have receded and exposed the tooth root. Root surfaces lack the hard enamel covering that protects the crown of the tooth, making them highly susceptible to decay. Older adults taking multiple medications often experience dry mouth, which further increases risk.
Cavities around the edges of old fillings are also common in adults. Over time, fillings can crack or pull away from the tooth, creating gaps where bacteria can enter.
How to Prevent Cavities
Cavity prevention comes down to reducing acid attacks and strengthening your teeth's ability to resist them.
Daily Habits That Protect Your Teeth
- Brush twice a day with fluoride toothpaste for at least two minutes. Fluoride strengthens enamel and makes it more resistant to acid.
- Floss once a day to remove plaque and food particles from between teeth where your toothbrush cannot reach.
- Limit snacking between meals. Each time you eat, you trigger a new acid attack that lasts about 20 to 30 minutes.
- Drink water throughout the day, especially after meals. Water helps rinse away food particles and dilute acids.
- Chew sugar-free gum after meals. This stimulates saliva production, which helps neutralize acid and remineralize enamel.
Professional Prevention
Regular dental checkups (typically every 6 months) allow your dentist to catch early decay before it becomes a cavity. Professional cleanings remove tartar that cannot be brushed away at home. Your dentist may also recommend fluoride varnish treatments, dental sealants (especially for children), or prescription-strength fluoride toothpaste for patients at high risk.
When a Cavity Becomes a Root Canal: Seeing an Endodontist
Most cavities are treated by a general dentist with fillings or crowns. However, when decay reaches the dental pulp and causes infection, a root canal is needed. Your general dentist may perform the root canal or refer you to an endodontist.
An endodontist is a dentist who has completed 2 to 3 years of additional training focused on treating problems inside the tooth. They use surgical microscopes and 3D imaging to treat complex infections with high precision. If you have severe tooth pain, prolonged sensitivity to heat or cold, swelling near a tooth, or a darkened tooth, these may be signs that decay has reached the pulp and you should be evaluated promptly.
Find a Dental Specialist Near You
Every endodontist on My Specialty Dentist has verified specialty credentials. If you have tooth pain that may indicate advanced decay, search by location to find an endodontist in your area.
Search Endodontists in Your Area