Cavities form when acid-producing bacteria on your teeth break down sugars from food and drink, creating acids that dissolve tooth enamel. About 21% of adults between 20 and 64 have at least one untreated cavity right now, making it one of the most common chronic conditions in the world. The process isn’t instant. It unfolds over weeks to months as a tug-of-war between damage and repair tips in favor of damage.
What Actually Happens Inside Your Tooth
Your mouth is home to hundreds of bacterial species, and some of them thrive on sugar. The most significant cavity-causing bacterium is Streptococcus mutans, which is unusually good at both producing acid and surviving in acidic environments. When you eat or drink something containing sugar or starch, these bacteria metabolize the carbohydrates through a fermentation process and release acid as a byproduct.
That acid attacks the mineral structure of your enamel. Tooth enamel is made primarily of a mineral called hydroxyapatite, a crystalline arrangement of calcium and phosphate. When the pH on the tooth surface drops below roughly 5.5, calcium and phosphate ions start dissolving out of the enamel. This is demineralization. For people with lower concentrations of calcium and phosphate in their saliva, the critical threshold can be as high as pH 6.5, meaning their enamel starts dissolving sooner.
Your saliva normally fights back. It contains calcium, phosphate, and bicarbonate that neutralize acids and resupply minerals to weakened enamel. This natural repair process, remineralization, can reverse very early damage before a cavity ever forms. Fluoride from toothpaste supercharges this defense by swapping into the mineral structure, creating a version of enamel that resists acid down to a pH of about 4.5, a full point lower than untreated enamel. But when acid attacks happen too frequently or saliva can’t keep up, the balance shifts and a cavity develops.
The Five Stages of Decay
Cavities don’t appear overnight. They progress through distinct stages, and catching them early makes a real difference.
White spots. The first visible sign is a chalky white patch on the tooth where minerals have started leaching out. At this point there’s no hole, no pain, and the damage is still reversible with fluoride treatment and better oral care.
Enamel breakdown. If demineralization continues, the white spot may darken to brown and the enamel surface begins to collapse, forming a small hole. You probably still won’t feel anything because enamel has no nerve endings.
Dentin involvement. Beneath the enamel sits dentin, a softer, more porous layer. Once decay reaches dentin, it spreads faster. This is typically when you start noticing sensitivity to hot, cold, or sweet foods and drinks.
Pulp damage. The innermost part of the tooth contains nerves and blood vessels. When bacteria and decay reach this layer, the pulp swells, but the rigid tooth structure leaves no room for expansion. The result is significant, often throbbing pain.
Abscess. Left untreated, infection at the base of the tooth can create a pocket of pus called an abscess. Symptoms include severe pain radiating into the jaw, facial swelling, fever, and swollen lymph nodes. This stage requires urgent dental care.
Many cavities produce no symptoms at all until they reach the dentin or deeper, which is why routine dental exams catch problems that you’d otherwise miss entirely.
Why Sugar Frequency Matters More Than Amount
The World Health Organization identifies free sugars as the most common risk factor for cavities. Free sugars include anything added to food or drinks by manufacturers or cooks, plus sugars naturally present in honey, syrups, and fruit juice. But the pattern of consumption matters as much as the total amount.
Every time sugar enters your mouth, bacteria produce acid for roughly 20 to 30 minutes afterward. If you eat a handful of candy all at once, that’s one acid attack. If you nibble on candy throughout the afternoon, that’s several hours of sustained acid exposure with little recovery time in between. Sipping sugary coffee, juice, or soda over extended periods creates the same problem. Many fruit juices and soft drinks have a pH below 3, which is acidic enough to erode enamel directly, independent of bacterial activity.
Sticky or chewy foods like dried fruit, caramel, and gummy snacks pose extra risk because they cling to tooth surfaces longer, giving bacteria more time to convert them into acid.
Dry Mouth and Medications
Saliva is your mouth’s primary defense against cavities, so anything that reduces saliva flow raises your risk substantially. Dry mouth (xerostomia) is one of the most common side effects of medications that block certain nerve signals involved in saliva production. Antidepressants and antipsychotics are among the most frequent culprits, but antihistamines, blood pressure medications, and many others can have the same effect.
In one study of middle-aged patients with dry mouth, the average person was taking more than five of these saliva-reducing medications simultaneously, alongside other drugs. The more of these medications someone took, the more teeth they had lost or had filled. Without adequate saliva to wash away food particles, neutralize acid, and deliver minerals back to enamel, cavities develop faster and in locations that would normally be well-protected.
Genetics Play a Real Role
Some people seem to get cavities no matter how carefully they brush, while others rarely do. Genetics is part of the explanation. Inherited traits influence cavity risk through at least four pathways: how your enamel develops, what your saliva is made of, how your immune system responds to oral bacteria, and even your taste preferences (which shape what you choose to eat).
Research has found that people with lower calcium content in their enamel tend to score higher on measures of tooth decay. Certain gene variants involved in enamel formation appear to affect how well your teeth resist the constant cycle of mineral loss and repair rather than changing the internal hardness of the tooth itself. In practical terms, this means two people with identical diets and brushing habits can have genuinely different cavity rates based on the teeth they were born with.
Where Cavities Form Most Often
Cavities don’t strike teeth evenly. They’re most common in spots where plaque accumulates and is hardest to clean:
- Pits and grooves on molars. The chewing surfaces of back teeth have natural crevices that trap food and bacteria. These are the most cavity-prone spots, especially in children and teenagers.
- Between teeth. The contact points where two teeth touch are difficult to reach with a toothbrush alone, which is why flossing targets these areas specifically.
- Along the gumline. As gums recede with age, the exposed root surface lacks the thick enamel that protects the crown of the tooth. Root cavities are particularly common in older adults.
- Around existing fillings or crowns. Edges of dental work can develop small gaps over time, creating sheltered spaces where bacteria thrive.
What Protects You and What Doesn’t
Fluoride remains the single most effective cavity-prevention tool available. When fluoride is present during remineralization, it integrates into the enamel crystal structure, making the repaired surface more acid-resistant than the original. This is why fluoride toothpaste, fluoridated water, and professional fluoride treatments all reduce cavity rates significantly.
Brushing twice a day removes the bacterial film (plaque) before it can produce enough acid to cause lasting damage. Cleaning between teeth with floss or interdental brushes handles the surfaces a toothbrush can’t reach. But timing matters: brushing right after consuming something acidic can actually spread the acid and abrade softened enamel. Waiting about 30 minutes gives saliva time to neutralize the acid first.
Sugar-free gum stimulates saliva flow, which helps if you can’t brush after a meal. Products containing a calcium-phosphate compound can also boost remineralization by keeping saliva supersaturated with the minerals enamel needs to repair itself. Dental sealants, thin coatings applied to the chewing surfaces of molars, physically block bacteria from settling into grooves and are especially effective for children.
What doesn’t help as much as people assume: mouthwash alone, brushing only once a day, or assuming that “natural” sugars from honey or fruit juice are safer for teeth. Bacteria don’t distinguish between sugar sources. If it’s a free sugar, it feeds acid production just the same.

