Cavities form when acid produced by bacteria in dental plaque dissolves tooth mineral faster than saliva can repair it. The decay is a cycle, not a single event: sugar feeds bacteria, bacteria make acid, acid lowers plaque pH, mineral leaches out of enamel, and repeated attacks eventually open a physical hole. What follows traces that cycle from the first mineral loss to a cavity your dentist can see.
The chemistry of demineralization
Tooth enamel is roughly 96 percent mineral by weight, mostly a calcium phosphate crystal called hydroxyapatite (CDC). That crystal is stable at neutral pH but dissolves when acid accumulates. The critical threshold is about pH 5.5: below that, enamel mineral begins to leach into surrounding fluid. Dentin, which sits under enamel and has lower mineral content, starts dissolving at a less acidic pH, which is why decay spreads faster once it reaches that layer.
The acid comes from fermentation. Oral bacteria such as Streptococcus mutans and Lactobacillus species convert dietary sugars into lactic acid within minutes of a meal. Plaque holds the acid against the tooth surface and restricts saliva's ability to neutralize it, so pH at the tooth-plaque interface can drop to about 4.5-5.0 after a sugar exposure and stay low for 20 minutes or more.
The body runs the reverse reaction continuously. Saliva delivers calcium and phosphate back into demineralized enamel, and fluoride accelerates that repair by forming fluorapatite, a crystal that dissolves at a lower pH than hydroxyapatite. A cavity is what remains when net mineral loss outpaces net repair over time.
Timeline: from first acid attack to a visible cavity
Decay moves through recognizable stages, and the early ones are reversible.
| Stage | What is happening | Approximate timeframe | Reversible? |
|---|---|---|---|
| Acid attack | Plaque bacteria ferment sugar; pH falls below 5.5 | Minutes after eating | Yes, within minutes |
| Demineralization | Calcium and phosphate leave enamel beneath plaque | Repeated daily attacks | Yes, if attacks are infrequent |
| White spot lesion | Enamel becomes porous under the surface; a chalky white patch appears | Weeks to months of repeated attacks | Often, with fluoride and plaque control |
| Enamel breakdown | Surface layer collapses; a physical defect forms | Months | No |
| Dentin involvement | Decay reaches softer dentin and spreads laterally | Months to years, faster once started | No |
| Pulp involvement | Bacteria approach or enter the pulp; pain and infection risk rise | Variable, can be rapid | No; root canal or extraction territory |
The table gives ranges, not a schedule. Decay speed depends heavily on sugar frequency, fluoride exposure, saliva flow, and plaque control, and individual cases vary widely.
Why some mouths decay faster
Saliva is the body's built-in repair and buffer system, and anything that reduces saliva flow tilts the balance toward cavities. Salivary flow drops at night, which is why bedtime sugar exposure is especially costly. It also falls with certain medications, with dehydration, and after head or neck radiation. A dry mouth is a demineralization-friendly mouth.
Fluoride exposure changes the threshold itself. Fluoride in saliva and plaque promotes remineralization with fluorapatite and can inhibit bacterial acid production. Water fluoridation and fluoride toothpaste are the main population-level reasons cavity rates fell in the twentieth century (CDC).
Sugar frequency matters more than total sugar amount. Ten small sugar exposures a day create ten acid attacks; one larger exposure creates one. Sticky carbohydrates that cling to teeth prolong the acid phase. The counterintuitive detail: a single piece of candy eaten with a meal is less harmful to teeth than the same candy sipped slowly over an hour, because the acid challenge is about duration and repetition.
Common misconceptions
Sugar itself does not dissolve teeth. Bacteria do, using sugar as fuel. A tooth sitting in a glass of sugar water would not decay; a tooth covered in plaque and fed sugar repeatedly will.
Cavities are not only a childhood problem. Root exposure from gum recession, reduced saliva flow with age, and certain medications keep adult cavity risk real, and root surfaces decay faster because dentin is softer than enamel.
A cavity does not always hurt. Pain usually signals that decay has reached dentin or the pulp. Early enamel decay is typically painless, which is why visual and radiographic exams matter more than symptoms.
Fluoride does not "coat" teeth like paint. It works at the mineral level and is most effective in small, frequent doses, which is the rationale behind fluoride toothpaste used twice daily rather than occasional high-dose exposure. The professional caveat: fluoride toothpaste is not a substitute for removing the plaque that holds acid against the tooth; it shifts the balance but does not remove the acid factory.
Warning signs that should prompt a dental visit: A chalky white or brown spot on a tooth surface that does not brush away. Sensitivity to sweet, hot, or cold foods that lingers. Visible pits or dark areas, especially near gumline or between teeth. Pain on biting or spontaneous pain, which suggests deeper involvement. A broken or chipped tooth with exposed dentin. Bleeding gums alongside tooth-surface changes, since recession exposes root surfaces.
Comparison: preventive approaches and what they actually do
| Approach | Mechanism | Evidence level | Limits |
|---|---|---|---|
| Fluoride toothpaste | Promotes fluorapatite formation; inhibits demineralization | Strong; CDC-endorsed | Needs consistent twice-daily use |
| Community water fluoridation | Low-level fluoride exposure across the population | Strong; CDC-recognized | Not universally available |
| Plaque removal (brushing, flossing) | Removes acid-producing bacteria and food source | Strong | Technique-dependent, especially between teeth |
| Dietary sugar reduction, especially frequency | Fewer acid attacks | Strong | Requires behavior change; hidden sugars complicate |
| Dental sealants | Physical barrier over deep pits and fissures | Strong for high-risk molars | Requires professional placement; can wear |
| Saliva support (hydration, sugar-free gum) | Buffers acid, increases flow | Moderate | Not a substitute for fluoride or plaque control |
The rows overlap; the strongest prevention stacks fluoride, plaque control, and sugar-frequency management together.
Practical thresholds that change your odds
Cavity prevention is largely about frequency and consistency. Concrete, evidence-based thresholds help translate the mechanism into daily habits.
Brush twice daily with fluoride toothpaste, and do not rinse immediately after brushing; the fluoride needs contact time. Spit, don't rinse, is the practical shorthand (CDC). Limit sugar exposures to meals and fewer snack moments. Each exposure starts a fresh acid attack lasting roughly 20-30 minutes. Drink fluoridated water where available; it provides low-level fluoride throughout the day (CDC). Chew sugar-free gum after meals to stimulate saliva and buffer acid, especially if brushing is not possible. Ask a dentist about sealants for high-risk molars, and about topical fluoride for elevated risk. Do not put a child to bed with a bottle containing anything sugary; prolonged exposure during low-saliva sleep hours is a well-established risk pattern.
Reconciling thresholds: the pH 5.5 figure applies to enamel, while dentin dissolves at a higher pH, so root surfaces need less acid to begin decaying. The 20-30 minute acid-attack window reflects plaque pH recovery, not complete remineralization, which can take hours. Fluoride toothpaste concentration recommendations vary by age and risk level and should come from a dentist, not a general article.
Limits of what prevention and this explanation can guarantee
The mechanism is well established, but individual outcomes are not predictable from mechanism alone. Saliva flow, medication use, diet composition, oral anatomy, and access to dental care vary widely. This article describes the decay process and general prevention principles; it does not diagnose a specific tooth, recommend a specific product concentration, or replace a clinical exam.
Radiographs and clinical probing detect decay that is not yet visible to the eye, and early lesions that look alarming may still be reversible with fluoride and plaque control. Conversely, a small visible hole may already extend well into dentin beneath the surface. The only reliable way to know which stage a specific tooth is in is a dental examination.
What this explanation can promise: a clear, mechanism-level account of how cavities form, the numbers and thresholds that govern the process, and practical steps with defined targets. What it cannot promise: a guarantee that following these steps prevents all cavities, because the balance between acid attack and repair depends on factors a general article cannot measure. The useful takeaway is that decay is a rate problem, and the habits that tip the rate toward repair are known, repeatable, and mostly free.