Cavities form when acid-producing bacteria on your teeth dissolve the mineral structure of enamel faster than your saliva can repair it. The process is not a single event but a slow tug-of-war between mineral loss and mineral gain, one that can take months or even years before a hole actually appears. Understanding the steps involved reveals why some teeth survive decades without a cavity while others seem to fall apart despite regular brushing.
The Bacterial Film That Coats Every Tooth
Within minutes of cleaning your teeth, a thin layer of salivary proteins and glycoproteins coats the enamel surface. This layer, called the acquired pellicle, is not harmful on its own, but it acts as a landing pad for bacteria. Certain receptors on salivary molecules become exposed only after those molecules stick to the tooth, essentially rolling out a welcome mat for the first wave of colonizers.1PubMed. Dental plaque as a biofilm
The earliest arrivals are mainly Actinomyces species, which dominate during the first couple of hours. Between two and six hours, streptococci begin to multiply and gradually take over a greater share of the community, while the Actinomyces population stays roughly constant rather than disappearing.2PubMed. Identification of early microbial colonizers in human dental biofilm Over the next days and weeks, this initial community evolves into a mature biofilm that can harbor more than 600 bacterial species, stacked in layers and communicating chemically with one another.3PubMed Central. The Biofilm Community-Rebels with a Cause
This biofilm, commonly called dental plaque, is remarkably resilient. It resists antibiotics far better than the same bacteria floating freely in saliva, and it clings tenaciously to the grooves, pits, and contact points between teeth where a toothbrush has the hardest time reaching. The biofilm itself is not inherently destructive. Problems begin only when its composition and chemistry shift in a direction that favors acid production.
How Bacteria Turn Sugar Into Acid
Among the hundreds of species living in plaque, Streptococcus mutans gets the most attention for good reason. It thrives on sucrose, converting it into organic acids through fermentation. Because S. mutans can attach directly to the mineral matrix of enamel, the acid it generates does not have to travel far. It is produced right at the tooth surface, in a tiny pocket where the local pH drops below the threshold at which enamel begins to dissolve.4PubMed Central. Streptococcus mutans, Caries and Simulation Models
That threshold sits at roughly pH 5.5 for hydroxyapatite, the primary mineral in enamel.5PubMed. Acid-induced demineralisation of human enamel as a function of time and pH observed using X-ray and polarised light imaging Every time you eat or drink something containing fermentable carbohydrates, bacteria in the biofilm begin producing acid, and the pH at the tooth surface plummets within minutes. This acid surge follows a predictable curve: the pH drops quickly, bottoms out, then gradually climbs back toward neutral as saliva buffers the acid and washes some of it away. The entire dip-and-recovery cycle typically lasts about 20 to 40 minutes per exposure.
One important wrinkle: the relationship between how much sugar you consume and how much acid the plaque produces is not a simple straight line. Studies measuring plaque pH after eating foods with varying sugar concentrations found that doubling the sugar in a food did not necessarily double the acid output.6International Dental Journal. The effect of different concentrations of sugars in two foods (yoghurts and baked beans) on plaque pH Frequency of exposure matters more than quantity per exposure. Sipping a sugary drink slowly over two hours creates many more acid attacks than drinking the same amount in five minutes.
Demineralization Up Close
Enamel is the hardest substance in the human body, but it is not invulnerable. It is made almost entirely of tightly packed hydroxyapatite crystals. When the pH at the tooth surface drops below about 5.5, hydrogen ions from the acid begin pulling calcium and phosphate ions out of the crystal structure, weakening it from the inside. Lab experiments exposing enamel to lactic acid at different pH levels found that mineral loss increases in a roughly linear fashion as acidity rises from pH 5.2 down to pH 4.0, with complete mineral loss occurring at the most acidic end over a three-week period.5PubMed. Acid-induced demineralisation of human enamel as a function of time and pH observed using X-ray and polarised light imaging
In real life, demineralization does not happen uniformly across the whole tooth. Grooves and fissures on the chewing surfaces of molars are especially vulnerable because their narrow shape traps plaque and makes mechanical cleaning difficult. Research on how tooth anatomy interacts with decay has found that the fissure region is particularly prone to mechanical degradation, with local damage shaped by the tooth’s own surface contours.7Biosurface and Biotribology. Influence of Natural Pathological Alterations on the Mechanical Properties and Microstructure of Human Enamel and Dentine This is why molars, with their complex surfaces, tend to develop cavities far more often than smooth-surfaced front teeth.
Your Saliva Fights Back
Demineralization would be catastrophic if the body had no countermeasure. Saliva is that countermeasure, and it works in several ways at once. It physically rinses acid and food debris away from tooth surfaces. It contains bicarbonate and other buffers that neutralize acid, raising the pH back above the critical threshold. And it carries dissolved calcium and phosphate ions that can re-deposit onto weakened enamel, essentially patching the damage through a process called remineralization.8PubMed Central. The role of salivary contents and modern technologies in the remineralization of dental enamel: a narrative review
Saliva also contains tiny clusters of calcium phosphate that can attach directly to the enamel surface and serve as mineral building blocks.9PubMed Central. The Remineralization of Enamel from Saliva: A Chemical Perspective When the acid challenge is brief and infrequent, saliva can fully repair early mineral loss before any permanent damage occurs. A cavity forms only when demineralization consistently outpaces remineralization over weeks and months.
From White Spot to Open Hole
The earliest visible sign of trouble is the white spot lesion, a chalky, opaque patch on the enamel surface. At this stage, the damage is happening below the surface: calcium and phosphate have been leached from the subsurface enamel while a thin layer of intact enamel remains on top. This subsurface decalcification is not detectable until it reaches a depth of roughly 400 micrometers, at which point it becomes visible as that characteristic white spot.10PubMed Central. Pathophysiology of Demineralization, Part II: Enamel White Spots, Cavitated Caries, and Bone Infection
White spot lesions are reversible. With improved oral hygiene, fluoride exposure, and reduced sugar intake, saliva can refill those subsurface voids with new mineral. Some early brown-spot lesions actually show enhanced mechanical properties compared to healthy enamel, likely because remineralization deposits extra mineral into the damaged zone.7Biosurface and Biotribology. Influence of Natural Pathological Alterations on the Mechanical Properties and Microstructure of Human Enamel and Dentine
If the balance does not shift, the thin surface layer eventually collapses, creating a physical hole in the enamel. Once bacteria have direct access to the softer dentin underneath, decay accelerates. Dentin dissolves at a higher pH than enamel, so even mild acid can do damage once the enamel barrier is breached. Left unchecked, the infection progresses toward the pulp, the soft tissue at the tooth’s core that contains nerves and blood vessels. Histological studies show that inflammation in the pulp begins as soon as the caries penetrates enamel, but it tends to remain localized. Even in teeth where the decay has reached and exposed the pulp, the tissue deeper in the root usually remains healthy and uninflamed.11PubMed. Vital pulp therapy: histopathology and histobacteriology-based guidelines to treat teeth with deep caries and pulp exposure This is why a tooth with deep decay can still be saved if treated before the infection spreads to the root tip and surrounding bone.
Why Some People Seem Cavity-Prone
If you have ever known someone who brushes rarely yet never gets cavities, or someone who is meticulous about hygiene and still ends up in the dentist’s chair, you have observed the role of individual variation. The cavity process depends on far more than sugar and brushing.
Saliva flow rate is one of the biggest differentiators. Older adults whose salivary glands produced the lowest flow rates had roughly 140 percent more cavities than those with higher flow rates.12PubMed Central. Salivary characteristics and dental caries: Evidence from general dental practices Anything that dries out the mouth shifts the balance toward demineralization. Hundreds of commonly prescribed medications list dry mouth as a side effect, including antidepressants, antihistamines, and blood pressure drugs. Radiation therapy to the head and neck can permanently damage salivary glands; one study of patients who had undergone cell transplantation found that those with severe dry mouth were about twice as likely to need extensive dental treatment compared to patients with normal saliva flow.13PubMed Central. Salivary flow rate, subjective oral dryness and dental caries 5 years after haematopoietic cell transplantation
Genetics also plays a part. Twin and family studies suggest that somewhere between 40 and 60 percent of a person’s susceptibility to cavities can be attributed to genetic factors, including variations in genes that control enamel formation and the composition of antimicrobial proteins in saliva.14PubMed Central. Evidence of a contribution of genetic factors to dental caries risk. This does not mean that some people are “born to get cavities,” but it does mean the deck is not evenly shuffled.
Different Ages, Different Vulnerabilities
Young children face a specific version of decay called early childhood caries, which is tied closely to how and when cavity-causing bacteria first colonize a child’s mouth. Mothers with higher levels of Streptococcus mutans in their saliva are more likely to pass those bacteria to their children, and the children of high-bacterial-load mothers had nearly double the rate of cavities compared to children of mothers with lower bacterial levels.15PubMed Central. Maternal oral bacterial levels predict early childhood caries development Feeding practices add another layer of complexity. Prolonged bottle-feeding with sugary liquids, especially at bedtime when saliva flow drops, is a well-known accelerant, though the overall picture involves a tangle of biological and social factors including enamel quality, sugar intake, and family socioeconomic status.16PubMed Central. Early childhood caries update: A review of causes, diagnoses, and treatments
At the other end of the age spectrum, older adults face a growing risk of root caries. As gums recede with age or periodontal disease, the root surfaces of teeth become exposed. Root surfaces are covered in cementum, not enamel, and cementum dissolves at an even higher pH than dentin. Combined with the dry mouth that often accompanies aging and medication use, the result is a sharp uptick in root decay.17PubMed Central. Elderly at greater risk for root caries: a look at the multifactorial risks with emphasis on genetics susceptibility A large cross-sectional study found that people aged 65 to 74 had roughly three-and-a-half times the odds of having decayed roots compared to those aged 35 to 44, and significant gum attachment loss further compounded the risk.18PubMed Central. The prevalence and common risk indicators of root caries and oral health service utilization pattern among adults, a cross-sectional study
How Fluoride Tilts the Chemistry
Fluoride’s role in cavity prevention is often described vaguely as “strengthening enamel,” but the actual mechanism is more interesting. When fluoride ions are present during remineralization, they can substitute for hydroxyl ions in the hydroxyapatite crystal. Because fluoride ions are smaller, the resulting crystal, called fluorapatite, packs more tightly and has a lower solubility. In practical terms, fluorapatite does not start dissolving until the pH drops well below the 5.5 threshold that attacks ordinary enamel.19PubMed Central. How Fluoride Protects Dental Enamel from Demineralization
Even at low concentrations, fluoride drives the formation of this more acid-resistant mineral. The process is thermodynamic: the fluorapatite crystal is simply more stable than plain hydroxyapatite whenever fluoride is available, so the chemistry naturally favors its formation.20PubMed. Mechanistic aspects of the interactions between fluoride and dental enamel This is why fluoride toothpaste helps even if you did not drink fluoridated water as a child. The benefit is primarily topical, not systemic. Fluoride applied directly to the tooth surface during brushing participates in the remineralization process right where it is needed.
Sealants, Xylitol, and Other Interventions
Because fissures and pits on molar surfaces are so vulnerable, physically sealing them off is one of the most effective preventive measures available, especially for children. A Cochrane review of resin-based sealants on permanent molars in children aged five to ten found dramatic reductions in decay. In a group where 40 percent of unsealed teeth would develop cavities within two years, sealing dropped that figure to about 6 percent.21PubMed Central. Pit and fissure sealants for preventing dental decay in permanent teeth The protective effect persisted at four years of follow-up, though fewer studies tracked outcomes that far out.
Xylitol, a sugar alcohol used in some chewing gums and mints, takes a different approach. Cavity-causing bacteria can absorb xylitol but cannot ferment it for energy, which disrupts their metabolism. A meta-analysis concluded that xylitol-containing products significantly reduced cavities compared to non-xylitol controls.22PubMed Central. Meta-analysis on the Effectiveness of Xylitol in Caries Prevention Xylitol also reduces the levels of Streptococcus mutans in both plaque and saliva.23PubMed Central. Xylitol in preventing dental caries: A systematic review and meta-analyses The effect is modest and works best as part of a broader routine rather than as a substitute for brushing or fluoride, but for people at high risk, adding a xylitol gum after meals is a low-effort strategy with real evidence behind it.
Catching Decay Before It Becomes a Cavity
Traditional X-rays can detect cavities, but typically only once the damage is well established. Newer diagnostic tools aim to catch the process earlier, during the reversible white-spot stage. One technique called quantitative light-induced fluorescence, or QLF, shines a specific wavelength of light on the tooth and measures how the fluorescence changes. Healthy enamel fluoresces brightly; demineralized enamel does not. The difference can be digitized and tracked over time, giving a dentist a quantitative measure of mineral loss well before a hole forms.24PubMed. Application of quantitative light-induced fluorescence for assessing early caries lesions Studies have confirmed that QLF reliably detects caries in both baby teeth and permanent teeth, providing visual images and numerical data that make it easier to decide whether a lesion is progressing or stabilizing.25PubMed. The diagnostic efficacy of quantitative light-induced fluorescence in detection of dental caries of primary teeth
Detection at this stage matters because treatment can be non-invasive. A white spot lesion identified early can be managed with fluoride varnish, improved hygiene, and dietary changes rather than a drill and filling. The old model of waiting until a cavity was visible and then drilling it out is gradually being replaced by a monitor-and-intervene approach for initial and moderate lesions.26PubMed. Detection and monitoring of early caries lesions: a review
Biomimetic Repair and What Comes Next
Beyond fluoride, researchers are exploring materials that mimic what saliva does naturally but do it faster and more reliably. One of the most studied is casein phosphopeptide-amorphous calcium phosphate, usually abbreviated CPP-ACP and sold under brand names in some toothpastes and dental creams. CPP-ACP works by stabilizing calcium and phosphate ions in a form that stays dissolved and available near the tooth surface, releasing those ions when the local environment becomes acidic.27PubMed Central. A comparative evaluation of human enamel remineralization ability of biomimetic nacre against casein phosphopeptide-amorphous calcium phosphate: An in vitro study Essentially, it acts like a concentrated version of the mineral-repair system saliva already provides.
Another line of research involves self-assembling peptides, short chains of amino acids designed to form a scaffold on the enamel surface where new hydroxyapatite crystals can grow. Lab studies have shown that these peptides promote remineralization of subsurface lesions, effectively rebuilding enamel structure from within.28PubMed Central. Methods for Biomimetic Mineralisation of Human Enamel: A Systematic Review Most of this work is still in early-stage testing, but the goal is ambitious: reversing decay that has already started, without removing any tooth structure. If these materials prove effective in large clinical trials, they could shift dental care further away from the drill-and-fill model and toward genuine biological repair.