Cavities form when acids dissolve the minerals in your tooth enamel, and nearly every step in that process is something you can interrupt. The key is understanding that tooth decay isn’t a single event. It’s a back-and-forth battle between acid attacks that strip minerals from your teeth and your body’s natural repair system that puts them back. Tipping that balance in favor of repair is how you prevent cavities.
How Cavities Actually Form
Your mouth is home to hundreds of bacterial species, and some of them feed on the sugars and starches you eat. As they digest these carbohydrates, they produce acids, primarily lactic acid. When enough acid accumulates in the sticky film of bacteria on your teeth (plaque), the local pH drops below 5.5. That’s the critical threshold where enamel begins to dissolve. The mineral crystals that make up your enamel, called hydroxyapatite, physically break apart in acidic conditions.
This doesn’t mean a single sugary snack gives you a cavity. Every time you eat something sweet or starchy, the pH in your mouth drops for roughly 20 to 30 minutes before your saliva can neutralize the acid. If those acid attacks happen frequently throughout the day, your teeth spend more time dissolving than repairing. Over weeks and months, that imbalance creates a cavity.
Your Saliva Is Your Best Defense
Saliva does far more than keep your mouth moist. It contains a bicarbonate buffering system that actively neutralizes acids after you eat, raising the pH back to a safe, neutral range around 7. At that pH, saliva is supersaturated with calcium and phosphate, the same minerals that make up enamel. These minerals settle back into the weakened spots on your teeth in a process called remineralization. When fluoride is present, this repair process works even faster and produces a stronger crystal structure.
Anything that reduces saliva flow works against you. Mouth breathing, certain medications (antihistamines, antidepressants, blood pressure drugs), dehydration, and alcohol-based mouthwashes can all dry out your mouth. Chewing sugar-free gum between meals stimulates saliva production and helps your mouth recover from acid attacks more quickly.
What and When You Eat Matters
The World Health Organization recommends keeping free sugars below 10% of your total daily calories, and ideally below 5%, to minimize cavity risk. For someone eating 2,000 calories a day, that 5% target is about 25 grams, or roughly 6 teaspoons of added sugar.
But frequency matters as much as quantity. Sipping a sugary coffee over two hours causes far more damage than drinking it in five minutes, because you’re bathing your teeth in acid for a longer stretch. The same goes for snacking. Three meals with dessert gives your teeth time to recover between acid attacks. Grazing on crackers, dried fruit, or candy throughout the afternoon does not. Sticky carbohydrates like raisins, granola bars, and chips cling to the grooves in your molars and feed bacteria long after you’ve finished eating.
When you do have something acidic or sugary, rinsing your mouth with plain water afterward helps dilute acids and speed recovery.
Brushing: Technique Over Effort
The American Dental Association recommends brushing twice a day for at least two minutes each time with fluoride toothpaste. Most people brush for about 45 seconds, which isn’t enough to disrupt the plaque film across all tooth surfaces. A timer or an electric toothbrush with a built-in one can help you hit that two-minute mark.
Use a soft-bristled brush and gentle, short strokes angled toward the gumline. Scrubbing hard with a stiff brush doesn’t remove more plaque; it wears down enamel and irritates your gums. After brushing, spit out the toothpaste but skip rinsing with water. Leaving a thin layer of fluoride on your teeth gives it more time to strengthen the enamel.
Choosing the Right Toothpaste
The WHO recommends toothpaste containing 1,000 to 1,500 ppm fluoride for all ages. Children’s toothpastes with lower fluoride concentrations (under 1,000 ppm) have not shown a meaningful cavity-prevention benefit, so the current guidance is to use regular-strength toothpaste for everyone. For children under 3, a rice-grain-sized smear is enough. Kids aged 3 to 6 should use a pea-sized amount. After age 6, a pea-sized amount with no rinsing after brushing is the standard.
If you prefer a fluoride-free option, hydroxyapatite toothpaste is the most studied alternative. In clinical testing, a toothpaste with 10% hydroxyapatite matched a fluoride toothpaste in both remineralizing early decay and preventing new mineral loss, with no statistically significant difference between the two. Hydroxyapatite works by depositing the same mineral your enamel is made of directly onto the tooth surface, producing a more even repair throughout the damaged area.
Flossing and Interdental Cleaning
Your toothbrush can’t reach the tight spaces between teeth, and those contact points are where many cavities start. Flossing once a day, or using interdental brushes if your gaps are wide enough, removes the plaque your brush misses. The best time to floss is before brushing at night, so the fluoride from your toothpaste can reach those freshly cleaned surfaces.
The Role of Xylitol
Xylitol is a sugar alcohol found in some chewing gums, mints, and candies. Unlike regular sugar, cavity-causing bacteria can’t ferment it into acid. In fact, xylitol actively inhibits the growth of these bacteria. The effective dose for cavity prevention is 6 to 10 grams per day, spread across at least three exposures. Below about 3.5 grams daily, xylitol doesn’t significantly affect bacterial levels. Above roughly 10 grams, there’s no additional benefit, so more isn’t better. A typical piece of xylitol gum contains about 1 gram, so chewing two pieces three to four times a day puts you in the right range.
Fluoridated Water
Community water fluoridation remains one of the simplest ways to reduce cavities across a population. The U.S. Public Health Service recommends a fluoride concentration of 0.7 milligrams per liter, a level calibrated to strengthen teeth while minimizing the risk of dental fluorosis (faint white spots from excess fluoride during childhood). If your water comes from a well or a non-fluoridated system, you lose this passive protection, and consistent fluoride toothpaste use becomes even more important.
Dental Sealants for Molars
Nine out of 10 cavities occur in the back teeth, where deep grooves and pits trap food and bacteria. Dental sealants are thin plastic coatings applied to the chewing surfaces of molars that physically block bacteria from settling into those grooves. They prevent 80% of cavities in sealed teeth over two years and continue providing protection for several years beyond that. Sealants are most commonly placed on children’s permanent molars as they come in (around ages 6 and 12), but adults with deep grooves and no existing fillings can benefit too. The application is painless and takes just a few minutes per tooth.
Catching Decay Before It Becomes a Cavity
The earliest visible sign of enamel breakdown is a white spot lesion: a chalky, opaque patch on the tooth surface that’s most noticeable when the tooth is dry. These white spots represent mineral loss that hasn’t yet progressed to an actual hole in the enamel. At this stage, the damage is fully reversible. Fluoride gel, toothpaste with calcium and phosphate compounds, or hydroxyapatite products can all drive minerals back into the weakened area and restore the enamel’s integrity. Once the decay breaks through the surface and forms a true cavity, it can’t be reversed and needs a filling.
This is one of the practical reasons regular dental visits matter. A dentist can spot white spot lesions and areas of early demineralization that you’d never notice on your own, then target those areas with concentrated fluoride treatments before they progress. Catching decay at the white-spot stage means you avoid the drill entirely.

