HomeBlog › What Causes Cavities and How to Prevent Them: Guide

What Causes Cavities and How to Prevent Them: Guide

Published July 20, 2026 · dental.me editorial · How we verify

Editorially reviewed by the Dental.me Editorial Team · Updated July 2026

Cavities are an acid problem. The bacteria living on your teeth feed on sugars and starches, and the acid they give off dissolves the mineral in your enamel. Let that happen faster than your saliva can patch it back, and the enamel eventually caves into a hole. That hole is the cavity. Sugar itself doesn’t rot teeth; the bacteria that eat the sugar do.

That distinction is the whole game, because it tells you where to push. You can’t sterilize your mouth, and you’re not about to stop eating. What you can steer is how often those acid attacks hit and how much time your enamel gets to recover in between. Almost every piece of advice a dentist gives you (brush twice, quit the all-day sipping, use fluoride) pulls on one of those two levers.

Here’s how decay actually works, and the moves that stop it.

What is a cavity, really?

A cavity (dentists call it dental caries) is permanent damage to the hard outer surface of a tooth. It begins invisibly. Every time you eat, the bacteria packed into the sticky film on your teeth, plaque, break down the carbohydrates and give off acid. That acid drags calcium and phosphate out of the enamel, a process called demineralization.

Saliva fights back. Between meals it neutralizes the acid and drives minerals back into the enamel, which is remineralization. Your enamel spends its whole life in this tug-of-war. A cavity forms when demineralization wins the fight often enough that the surface finally gives out.

The early stage, a chalky white spot on the enamel, is reversible. You can still feed minerals back in and heal it. Once the surface collapses into a real hole, the damage is structural and it needs a filling. No toothpaste on earth regrows a true cavity. That’s why catching it early is everything.

What causes cavities to form?

Decay needs four things to line up at once: a tooth, the right bacteria, fuel (fermentable carbs), and time. Take away any single one and there’s no cavity. In the real world, though, some of these factors carry far more weight than others.

What drives tooth decay most

Infographic — What Causes Cavities and How to Prevent ThemFrequency of sugar/acid exposureHighestPlaque left on teeth (poor brushing/flossing)HighLow saliva / dry mouthModerateNo fluoride exposureLowerDeep molar grooves, unsealedLower

Directional weighting of common cavity risk factors, 2026 Bars show a qualitative comparison, not measured percentages. Dental.me visual summary. Clinical background: CDC — Oral Health; sources and methodology.

Sugar and refined starches — but frequency beats quantity

Here’s the most misunderstood thing about cavities: it isn’t how much sugar you eat, it’s how often. The bacteria don’t care whether you demolished a candy bar in two minutes or nursed one soda across three hours. Your enamel cares enormously. Every sip restarts the acid clock. After you eat, your mouth stays acidic for roughly 20 to 30 minutes before saliva brings it back to neutral.

Eat dessert with dinner and you buy yourself one acid attack. Sip a sweetened coffee at your desk all morning and it’s basically one long attack that never lets up. That grazing habit is exactly why plenty of people with a “clean” diet still end up with cavities. The worst offenders are the sticky, slow-dissolving carbs, think crackers, chips, dried fruit, gummy candy, because they wedge into the grooves and keep feeding bacteria long after you’ve swallowed.

Plaque and poor brushing

Plaque is the neighborhood the bacteria live in. Skip brushing and it thickens, then hardens within about 48 hours into tartar that no brush can scrub off. Plaque gravitates to the spots people skip: the deep grooves on the back molars, the gumline, and the tight gaps between teeth where only floss reaches. Cavities show up in exactly those places, over and over.

Dry mouth (low saliva)

Saliva is your built-in defense system. It rinses away food, neutralizes acid, and ferries repair minerals to the enamel. When it drops off, decay speeds up in a hurry. The usual culprits: hundreds of medications (antihistamines, antidepressants, blood pressure drugs), chronic mouth breathing, some medical conditions, and plain old aging. People who suddenly go dry can jump from cavity-free to several new cavities inside a single year.

