Can a Cavity Cause a Headache? Signs to Know

Yes, a cavity can cause a headache, and the connection is more direct than most people realize. Your teeth and much of your head share the same nerve network, so pain from a decayed tooth can radiate into your temples, forehead, or the area behind your eyes. The worse the cavity, the more likely you are to feel it beyond your mouth.

Why a Tooth Problem Causes Head Pain

The link comes down to a single nerve: the trigeminal nerve, the fifth cranial nerve and one of the largest in your head. It has three branches that supply sensation to almost your entire face. The upper branch covers your scalp, forehead, and the front of your head. The middle branch covers your cheek, upper jaw, upper teeth and gums, and the side of your nose. The lower branch handles your lower jaw, lower teeth, and bottom lip.

Because all three branches feed into the same nerve trunk before reaching your brain, pain signals from a damaged tooth can get misrouted. Your brain struggles to pinpoint exactly where the signal originated, so you feel a throbbing ache in your temple or behind your eye when the real problem is a molar. This is called referred pain, and it’s one of the most common reasons people don’t connect their headaches to a dental issue.

A small cavity sitting in the outer layer of enamel usually won’t cause this kind of referred pain. But once decay reaches deeper into the tooth, closer to the nerve-rich pulp at the center, the pain signals intensify and are far more likely to spread along the trigeminal nerve branches into your head.

The Sinus Connection

Your upper back teeth sit remarkably close to your maxillary sinuses, the large air-filled spaces behind your cheekbones. Some people have tooth roots that extend right into the sinus cavity. When a cavity in one of these upper teeth progresses into an infection, bacteria can pass directly from the diseased tooth into the sinus, triggering sinusitis. More than 40% of maxillary sinus infections actually originate from a dental problem rather than a cold or allergies.

Sinus-related headaches feel like pressure or fullness behind your cheekbones and forehead, and they typically get worse when you bend over or change head position. You might also notice congestion, a runny nose, or tenderness across multiple upper teeth rather than just one. Nearly 29 million Americans deal with sinusitis each year, and a significant chunk of those cases trace back to untreated dental infections that nobody suspected.

When a Cavity Becomes an Abscess

An untreated cavity doesn’t stay small forever. Once bacteria reach the pulp inside the tooth, infection can build up at the root tip, forming an abscess. This is where headaches become more severe and persistent. An abscessed tooth produces a constant, throbbing pain that can spread to your jawbone, neck, and ear, often accompanied by facial swelling and fever.

If the abscess doesn’t drain, the infection can spread into your jaw and other areas of your head and neck. A tooth near the maxillary sinus can create an opening between the abscess and the sinus cavity, compounding the problem. In rare but serious cases, an untreated dental abscess can lead to sepsis, a life-threatening condition where infection enters the bloodstream and affects your whole body. Fever combined with facial swelling, difficulty breathing, or trouble swallowing are signs of a dental emergency.

Dental Headache vs. Migraine

A tooth-related headache can look a lot like a migraine, which makes the real cause easy to miss. One published case documented a patient who suffered chronic migraine-like headaches for 35 years before multiple dental problems were identified as the underlying trigger. The headaches were moderate to severe, pulsating, lasted hours, came with nausea, and got worse with physical activity. By every standard diagnostic criterion, they looked like textbook migraines.

The key differences emerged over time. The headaches had developed alongside worsening dental problems, didn’t respond well to pain medications, and lacked certain migraine-associated symptoms like watery eyes, nasal congestion, or facial sweating. After full dental restoration, the headaches resolved completely and hadn’t returned at the two-year follow-up.

A few patterns can help you tell the difference. Dental headaches tend to be worse at night and are often triggered or worsened by chewing, biting down, or eating hot and cold foods. The pain usually stays on the same side as the affected tooth. If over-the-counter pain relievers help your headache temporarily but it keeps returning, and you know you’ve been putting off dental work, the two may well be connected.

What Happens After Treatment

Once a cavity is treated, any related headache typically begins to improve, though the timeline depends on how deep the decay was. For shallow to moderate fillings, most people feel significantly better within three to five days, with only occasional mild sensitivity by the end of the first week. Complete resolution usually happens within two weeks.

Deeper fillings that extended close to the pulp chamber can take three to four weeks to fully settle down. During this period, the sensitivity and any associated head pain should steadily improve rather than staying flat or getting worse. By the end of the healing window, the filled tooth should feel indistinguishable from your other teeth.

If you’re still experiencing sensitivity or headaches beyond four weeks with no improvement, or if symptoms are worsening rather than fading, that’s a sign something else may be going on. The filling may need adjustment, the decay may have been deeper than initially treated, or the tooth may need more extensive work like a root canal to fully address the nerve irritation driving the pain.

Signs Your Headache Is Dental

Not every headache traces back to your teeth, but several clues point in that direction:

  • One-sided pain that stays on the same side as a tooth you know has problems
  • Pain that worsens with chewing or biting down on a specific tooth
  • Sensitivity to hot or cold in a particular tooth, accompanied by head pain on that side
  • Worse at night, especially when lying down, which increases blood flow to the head
  • Facial swelling or a bad taste in your mouth, which suggest possible infection or abscess
  • Headache that doesn’t respond to typical remedies but improves temporarily with dental numbing gel applied to a sore tooth

If you’ve been dealing with recurring headaches that don’t fit a clear pattern and standard treatments aren’t helping, a dental exam can rule out or confirm whether an untreated cavity or other oral problem is the source. The fix is often straightforward, and the relief can be dramatic for people who’ve been unknowingly living with dental-driven head pain for months or years.