How to Stop Getting Cavities: What Actually Works

Cavities form when acids produced by bacteria in your mouth dissolve tooth enamel faster than your body can repair it. Stopping them comes down to disrupting that process at every stage: starving the bacteria, strengthening your enamel, and giving your saliva enough time to do its repair work between meals. Here’s what actually works and why.

Why Cavities Form in the First Place

Your mouth is home to bacteria that feed on sugars and starches from the food you eat. As they digest those carbohydrates, they excrete acids, primarily lactic acid. When enough acid builds up in a sticky film of bacteria on your teeth (plaque), the local pH drops below about 5.5. At that threshold, the mineral crystals that make up your enamel start dissolving. This process is called demineralization.

Your saliva naturally counteracts this. It contains calcium and phosphate ions that can redeposit into weakened enamel, and it buffers acids back toward a neutral pH. The problem is timing. Every time you eat or drink something with sugar, the bacteria produce a fresh wave of acid that can take 20 to 30 minutes to neutralize. If you snack frequently or sip sugary drinks throughout the day, your teeth spend more time under acid attack than your saliva can keep up with. Over weeks and months, the balance tips toward mineral loss, and a cavity forms.

Frequency of Sugar Matters More Than Amount

One of the most important things to understand about cavities is that how often you consume sugar matters more than how much you eat at once. Five small sips of soda spread across an afternoon creates five separate acid attacks on your teeth. Drinking that same soda with a meal produces just one. The World Health Organization recommends keeping free sugars below 10% of your daily calorie intake to reduce cavities, with evidence suggesting that dropping below 5% offers additional protection. “Free sugars” includes table sugar, honey, syrups, and the sugars in fruit juice, but not the sugar naturally present in whole fruits, vegetables, or milk.

The practical takeaway: consolidate your sugar intake into mealtimes rather than spreading it through the day. If you want dessert, eat it right after dinner instead of two hours later. Avoid slowly nursing sweet coffee, juice, or soda over long periods. Between meals, water is the safest choice for your teeth.

How Fluoride Protects Your Teeth

Fluoride is the single most effective tool for preventing cavities, and it works through a clever bit of chemistry. Your enamel is made of a mineral called hydroxyapatite. When fluoride is present during the natural repair cycle, it gets incorporated into the enamel’s crystal structure, converting some of it into fluorapatite. This modified mineral is significantly more resistant to acid dissolution than the original. In other words, fluoride doesn’t just patch up damaged enamel. It rebuilds it into a tougher version.

You can get fluoride from several sources. Community water fluoridation, set at 0.7 parts per million in the US, reduces cavities by roughly 26 to 44% across all age groups. Standard over-the-counter toothpastes approved by the American Dental Association contain 1,000 to 1,500 ppm of fluoride. For people at high risk of cavities, prescription toothpastes with 5,000 ppm are available. Dentists can also apply concentrated fluoride varnish directly to your teeth during checkups.

To get the most out of your fluoride toothpaste, avoid rinsing your mouth with water immediately after brushing. Spit out the excess foam but let the residual fluoride sit on your teeth. This gives it more contact time to work.

Brushing and Cleaning Between Teeth

Brushing twice a day with fluoride toothpaste is the foundation of cavity prevention, and the technique matters. Use a soft-bristled brush, angle it toward the gumline at about 45 degrees, and use short, gentle strokes. Spend at least two minutes covering all surfaces. Electric toothbrushes with built-in timers make this easier for most people and are at least as effective as manual brushing when used properly.

Cleaning between your teeth is important for removing plaque from surfaces your toothbrush can’t reach. It’s worth being honest about the evidence here: a Cochrane review found that home flossing and interdental brushes clearly reduce gingivitis (gum inflammation), but there isn’t strong clinical trial evidence proving they reduce cavities between teeth. That said, the logic is sound. Plaque sitting between teeth produces acid just like plaque anywhere else. The likely explanation is that the trials were too short and cavity formation takes years. Most dentists still recommend daily interdental cleaning, and interdental brushes tend to be easier to use effectively than traditional string floss, especially for people with gaps between their teeth.

Dental Sealants for Back Teeth

The chewing surfaces of your back molars have deep grooves and pits that are almost impossible to clean thoroughly with a toothbrush. Dental sealants are thin coatings painted onto these surfaces that create a smooth, protective barrier. According to the CDC, sealants prevent 80% of cavities in back teeth over two years, and 9 out of 10 cavities occur in those back teeth. They’re most commonly applied to children’s permanent molars as soon as they come in (around ages 6 and 12), but adults with cavity-prone molars can benefit too. The procedure is quick, painless, and doesn’t require drilling.

Xylitol: A Sugar That Fights Cavities

Xylitol is a sugar alcohol found in many sugar-free gums and mints. Unlike regular sugar, cavity-causing bacteria can’t metabolize it for energy, so it doesn’t produce acid. There’s also evidence that regular xylitol use actively reduces the population of harmful bacteria in your mouth over time. Studies have shown a 30 to 80% decrease in new cavities with consistent xylitol use.

The catch is dosing. You need 5 to 10 grams per day, divided into three to five doses (typically after meals), using products made with 100% xylitol as the sweetener. Amounts below about 3.5 grams per day show no protective effect. A single piece of xylitol gum usually contains about 1 gram, so you’d need several pieces spread throughout the day. It’s a useful addition to your routine, not a replacement for brushing and fluoride.

Arginine Toothpaste and Your Oral Microbiome

A newer approach to cavity prevention targets the bacterial ecosystem in your mouth rather than just killing bacteria outright. Toothpastes containing 8% arginine (an amino acid) work by feeding beneficial bacteria that convert arginine into ammonia, which raises the pH in your mouth and counteracts acid. Over about eight weeks of use, these toothpastes shift the composition of your oral microbiome toward bacteria that produce less lactic acid and more alkaline byproducts. Arginine essentially acts as a prebiotic for your mouth, promoting a healthier bacterial community that’s less likely to cause decay. These toothpastes are available over the counter and typically contain fluoride as well.

Dry Mouth Is a Hidden Cavity Risk

Saliva is your body’s primary defense against cavities. It washes away food debris, delivers minerals for enamel repair, and neutralizes bacterial acids. When saliva production drops, cavity risk skyrockets. People with chronic dry mouth can develop cavities at an alarming rate, sometimes in locations that rarely get cavities otherwise, like the front teeth or along the gumline.

The most common cause of dry mouth is medication. Antidepressants, antihistamines, blood pressure medications, decongestants, muscle relaxants, diuretics, pain medications, seizure drugs, and GLP-1 receptor agonists (used for diabetes and weight loss) can all reduce saliva flow. If you take any of these and notice your mouth feels dry or sticky, that’s worth addressing. Sipping water throughout the day, using sugar-free xylitol gum to stimulate saliva, and using fluoride rinses can all help compensate. Saliva substitutes and moisturizing mouth sprays are available over the counter for more severe cases.

Putting It All Together

Cavity prevention isn’t about doing one thing perfectly. It’s about layering several habits that each tilt the balance away from decay. Brush twice daily with fluoride toothpaste and don’t rinse afterward. Clean between your teeth once a day. Limit sugary snacks and drinks to mealtimes. Chew xylitol gum after meals if you’re cavity-prone. Ask your dentist about sealants for vulnerable molars, and about prescription-strength fluoride if you’re at high risk. If you take medications that cause dry mouth, compensate with extra hydration and saliva-stimulating products.

None of these steps is complicated on its own. The people who stop getting cavities are the ones who make these small habits automatic.