Swollen lymph nodes can cause headaches, but the relationship is rarely as straightforward as one directly triggering the other. In most cases, headaches and swollen lymph nodes show up together because they share an underlying cause, such as an infection or an inflammatory condition. In rare circumstances, though, an enlarged lymph node can physically press on a nerve and produce head pain on its own. Understanding which scenario applies matters for deciding whether to ride it out or get to a doctor.
When a Swollen Lymph Node Physically Triggers a Headache
The most direct mechanism is nerve compression. Your head and neck are packed with sensory nerves running through tight spaces alongside lymph nodes. If a node swells enough, it can press against a nearby nerve and generate pain that radiates into the head. A documented case involved a 52-year-old man who suffered from recurring migraine-like pain on one side of his head. Imaging revealed a mass in the right occipital area, sitting directly on top of the lesser occipital nerve. When surgeons removed it, the tissue turned out to be a benign, reactively enlarged lymph node. After the surgery, the man’s headaches resolved completely.1PubMed. Lymph node compression of the lesser occipital nerve: a cause of migraine
That case was the first published report of a hyperplastic lymph node causing migraine through physical nerve compression, which tells you something about how unusual it is. But the mechanism itself is well understood: the lesser occipital nerve, the greater occipital nerve, and branches of the superficial cervical plexus all run through the back and sides of the neck where lymph nodes cluster. Any of those nerves can be irritated by a neighboring structure that grows large enough. The resulting headache often follows a recognizable pattern, starting in the back of the head or neck and radiating forward, sometimes mimicking a migraine or a tension headache.
The More Common Scenario: A Shared Cause
Most of the time, when you notice both swollen lymph nodes and a headache, neither one is causing the other. Both are symptoms of the same underlying process. The classic example is a viral or bacterial infection. When you catch a cold, the flu, or a sinus infection, your immune system ramps up. Lymph nodes in the neck swell because they’re filtering pathogens and producing immune cells. Meanwhile, the infection itself triggers a headache through inflammation, fever, sinus congestion, or a combination of all three. The swollen nodes and the headache are parallel consequences of the same illness, not a cause-and-effect chain.
This pattern extends well beyond the common cold. Mononucleosis, strep throat, ear infections, dental abscesses, and even scalp infections can all produce the combination of cervical lymph node swelling and headache. In each case, treating the underlying infection typically resolves both symptoms.
Post-Viral Syndromes and Lingering Headaches
Sometimes swollen lymph nodes and headaches stick around long after the initial infection has cleared. Post-viral syndromes have drawn considerable attention in recent years. In an observational study of 802 patients dealing with post-infectious symptoms, about 35% reported long-term headaches, and a large proportion also experienced ongoing pain, fatigue, and sleep problems.2PubMed Central. Post-Viral Pain, Fatigue, and Sleep Disturbance Syndromes: Current Knowledge and Future Directions Persistent or mildly enlarged lymph nodes are another common lingering feature after viral illness, though they don’t always get the same attention as headaches or fatigue.
What connects these lingering symptoms appears to be ongoing low-grade immune activation. The virus may be gone, but the immune system hasn’t fully stood down. That continued inflammatory state can keep lymph nodes mildly swollen while also contributing to headaches through mechanisms like neuroinflammation. For people stuck in this pattern, the frustrating reality is that neither symptom has a single clear trigger you can remove. Management tends to focus on symptom relief, pacing, sleep quality, and sometimes anti-inflammatory medications.
Where the Swelling Is Matters
Not all swollen lymph nodes are equally likely to be involved in headaches. The location makes a real difference.
- Occipital nodes: These sit at the base of your skull, right where several major sensory nerves emerge. Swelling here has the most plausible path to triggering a headache directly, because these nodes are neighbors to the greater and lesser occipital nerves.
- Posterior cervical nodes: Running along the back of the neck, these nodes are near the superficial cervical plexus. Significant enlargement can irritate nerves that serve the scalp and the side of the head.
- Anterior cervical and submandibular nodes: These are the ones you most commonly feel during a sore throat or cold. They sit along the front and underside of the jaw. While they’re less likely to directly compress a headache-producing nerve, they’re a reliable signal that an infection is going on, and the infection itself may be causing the headache.
- Preauricular nodes: Located just in front of the ear, these swell with eye infections, scalp conditions, and ear infections. Their proximity to the temporal region means significant swelling could contribute to localized head pain.
When a doctor evaluates headaches alongside swollen lymph nodes, the location of the swelling is one of the first things they’ll assess. Occipital and posterior cervical swelling with a same-side headache raises more suspicion of a direct nerve-compression link than, say, swollen nodes under the jaw with a generalized headache.
Cancer and Cervical Lymph Node Involvement
This is the fear that drives many people to search this question in the first place, and it deserves a clear-eyed discussion. In most cases, swollen lymph nodes with a headache are not cancer. The vast majority of enlarged lymph nodes are reactive, meaning they’re responding to an infection or inflammation, and they resolve within a few weeks.
That said, cancer-related lymph node enlargement can produce headaches. A case report documented a patient who developed a cervicogenic headache, meaning a headache originating from the neck, that was traced to metastatic cancer in a cervical lymph node sitting right next to the superficial cervical plexus. The enlarged, cancerous node was irritating the nerve bundle and producing referred pain in the head. The authors specifically noted that in patients with a history of cancer, clinicians should consider the possibility of metastasis to cervical lymph nodes and use imaging to evaluate the cervical area.3PubMed Central. Cervicogenic headache arising from hidden metastasis to cervical lymph node adjacent to the superficial cervical plexus -A case report-
Lymphomas can also cause widespread lymph node swelling accompanied by systemic symptoms like fatigue, night sweats, unexplained weight loss, and headaches. In these cases, the headache is typically a constitutional symptom of the disease rather than the result of a single node pressing on a nerve. The key differentiator is that cancer-related lymph nodes tend to be firm or hard, painless, fixed in place rather than freely movable, and persistent or growing over weeks to months. Reactive nodes from infection are usually tender, soft, movable, and shrink back to normal within two to four weeks.
Vascular Conditions That Can Mimic Swollen Lymph Nodes
Not everything that feels like a swollen lymph node in the neck actually is one. Giant cell arteritis, an inflammatory condition that affects the arteries, can cause swelling in the face and neck that may be mistaken for enlarged lymph nodes. The condition involves inflammation of blood vessel walls, particularly branches of the external carotid artery. Because that artery has branches reaching across the scalp, temple, and jaw, the symptoms can include headache, jaw pain when chewing, and neck swelling. A case report described face and neck swelling and difficulty opening the mouth as the first symptoms of giant cell arteritis, appearing before the more recognized features like tenderness over the temples.4PubMed Central. Neck swelling and airway narrowing as an initial manifestation of giant cell arteritis
Giant cell arteritis primarily affects people over 50, and it is considered a medical urgency because untreated inflammation of the temporal artery can lead to permanent vision loss. If you’re over 50 and develop a new headache with neck or facial swelling, jaw pain, or scalp tenderness, this is a condition worth raising with your doctor promptly rather than assuming you just have swollen glands.
Muscle Tension as the Hidden Link
There’s another connection between neck-area swelling and headaches that gets overlooked: the muscular response. When lymph nodes in the neck are swollen and tender, you naturally guard that area. You might hold your head slightly off-center, tense your neck muscles, or sleep in an awkward position to avoid pressing on the sore spot. Over a few days, that guarding behavior can trigger tension-type headaches all on its own.
Tension headaches from muscle guarding produce a dull, pressing sensation that wraps around the head, often concentrated at the temples or the back of the skull. They’re easily mistaken for a headache “caused by” the swollen nodes, when in reality the nodes are just sore and the headache is a secondary consequence of how you’ve been holding your body. The fix is often simpler than you’d expect: gentle stretching, a warm compress on the neck, over-the-counter anti-inflammatory medication, and conscious effort to stop bracing against the tenderness.
When to See a Doctor
Most episodes of swollen lymph nodes with headache are benign and self-limiting. A viral infection produces both, and both go away in a week or two. But certain patterns warrant medical evaluation sooner rather than later.
- Duration: Lymph nodes that stay swollen or continue growing for more than two to three weeks without an obvious infection deserve a look.
- Character of the node: A hard, painless, immovable node is more concerning than a tender, squishy, freely mobile one.
- Systemic symptoms: Unexplained weight loss, drenching night sweats, persistent fever, or progressive fatigue alongside the swelling and headache raises the clinical suspicion for something beyond a simple infection.
- Headache features: A new headache that is severe, worsening, or different from any headache you’ve had before is worth investigating on its own. Paired with unexplained lymph node swelling, the combination becomes more urgent.
- Age over 50 with new headache: As noted with giant cell arteritis, new-onset headaches in people over 50 have a different set of possible causes than in younger adults, and some of them require fast treatment.
- Cancer history: If you’ve had a previous cancer diagnosis, any new lymph node enlargement should be evaluated to rule out recurrence or metastasis.3PubMed Central. Cervicogenic headache arising from hidden metastasis to cervical lymph node adjacent to the superficial cervical plexus -A case report-
The evaluation itself is usually straightforward. A doctor will feel the nodes, ask about duration and associated symptoms, and may order blood work or an ultrasound. Imaging can distinguish a simple reactive node from something that needs a biopsy. In the rare cases where the node is directly compressing a nerve, imaging can show the anatomical relationship and guide the decision about whether removal would help.
What Over-the-Counter Treatments Can and Cannot Do
If you’re dealing with the common version of this, a viral illness producing both swollen glands and a headache, standard self-care covers most of what you need. Ibuprofen or acetaminophen addresses both the pain from the swollen nodes and the headache. Staying hydrated, resting, and using warm compresses on tender neck areas all help. Decongestants or saline irrigation can reduce sinus-related headache pressure if congestion is part of the picture.
What over-the-counter treatments cannot do is shrink the lymph nodes themselves. The nodes will come down when the immune response that triggered them winds down. No supplement, essential oil, or topical treatment speeds up that process in any clinically meaningful way, despite what you might read online. If the nodes aren’t shrinking after two to three weeks, that’s a signal for your doctor, not for a stronger home remedy.
Children and Swollen Lymph Nodes With Headache
Parents frequently notice swollen lymph nodes in their children’s necks and worry when a headache accompanies them. Children’s lymph nodes are proportionally larger and more reactive than adults’, which means they swell more readily and more visibly in response to minor infections. A child with a cold, ear infection, or even a mild scalp scratch can develop palpable cervical nodes that alarm a parent who wouldn’t think twice about the same thing in themselves.
Headaches in children during infections follow the same shared-cause logic as in adults. The infection produces fever, congestion, or general malaise, and the headache comes along with it. Direct nerve compression from an enlarged node is exceedingly rare in children. The practical takeaway for parents is the same set of red flags described above: worry less about tender, movable nodes during an obvious infection, and pay more attention if nodes are hard, painless, growing over weeks, or accompanied by weight loss, persistent fever, or fatigue that doesn’t improve.
One pattern that is relatively specific to children is cervical lymphadenitis, where a lymph node becomes infected itself rather than just reacting to a nearby infection. This produces a visibly swollen, red, warm, and painful lump in the neck. The overlying skin may appear inflamed. Children with this can develop headaches from the pain and inflammation alone. Cervical lymphadenitis sometimes needs antibiotics or drainage, so a hot, red, rapidly growing node in a child’s neck warrants a same-day medical visit rather than watchful waiting.