What Causes Tooth Decay? Bacteria, Sugar, and More

Tooth decay happens when bacteria in your mouth produce acid that dissolves the mineral structure of your teeth. It’s the most common chronic disease worldwide, and it follows a predictable chemical process: bacteria feed on sugars, produce lactic acid, and that acid strips calcium and phosphate from tooth enamel. Understanding this chain of events explains why some people get cavities despite brushing, and what actually makes the biggest difference in prevention.

How Bacteria Turn Sugar Into Acid

Your mouth contains hundreds of bacterial species, many of which are harmless or even beneficial. The ones that cause decay, most notably Streptococcus mutans, thrive in a sticky film called plaque that clings to tooth surfaces. When you eat or drink anything containing sugar or other fermentable carbohydrates, these bacteria metabolize it and produce lactic acid as a byproduct.

That acid lowers the pH of the plaque sitting on your teeth. Tooth enamel is made of a mineral called calcium hydroxyapatite, and it starts dissolving when the pH at its surface drops below about 5.5. Root surfaces and dentin, the layer beneath enamel, are even more vulnerable, beginning to dissolve at a pH of 6.2 to 6.4. After each exposure to sugar or acidic food, the pH in plaque stays depressed for roughly an hour before your saliva can neutralize it back to safe levels. During that window, minerals are actively leaching out of your teeth.

Why Total Sugar Matters More Than Snacking Frequency

For decades, dentists emphasized that how often you eat sugar matters more than how much you consume in one sitting. Recent evidence from a large U.S. study challenges that idea. When researchers looked at both the total amount of added sugar people consumed and how frequently they consumed it, the total amount was more consistently and strongly associated with tooth decay. Each standard-deviation increase in daily sugar intake (about 54.5 grams) was linked to an 11% higher decay score, while increasing snacking frequency by a comparable degree had either no significant association or a much smaller one (around 5%).

This doesn’t mean frequency is irrelevant. Sipping a sugary drink over several hours still extends the time your teeth sit in acid. But the data suggest that cutting the overall quantity of added sugar in your diet may be more impactful than simply consolidating it into fewer sittings.

Your Saliva Is a Built-In Defense System

Saliva does far more than keep your mouth moist. It continuously washes over your teeth, acting as a cleaning solution, lubricant, buffer, and mineral reservoir all at once. Bicarbonate, phosphate, and histidine-rich peptides in saliva neutralize acid produced by bacteria. Saliva also contains compounds like sialin and urea, which break down into ammonia and directly raise pH back toward neutral levels.

Critically, saliva is supersaturated with calcium and phosphate ions. When the acid attack ends and pH climbs back up, these ions flow back into weakened enamel and re-harden it. This is remineralization, and it happens naturally after every meal as long as your saliva flow is adequate and the damage hasn’t progressed too far. Think of it as a constant tug-of-war: acid pulls minerals out, saliva pushes them back in. Cavities form when the balance tips toward mineral loss more often than repair.

How Fluoride Tips the Balance

Fluoride works by swapping into the crystal structure of enamel, replacing some of the hydroxyl ions in hydroxyapatite with fluoride ions. Because fluoride ions are physically smaller, they pack more tightly, creating a denser crystal that resists acid far better. The resulting mineral, fluorapatite, requires a much steeper drop in pH before it begins to dissolve.

The chemistry is striking. When pH drops from 7 to 5 (a typical acid attack after eating), the ability of regular enamel to resist dissolving drops to 1/10,000 of its baseline. Fluorapatite, by contrast, retains about 97% of its resistance under the same conditions. This is why fluoride toothpaste and professional fluoride treatments are so effective at preventing cavities. The American Dental Association recommends fluoride varnish for children under six, and either fluoride varnish, fluoride gel, or prescription-strength fluoride rinse for anyone six and older who is at risk of decay.

The Stages of a Cavity

Decay doesn’t go from healthy tooth to cavity overnight. It progresses through identifiable stages, and the early ones are reversible.

  • White spot lesion: The earliest visible sign. Enough mineral has been lost that a chalky white patch appears on the enamel surface. At this stage, improved brushing, fluoride, and dietary changes can reverse the damage completely. The tooth structure is still intact.
  • Enamel microcavity: As mineral loss continues, tiny pores form in the enamel. The surface is weakened but not yet broken through. This stage still responds to aggressive preventive measures, though repair becomes harder.
  • Macroscopic cavity: The weakened enamel surface collapses, leaving a visible hole. Even at this point the decay process can technically be arrested, but the physical hole remains and typically needs a filling to restore the tooth’s function and prevent food trapping.

Beneath the surface, dentists describe distinct zones of damage. The outermost layer is heavily contaminated with bacteria and feels soft when probed. Deeper in, there’s a zone of demineralization with very few bacteria and minimal nutrients. The innermost zone, closest to the nerve, is firm and bacteria-free because microorganisms simply can’t penetrate that deep. This layered structure is why dentists can often remove only the infected portion and preserve healthy tooth underneath.

An active cavity tends to look whitish and matte, feels rough, and has plaque sitting on or near it. An inactive, or arrested, cavity typically appears brown and shiny, feels smooth, and isn’t collecting plaque. Color alone doesn’t tell you whether a spot needs treatment.

Dry Mouth and Medication Risks

Anything that reduces saliva flow dramatically raises your decay risk. Without saliva’s buffering and remineralizing action, acid lingers on teeth longer and minerals aren’t replenished. In people with chronic dry mouth, cavities frequently develop rapidly even when oral hygiene is good.

Over 600 medications can suppress saliva production. The most common culprits are anticholinergic drugs, which block the nerve signals that tell salivary glands to produce saliva. Antihistamines, antidepressants, antipsychotics, and antispasmodics are the most frequently prescribed medications with this side effect. Each additional anticholinergic medication a person takes increases their odds of experiencing dry mouth by about 50%. If you take one or more of these medications and notice your mouth feels persistently dry, that’s worth discussing with your dentist, because your prevention routine may need to be more aggressive than average.

Genetics and Individual Susceptibility

Some people really are more cavity-prone than others, independent of diet and hygiene. Genetic variation can influence enamel density, mineral content, and porosity. Certain gene variants in the immune system affect how readily cavity-causing bacteria colonize the mouth in the first place. Genes in the Human Leukocyte Antigen complex, which governs immune responses, have been linked to both altered enamel development and increased susceptibility to colonization by decay-causing bacteria.

Rare genetic conditions make this especially clear. Epidermolysis bullosa, for example, directly alters tooth structure and makes teeth far more vulnerable to decay. But even in the general population, inherited differences in enamel quality and immune response help explain why two people with similar diets and brushing habits can have very different cavity histories. Genetics don’t override the basics of good hygiene and low sugar intake, but they do set the baseline difficulty level.