You get a cavity when acid produced by bacteria digesting dietary sugar dissolves tooth mineral faster than saliva can repair it, and that softened spot collapses into a permanent hole. The process needs four things at once: a tooth surface, fermentable carbohydrate, acid-producing bacteria in dental plaque, and time. Remove any one and decay stalls. Below is the full chain, from the chemistry at the enamel surface to the clinical threshold where a dentist picks up a drill.
The dissolution mechanism, step by step
Cavities are not caused by sugar touching teeth. They are caused by acid produced when plaque bacteria ferment sugar, and by how long that acid sits against the enamel.
Dental plaque is a sticky, structurally organized biofilm, not loose food debris. Within it, species such as Streptococcus mutans and lactobacilli convert sucrose, glucose, and fructose into lactic acid through glycolysis. Sucrose is especially efficient because bacteria also splice it into sticky glucans, the scaffold that lets plaque adhere to enamel and resist being washed away by saliva.
That acid drives enamel chemistry backward. Tooth mineral is carbonated hydroxyapatite, and when plaque fluid pH falls below roughly 5.5, the mineral begins to dissolve. This value is the critical pH. Each meal or sweet drink drops plaque pH below that line within minutes, and the pH stays depressed for 20 to 60 minutes before saliva buffers it back up. The precise drop depends on the food, the bacterial load, and salivary flow.
Early loss is invisible: a subsurface lesion where mineral leaves the enamel while the outer surface stays relatively intact. If the acid attacks outpace repair long enough, the weakened surface layer caves in. That cavitation is the clinical cavity. In plain terms: acid dissolves the tooth from the inside of the enamel outward, and the surface only collapses at the end.
The demineralization–remineralization balance, quantified
Every tooth is in a constant tug-of-war. Demineralization is acid-driven mineral loss; remineralization is calcium and phosphate from saliva, assisted by fluoride, rebuilding the crystal lattice. Whether you get a cavity depends on the net balance.
Saliva is the repair crew. It delivers calcium and phosphate, neutralizes acid through bicarbonate buffering, and clears sugar. Normal stimulated saliva flow is protective. When flow falls, the balance tips fast. That is why dry mouth is one of the strongest cavity risk factors, and why medications with anticholinergic effects raise risk.
Fluoride shifts the equilibrium. It adsorbs to enamel, and when acid releases mineral, fluoride promotes reformation of fluorapatite, which dissolves at a lower pH than carbonated hydroxyapatite. Teeth bathed in fluoride tolerate more acid before net loss begins. This is the mechanism behind water fluoridation and fluoride toothpaste, not a coating or a seal.
Frequency matters more than total amount. Ten exposures to a small amount of sugar keep plaque acidic for far longer than one larger exposure, because each exposure restarts the acid cycle. The duration and number of acid challenges, not simply grams of sugar, drive net mineral loss. That is the core of the "sip all day" problem with soda and sweetened coffee.
| Variable | Favors demineralization (cavity) | Favors remineralization (repair) |
|---|---|---|
| Plaque pH | Below about 5.5 | Above about 5.5 |
| Eating frequency | Many small sugar exposures | Meals clustered, fewer acid cycles |
| Saliva flow | Low (dry mouth, medications) | Normal to high stimulated flow |
| Fluoride exposure | None | Toothpaste plus fluoridated water |
| Bacterial load | High, mature plaque | Low, disrupted plaque |
| Time since last cleaning | Long | Recent professional removal |
The table is qualitative on purpose. Individual numbers vary with bacterial composition, diet, and saliva, and no single threshold predicts an individual's outcome.
Timeline: from first acid attack to a drilled tooth
Cavities are slow on enamel and fast once they reach dentin. The table sketches the typical course in permanent teeth with average risk. Ranges are approximate, because progression speed varies enormously with the factors above.
| Stage | What is happening | Typical time course |
|---|---|---|
| Acid challenge | Plaque pH drops below 5.5 after sugar | Minutes; stays low 20–60 minutes |
| Subsurface demineralization | Mineral leaves enamel beneath an intact surface | Months of repeated acid cycles |
| White-spot lesion | Chalky, opaque enamel patch, still reversible | Often 6–18 months of active attack |
| Cavitation | Surface layer collapses, dentin exposed | Months to a few years after white spot |
| Dentin progression | Softer dentin dissolves faster than enamel | Can reach pulp within 1–2 years; faster with high sugar |
| Pulp involvement | Bacteria reach the nerve; pain, infection risk | Variable; can accelerate sharply |
These are not guarantees. Some lesions arrest and remineralize, especially with fluoride, and some progress far faster. Speed tracks acid frequency, saliva, and bacterial load, not the calendar.
Edge cases that change the picture
Not all cavities form the same way, and several exceptions matter for prevention and diagnosis.
Root caries. When gums recede with age or periodontal disease, the root surface, called cementum, is exposed. Cementum is far softer and less mineralized than enamel, so it dissolves at a higher pH. Root cavities can form in months, not years, and are a major cause of tooth loss in older adults with dry mouth.
Baby bottle tooth decay. Infants put to bed with a bottle of milk or juice keep the upper front teeth bathed in sugar during sleep, when saliva flow is lowest. This pattern, now called early childhood caries, can destroy the upper incisors within a year and is a leading reason for pediatric dental surgery.
Medication-driven dry mouth. Antihistamines, antidepressants, diuretics, and many other drugs reduce salivary flow. A patient with excellent hygiene can still develop rapid decay if saliva collapses. This is the counterintuitive case: hygiene habits unchanged, risk skyrocketing.
Frequency traps. Sipping a sweetened coffee for two hours, grazing on snacks, or sucking on hard candy produces a nearly continuous acid bath. The sugar amount may be modest; the exposure time is not.
Bulleted red flags that warrant prompt dental evaluation:
A chalky white or brown spot that does not brush away A pit or roughness on a biting surface that catches a fingernail Sharp pain to sweet, hot, or cold that lingers after the stimulus leaves Spontaneous pain, especially at night, suggesting pulp involvement A visible dark shadow under the surface of a front tooth Gum recession exposing yellow root surfaces at the gumline
Persistent pain or swelling is not a cavity you can wait out; it may be an infection that needs urgent care.
Misconceptions that keep people from acting
Several widely repeated claims about cavities are incomplete or wrong, and each one leads to worse decisions.
Sugar-free does not mean acid-free. Many sugar-free sodas and candies contain acid directly. Carbonated colas and citrus drinks have a pH near 3, and diet versions can erode enamel without any bacterial fermentation. Acid erosion is not the same as decay, but it weakens enamel and can look similar early.
A single cleaning cannot undo a cavity. Hygienists remove plaque and tartar and can arrest early lesions, but a cavitated hole will not fill back in. Only early, non-cavitated lesions can remineralize. Once the surface collapses, the tooth cannot rebuild it.
Pain is a poor screening tool. Many cavities, including some that have reached dentin, are painless until the pulp is involved. Waiting for pain selects for the advanced cases that need root canals or extractions.
Enamel cannot grow back, but it can be repaired. Enamel has no living cells, so it does not regenerate. Remineralization rebuilds mineral within existing enamel and can arrest early lesions, but a lost surface is permanent. That distinction matters for what prevention can and cannot accomplish.
Cavities are not only a childhood disease. Root caries and medication-related dry mouth make decay an adult and senior problem as well.
Practical actions, with thresholds
Prevention works at several points in the mechanism: reduce acid production, reduce acid time, increase repair, and remove plaque regularly.
Brush twice daily with fluoride toothpaste at 1,000 to 1,500 parts per million fluoride for adults. For children, consult a clinician on age-appropriate concentration and amount. Limit sugar exposures to meals rather than continuous snacking; each exposure restarts a 20-to-60-minute acid window. Avoid sweetened and acidic drinks in a sipper throughout the day; drink with meals and rinse with water afterward. Maintain saliva: stay hydrated, and if you take drying medications, ask a clinician about alternatives or saliva-supportive measures. Keep professional cleanings on the schedule your dentist sets, typically every 6 to 12 months for average risk, and more often with active decay or dry mouth. Consider fluoridated water and, for high-risk patients, ask a dentist about topical fluoride varnish or sealants. These are professional decisions, not self-prescribed routines.
Price context, since cost affects access: fluoride toothpaste is inexpensive and widely available. Professional fluoride varnish and sealants are office procedures with variable costs. This article gives no price figures because they change by region and provider.
Thresholds of note, stated once: critical plaque pH about 5.5 for enamel and higher for root surfaces; acid exposure windows of 20 to 60 minutes per sugar challenge; fluoride toothpaste commonly at 1,000 to 1,500 ppm for adults; recall intervals of 6 to 12 months for average risk. These are general reference points, not a diagnosis. A dentist applies them with an exam, radiographs, and an individual risk assessment.
What the model cannot tell you
The mechanism explains why cavities form and how to interrupt them, but it does not predict an individual's fate. Progression speed, bacterial composition, saliva quality, and host factors vary enough that two people with identical diets can have very different decay. The timeline table gives typical ranges, not your timeline.
Diagnosis also has limits. Visual inspection cannot see every surface; radiographs miss some early lesions and reveal others. Bitewing radiographs are the standard for between-teeth decay, and their frequency is a clinical decision. Fluoride and sealants reduce risk, but neither is a guarantee, and neither substitutes for reducing acid frequency.
One caution about statistics: cavity prevalence figures change by country, age group, and year, and this article does not cite them because no current dataset was supplied. The stable biology is the reliable part. If you suspect a cavity, the actionable step is a dental exam, not a web search for reassurance.