You get cavities when acid made by mouth bacteria dissolves tooth mineral faster than saliva can repair it. This happens when fermentable carbohydrates linger on teeth, feeding bacteria that excrete acid in dense plaque. The decay process runs for months before a visible hole appears.
Caries is not a single event. It is a tug-of-war between demineralization and remineralization played out at the tooth surface, and the outcome depends on chemistry, time, and hygiene.
Cavities form through a pH-driven mineral loss that starts minutes after you eat. Oral bacteria convert sugars and refined starches into acid. When plaque pH drops below roughly 5.5 for enamel, the acid dissolves calcium and phosphate from the crystal lattice. Saliva normally reverses this, but repeated acid attacks overwhelm the repair buffer. What follows explains why timing, sugar frequency, and plaque location matter more than total sugar eaten in a day.
The Acid-Dissolution Mechanism
Dental plaque is a sticky biofilm, roughly 300 to 500 species of bacteria living in a polysaccharide matrix. Cariogenic species such as Streptococcus mutans and Lactobacillus ferment dietary sugars into lactic acid. The biofilm traps the acid against the enamel so it cannot be neutralized quickly by saliva.
Enamel is hydroxyapatite, a calcium phosphate crystal. Acid dissolves it in a stepwise way: protons displace calcium and phosphate ions from the crystal surface, creating microscopic pores. Early lesions stay subsurface, with an intact outer layer, which is why an early cavity looks like a white chalky spot rather than a hole. Once enough mineral leaves, the surface collapses into a frank cavity.
Dentin, the softer layer under enamel, demineralizes at a higher pH, around 6.5, and has a lower mineral content. This is why once decay passes the enamel, it spreads faster and reaches the pulp sooner in the pits of molars or along exposed roots.
Quantifying the Attack
A single exposure to sugar drops plaque pH below 5.5 within minutes. The pH stays low for roughly 20 to 30 minutes before saliva bicarbonate and minerals restore it. Every snack restarts that clock. Eating six times a day means roughly two to three hours of demineralization risk per day, while eating twice reduces the exposure window by more than half.
Demineralization and remineralization occur at the surface only after the pH threshold is crossed. Enamel loses mineral when the calcium and phosphate in saliva are insufficient to saturate the fluid at the plaque interface. Saliva flow, buffering capacity, and fluoride concentration determine how quickly the repair side wins.
Caries prevalence is high and uneven. Among US adults, the CDC reports that about 9 in 10 people over age 20 have had at least one cavity, and roughly 1 in 4 adults has untreated decay. The pattern shows that the mechanism is universal, but the outcome is modifiable.
Timeline of a Cavity
| Stage | Time Course | What Is Happening |
|---|---|---|
| Acid attack | Minutes after sugar | Plaque pH falls; enamel begins losing mineral |
| Subsurface lesion | Weeks to months | Mineral loss under intact surface; white spot visible |
| Enamel breakdown | Months to years | Surface collapses; lesion becomes cavitated |
| Dentin involvement | Months after enamel | Softer dentin demineralizes faster; sensitivity rises |
| Pulp irritation | Variable | Bacteria and toxins approach the pulp; pain may appear |
| Abscess or pulp death | Days to months after pulp exposure | Infection spreads beyond the tooth; urgent care needed |
Timelines vary widely with sugar frequency, fluoride exposure, saliva flow, and tooth location. Some people progress from early lesion to cavity in under a year; others stall for years. Frequent snacking and dry mouth accelerate every row in that table.
Edge Cases and Counterintuitive Findings
Root caries deserves special attention. As gums recede with age, cementum and dentin are exposed, and these tissues demineralize at higher pH than enamel. Older adults with dry mouth from medications, or those with reduced saliva flow after radiation therapy, can develop cavities on root surfaces within months despite adequate brushing.
Fluoride shifts the threshold. It adsorbs to enamel and forms fluorapatite, which dissolves at roughly pH 4.5 instead of 5.5. That extra margin of about one pH unit is why fluoridated water and toothpaste reduce cavities even when sugar intake does not change.
Starch matters, despite not tasting sweet. Cooked starches, especially in sticky forms like crackers and chips, are broken down by salivary amylase into fermentable sugars and cling to teeth. A professional caveat: the counterintuitive culprit often is not candy but frequent small starch snacks, sipped sweet drinks, or dry mouth from medications.
Common Misconceptions
Sugar quantity is not the main variable; sugar frequency is. A large dessert eaten quickly produces one acid attack, while the same sugar spread across five snacks produces five. The total demineralization time, not the grams consumed, drives the lesion.
Cavities are not only a childhood disease. The CDC data show continued decay in adults, particularly root caries in older adults. Brushing twice daily does not offset a high-frequency sugar habit if fluoride exposure is low.
A visible white spot is not harmless. It is an active lesion that can still be reversed with fluoride and hygiene, but it will cavitate if the acid exposure continues. Conversely, a dark, hard arrested lesion may be inactive and need no drilling.
Practical Steps That Change the Chemistry
Limit eating occasions to a small number per day rather than focusing only on sugar grams. Fewer snacks mean fewer acid cycles. Use fluoride toothpaste at least twice daily, and consider a fluoride rinse if a clinician recommends it for high risk. Fluoride raises the dissolution threshold. Drink water after meals and avoid sipping sugary or acidic drinks over long periods. Rinsing shortens the acid window. Chew sugar-free xylitol gum after meals if appropriate. It stimulates saliva and can reduce plaque acid production. Address dry mouth with a clinician, since saliva is the primary repair buffer. Medications, mouth breathing, and autoimmune conditions all reduce flow. Red flag: pain to hot or cold that lingers, or spontaneous pain, suggests the decay has reached dentin or pulp. Seek dental care promptly rather than waiting.
Limit of What Can Be Concluded
The mechanism is well established, but individual risk cannot be predicted from any single habit. Saliva composition, tooth anatomy, fluoride exposure, medication use, and diet frequency interact in ways that vary person to person. Precise conversion of pH exposure into cavity risk is not available, and no threshold guarantees protection. A dental professional can assess lesions directly and recommend fluoride or sealant strategies based on observed risk, not a generic rule. The core chemistry, however, is consistent: acid from plaque, repeated often enough, outpaces saliva and fluoride repair, and that is how cavities begin.