What Causes Pain in Back of Head Behind Ear?

Pain in the back of the head behind the ear most commonly comes from irritation of the occipital nerves, which run from the upper spine up through the scalp. But several other conditions can produce pain in this exact spot, ranging from neck problems and jaw disorders to infections of the bone behind the ear. The cause matters because treatments differ significantly, and a few possibilities need prompt attention.

Occipital Neuralgia

The most frequent explanation for sharp or shooting pain behind the ear is occipital neuralgia, a condition where one of the occipital nerves becomes compressed or irritated. Two nerves are especially relevant here. The greater occipital nerve runs up the back of the head from the upper neck. The lesser occipital nerve takes a path that loops behind the ear, splitting into branches that serve the area right behind and above the ear (the mastoid and auricular branches). When either nerve is pinched, it produces electric shock-like jolts, burning, or deep throbbing that radiates from the base of the skull up and over the head.

Compression can happen at several points along the nerve’s path. Tight neck muscles, especially from prolonged sitting or forward head posture, are a common culprit. Enlarged lymph nodes in the back of the neck have been documented pressing directly on the lesser occipital nerve and triggering recurring pain. Prior neck injury, arthritis in the upper spine, or even a tight ponytail or helmet can set it off. In one study of 44 patients treated with a nerve block injection, over 95 percent experienced meaningful relief lasting at least six months, which suggests the nerve is the true pain generator in a large majority of cases.

Neck Problems That Refer Pain Behind the Ear

Your cervical spine (the neck portion) can send pain signals to the back of the head and behind the ear even when the neck itself doesn’t hurt much. This is called a cervicogenic headache. The top three vertebrae in your neck (C1, C2, and C3) share a pain-processing relay station with nerves that serve the head, so irritation in the neck gets “misinterpreted” by the brain as head pain.

About 70 percent of cervicogenic headaches trace back to the joint between the second and third cervical vertebrae. The pain typically starts on one side, worsens with head movement, and can spread forward toward the eye or temple. Disc problems, whiplash injuries, chronic muscle spasms in the neck and shoulders, and even prolonged strain from desk work can all sensitize these structures. If you notice your pain gets worse when you turn your head, look up, or press on the back of your neck, a cervical source is likely.

Jaw Joint Disorders

Temporomandibular joint (TMJ) disorders are an overlooked cause of pain that reaches behind the ear. The jaw joint sits just in front of the ear canal, and the nerve that supplies it (a branch of the trigeminal nerve) connects to pain pathways that overlap with the ear and back of the head. TMJ problems frequently cause referred pain that feels like headache, neck stiffness, or deep aching behind the ear.

Clues that your jaw joint is involved include clicking or grinding when you open your mouth, soreness in the jaw muscles (especially in the morning if you clench or grind at night), pain that worsens with chewing, and difficulty opening your mouth wide without discomfort. Many people with TMJ-related head pain don’t initially connect it to their jaw because the referred pain can feel distant from the joint itself.

Mastoiditis

The mastoid bone is the hard bump you can feel directly behind your ear. When it becomes infected, a condition called mastoiditis, it causes pain, swelling, redness, and warmth right over that bone. The ear itself is usually involved too: the eardrum may bulge with pus behind it, and the back wall of the ear canal can swell inward. In some cases the eardrum ruptures and drains.

Mastoiditis almost always develops as a complication of a middle ear infection that spreads into the honeycomb-like air cells of the mastoid bone. It’s more common in children but happens in adults as well. If you have pain behind the ear along with fever, ear discharge, or visible swelling pushing the outer ear forward, this needs same-day medical evaluation. Untreated mastoiditis can spread to the brain or bloodstream.

Giant Cell Arteritis

In adults over 50, pain behind the ear can occasionally signal giant cell arteritis, an inflammation of blood vessels that most people associate with temple pain and jaw claudication. However, this condition can affect any artery in the scalp. Case reports document giant cell arteritis presenting as lesser occipital neuralgia, with sharp pain attacks lasting seconds, occurring multiple times a day, triggered by pressing just behind the mastoid bone. The pain radiated up to the top of the head.

This diagnosis matters because untreated giant cell arteritis can cause permanent vision loss. If you’re over 50 and develop new, unexplained head pain behind the ear, particularly alongside scalp tenderness, jaw pain while chewing, fatigue, or any visual changes, bring it up promptly with a doctor.

How These Conditions Feel Different

The quality and pattern of pain offers useful clues about its source:

  • Sharp, electric, shooting: Occipital neuralgia typically produces brief jolts of intense pain that follow a line from the base of the skull upward. Pressing on the nerve at the back of the skull often reproduces the pain.
  • Dull, one-sided, movement-related: Cervicogenic headache tends to be a steady ache that worsens when you move your neck, often accompanied by stiffness and reduced range of motion.
  • Aching with jaw involvement: TMJ pain often fluctuates with eating, talking, or jaw clenching and may be worst in the morning.
  • Throbbing with swelling and fever: Mastoiditis causes localized tenderness with visible inflammation over the bone behind the ear, usually following an ear infection.

Of course, overlap exists. Tight neck muscles can irritate the occipital nerve and mimic cervicogenic headache simultaneously. A careful physical exam, where a clinician presses along the nerve paths and moves your neck through its range of motion, usually narrows the diagnosis.

What Treatment Looks Like

For occipital neuralgia, initial treatment focuses on reducing the compression or irritation. Physical therapy targeting the neck and upper back muscles is a first-line approach, often combined with heat, gentle stretching, and temporary use of anti-inflammatory pain relievers. If that isn’t enough, a nerve block injection (a local anesthetic with a small amount of steroid delivered near the nerve) provides significant relief in the vast majority of patients, typically lasting months.

Cervicogenic headaches respond well to manual therapy, postural correction, and exercises that strengthen the deep neck muscles. If a specific joint is identified as the source, targeted injections or mobilization techniques can help. For TMJ-related pain, treatment often involves a bite guard for nighttime clenching, jaw exercises, stress management, and sometimes physical therapy focused on the jaw and neck together.

Mastoiditis requires antibiotics and, in many cases, a procedure to drain the infected fluid. Giant cell arteritis is treated with steroids to quickly reduce inflammation and protect vision.

Signs That Need Urgent Attention

Most pain behind the ear is uncomfortable but not dangerous. However, certain combinations of symptoms point to something more serious. Seek immediate care if your pain comes with fever, double vision or vision loss, weakness or numbness in the face or limbs, difficulty speaking, sudden confusion, or visible swelling and redness behind the ear. These patterns suggest infection, vascular inflammation, or neurological involvement that benefits from rapid treatment.