Tooth cavities are caused by acid-producing bacteria that feed on sugars and starches left on your teeth. These bacteria create acids that dissolve tooth enamel over time, eventually forming holes in the tooth structure. About one in four American adults has at least one untreated cavity right now, and the process behind every single one follows the same basic pattern: bacteria, acid, mineral loss, and eventually a hole.
How Bacteria Turn Sugar Into Acid
Your mouth contains hundreds of bacterial species, but one stands out as the primary driver of cavities: a bacterium called Streptococcus mutans. This microbe thrives on sugars, especially sucrose (table sugar), and produces large amounts of acid as a byproduct of digesting them. It also manufactures a sticky, water-insoluble coating that helps it cling to tooth surfaces and resist being washed away by saliva.
Every time you eat or drink something containing sugar or starch, these bacteria begin producing acid within minutes. That acid lowers the pH on the tooth surface. When the pH drops to about 5.5 or below, the minerals in your enamel, primarily calcium and phosphate, start dissolving out of the tooth structure. This process is called demineralization, and it’s the very first step toward a cavity.
How Your Saliva Fights Back
Your body has a built-in defense system: saliva. It’s about 98% water, but the remaining 2% contains buffering agents (bicarbonate and phosphate compounds), antibacterial enzymes, and dissolved calcium and phosphate ions. After you finish eating, saliva gradually neutralizes the acid in your mouth and supplies the raw minerals your teeth need to repair early damage. A healthy resting salivary pH sits around 6.7.
This repair process, called remineralization, can actually reverse the earliest stage of decay before a cavity ever forms. The problem starts when acid attacks happen too frequently or last too long for saliva to keep up. Snacking throughout the day, sipping sugary drinks over hours, or having reduced saliva flow all tip the balance toward mineral loss.
Why Some Teeth Decay Faster Than Others
Not every tooth surface faces the same risk. The deep grooves and pits on the chewing surfaces of your molars are particularly vulnerable. These fissures make up only about 12.5% of all tooth surfaces, yet they account for 88% of cavities in children. The grooves can be narrow enough that toothbrush bristles can’t reach the bottom, creating sheltered pockets where bacteria accumulate and acid sits undisturbed. First and second permanent molars are the teeth most susceptible to this type of decay.
The areas between teeth are another common trouble spot, since food and plaque build up in spaces that only flossing can reach. Teeth near the gumline are also at risk, especially in older adults whose gums have receded to expose the root surface. Root surfaces lack the thick enamel layer that protects the crown, so they break down more quickly once exposed to acid.
The Stages of a Cavity Forming
Cavities don’t appear overnight. They progress through distinct stages, and catching them early makes a real difference.
The first visible sign is a white spot on the tooth, a chalky, opaque patch where minerals have started leaching out of the enamel. These white spot lesions are not yet cavities. They can be actively losing minerals, in the process of repairing, or completely arrested. At this stage, the damage is still reversible with improved oral hygiene, fluoride exposure, and dietary changes.
If demineralization continues, the weakened enamel breaks down further. The white spot may darken to brown, and small holes begin forming in the enamel surface. This is the stage most people think of as “getting a cavity,” and it requires a filling to repair because the tooth can no longer heal itself.
Once decay penetrates through the enamel, it reaches the dentin, the softer tissue underneath. Dentin breaks down faster than enamel because it’s less minerite-dense, and it contains tiny tubes that connect to the tooth’s nerve. This is when you start noticing sensitivity to hot, cold, or sweet foods. Left untreated, the decay eventually reaches the innermost pulp, which contains the nerve and blood supply. At that point, you’re looking at severe pain, possible infection, and the need for a root canal or extraction.
Sugar Frequency Matters More Than Amount
One of the most important things to understand about cavities is that how often you eat sugar matters more than how much you eat at once. Each time sugar enters your mouth, bacteria produce acid and the pH on your tooth surfaces drops below the critical 5.5 threshold. It takes your saliva roughly 20 to 30 minutes to neutralize the acid and bring the pH back to safe levels.
If you eat a candy bar in five minutes and then don’t eat again for hours, your teeth experience one acid attack followed by a long recovery period. But if you sip a sugary coffee over three hours or snack on crackers every 30 minutes throughout the afternoon, your teeth are under near-constant acid exposure with almost no recovery time. The total sugar consumed might be similar, but the damage from frequent exposure is dramatically greater.
Dry Mouth Is a Major Hidden Risk
Because saliva is your primary natural defense against cavities, anything that reduces saliva flow raises your risk substantially. The most common cause of chronic dry mouth is medication. Antidepressants, antipsychotics, anticonvulsants, anti-anxiety drugs, sedatives, blood pressure medications, and antihistamines can all reduce saliva production. In one review of psychiatric medications, 91% of the drugs examined caused dry mouth as a side effect, with antidepressants being the worst offenders at 96%.
Other causes of dry mouth include mouth breathing (especially during sleep), radiation therapy to the head or neck, autoimmune conditions that affect the salivary glands, and simple dehydration. People with chronically dry mouths can develop cavities at an alarming pace, sometimes in locations that rarely decay otherwise, like the front surfaces or biting edges of teeth.
What Fluoride Actually Does
Fluoride protects teeth by integrating into the mineral structure of enamel. Your tooth enamel is made of a mineral called hydroxyapatite. When fluoride is present during remineralization, it gets incorporated into the crystal structure, creating a modified mineral called fluorapatite. This fluoride-containing version is significantly more resistant to acid dissolution than the original, meaning your teeth can withstand a lower pH before minerals start dissolving.
Fluoride works best when it’s present in your mouth regularly at low concentrations, which is why fluoride toothpaste used twice daily is more effective than occasional high-dose treatments. It also has a mild antibacterial effect, interfering with the ability of cavity-causing bacteria to produce acid.
Other Factors That Raise Your Risk
Beyond bacteria, diet, and saliva, several other factors influence whether you develop cavities:
- Acid reflux: Stomach acid that reaches the mouth bathes teeth in acid far stronger than anything bacteria produce, eroding enamel and making it more vulnerable to decay.
- Receding gums: Exposed root surfaces lack enamel’s protective thickness and decay more easily.
- Existing dental work: The margins where fillings or crowns meet natural tooth structure can develop gaps over time, creating spaces where bacteria collect.
- Orthodontic appliances: Braces, wires, and retainers create additional surfaces for plaque to accumulate and make thorough brushing more difficult.
- Genetics: Tooth shape, enamel thickness, saliva composition, and the specific mix of bacteria in your mouth all have genetic components. Some people are genuinely more cavity-prone than others despite similar habits.
Cavities remain one of the most common chronic diseases worldwide, but they’re also one of the most preventable. The core equation is straightforward: reduce acid exposure by limiting sugar frequency, remove bacterial plaque through brushing and flossing, support remineralization with fluoride, and keep saliva flowing. When those factors stay in balance, the constant microscopic battle between mineral loss and mineral repair tips in your teeth’s favor.

