Cavities form when acid-producing bacteria in dental plaque ferment dietary sugars, lowering plaque pH below roughly 5.5 and dissolving the mineral crystals of tooth enamel faster than saliva can repair them. Repeated acid attacks over months create a subsurface lesion that eventually collapses into a visible hole. The process is a shift in chemistry at the tooth surface, not a sudden event.

The demineralization mechanism

Tooth enamel is roughly 96 percent mineral by weight, mostly a calcium phosphate crystal called hydroxyapatite. That crystal is stable at neutral pH but begins to dissolve when the fluid around it turns acidic. Each time you eat fermentable carbohydrate, plaque bacteria such as Streptococcus mutans and Lactobacillus species convert the sugar to lactic acid within minutes. Plaque is a dense biofilm, so the acid it produces stays trapped against the enamel rather than washing away in saliva.

The critical threshold sits near pH 5.5 for enamel. Below that value, the fluid is undersaturated with respect to hydroxyapatite and mineral leaves the crystal lattice. Between attacks, saliva buffers the acid back toward neutral and delivers calcium and phosphate that can rebuild the surface. The cavity is not the acid itself but the net loss when breakdown outpaces repair over time.

Two details explain why early decay is hard to see. Demineralization begins beneath an apparently intact surface layer, creating a subsurface lesion rather than an immediate crater. And because the surface layer stays relatively mineralized, the tooth can look normal while the interior weakens. The earliest visible sign is a chalky white spot, not a hole.

Quantified context: pH, time, and thresholds

The numbers that matter most are pH and duration, because enamel loss depends on both the depth of the acid drop and how long it lasts. A sugar exposure can push plaque pH to around 5.0 or lower within minutes, and it may take 20 to 30 minutes or more for saliva to neutralize the acid. Frequent snacking therefore matters more than total sugar, since each exposure restarts the clock.

Dentin, the softer layer beneath enamel, demineralizes at a higher pH, closer to 6.0 to 6.5, which is why decay accelerates once it reaches that layer. This is why a lesion that stalls in enamel can progress quickly after the surface breaks. The practical implication is that the same dietary pattern is more dangerous once any dentin is exposed.

A second set of thresholds governs professional decision-making. Dentists and public health bodies classify caries risk using lesion activity, fluoride exposure, saliva flow, and diet rather than a single number. Radiographic depth, visual appearance, and whether a lesion is active or arrested all change the recommendation. Reconcile these thresholds by treating pH as the mechanism and risk classification as the management tool: the chemistry tells you why, the risk assessment tells you what to do.

A timeline of lesion progression

Stage Approximate timeframe What is happening
Acid attack Minutes after sugar exposure Plaque pH falls below 5.5; mineral begins dissolving
Remineralization window 20 to 60 minutes Saliva buffers acid and redeposits calcium and phosphate
Subsurface lesion Weeks to months of repeated attacks White spot forms; surface layer intact, interior porous
Enamel breakdown Months Surface collapses; dentin becomes exposed
Dentin caries Months to a few years Softer tissue decays faster; sensitivity may appear
Pulp involvement Variable, often years Bacteria reach the pulp; pain and infection risk rise

These intervals are ranges, not schedules. Progression speed depends heavily on fluoride exposure, saliva flow, oral hygiene, and sugar frequency, so two people with similar diets can have very different rates of decay.

Edge cases that change the picture

Root caries behaves differently because cementum, the thin layer covering the root, is softer than enamel and demineralizes at a higher pH. Older adults with gum recession are therefore vulnerable at the root surface even with moderate sugar intake. Dry mouth is another amplifier: reduced saliva removes the buffer and the mineral source, so medications, radiation, or autoimmune conditions that lower saliva flow can accelerate decay sharply.

Fluoride shifts the chemistry rather than stopping it. It promotes remineralization and forms fluorapatite, which is more acid-resistant, and it can arrest an active lesion. But it does not sterilize plaque or neutralize acid, so a high-fluoride regimen without dietary change can still fail. This is the counterintuitive point many thin explainers miss: fluoride raises the threshold, it does not remove the acid attack.

Common misconceptions

The most persistent myth is that sugar itself dissolves teeth. Sugar is not acidic; it is fuel for bacteria that produce acid. The distinction matters because it explains why frequency and oral hygiene change the outcome.

A second misconception is that only sweets cause cavities. Any fermentable carbohydrate, including refined starches, can feed acidogenic bacteria. A third is that a visible hole is the first sign; the white-spot stage precedes it by months. A fourth is that brushing immediately after an acidic meal is protective. Abrasive brushing on softened enamel can cause wear, so waiting is often advised, though the evidence and recommendations vary by source.

Warning: a sudden increase in sensitivity to cold or sweet foods can signal dentin exposure, not just a surface issue. Warning: bleeding gums and recession raise root-caries risk and deserve professional assessment. Warning: dry mouth from medications is a modifiable risk factor, not a minor annoyance. Warning: pain that lingers after a stimulus can indicate pulp involvement and needs prompt care. Warning: white spots that are chalky and rough suggest active demineralization, while glossy, hard spots may be arrested lesions.

Practical actions and risk thresholds

Action should match the stage and the risk level. For primary prevention, the levers are sugar frequency, fluoride, saliva, and plaque control. Limit fermentable carbohydrate exposures to meals rather than grazing, because each exposure restarts the acid cycle. Use fluoride toothpaste and, where a clinician recommends it, additional fluoride products; the appropriate concentration and regimen are clinical decisions, not self-directed dosing.

Plaque control matters most at the gum line and in pits and fissures, where biofilm persists. Sealants can protect susceptible pits and fissures on back teeth, and professional application is guided by caries risk. For early white-spot lesions, remineralization strategies can arrest decay before a hole forms, which is why early detection changes outcomes.

For established cavities, the limitation is that no home measure closes a hole; restorative treatment removes infected tissue and restores the tooth. The decision between monitoring, remineralizing, and restoring rests on lesion activity, depth, and risk, which is why a single threshold cannot replace clinical judgment.

Limits of what the evidence shows

The mechanism of acid demineralization is well established, but predicting any individual's cavity timeline is not. Progression depends on interacting variables, including saliva composition, microbial ecology, fluoride exposure, and diet pattern, and the same behavior can produce different results in different mouths. Many published figures are population-level associations, not individual predictions, and they should not be read as certainty.

This explainer therefore gives the chemistry and the thresholds that are stable, and stops short of personal diagnosis or treatment planning. If you suspect a cavity, the relevant next step is a professional examination, because visual and radiographic assessment is what distinguishes an active lesion from an arrested one. The value of understanding the mechanism is that it makes prevention and early action more legible, not that it replaces a clinician.