Why Does Sugar Cause Cavities? It Starts With Bacteria

Sugar causes cavities because bacteria in your mouth feed on it and produce acid as a byproduct. That acid dissolves the minerals in your tooth enamel, creating weak spots that eventually become holes. The process isn’t instant. It’s a tug-of-war between acid attacks and your saliva’s ability to repair the damage, and sugar tips the balance toward destruction.

How Mouth Bacteria Turn Sugar Into Acid

Your mouth is home to hundreds of bacterial species, but one in particular drives the cavity process: Streptococcus mutans. When you eat something sugary, these bacteria absorb the sugar and ferment it, releasing organic acids as waste. This is the same basic chemistry as fermentation in beer or yogurt, just happening on the surface of your teeth.

Sucrose, ordinary table sugar, is the worst offender because bacteria can use it in two damaging ways at once. First, they pull it inside their cells and break it down into simpler sugars for energy, producing acid along the way. Second, they use enzymes on their outer surface to convert sucrose into a sticky, glue-like substance called glucan. This is the foundation of dental plaque: a dense, structured film that cements bacteria to your teeth and shields them from saliva. The water-insoluble form of glucan is especially problematic because it helps cariogenic bacteria accumulate in thick layers directly on the enamel.

Once bacteria are locked into this biofilm, they keep fermenting sugar and pumping out acid in a confined space right against the tooth surface, where saliva can’t easily wash it away.

What Acid Does to Your Enamel

Tooth enamel is made of a crystalline mineral called hydroxyapatite, which is packed with calcium and phosphate. When the pH on your tooth surface drops low enough, those minerals start dissolving out of the crystal structure. This process is called demineralization.

The threshold where this begins, often called the critical pH, is commonly cited as 5.5, but it’s not a fixed number. It depends on how much calcium and phosphate are already floating in your saliva and plaque fluid. People with lower concentrations of these minerals in their saliva may start losing enamel at a pH as high as 6.5, while those with mineral-rich saliva might hold out until pH drops to 5.5 or lower. The fluid trapped inside plaque itself tends to be calcium- and phosphate-rich, so its critical pH can be as low as 5.1.

After you eat something sugary, plaque pH drops rapidly, often within minutes. It then gradually climbs back to normal as saliva neutralizes the acid. This rise and fall is known as the Stephan curve, and it’s the core concept behind cavity formation. Every sugar exposure triggers a fresh acid attack. The more frequently you snack on sugary foods throughout the day, the more time your teeth spend below that critical pH, and the less time they have to recover.

How Your Saliva Fights Back

Saliva is your mouth’s primary defense system. It contains bicarbonate and phosphate buffers that neutralize acid and push pH back toward a safe range of 6.8 to 7.0. It also carries dissolved calcium, phosphate, and small amounts of fluoride, which can deposit back into weakened spots in enamel to rebuild what was lost. This repair process is called remineralization, and it happens automatically between meals as long as the acid attacks aren’t too frequent or prolonged.

Fluoride supercharges this repair. When fluoride is present during remineralization, it gets incorporated into the enamel crystal, converting hydroxyapatite into a more acid-resistant form called fluorapatite. Regular hydroxyapatite starts dissolving at a pH of about 5.5, but fluorapatite holds up until pH drops to around 4.6. That difference matters: it means fluoride-treated enamel can withstand stronger acid attacks before minerals start leaching out. This is why fluoride toothpaste and fluoridated water reduce cavity rates so effectively.

Why Sucrose Is Worse Than Other Sugars

All fermentable sugars can feed oral bacteria and produce acid. Glucose, fructose, and even the sugars released from cooked starches will lower plaque pH. But sucrose occupies a unique position because it’s the only sugar that bacteria can efficiently convert into those sticky glucan polymers that form the structural backbone of plaque. Other sugars produce acid, but they don’t build the biofilm the same way.

Starch alone is relatively mild in terms of cavity risk, because it has to be broken down by salivary enzymes before bacteria can use it. But when starch and sucrose are eaten together, as they are in cookies, pastries, and many processed snacks, the combination is actually more damaging than sucrose alone. Research measuring mineral loss from enamel found that starch plus sucrose caused the greatest demineralization and supported the highest counts of acid-producing bacteria in the biofilm. The starch seems to thicken the plaque and slow the clearance of sugar from the tooth surface, giving bacteria more time to produce acid.

How Food Texture Changes the Risk

The physical form of a sugary food matters as much as the amount of sugar it contains. A food that clings to your teeth keeps feeding bacteria long after you’ve finished eating, extending the acid attack. But “sticky” doesn’t always mean what you’d expect.

Caramel, for instance, feels sticky in your mouth but is actually fairly viscous and gets cleared from tooth surfaces relatively quickly. Cookies and crackers, which don’t feel particularly sticky, have high surface adhesion and linger on teeth much longer. Studies tracking how long different foods remain in the mouths of children found that the most adhesive foods stayed the longest, expanding their cariogenic effect well beyond the meal itself. A soda, by contrast, washes over your teeth briefly. It still causes an acid spike, but the sugar doesn’t physically stick around the way a starchy, crumbly snack does.

This is why frequency and form matter more than total grams of sugar. Sipping a sugary drink slowly over two hours creates a nearly continuous acid bath. Eating a candy bar in five minutes causes one sharp pH drop followed by recovery. Three cookies spread across the afternoon are worse than a slice of cake eaten in one sitting, even if the cake contains more sugar overall.

Why Cavities Develop Slowly

A single sugar exposure doesn’t create a cavity. Cavities form over weeks and months as the balance between demineralization and remineralization tips consistently toward mineral loss. In the earliest stage, you might notice a white, chalky spot on a tooth. This is enamel that has lost minerals but hasn’t yet broken down structurally. At this point, the damage is still reversible. Adequate saliva flow, reduced sugar frequency, and fluoride exposure can drive minerals back into the weakened area and restore the enamel.

Once enough mineral is lost that the surface collapses into an actual hole, however, the damage is permanent and requires a filling. The bacteria inside a cavity are even more protected from saliva, creating a self-reinforcing cycle of acid production and mineral loss that accelerates decay deeper into the tooth. This is why early intervention at the white-spot stage, and reducing the frequency of sugar exposure rather than just the amount, is the most effective way to prevent cavities from forming in the first place.