A dental cavity is a permanent area of damage in the hard surface of a tooth, caused by acids that bacteria in your mouth produce when they feed on sugars. The process starts invisibly, with minerals dissolving out of tooth enamel, and can progress through the entire tooth structure if it goes unchecked. Cavities are among the most common chronic diseases in the world, yet the biology behind them is more dynamic than most people realize, involving a tug-of-war between acid attacks and your saliva’s natural repair system.
How a Cavity Actually Forms
Your teeth are constantly coated in a thin film of bacteria called dental plaque, a structured community of microorganisms that colonizes tooth surfaces in an organized sequence. Initial colonizing bacteria attach to a protein layer on your enamel, and additional species pile on through cell-to-cell adhesion. Although more than 500 bacterial species can be found in plaque, a healthy mouth keeps this community in a stable balance where no single group dominates.1PubMed. Dental plaque formation
Trouble starts when you eat or drink something sugary or starchy. Certain bacteria in plaque, especially acid-producing species like mutans streptococci and lactobacilli, convert those fermentable carbohydrates into organic acids. Those acids lower the pH at the tooth surface. When the pH drops below roughly 5.5, a threshold often called the “critical pH” for enamel, the mineral crystals in your tooth begin to dissolve.2Science and Innovation. Mechanism of Dental Enamel Demineralization: The Role of Organic Acids, pH, and Hydroxyapatite Dissolution That 5.5 figure is widely cited, but it is not a fixed universal number. It shifts depending on the concentrations of calcium, phosphate, and fluoride in your saliva and at the tooth surface.3PubMed. Acid-induced demineralisation of human enamel as a function of time and pH observed using X-ray and polarised light imaging
After an acid attack, saliva steps in. It rinses away food debris, neutralizes acids through its buffering capacity, and delivers calcium and phosphate ions back to the enamel surface, essentially patching up early mineral loss. This is called remineralization, and it is why cavities do not form after a single snack. The process only becomes destructive when acid attacks happen too often or last too long for saliva to keep up. Repeated episodes of mineral loss eventually outpace the repair, and the enamel starts to break down structurally.4PubMed Central. Saliva as a biomarker for dental caries: A systematic review
When the balance tips toward disease, the bacterial community itself changes. Acid-tolerant species thrive in the low-pH environment they create, which drives the pH even lower and favors still more acid-tolerant organisms. A healthy, diverse plaque community shifts toward one dominated by cavity-causing bacteria, a self-reinforcing cycle that accelerates damage once it gets rolling.5PubMed Central. Dental plaque as a biofilm and a microbial community – implications for health and disease
The Stages of a Cavity
Cavities do not appear overnight. They progress through recognizable stages, and the earlier you catch the process, the more reversible it is.
White Spot Lesions
The earliest visible sign is a white spot on the enamel, an area where minerals have been lost but the surface has not yet broken. These white spot lesions are common, with reported prevalence ranging between about 10% and 49% depending on the population studied. They are especially frequent in people wearing braces, where plaque tends to collect around brackets.6PubMed Central. White spot lesions: diagnosis and treatment – a systematic review At this stage, the damage can still be reversed with fluoride treatments, improved hygiene, and diet changes. No drilling is needed.
Enamel Cavitation
If mineral loss continues, the enamel surface eventually collapses inward, creating a physical hole. Once you can see or feel a rough spot or small pit, the tooth structure is permanently broken. The cavity is still confined to the enamel layer at this point, and treatment is relatively straightforward, usually a small filling.
Dentin Involvement
Beneath the enamel lies dentin, a softer, more porous tissue. Once the cavity breaks through enamel, bacteria and acid spread faster through dentin because its structure contains tiny tubes (dentinal tubules) that provide pathways deeper into the tooth. The decay pattern in dentin involves the tubule walls hardening first in a defensive response, followed by demineralization of the surrounding tissue and then bacterial invasion along the tubules.7PubMed. Structural events in the caries process in enamel, cementum, and dentin This is often the stage where you start feeling sensitivity to hot, cold, or sweet foods, because dentin sits closer to the nerve.
Pulp Involvement and Beyond
At the tooth’s core is the pulp, which contains blood vessels and nerves. When bacteria reach the pulp, a localized inflammatory response develops almost immediately. Histological studies show that even when the surface of the pulp is inflamed and infected, the deeper pulp tissue often remains healthy, which is why treatments that remove only the diseased portion can sometimes save the tooth.8PubMed. Vital pulp therapy: histopathology and histobacteriology-based guidelines to treat teeth with deep caries and pulp exposure However, if the infection continues unchecked, inflammation can escalate past the point of no return, leading to pulp death and requiring root canal treatment or extraction.9PubMed Central. Understanding dental pulp inflammation: from signaling to structure Rapidly advancing decay is particularly dangerous because the tooth does not have time to mount a protective response by laying down new dentin.10PubMed. The caries process and its effect on the pulp: the science is changing and so is our understanding
Why Some People Get More Cavities Than Others
If you have ever wondered why your friend who barely flosses has perfect teeth while you get a new filling every year, several factors beyond brushing habits are at play.
Saliva quality varies from person to person. People with higher salivary flow rates, stronger buffering capacity, and a more neutral resting pH tend to have fewer cavities. A study comparing children with no cavities to those with active decay found that caries-free children had significantly higher salivary buffering capacity.11PubMed Central. Evaluation of pH, buffering capacity, viscosity and flow rate levels of saliva in caries-free, minimal caries and nursing caries children: An in vivo study Medications that cause dry mouth, radiation therapy to the head and neck, and certain autoimmune conditions all reduce saliva production and can sharply increase cavity risk.
Genetics also matters more than people expect. Meta-analyses have found that variations in genes responsible for enamel formation, like the AMELX gene, are associated with dental caries susceptibility. Multiple variants across several enamel-building genes appear to jointly contribute to cavity risk.12PubMed Central. Association of genetic variants in enamel-formation genes with dental caries: A meta- and gene-cluster analysis Other research has explored links between early childhood cavities and gene variants affecting enamel proteins, taste preferences, and immune response.13PubMed Central. Association of polymorphisms in genes involved in enamel formation, taste preference and immune response with early childhood caries in Saudi pre-school children None of this means cavities are predetermined, but it does mean that some people start with enamel that is structurally more vulnerable to acid.
The cavity-causing bacteria themselves can be passed from one person to another. Systematic review evidence confirms that mothers vertically transmit Streptococcus mutans to their children, and genotyping studies have found matching bacterial strains in mother-child pairs with a high degree of similarity.14PubMed. Mother-to-child transmission of Streptococcus mutans: a systematic review and meta-analysis15PubMed Central. Transmission of mutans streptococci in mother-child pairs This is why pediatric dental guidelines have historically recommended that parents avoid sharing utensils with infants, though the practical impact of trying to prevent all transmission is debated.
Diet and Cavities
Most people know that sugar causes cavities, but how often you eat sugar turns out to be more important than how much you eat in a single sitting. Each time you consume something fermentable, bacteria produce a fresh wave of acid, and the pH at the tooth surface drops for roughly 20 to 40 minutes. Someone who sips a sugary drink slowly over three hours exposes their teeth to a nearly continuous acid bath, while someone who drinks the same amount in five minutes gives their saliva a chance to recover. Research confirms that reducing frequency without reducing amount is more effective for cavity prevention than doing it the other way around.16PubMed Central. Sugar Restriction for Caries Prevention: Amount and Frequency. Which Is More Important? Sticky foods that cling to tooth surfaces extend the exposure time and make the problem worse.
How Cavities Are Detected
Dentists use a combination of visual examination and imaging to spot cavities. Your dentist may notice changes in enamel color, texture, or surface integrity during a standard exam, which works well for catching early enamel lesions on visible surfaces. For cavities between teeth, where your toothbrush and eyes cannot reach, bitewing X-rays are the gold standard. Digital bitewing radiography achieves some of the highest sensitivity and accuracy for detecting both enamel and dentin cavities, outperforming other methods for spotting decay between back teeth.17PubMed. Clinical performance of clinical-visual examination, digital bitewing radiography, laser fluorescence, and near-infrared light transillumination for detection of non-cavitated proximal enamel and dentin caries
Newer technologies like laser fluorescence devices work by shining a light on the tooth and measuring fluorescence that changes when decay is present. These tools can be useful for certain surfaces, such as the chewing surfaces of molars, where they have shown high specificity, meaning they are good at confirming a tooth is healthy when it actually is.18PubMed Central. Pen-type laser fluorescence device versus bitewing radiographs for caries detection on approximal surfaces But no single tool catches everything. Dentists typically combine methods, using visual inspection for accessible surfaces and radiographs for hidden ones.
Treatment Options by Severity
The right treatment depends almost entirely on how far the cavity has progressed.
- Remineralization: For white spot lesions that have not yet broken the enamel surface, fluoride varnishes, prescription-strength fluoride toothpaste, and careful attention to diet can reverse the damage without any drilling.
- Fillings: Once the enamel has cavitated, a dentist removes the decayed material and fills the space. Composite resin (tooth-colored) fillings and glass ionomer cements are the most commonly used materials. A two-year clinical trial comparing glass ionomer and bulk-fill composite in permanent molars found that both performed well, with the composite achieving a perfect survival rate and the glass ionomer reaching about 97% over two years, though the glass ionomer showed more surface wear.19PubMed Central. Evaluation of Glass-Ionomer versus Bulk-Fill Resin Composite: A Two-Year Randomized Clinical Study
- Crowns: When a cavity has destroyed so much tooth structure that a filling would not be stable, a crown covers and protects the remaining tooth.
- Root canal: If bacteria have reached and killed the pulp, the infected tissue is removed from inside the root canals, the space is sealed, and the tooth is typically crowned afterward.
- Extraction: Teeth damaged beyond repair need to be pulled. The gap can be restored with an implant, bridge, or partial denture.
Prevention Strategies That Work
Fluoride remains the single most evidence-backed intervention for cavity prevention. It works by promoting the formation of a more acid-resistant mineral structure on the enamel surface and by encouraging the redeposition of calcium and phosphate when remineralization is happening.20PubMed. Current concepts on the theories of the mechanism of action of fluoride This is why fluoride toothpaste, fluoridated drinking water, and professional fluoride applications all reduce cavity rates.
Dental sealants are another well-studied preventive measure, especially for children. A thin resin coating is painted into the pits and grooves on the chewing surfaces of back teeth, physically blocking bacteria and food from settling in. A Cochrane review found moderate-quality evidence that sealants reduced cavities by roughly 11% to 51% at two years compared to unsealed teeth.21PubMed Central. Pit and fissure sealants for preventing dental decay in permanent teeth The benefit persists at longer follow-up periods, though the evidence thins out over time. Sealants can also be placed over early enamel lesions to halt their progression.22PubMed Central. A concise review of dental sealants in caries management
Xylitol, a sugar alcohol found in many sugar-free gums and mints, has a specific anti-cavity mechanism. Oral bacteria cannot metabolize xylitol into acid the way they do with regular sugar. Chronic use of xylitol-sweetened gum has been shown to reduce plaque buildup and suppress mutans streptococci populations.23PubMed. Cariologic aspects of xylitol and its use in chewing gum: a review24PubMed Central. The effect of xylitol on dental caries and oral flora It is not a replacement for brushing and fluoride, but it is a useful addition, especially for people who snack frequently and want to stimulate saliva flow between meals.
Silver Diamine Fluoride
Silver diamine fluoride (SDF) is worth its own discussion because it represents a fundamentally different approach. Rather than drilling out decay and filling the space, SDF is a liquid painted onto an active cavity to stop it in its tracks. It combines high concentrations of silver, which kills bacteria, with fluoride, which promotes remineralization. The result is that active cavities can be arrested and the damaged tooth structure partially remineralized, all without anesthesia, drilling, or a dental chair visit that terrifies a three-year-old.25PubMed Central. Clinical and primary evidence of silver diamine fluoride on root caries management
SDF has gained traction for two groups in particular: young children who cannot tolerate traditional dental procedures and older adults with root cavities. For root caries in elderly patients, where access to care and cooperation with extensive treatment can be limited, SDF offers a practical, painless option.26PubMed Central. Silver Diamine Fluoride in Preventing Caries: A Review of Current Trends The trade-off is cosmetic: SDF permanently stains the treated area black. On a baby tooth that will fall out anyway or a root surface that is not visible when someone smiles, many patients and parents accept the staining. On a front tooth in an adult, it is a harder sell.
What Happens When Cavities Go Untreated
An untreated cavity does not stay the same size. It progresses through the stages described earlier, and once the pulp dies, infection can spread beyond the tooth into the surrounding bone and soft tissues. A periapical abscess, a pocket of pus at the root tip, is the most common result. These abscesses are caused by a mix of bacteria and typically require antibiotics alongside drainage or root canal treatment.27PubMed Central. Antimicrobial management of dental infections: Updated review
In rare but serious cases, the infection spreads further. Deep neck infections, including abscesses in the spaces around the throat, are among the most dangerous complications. These can obstruct the airway, spread downward into the chest, cause blood clots in major veins, or trigger sepsis.28PubMed Central. From Dental Decay to Systemic Failure: The Overlooked Consequences of Poor Oral Health A review of severe dental infection complications also documented cases of brain abscess, a dangerous inflammation in the chest cavity called mediastinitis, and a flesh-destroying condition called necrotizing fasciitis.29PubMed Central. Complications of Severe Odontogenic Infections: A Review These outcomes are uncommon in people with access to dental care, but they do happen, particularly in settings where treatment is delayed or unavailable.
Socioeconomic Patterns in Untreated Decay
The burden of untreated cavities is not evenly distributed. Global analysis of the disease shows a clear social gradient: less economically developed countries consistently have higher rates of untreated decay in baby teeth.30PubMed Central. Structural determinants of inequalities in untreated dental caries in the Global Burden of Disease Study Even within a single country, the gap can be stark. In a series of three birth cohorts tracked in southern Brazil across two decades, the risk of untreated cavities in children from the poorest families compared to the wealthiest grew from about 1.4 times higher in 1993 to over four times higher by 2015.31PubMed. Two decades of socioeconomic inequalities in the prevalence of untreated dental caries in early childhood: Results from three birth cohorts in southern Brazil
That widening inequality is one reason public health strategies like water fluoridation and school-based sealant programs exist. They deliver preventive benefits to children regardless of whether their families can afford or access a private dentist. The science behind cavities is well understood at this point, and effective prevention tools are available. The harder problem, and the one that explains why cavities remain one of the world’s most prevalent diseases, is getting those tools to the people who need them most.