What Makes a Cavity Hurt? From Enamel Loss to Nerve Pain

A cavity hurts when decay eats through enough of your tooth to expose the sensitive inner layers where nerve endings live. The outer shell of your tooth, enamel, has no nerves at all. You can have a cavity for months or even years without feeling a thing. Pain only starts once the damage reaches deeper tissue, and how much it hurts depends on how far the decay has spread.

How Your Tooth Is Built to Feel Pain

Your tooth has three main layers. The outermost layer, enamel, is the hardest substance in your body and contains zero nerve fibers. Beneath it sits dentin, a softer layer riddled with thousands of microscopic tubes called dentinal tubules. These tubes run from the outer edge of the dentin all the way inward toward the innermost layer: the pulp.

The pulp is where the pain machinery lives. It’s a soft, blood-rich connective tissue packed with sensory nerve fibers that branch from the trigeminal nerve, the major nerve of your face. These fibers fan out near the border between the dentin and the pulp, forming a dense network. Some of their tiny endings actually extend outward into the dentinal tubules themselves. This arrangement means the pulp can detect threats long before bacteria physically reach it.

Why a Small Cavity Doesn’t Hurt Yet

When a cavity is limited to the enamel, there’s nothing to feel. Enamel has no connection to the nerve supply. This is why dentists often catch cavities on X-rays before you notice any symptoms. About 22% of adults aged 20 to 34 have untreated tooth decay, and many of them have no idea because the damage hasn’t gone deep enough to trigger pain.

Once bacteria break through the enamel and reach the dentin, things change. The dentinal tubules contain fluid, and that fluid connects the outside surface of your tooth to the nerve-rich pulp. Even though bacteria may still be millimeters away from the pulp itself, pain can begin at this stage because of what’s happening inside those tiny tubes.

The Fluid Movement That Triggers Pain

The most widely accepted explanation for dentin-level tooth pain is called the hydrodynamic theory. Here’s the idea: when something stimulates an exposed area of dentin (cold air, hot coffee, sugar, even touch), it causes the fluid inside the dentinal tubules to shift rapidly. That fluid movement creates a tiny physical force on the nerve endings embedded in or near the tubules, and those nerve endings fire a pain signal.

Cold stimuli push the fluid outward, away from the pulp. Heat pushes it inward, toward the pulp. Both directions generate enough shear force on nerve terminals to activate them. This is why a tooth with a cavity can sting when you drink ice water or sip hot soup. The fluid inside the tubules is essentially acting as a hydraulic link between what’s happening on the surface and the nerves buried deep inside.

Sugar and acidic foods can trigger the same mechanism. They draw fluid out of the tubules through osmotic pressure, producing that same rapid shift. If you’ve ever felt a sharp zing when something sweet hits a certain tooth, that’s the fluid in your dentinal tubules moving fast enough to trip a nerve ending.

Sharp Pain vs. Dull, Throbbing Pain

Your tooth pulp contains two distinct types of sensory nerve fibers, and each one produces a different kind of pain. The first type conducts signals quickly and creates a sharp, sudden, stabbing sensation. This is the kind of pain you feel when cold water hits a sensitive tooth. It’s brief and localized. These fast fibers sit near the dentin border and respond primarily to that fluid movement in the tubules.

The second type conducts signals more slowly and produces a dull, throbbing, aching pain. This is the kind that keeps you up at night and feels harder to pinpoint. These slower fibers are concentrated deeper in the pulp and become active when the tissue itself is inflamed or damaged. If your cavity pain has shifted from occasional sharp zings to a persistent ache, that’s a sign the decay is reaching the pulp and triggering the deeper nerve network.

What Happens When Bacteria Reach the Pulp

As a cavity grows, bacteria like streptococci and lactobacilli continue producing acidic byproducts that dissolve dentin the same way they dissolved the enamel. But their damage isn’t limited to the acids. Bacterial toxins and metabolic waste products seep through the dentinal tubules toward the pulp, activating an immune response before the bacteria themselves even arrive. Odontoblasts, the cells lining the border between dentin and pulp, are the first to encounter these invaders and sound the alarm.

The pulp responds with inflammation: increased blood flow, swelling, and the release of chemical signals that sensitize nerve endings. This is pulpitis, and it’s the primary reason a cavity graduates from occasional sensitivity to real, persistent pain. The problem is that the pulp sits inside a rigid chamber of mineralized tooth. Unlike a swollen ankle that can expand freely, an inflamed pulp has nowhere to swell. The pressure builds inside a closed space, compressing nerves and blood vessels, which intensifies the pain dramatically.

Reversible vs. Irreversible Damage

Not all pulp inflammation is permanent. In its early stages, the pulp can still heal if the source of irritation (the cavity) is removed and sealed with a filling. This is sometimes called reversible pulpitis. The hallmark is pain that comes on with a trigger, like cold or sweet food, and fades within a few seconds once the trigger is gone. The deeper, slower nerve fibers haven’t been chronically sensitized yet, and the tissue retains its ability to repair.

When the inflammation has gone too far, the pulp loses that healing capacity. Pain becomes spontaneous, arriving without any obvious trigger. It lingers for minutes after exposure to heat or cold. You might notice a throbbing that gets worse when you lie down, because the change in blood pressure to your head increases pressure inside the already-swollen pulp chamber. At this point, the slow-conducting nerve fibers deep in the pulp are firing due to direct tissue damage, and portions of the pulp may already be dying. Bacteria may have colonized the tissue, forming micro-abscesses. A filling alone won’t fix this stage. The pulp needs to be treated or removed.

The frustrating reality is that there’s no precise clinical test to draw a clean line between these two stages. A dentist can apply cold to the tooth and gauge your response, but the transition from reversible to irreversible inflammation is a biological continuum, not a light switch.

When Pain Spreads Beyond the Tooth

If an infected pulp goes untreated, bacteria can travel through the root canal and exit at the tip of the root, entering the jawbone. This is a periapical abscess, and it introduces a new source of pain entirely. The infection causes swelling and inflammation in the bone and the ligament that anchors the tooth to the jaw. The result is severe, constant, throbbing pain that can radiate into the jawbone, neck, or ear. The tooth may feel “tall” in your bite because the swelling is literally pushing it slightly out of its socket.

At this stage, the pain is no longer just about nerve fibers inside the tooth. It’s about pressure and inflammation in the surrounding bone and soft tissue. This is why abscess pain feels so much more intense and widespread than a simple cavity zing. The infection has escaped the tooth entirely and is now affecting structures with their own rich nerve supply.

Why the Pain Sometimes Stops on Its Own

Occasionally, a tooth that has been hurting for days or weeks will suddenly go quiet. This isn’t a sign that the problem resolved itself. It usually means the nerve inside the pulp has died. Once the tissue is no longer alive, it can no longer send pain signals from inside the tooth. But the bacteria are still present, and the infection continues to spread toward the root tip and jawbone. The pain often returns, this time originating from the abscess forming below the tooth rather than from the tooth itself. A tooth that stops hurting after a long period of worsening pain is not healing. It’s progressing.