Cavities form when acids dissolve the mineral structure of your teeth faster than your body can repair it. The outer layer of each tooth, called enamel, is the hardest tissue in the human body, made up of 96% mineral crystal. But it has a critical weakness: it starts to dissolve at a pH of about 5.5, which is only mildly acidic. Every time you eat or drink something sugary or starchy, bacteria in your mouth convert those carbohydrates into acids that push past that threshold, and the damage begins.
How Bacteria Turn Food Into Acid
Your mouth is home to hundreds of bacterial species, but a handful are especially good at causing cavities. The primary culprit is a bacterium called Streptococcus mutans, which thrives on sugar. When you eat carbohydrates, S. mutans and related species like Lactobacillus ferment those sugars and produce organic acids as a byproduct. These acids pool against the tooth surface, dropping the local pH well below the 5.5 threshold where enamel dissolves.
What makes these bacteria particularly effective at causing decay is a three-part skill set. They produce acid efficiently, they tolerate the acidic environment they create (most other oral bacteria can’t survive it), and they build a sticky, protective film called biofilm, commonly known as plaque. This biofilm acts like a shield, trapping acids directly against the enamel and preventing saliva from washing them away. Over time, the bacterial community inside plaque shifts to favor more acid-producing, acid-tolerant species, creating a self-reinforcing cycle that accelerates decay.
The Dissolving Process
Enamel’s mineral structure is a crystal called hydroxyapatite. When acid contacts it, calcium and phosphate ions are pulled out of the crystal lattice and dissolved into the surrounding fluid. This process is called demineralization, and it happens on a microscopic scale every time you eat. At a pH of 4.0, research using X-ray imaging has shown complete mineral loss in the center of affected areas within just three weeks.
The good news is that this process is reversible in its early stages. Your saliva naturally contains calcium, phosphate, and bicarbonate, which neutralize acids and resupply the minerals enamel needs to rebuild. After a meal, as your saliva gradually raises the pH back above 5.5, minerals can redeposit into the weakened enamel structure. This back-and-forth between mineral loss and mineral gain happens all day long. A cavity only forms when the balance tips consistently toward loss.
The earliest visible sign of this imbalance is a white spot lesion: a chalky, opaque patch on the tooth surface where the subsurface enamel has lost minerals but the outer layer is still intact. At this stage, the damage can still be reversed with improved hygiene and fluoride exposure. Once the outer surface breaks down, though, the decay progresses into a true cavity that requires a filling to repair.
Why Some People Get More Cavities
Cavity risk isn’t just about brushing habits. Several factors determine how often and how severely the acid balance tips against you.
Frequent snacking and sipping. Every time carbohydrates enter your mouth, bacteria produce acid for roughly 20 to 30 minutes. If you eat three meals a day, that’s a manageable number of acid attacks. If you sip sugary coffee or snack throughout the day, your teeth are under near-constant acid exposure with little recovery time between episodes.
Dry mouth. Saliva is your primary natural defense. It rinses away food particles, neutralizes acid with its bicarbonate content, and delivers the calcium and phosphate that rebuild enamel. Anything that reduces saliva flow dramatically increases cavity risk. The American Dental Association identifies medication-induced dry mouth as a significant risk factor for dental caries. Medications with anticholinergic properties are common offenders because they directly interrupt the nerve signals that stimulate saliva production. Antihistamines, certain antidepressants, blood pressure medications, and many others can have this effect. If you’ve started a new medication and your mouth feels persistently dry, that’s worth paying attention to.
Diet composition. Sticky carbohydrates that cling to teeth (dried fruit, crackers, candy) give bacteria a longer food supply than foods that are quickly rinsed away. Acidic drinks like soda, citrus juice, and sports drinks lower the pH in your mouth directly, doing damage even before bacteria get involved.
Saliva chemistry and bacterial load. Some people naturally produce saliva with more buffering capacity or higher mineral content, giving their teeth a stronger repair mechanism. Others harbor larger colonies of cavity-causing bacteria, often established in childhood through contact with caregivers who had active decay.
How Fluoride Changes the Equation
Fluoride works by integrating into enamel’s mineral structure, creating a modified crystal that is more resistant to acid and dissolves at a lower pH than untreated enamel. It also promotes remineralization: when fluoride is present in saliva during the repair phase, minerals redeposit into weakened enamel more efficiently.
The World Health Organization recommends toothpaste containing between 1,000 and 1,500 ppm of fluoride for all age groups, noting that toothpastes with less than 1,000 ppm lack evidence of a cavity-preventive effect. That means children’s toothpastes marketed as “low fluoride” may not actually protect teeth. WHO guidance recommends using regular-strength fluoride toothpaste from the moment teeth first appear, with the amount adjusted by age: a rice grain-sized smear for children under 3, a pea-sized amount for ages 3 to 6, and a pea-sized amount for everyone older. One practical detail that matters: avoid rinsing with water after brushing, since this washes away the fluoride before it has time to work.
What Actually Prevents Cavities
Understanding the acid cycle makes prevention straightforward, even if not always easy. The goal is to reduce acid exposure and maximize your mouth’s ability to recover.
- Limit how often you eat and drink sugary or starchy foods, not just how much. Five small sips of soda spread over two hours cause more damage than drinking the same amount in one sitting, because each sip restarts the acid clock.
- Brush twice daily with fluoride toothpaste at the WHO-recommended concentration of at least 1,000 ppm. Spit, but don’t rinse afterward.
- Clean between teeth daily. Plaque accumulates in the tight spaces between teeth where toothbrush bristles can’t reach. These contact points are one of the most common sites for cavities to start.
- Stay hydrated. Drinking water throughout the day supports saliva production and helps rinse away food debris. If you take medications that cause dry mouth, sugar-free gum or lozenges can help stimulate saliva flow.
Cavities are not inevitable. They’re the end result of a chemical process that depends on time, acid, bacteria, and opportunity. Each of those is something you can influence, which is why small, consistent habits make a bigger difference than occasional deep cleans.