Not enough fluoride

Fluoride hardens enamel, makes it more acid-resistant, and speeds up remineralization. People without fluoridated water or fluoride toothpaste tend to rack up more cavities. It’s one of the cheapest and best-proven defenses dentistry has, full stop.

Tooth position, age, and acidic drinks

Crowded or deeply grooved teeth trap more plaque, simple as that. Both kids and older adults run higher risk: kids because young enamel is softer, older adults because of receding gums and dry mouth. And acidic drinks like soda, sports drinks, citrus sparkling water, and wine erode enamel on their own, even with zero sugar, softening the surface so the bacteria can finish the job faster.

What are the early signs of a cavity?

Early decay usually hurts exactly nothing. That’s the trap. Pain arrives late, only once the damage reaches the nerve, which is why most cavities get caught at a checkup rather than by how they feel. Watch for:

By the time a tooth starts aching on its own, the cavity is usually deep. Catch it back at the white-spot stage and you can sometimes reverse it with fluoride and better habits alone, no drill required.

How do you prevent cavities?

Prevention comes down to winning that tug-of-war: fewer acid attacks, plus stronger enamel that bounces back between them. The steps below are ranked roughly by how much they actually move the needle.

How much each habit protects your teeth

Infographic — What Causes Cavities and How to Prevent ThemBrush twice daily with fluorideHighestCut snacking/sipping frequencyHighClean between teeth dailyModerateRegular checkupsLowerDental sealants on molarsLower

Relative protective impact of daily prevention steps, 2026 Bars show a qualitative comparison, not measured percentages. Dental.me visual summary. Clinical background: CDC — Oral Health; sources and methodology.

Brush twice a day with fluoride toothpaste

Two minutes, morning and night, no days off. The nighttime brush is the one that counts most, because saliva flow nearly shuts down while you sleep, so anything left behind feeds bacteria unopposed for eight straight hours. Use a soft brush and angle the bristles into the gumline. Here’s an underrated move: after the night brush, spit but don’t rinse with water. Leaving that thin film of fluoride sitting on your teeth stretches out its protection.

Clean between your teeth daily

A toothbrush simply can’t reach the surfaces between your teeth, and that’s where a big share of adult cavities get their start. Floss, a water flosser, interdental brushes, whatever you’ll actually use, the tool matters less than the habit. Daily.

Cut the frequency of sugar and sipping

You don’t have to swear off sugar. You have to bunch it up. Eat sweets with a meal instead of grazing on them all afternoon, and kill the all-day sipping of sweet or acidic drinks. For most people, trading constant sipping for water between meals is the single highest-impact change on this list. If you do have a soda or juice, drink it in one sitting and rinse with water afterward.

Use fluoride deliberately

Fluoride toothpaste is your floor, not your ceiling. If you’re cavity-prone, a dentist can layer on a high-fluoride prescription paste or brush a fluoride varnish on in the office. And fluoridated tap water quietly helps all day long.

Consider dental sealants

Sealants are a thin coating painted into the deep grooves of the back molars, sealing food and bacteria out of the places a brush never really cleans. They’re routine for kids and can sharply cut decay on those chewing surfaces. Plenty of adults with deep grooves benefit too.

Fix dry mouth

If your mouth runs dry most of the time, treat that as a genuine risk factor, not a nuisance. Sip water, chew sugar-free gum with xylitol to get saliva flowing, and ask your doctor whether one of your medications is behind it. Sugar-free gum after meals is one of those rare habits that’s both easy and genuinely effective, because the chewing floods your mouth with acid-neutralizing saliva.

See a dentist regularly

A checkup catches decay while it’s still a white spot and a cheap fix, long before it becomes a root canal. Twice-a-year cleanings work for most people; higher-risk folks need to come in more often. A cleaning also scrapes off the hardened tartar you have no way of removing at home.

