Cavities form when bacteria in your mouth feed on sugars and starches, producing acids that dissolve the minerals in your tooth enamel. This process doesn’t happen overnight. Most cavities take months to years to develop, progressing through distinct stages that start invisibly and gradually deepen into the tooth. Understanding each step helps explain why some people get cavities easily while others rarely do.
What Happens Inside Your Mouth
Your mouth is home to hundreds of species of bacteria, and some of them thrive on the same foods you eat. When you consume sugar, starch, or other carbohydrates, bacteria break those down and release organic acids as a byproduct. These acids lower the pH on your tooth surfaces, pulling calcium and phosphate out of your enamel in a process called demineralization.
Your body has a built-in defense system. Saliva constantly washes over your teeth, neutralizing acids with natural buffering agents like bicarbonate and phosphate. It also carries dissolved calcium and phosphate ions that redeposit onto enamel, repairing early damage. This back-and-forth between acid attack and mineral repair happens all day long. A cavity only forms when the balance tips toward damage, meaning your teeth lose minerals faster than saliva can replace them.
The Bacteria Behind It
One species in particular, Streptococcus mutans, is considered the primary driver of tooth decay. When sugar (especially sucrose) enters your mouth, these bacteria do two things. First, they ferment the sugar internally, producing acid. Second, they use enzymes to convert sucrose into sticky polymers of glucose called glucans. These glucans form the scaffolding of dental plaque, the soft film that clings to your teeth and traps bacteria right against the enamel surface.
Plaque is the real problem. Bacteria embedded in plaque are shielded from saliva’s rinsing and buffering effects. Acid concentrates directly on the tooth surface underneath the plaque, and saliva can’t easily reach that spot to deliver repair minerals. This is why cavities tend to form in places plaque accumulates: the grooves on your back teeth, the tight spaces between teeth, and along the gum line.
Foods That Feed the Process
Table sugar gets the most attention, but it’s not the only culprit. Any fermentable carbohydrate can serve as fuel for acid-producing bacteria. That includes honey, fruit juice, dried fruit, bread, crackers, chips, and other starchy snacks. Salivary enzymes start breaking down starches into simpler sugars right in your mouth, giving bacteria easy access to them.
Frequency matters more than quantity. Eating a handful of candy in one sitting causes a single acid attack that lasts roughly 20 to 30 minutes before saliva restores a neutral pH. But snacking on sugary or starchy foods throughout the day creates repeated acid attacks, keeping your mouth in an acidic state for hours and giving saliva no chance to catch up with repairs. Sipping soda, juice, or sweetened coffee over a long period has the same effect.
How a Cavity Progresses
Cavities don’t appear suddenly. They move through stages, and the earliest stage is actually reversible.
The first sign is a white spot lesion: a chalky, opaque patch on the enamel where minerals have been lost beneath the surface. At this point, the outer surface of the tooth is still intact. There’s no hole. With improved brushing, reduced sugar intake, and fluoride exposure, calcium and phosphate from saliva can redeposit into the weakened area and restore it. This is the only stage where a cavity can heal on its own.
If demineralization continues, the weakened enamel eventually collapses inward, creating an actual break in the surface. This is what most people picture when they hear the word “cavity.” Once a physical hole exists, bacteria enter the opening and the damage accelerates. The decay spreads into dentin, the softer layer beneath enamel, where it can progress more quickly because dentin is less minerite-dense. If it reaches the pulp, the innermost tissue containing nerves and blood vessels, the result is intense pain and the risk of a dental abscess.
How Long It Takes
There’s no single timeline because it depends on your diet, oral hygiene, saliva production, and fluoride exposure. In most people, a cavity takes several months to a few years to progress from the initial white spot to a hole that needs filling. Poor oral hygiene and frequent sugar consumption can speed things up considerably, while consistent brushing and fluoride use can slow or stop progression entirely. Cavities in baby teeth and in exposed root surfaces tend to develop faster because those structures are softer than adult enamel.
Why Some People Are More Vulnerable
Dry mouth is one of the biggest risk factors. Without adequate saliva flow, your mouth loses its primary defense: the ability to rinse away food particles, buffer acids, and deliver repair minerals to your teeth. Hundreds of common medications cause dry mouth as a side effect, including antihistamines, antidepressants, and blood pressure drugs. Breathing through your mouth while sleeping or snoring also dries out the oral environment, increasing plaque buildup and decay risk.
Other factors that raise your risk include:
- Receding gums: Exposed root surfaces lack the thick enamel layer that protects the crown of the tooth, making them far more susceptible to acid.
- Deep tooth grooves: The pits and fissures on molars can be narrow enough to trap food and bacteria but too tight for a toothbrush bristle to clean.
- Frequent snacking or sipping: Every exposure to carbohydrates restarts the acid cycle, compressing your mouth’s recovery time.
- Low fluoride exposure: Without fluoride, your enamel stays in its original mineral form, which dissolves more easily in acid.
How Fluoride Changes the Equation
Fluoride doesn’t just “strengthen” teeth in a vague sense. It changes the chemistry of your enamel. Tooth mineral is naturally made of hydroxyapatite. When fluoride is present during the remineralization process, it swaps into the crystal structure, replacing a hydroxyl group and forming fluorapatite. This modified mineral is physically smaller and more tightly packed at the atomic level, making it significantly more resistant to acid dissolution.
This is why fluoride toothpaste and fluoridated water are effective. They don’t need to be present in large amounts. Even low concentrations encourage your saliva to deposit the more acid-resistant version of enamel mineral during its natural repair cycles. The effect is ongoing: every time you brush with fluoride toothpaste, you’re giving your teeth a slightly harder surface to work with the next time acid attacks.
What Keeps Cavities From Forming
Since cavities are the result of a balance tipping in the wrong direction, prevention is about keeping that balance favorable. Brushing twice a day with fluoride toothpaste removes plaque before it can concentrate acid against your teeth. Flossing clears the tight spaces between teeth where a toothbrush can’t reach and where cavities frequently start. Limiting how often you eat or drink sugary and starchy foods reduces the number of acid attacks your teeth face each day.
Saliva is your most powerful natural protection. Staying hydrated, chewing sugar-free gum to stimulate saliva flow, and breathing through your nose at night all help maintain the conditions your mouth needs to repair itself. If you take medications that cause dry mouth, drinking water frequently and using saliva substitutes can partially compensate for the reduced flow.

