Cavities don't just happen overnight. They develop through a series of steps, and understanding how they form helps you prevent them. The process usually takes 3-6 months but can happen faster if you have bad bacteria in your mouth and eat sugar a lot.
The good news? You can stop the process at almost any stage if you catch it early.
The Bacteria That Cause Cavities
Your mouth is full of bacteria—most of them are harmless or even helpful. But a few species, especially Streptococcus mutans, cause cavities. These bacteria gather together on your teeth, forming a sticky community called biofilm (also called plaque). Think of it like a neighborhood where bacteria live together, communicate with each other, and work together to attack your teeth.
New bacteria start sticking to your teeth after you eat, and within 6-8 hours, they start forming communities. By 24 hours, there's a thick layer of biofilm that's almost 300 micrometers thick. This layer protects the bacteria inside from your saliva and your toothbrush. The bacteria inside the biofilm can produce a lot of acid—sometimes pH 3 or even lower, way more acidic than you'd think from just a thin layer of plaque.
Lactobacillus bacteria also play a role, but they're usually secondary. They show up once cavity-causing bacteria have already created the acidic environment they love.
How Acid Eats Your Tooth
Here's what happens when you eat sugar: the bacteria in your biofilm go to work. Within 2-3 minutes, they've turned the sugar into lactic acid. Your tooth's enamel starts dissolving at pH 5.5 and below—that's how acidic your mouth becomes.
Your tooth enamel is made of something called hydroxyapatite crystals, which contain calcium and phosphate. Acid causes these crystals to fall apart. The process starts at the edges of the crystals. Small crystals disappear completely, leaving spaces between the bigger crystals. This creates a white spot lesion—a chalky-looking spot that means damage is happening inside the tooth, even though there's no hole yet.
Acid production keeps going as long as the bacteria have sugar to eat. Every time you eat sugar, you get about 20-30 minutes of acid attack. If you snack multiple times a day, your mouth never gets a break to recover. That's why snacking on sugary stuff constantly is way worse than eating dessert once at lunch.
The Good News: Your Saliva Can Repair Damage
Your saliva is amazing. It neutralizes the acid and brings calcium and phosphate back to the damaged areas of your tooth. This process is called remineralization, and it's the opposite of demineralization. If you give your tooth time to recover—by not eating sugary stuff constantly—the early damage can actually reverse itself.
Here's the catch: remineralization doesn't work if a hole has already formed. Once the surface of your tooth breaks and creates a cavity, bacteria hide inside where saliva can't reach them. At that point, you need a filling.
That's why catching cavities at the white spot stage is so important. These chalky spots can often be stopped or reversed if you use strong fluoride and brush well for a few months.
When the Damage Spreads
If you don't catch a cavity early, it keeps getting bigger and deeper. Once it spreads past the outer layer of your tooth into the dentin underneath, things get worse fast. Dentin is softer than enamel and the acid dissolves it more easily. Plus, bacteria can release enzymes that actually eat the organic material holding the dentin together. So dentin cavities get mushy and weak.
By the time a cavity reaches the innermost part of your tooth (where the nerve is), you're probably in pain. That means you're looking at a root canal, not just a filling.
Why Your Saliva Matters
Your saliva does more than just repair damage. It also washes away food and bacteria. It has antimicrobial components that kill bad bacteria.
And it buffers acid. If you don't make enough saliva—which can happen with certain health conditions or medications—you're way more likely to get cavities. People with very little saliva get cavities 3-5 times more often than people with normal saliva.
Some people are also born with enamel that's stronger or weaker due to their genes. Genetics accounts for about 50-60% of your cavity risk, but environment and diet make up the rest.
Frequency Is Worse Than Amount
Here's something that surprises people: eating 100 grams of sugar once a day is better than eating 20 grams five times a day, even though the second option is way less sugar total. Why? Because each time you eat sugar, you're in acid-attack mode for 20-30 minutes. Multiple attacks mean your teeth never fully recover.
The type of sugar matters too. Sucrose (regular table sugar) is the worst because cavity-causing bacteria don't just make acid from it—they use it to build the sticky biofilm matrix. Glucose and fructose are bad, but not quite as bad. Starch in bread and pasta ferments into acid slowly and doesn't build biofilm as well, so it's less of a problem.
How Brushing and Flossing Stop Cavities
Brushing removes about 90% of the surface plaque, so bacteria can't rebuild immediately. But they come back within 12-24 hours, which is why brushing every day matters. Flossing is crucial because your toothbrush can't reach between your teeth. People who never floss get cavities between their teeth 2-3 times more often than people who floss daily.
The bacteria between your teeth are protected and undisturbed, so they build mature biofilms that are even harder to clean. That's why flossing is non-negotiable for cavity prevention.
The Timeline: How Long Until You Get a Cavity?
It usually takes at least 3-6 months from the time cavity-causing bacteria start attacking until you have a cavitated cavity. But high-risk people—those with lots of cavity-causing bacteria in their mouth and people who snack on sugary stuff all day—can develop cavities in 2-3 months. Low-risk people with good oral hygiene and limited sugar intake might take a year or longer.
The good news? Most of that time, you have the white spot stage where you can stop or reverse the process. Once the cavity forms, though, you're stuck with a filling.
---
Related reading: Common Misconceptions About Bad Breath Elimination and Dental Treatment Planning Process and Sequencing.
Conclusion
Your dentist can help you understand the best approach for your specific needs. The good news?
> Key Takeaway: Cavities don't just happen overnight. They develop through a series of steps, and understanding how they form helps you prevent them.