Sugar is the most well-known cavity culprit, but it’s far from the only one. Any food that contains fermentable carbohydrates, including bread, crackers, chips, dried fruit, and rice, can fuel the bacteria that dissolve your tooth enamel. Nearly 21% of American adults have at least one untreated cavity, and diet is one of the biggest controllable risk factors.
How Food Actually Causes Cavities
Cavities don’t come directly from food. They come from acid that bacteria produce after feeding on the carbohydrates left in your mouth. A specific bacterium called Streptococcus mutans is the primary driver of tooth decay. It lives in the sticky film of plaque on your teeth, and when you eat something containing sugar or starch, it breaks those carbohydrates down into lactic acid through fermentation.
That acid lowers the pH inside plaque. Once it drops below about 5.5, your saliva can no longer neutralize it, and the acid starts dissolving the mineral structure of your enamel, pulling calcium and phosphate ions out from beneath the surface. Your saliva gradually brings the pH back to safe levels, but that recovery takes 30 to 60 minutes after you finish eating. Every time you snack or sip something sugary, the clock resets.
This is why eating frequency matters as much as what you eat. Three meals a day gives your teeth long recovery windows. Grazing on snacks or sipping sweetened drinks all afternoon keeps your mouth in an acidic state for hours.
Sugary Foods: The Obvious Offenders
Table sugar (sucrose) is the single most cavity-promoting substance in the human diet. When sucrose is consumed frequently, S. mutans outcompetes other mouth bacteria and becomes the dominant organism in plaque. It splits sucrose into glucose and fructose, then converts both into lactic acid. Candy, cookies, cake, doughnuts, and sweetened cereals all deliver concentrated sucrose directly to tooth surfaces.
But sugary foods aren’t limited to desserts. Ketchup, barbecue sauce, jarred pasta sauce, and salad dressings often contain added sugars. Even nut butters like peanut, almond, or cashew butter may have sugar added for flavor and texture. These hidden sources add up, especially if you eat them throughout the day.
The World Health Organization recommends keeping free sugars below 10% of your total daily calories to reduce cavity risk, and ideally below 5%. For an adult eating 2,000 calories, that 5% target is about 25 grams, or roughly six teaspoons.
Starchy Foods Are Surprisingly Risky
Many people don’t realize that starchy, savory foods can be just as damaging as candy. Refined starches break down into simple sugars in your mouth, and bacteria ferment them the same way they ferment sucrose. White bread, crackers, pretzels, potato chips, pasta, and rice are all fermentable carbohydrates that feed cavity-causing bacteria.
What makes some of these foods especially problematic is how long they stick to your teeth. Research on oral clearance rates has found that sweet biscuits, crackers, and potato chips have particularly high retention rates, meaning they cling to tooth surfaces and between teeth long after you’ve finished eating. The longer food sits on enamel, the longer bacteria produce acid. A handful of chips wedged into your molars can do more damage than a piece of chocolate that dissolves and washes away quickly.
Sticky and Dried Foods Linger Longest
Texture plays a major role in how much damage a food can do. Solid, sticky foods adhere to tooth surfaces and stay there, giving bacteria extended feeding time. Raisins and other dried fruits are a perfect example: they’re concentrated in natural sugars, and their gummy texture makes them cling to the grooves and gaps in your teeth. Bananas, tropical fruits, caramel, taffy, and gummy candies all share this problem.
Liquid sugars, by contrast, pass through the mouth relatively quickly. A sugary drink clears the mouth in roughly 13 to 15 minutes, while a sticky solid can sit on your teeth for much longer unless you brush or rinse. That doesn’t make sugary drinks safe, but it does explain why a fruit roll-up can be worse for your teeth than a glass of juice.
Acidic Drinks Erode Enamel Directly
Some beverages damage teeth through a second pathway that doesn’t even involve bacteria. Highly acidic drinks dissolve enamel on contact through a process called erosion. This is different from a cavity, which starts beneath the enamel surface, but erosion weakens and thins your enamel, making it far more vulnerable to decay.
The pH scale measures acidity, and anything below about 5.5 can erode enamel. Most popular sodas fall well below that threshold. Coca-Cola Classic has a pH of about 2.37, Pepsi sits around 2.39, and RC Cola is roughly 2.32. For context, pure lemon juice comes in at about 2.25. Sports drinks can be just as acidic, with some flavored varieties dropping below 2.8.
Diet sodas aren’t safer in this regard. They may lack sugar, but their acidity still erodes enamel. Sparkling water is less acidic than soda, though flavored varieties can dip lower. If you drink acidic beverages, using a straw and avoiding swishing them around your mouth limits contact with your teeth.
Foods That Actually Protect Your Teeth
Not all foods contribute to cavities. Some actively help your teeth recover. Cheese, milk, and other dairy products are rich in calcium and phosphate, the same minerals that make up tooth enamel. Eating cheese after a meal raises the calcium and phosphate concentration in your mouth, which helps replenish minerals lost during acid attacks. The protein casein in dairy also stabilizes calcium and phosphate in a form that promotes remineralization, essentially patching early enamel damage before it becomes a cavity.
Crunchy, water-rich vegetables like celery, carrots, and cucumbers stimulate saliva production, which is your mouth’s natural defense system. Saliva buffers acid, washes away food particles, and delivers minerals back to your enamel. Nuts and seeds are another good choice because they’re low in fermentable carbohydrates and require chewing that generates saliva.
Sugar alcohols like xylitol, commonly found in sugar-free gum and mints, offer a unique benefit. Cavity-causing bacteria take up xylitol the same way they take up sugar, but they can’t ferment it into acid. Xylitol also directly inhibits the growth of S. mutans, damaging its cell walls in a dose-dependent way. Chewing xylitol gum after meals stimulates saliva while simultaneously starving the bacteria responsible for decay.
Eating Patterns Matter as Much as Food Choices
The total amount of sugar you eat in a day matters less than how often your teeth are exposed to it. Eating a sugary dessert with dinner creates one acid attack. Sipping a sweetened coffee over three hours creates a sustained one, keeping your mouth below the critical pH threshold for most of that time. The same logic applies to snacking on crackers, dried fruit, or granola bars between meals.
A few practical patterns reduce your risk significantly. Eating sweets and starches as part of a meal rather than as standalone snacks lets saliva generated by the full meal help clear the sugars faster. Drinking water after eating rinses loose particles off your teeth. Finishing a meal with cheese or sugar-free gum accelerates the pH recovery in your mouth. And keeping between-meal snacks to foods low in fermentable carbohydrates, like raw vegetables, plain nuts, or plain yogurt, limits the number of acid attacks your teeth face each day.

