Cavities are caused by bacteria that live in your mouth. These bacteria feed on sugars and starches from food, produce acid, and that acid slowly dissolves tooth enamel. Saliva normally repairs this damage, but when acid attacks happen more often than saliva can keep up, a hole forms in the tooth.
What Actually Happens Inside a Tooth When a Cavity Forms?
A cavity is a disease process, not a single event. It unfolds over months or years, and it moves through distinct stages.
Your mouth hosts hundreds of types of bacteria. Some are harmless. Others, particularly certain strains of Streptococcus mutans and Lactobacillus, convert fermentable carbohydrates into acid. When you eat or drink something sugary, these bacteria produce acid within minutes. The acid drops the pH at the tooth surface below a level where minerals in enamel begin to dissolve. This is called demineralization.
Saliva is the counterforce. It washes away food particles, neutralizes acid, and delivers calcium and phosphate back into the enamel. This repair process is called remineralization. In the early stages, before a physical hole forms, the enamel can still recover if the balance shifts back toward repair.
When demineralization outpaces remineralization repeatedly, the enamel weakens. A white spot appears on the surface. This is the earliest visible sign of a cavity, and at this stage it may still be reversible with fluoride and improved oral hygiene.
If the process continues, the enamel breaks down and a physical hole forms. Once the cavity reaches the dentin, the softer layer beneath enamel, it progresses faster. Dentin is less mineralized and more vulnerable to acid. From there, bacteria can reach the pulp, where nerves and blood vessels sit. That is when a cavity becomes painful and may require a root canal rather than a simple filling.
What Causes Cavities In Teeth?
Four conditions must exist at the same time for a cavity to develop. Dentists sometimes call this the caries balance. Remove any one of them and decay stops.
- Acid-producing bacteria on the tooth surface
- Fermentable carbohydrates — sugars and refined starches — available to those bacteria
- A susceptible tooth surface with weakened or exposed enamel
- Time — repeated acid attacks over months or years
Saliva is the fifth factor that tips the scale. It is not listed as a cause because it is protective, but when saliva flow drops, all four conditions above become easier to meet.
Sugars are the primary fuel, but refined starches matter too. White bread, crackers, and chips break down into sugars in the mouth. Sticky foods that cling to teeth are worse than foods that clear quickly, because they keep feeding bacteria long after you swallow.
Frequency of eating matters more than total amount. Sipping a sugary drink over two hours delivers a longer acid attack than drinking it in five minutes. The bacteria do not care about portion size. They care about how long the sugar stays available.
How Does Sugar Frequency Matter More Than Sugar Amount?
Each time you eat or drink fermentable carbohydrates, acid levels in plaque stay elevated for roughly twenty minutes or longer. During that window, minerals are leaving the enamel. After the acid clears, saliva begins restoring them.
If you eat three meals and two snacks a day, that is five acid attacks. If you graze continuously, the acid never fully clears. Enamel never gets a chance to remineralize. This is why a person who eats one dessert at dinner may fare better than someone who sips sweet coffee all morning.
This also explains why certain habits are harder on teeth than they look. Sucking on hard candy, sipping soda throughout the day, or nursing a sweetened drink slowly all extend acid exposure. The total sugar may be lower than a single large dessert, but the damage can be greater.
Why Do Some People Get Cavities More Easily?
Two people can eat the same diet and brush the same way, yet one gets cavities and the other does not. Several factors explain the difference.
Saliva flow and composition. Saliva is your main defense against decay. Dry mouth, whether from medications, medical conditions, or aging, removes that defense. Many common prescription drugs reduce saliva flow, including some antidepressants, antihistamines, and blood pressure medications. This is one of the most underrecognized cavity risks in adults.
Oral bacteria. The specific mix of bacteria in your mouth varies from person to person. Some people carry more acid-producing strains. Bacteria can also be transmitted between people, which is why caregivers with active decay can pass cavity-causing bacteria to young children through shared utensils or tasting food before serving.
Tooth anatomy. Deep grooves on the chewing surfaces of molars trap food and bacteria. These pits and fissures are common starting points for cavities because they are hard to clean with a toothbrush.
Fluoride exposure. Fluoride makes enamel more resistant to acid and supports remineralization. People who grew up with fluoridated water or used fluoride toothpaste consistently tend to have stronger enamel. Research consistently shows community water fluoridation reduces tooth decay across populations.
Gum recession. As gums pull back with age, the root surface becomes exposed. Root surfaces lack the hard enamel coating and are more vulnerable to decay. This is a major reason cavities become more common in adults over 50.
Acid reflux and eating disorders. Stomach acid reaching the mouth erodes enamel directly. This weakens the tooth surface and makes it more susceptible to bacterial acid as well.
What Role Does Fluoride Play in Preventing Cavities?
Fluoride reduces cavities in two ways. It strengthens enamel by incorporating into the mineral structure, making it more resistant to acid. It also speeds up remineralization, helping repair early damage before a hole forms.
Fluoride toothpaste is the most widespread and well-supported method. The evidence for its effectiveness is strong and consistent. Community water fluoridation has been shown in numerous studies to reduce decay rates, and the CDC considers it one of the ten great public health achievements of the twentieth century.
Fluoride varnish applied by a dentist is used for higher-risk patients, including young children. This is a clinical application and its use depends on individual risk assessment.
Fluoride is not a substitute for reducing sugar frequency. It shifts the balance toward repair, but if acid attacks keep coming, even fluoride cannot keep up.
Can a Cavity Heal on Its Own?
An early cavity, before a physical hole forms, can sometimes reverse with fluoride and better oral care. This is called remineralization, and it is well documented. The white spot lesion fades and the enamel hardens again.
Once a hole forms in the enamel, it cannot heal on its own. Enamel does not regrow. A dentist must remove the decayed portion and fill the space. If the cavity has reached the pulp, more extensive treatment such as a root canal is needed.
This is why early detection matters. A dentist can spot a white spot lesion before it becomes a hole. At that stage, the intervention is simple: fluoride, improved hygiene, and less sugar. Once the hole is there, the intervention is a drill.
What Does Not Cause Cavities?
Several popular beliefs about cavities are not supported by evidence.
Sugar alone does not cause cavities. Sugar feeds the bacteria that cause cavities, but without those bacteria, sugar does not dissolve enamel directly. The process requires bacteria, sugar, a susceptible tooth, and time together.
Acidic foods do not cause cavities in the same way. Acidic foods and drinks like citrus and soda can erode enamel through a different process called erosion. Erosion is not the same as decay, though it can make teeth more vulnerable to decay by thinning the enamel.
Cavities are not caused by poor hygiene alone. Brushing and flossing help remove plaque and food, but they do not fully explain why some people get cavities despite good habits. Diet frequency, saliva, genetics, and bacterial makeup all play a role.
Genetics do not determine your fate. You may inherit enamel that is more or less resistant to acid, or a saliva composition that is more or less protective. But these are risk factors, not destiny. Behavior and prevention still matter a great deal.
Fluoride does not cause cavities. This is a common myth with no supporting evidence. The weight of research shows the opposite.
When Should You See a Dentist?
See a dentist if you notice a white spot on a tooth, a dark spot, a rough area, or any pain when eating or drinking something sweet, hot, or cold. Pain that lingers after the stimulus is gone may indicate the decay has reached deeper layers.
Routine checkups matter because early cavities often cause no symptoms. By the time a cavity hurts, it is usually past the stage where it can be reversed. A dentist can catch it earlier with an exam and X-rays.
If you have dry mouth, gum recession, a history of cavities, or a diet high in sugar frequency, you may need more frequent checkups. Ask your dentist what schedule makes sense for your risk level.
Frequently Asked Questions
Can cavities go away without a filling?
Only very early cavities — white spot lesions before a hole forms — can reverse with fluoride and improved oral care. Once a physical hole exists in the enamel, it cannot heal on its own and needs a filling.
Do cavities always hurt?
No. Early cavities usually cause no pain at all, which is why routine dental exams matter. Pain typically appears once decay reaches the dentin or pulp.
Is it true that sugar causes cavities?
Sugar feeds the bacteria that produce cavity-causing acid, but sugar alone does not cause cavities without those bacteria present. Frequency of sugar exposure matters more than total amount.
Why do I get cavities even though I brush every day?
Brushing removes plaque and food, but it does not address other factors like saliva flow, bacterial makeup, gum recession, or how often you eat. Dry mouth from medications is a common and often overlooked cause in adults.

