How Do You Get Tooth Decay: Causes and Risk Factors

Tooth decay happens when bacteria in your mouth feed on sugars and starches, producing acids that dissolve the mineral structure of your teeth. It’s not a single event but an ongoing chemical battle between acid attacks and your mouth’s natural repair system. When acid exposure wins out over repair, the result is a cavity.

What Happens Inside Your Mouth

Your tooth enamel is made of tightly packed crystals of calcium and phosphate, forming one of the hardest substances in your body. But those crystals have a weakness: acid dissolves them. The process is called demineralization, and it starts with a sticky film of bacteria called plaque that clings to your teeth throughout the day.

As the bacteria in plaque consume carbohydrates from your food, they produce lactic acid as a byproduct. This drops the pH on the tooth surface below a critical threshold of about 5.5. Below that level, calcium and phosphate ions start leaching out of the enamel. Each time you eat or drink something sugary or starchy, this acid attack can last 20 to 30 minutes before your saliva brings the pH back up.

The good news is that your saliva actively works to reverse the damage. It’s naturally supersaturated with calcium and phosphate ions, which can redeposit onto weakened enamel and rebuild it. This repair process, called remineralization, works reliably when your mouth’s pH stays above 5.5. But if acid attacks happen too frequently, or your saliva can’t keep up, the balance tips toward destruction. That’s when a cavity forms.

The Bacteria Behind the Damage

Your mouth contains hundreds of bacterial species, but one stands out as the primary driver of tooth decay: Streptococcus mutans. What makes this bacterium so effective at causing cavities is a triple threat. It produces acid efficiently, it tolerates acidic environments that kill off competing bacteria, and it manufactures a sticky scaffolding of polysaccharides that helps it anchor firmly to your teeth.

That scaffolding is key. It creates a dense biofilm (plaque) that traps acid against the tooth surface, preventing saliva from washing it away or neutralizing it. Over time, the acidic environment under this biofilm selectively favors more acid-tolerant, cavity-causing species. The bacterial community shifts from a balanced mix to one dominated by harmful organisms. This is why decay tends to accelerate once it starts: the conditions that cause it also create an environment that makes it worse.

It’s Not Just Sugar

Most people know that candy and soda cause cavities. What’s less obvious is that many starchy and seemingly healthy foods carry the same risk. Any fermentable carbohydrate, meaning a food that breaks down into simple sugars in your mouth, can fuel acid production. That list includes potatoes, white bread, pasta, rice, pretzels, bananas, dried fruits like raisins, and refined wheat flour products.

The frequency of exposure matters more than the total amount you eat. Sipping a sugary drink over two hours does far more damage than drinking the same amount in five minutes, because each sip restarts the acid clock. Similarly, sticky foods like dried fruit or caramel that cling to your teeth extend the window of acid production well beyond the meal itself.

How Decay Progresses Stage by Stage

Tooth decay doesn’t appear overnight. It moves through distinct stages, and early stages are often completely painless.

White spots on enamel. The earliest sign is a chalky white patch on the tooth surface where minerals have started leaching out. At this point, no actual hole exists. The damage is still reversible with fluoride, improved hygiene, and time for saliva to do its repair work.

Enamel breakdown. If demineralization continues, the weakened enamel develops tiny openings or pits. This is the first true cavity. You still may not feel anything, because enamel has no nerve endings. You might notice brown, black, or white staining on the tooth surface.

Dentin involvement. Once bacteria and acid punch through the enamel, they reach dentin, the softer layer underneath. Dentin is far less resistant to acid than enamel, so decay accelerates at this stage. This is typically when you start noticing sensitivity to hot, cold, or sweet foods and drinks.

Pulp infection. If left untreated, decay reaches the innermost part of the tooth, the pulp, which contains nerves and blood vessels. The pulp swells in response to bacterial invasion, but because it’s enclosed in a rigid shell, the swelling compresses the nerve. The result is significant, often sharp pain, especially when biting down. At this point, a simple filling is no longer enough.

The speed of this progression varies considerably. With poor oral hygiene and a high-sugar diet, a cavity can progress from initial damage to a painful problem in a matter of weeks. In someone with good saliva flow and reasonable hygiene, an early lesion might take many months to become a full cavity, if it progresses at all.

Dry Mouth Is a Major Risk Factor

Because saliva is your primary natural defense against decay, anything that reduces saliva flow dramatically increases your risk. Dry mouth (xerostomia) is one of the most overlooked causes of rampant cavities, especially in adults.

Hundreds of common medications cause dry mouth as a side effect, including antihistamines, antidepressants, blood pressure medications, and decongestants. Radiation therapy to the head and neck can permanently damage salivary glands. Certain autoimmune conditions also reduce saliva production.

The effect is significant. Without adequate saliva, your mouth loses its ability to neutralize acids, wash away food debris, and supply the calcium and phosphate needed for enamel repair. People with chronic dry mouth often develop severe, fast-moving decay even with otherwise decent oral hygiene. Nighttime is especially dangerous, because saliva production naturally drops during sleep. If you’re taking a medication that worsens this, the combination creates hours of unprotected acid exposure on your teeth.

Methamphetamine use causes an extreme version of this problem. The drug severely reduces saliva production while also triggering teeth grinding and cravings for sugary drinks. The combination destroys teeth rapidly, a pattern so recognizable it has its own name: meth mouth.

Other Factors That Tip the Balance

Beyond diet, bacteria, and saliva, several other variables influence whether you develop cavities.

  • Fluoride exposure. Fluoride from toothpaste, drinking water, or dental treatments integrates into the enamel crystal structure, making it more acid-resistant and lowering the pH threshold at which demineralization occurs. Even so, enamel will dissolve below pH 4.3 to 4.5 regardless of fluoride levels.
  • Tooth anatomy. Deep grooves and pits on the chewing surfaces of molars trap food and bacteria in spots your toothbrush can’t easily reach. These are the most common sites for cavities in children and teenagers.
  • Plaque removal. Brushing and flossing physically disrupt the bacterial biofilm before it can mature and produce sustained acid. Areas you consistently miss, like the spaces between teeth or along the gumline, are where cavities tend to develop.
  • Acid reflux. Stomach acid that reaches the mouth, whether from gastroesophageal reflux or frequent vomiting, bathes teeth in acid far stronger than anything bacteria produce. This causes a distinctive pattern of erosion, particularly on the inner surfaces of the upper teeth.

Tooth decay is ultimately a numbers game between how much acid your teeth face and how well your body can repair the damage. You can’t eliminate mouth bacteria entirely, and you don’t need to. Keeping acid attacks short and infrequent, maintaining good saliva flow, using fluoride, and removing plaque consistently are enough to keep the balance tipped in favor of your teeth.