Cavity risk factors vs. protective factors

Picture your mouth as a balance sheet. The left column pushes toward decay, the right column defends against it, and your real cavity risk is just the net of the two.

Raises cavity risk Lowers cavity risk
Frequent snacking and sipping Eating sweets with meals only
Sugary and sticky foods Water as the default drink
Skipping the nightly brush Brushing twice daily with fluoride
Never flossing Cleaning between teeth daily
Dry mouth / low saliva Good saliva flow, sugar-free gum
No fluoride exposure Fluoride toothpaste, water, or varnish
Deep molar grooves, unsealed Dental sealants
Skipping checkups Regular cleanings and exams

Can you reverse a cavity without a filling?

Sometimes, but only right at the start. A white-spot lesion, where the enamel has lost minerals but the surface hasn’t broken yet, can remineralize and heal with concentrated fluoride, better cleaning, and less frequent sugar. That’s your window, and it doesn’t stay open long.

Once the surface breaks and a real cavity forms, it can’t heal itself. Enamel has no living cells and no blood supply, so unlike skin or bone it never grows back. From there, a dentist has to clear out the decay and fill the space. Leave it alone and the decay just keeps spreading, toward the nerve, then a root canal, then the loss of the tooth. Small cavities are quick and cheap to fix. Deep ones are neither. Waiting has never once made the problem smaller.

If you suspect a cavity, don’t try to tough it out. Find a dentist near you for an exam. The sooner it’s caught, the smaller the fix.

Frequently asked questions

Does sugar really cause cavities?

Indirectly. Sugar itself doesn’t dissolve teeth. It feeds the bacteria in plaque, and those bacteria produce the acid that attacks enamel. How often you eat sugar matters more than how much — constant sipping and snacking causes more decay than eating the same amount all at once.

Can a cavity heal on its own?

Only in its earliest stage, before the enamel surface breaks. A chalky white spot can be remineralized with fluoride and better habits. Once there’s an actual hole, it can’t heal and needs a filling, because enamel has no living cells to repair itself.

Why do I get cavities even though I brush?

Common reasons: not flossing (a brush can’t reach between teeth, where many cavities start), frequent snacking or sipping that keeps the mouth acidic, dry mouth from medication, brushing too briefly, or deep molar grooves that trap food. Brushing alone isn’t always enough.

How long does it take for a cavity to form?

It varies widely — often months to a couple of years for decay to progress through enamel, but much faster in people with dry mouth, heavy sugar frequency, or no fluoride. Kids’ softer enamel decays quicker. This is why regular checkups catch problems you can’t yet feel.

Do cavities always hurt?

No — and that’s the danger. Early and even moderate cavities usually cause no pain. You typically only feel it once decay reaches the nerve, by which point the cavity is deep. Pain-free does not mean cavity-free.

Is dry mouth really that big a deal for cavities?

Yes. Saliva rinses food, neutralizes acid, and redeposits minerals. When it drops — usually from medications, mouth breathing, or a health condition — decay can accelerate dramatically, sometimes producing several new cavities in a single year in someone who was previously cavity-free.

This article is general information, not dental advice. Only a dentist’s in-person exam and X-rays can tell you whether you have a cavity and what treatment you need. Any costs mentioned are typical ranges and vary by location and case.

Ready to get checked? Use Dental.me to find a trusted dentist near you, browse by dental specialty, or see how our independent Dental.me Score ranks the practices that carry a public Google rating.

Sources & further reading

The sources above provide clinical background for this article. Cost ranges and comparisons are Dental.me editorial summaries and can vary by patient, practice, and location. This content is informational and is not a substitute for professional dental diagnosis or treatment.








Find a dentist near you on dental.me. Compare practice details, hours, ratings, and the independent Dental.me Score across 249,000+ practices nationwide.
Find a dentist near you   More dental guides & insights →

Discover more from dental.me

Subscribe now to keep reading and get access to the full archive.

Continue reading