Cavities start when acids produced by bacteria in your mouth dissolve the minerals in your tooth enamel faster than your saliva can replace them. This process can take months to years, depending on your diet, oral hygiene, and the chemistry of your saliva. Understanding each step of this breakdown helps explain why some people get cavities easily and others don’t, and why catching the earliest signs can actually reverse the damage before a true cavity forms.
How Plaque Sets the Stage
Within minutes of brushing your teeth, a thin protein film called the pellicle coats every surface in your mouth. This film is made of proteins and carbohydrates from your saliva, and it’s essentially a landing pad for bacteria. Pioneer species attach to the pellicle first through weak forces, then lock in more permanently by producing sticky substances called glucans and fructans. These act like a scaffolding that lets more bacteria pile on and settle in.
As the bacterial community matures over hours and days, it becomes what dentists call a biofilm, or plaque. This isn’t just a random smear of germs. It’s a structured colony where bacteria communicate, share nutrients, and create a sheltered environment that’s difficult for saliva to penetrate. The thicker and more established this biofilm gets, the more acid it can trap directly against your tooth surface.
What Happens When You Eat Sugar
The bacteria most responsible for cavities thrive on sugar, particularly sucrose. These organisms break sucrose down in two ways: they convert part of it into the sticky glucans that strengthen the biofilm, and they ferment the rest internally, releasing organic acids as a byproduct. This acid production is what actually damages your teeth.
Within two to four minutes of sugar reaching the plaque on your teeth, the local pH drops from a neutral 6.5 down to around 5, and can plunge as low as 3.9 in heavy sugar exposures. It takes roughly 45 minutes for conditions to return to normal. That 45-minute window is when your enamel is actively losing minerals. If you sip a sugary drink once and move on, that’s one acid attack your mouth can recover from. If you graze on candy or sip soda throughout the afternoon, you’re restarting the clock over and over, keeping your teeth bathed in acid for hours.
Even more concerning, these bacteria can store excess sugar internally as an energy reserve. That means acid production continues even after you’ve stopped eating. This stored energy extends the duration of the acid attack, pushing demineralization further than your diet alone would suggest.
The Chemistry of Enamel Breakdown
Tooth enamel is the hardest substance in your body, made mostly of a crystalline mineral called hydroxyapatite. It’s extremely resistant to physical damage, but it has a chemical weakness: acid dissolves it. When the pH at the tooth surface drops below roughly 5.5, calcium and phosphate ions start leaching out of the enamel crystals. This is demineralization.
Not all enamel dissolves equally. Areas with more carbonate in their crystal structure are more vulnerable to acid because carbonate is more chemically reactive. Enamel that has incorporated fluoride, on the other hand, forms a variant called fluorapatite that resists acid dissolution significantly better. This is the core reason fluoride in toothpaste and drinking water reduces cavities: it literally changes the chemistry of the enamel surface to make it harder to dissolve.
Your Saliva Fights Back
Your mouth isn’t defenseless. Saliva is a remarkably sophisticated repair system. It contains dissolved calcium and phosphate ions, the same building blocks that make up enamel, and when acid levels subside, these minerals settle back onto damaged tooth surfaces and partially rebuild the crystal structure. This is remineralization, and it’s happening constantly throughout the day.
Saliva also contains specialized proteins that manage this repair process. Some, like statherin, keep calcium and phosphate dissolved and available rather than letting them clump uselessly in your saliva. Others prevent the repair from overshooting and forming unwanted mineral deposits. The buffering capacity of saliva helps neutralize acids, shortening the window during which your enamel is under attack. People who produce less saliva, whether from medications, medical conditions, or simply dehydration, lose this protective advantage and develop cavities faster.
The First Visible Warning Sign
Before a cavity becomes a hole, it goes through a stage that’s completely reversible. When demineralization has outpaced remineralization in a small area but hasn’t yet broken through the enamel surface, the subsurface mineral loss makes the enamel porous. This changes how light reflects off the tooth, creating a chalky white spot that looks duller than the surrounding enamel. Dentists call these white spot lesions, and they’re the earliest visible evidence that a cavity is trying to form.
At this stage, the surface is still intact, just weakened. Fluoride exposure, improved brushing, reducing sugar frequency, and giving your saliva time to do its job can all tip the balance back toward remineralization. The white spot can harden and stabilize, effectively stopping the cavity before it starts. But if conditions don’t change and demineralization keeps winning, the weakened surface eventually collapses inward, creating an actual hole. That’s the point of no return where only a dental filling can fix the damage.
How Quickly Cavities Progress
There’s no universal timeline for cavity formation because the variables differ so much from person to person. In most people, cavities develop over a period of years. In someone with poor oral hygiene, a high-sugar diet, or reduced saliva flow, the process can compress to months.
Enamel is the slowest layer to break through because it’s so mineral-dense and has no living cells. Once decay reaches the softer dentin underneath, progression accelerates. Dentin is less mineralized and contains microscopic tubes that lead toward the nerve of the tooth, which is why cavities that have reached dentin often become sensitive to hot, cold, or sweet foods. The deeper the decay penetrates, the faster it moves, because each successive layer offers less resistance than the one before it.
Why Frequency Matters More Than Amount
One of the most practical things to understand about cavities is that how often you eat sugar matters more than how much you eat at once. Eating a large dessert after dinner creates one acid attack lasting about 45 minutes. Snacking on small amounts of candy every hour across an afternoon can create six or seven overlapping acid attacks, keeping your mouth in a demineralizing state for most of the day.
Frequent acid exposure also changes the bacterial makeup of your plaque. Repeated low-pH conditions select for acid-tolerant species, essentially training your mouth’s microbial community to produce and survive in more acid. Over time, this shifts the ecology of your mouth toward a more cavity-prone state, even if your sugar intake hasn’t increased. Consolidating sweets and carbohydrates into mealtimes rather than spreading them across the day gives your saliva the recovery windows it needs to keep remineralization ahead of the damage.