Why the Back of Your Head Hurts and How to Treat It

Pain at the back of your head usually comes from tight muscles in the neck and scalp, poor posture, or irritation of the nerves that run from your upper spine to the top of your skull. Less commonly, it signals something that needs urgent attention. The location of the pain, how it behaves, and what makes it better or worse are the best clues to figuring out what’s going on.

Tension and Muscle Strain

The most common reason for pain at the back of your head is plain muscle tension. The muscles in your neck extend upward into your scalp, so tightness or strain anywhere along that chain can radiate into the back of your head, your temples, or both. You’ll typically feel a dull, pressing sensation rather than sharp or shooting pain, and your scalp, neck, and shoulders may feel tender to the touch. Episodes can last anywhere from 30 minutes to a full week, and if they become chronic, the discomfort can feel nearly constant.

Posture is a major driver. Slouching over a desk, holding your head forward from your shoulders while looking at a screen, or angling your neck down at a phone all stress the muscles, joints, and nerves in your upper back and neck. Over hours, that strain transmits tension into the entire back of the head and scalp. Rounding your shoulders compounds the problem. If your headaches tend to build through the workday and ease on weekends or vacations, posture is a likely contributor.

Cervicogenic Headache: When Your Neck Is the Source

A cervicogenic headache starts in the bones, discs, or soft tissues of your upper cervical spine and refers pain into the back of your head. It’s distinct from a tension headache because the pain typically locks to one side, gets noticeably worse when you move your neck, and tends to radiate from the back of your head forward toward your eye or forehead. Pressing on certain neck muscles can reproduce the headache almost exactly.

This type of headache often develops alongside a neck problem you can point to: arthritis, a disc issue, whiplash, or chronic stiffness that limits how far you can turn your head. The International Headache Society considers reduced neck range of motion and the ability to trigger the headache with specific neck movements key distinguishing features. If your headache improves in step with your neck getting better (through physical therapy, for example), that’s strong evidence the neck was the source.

Occipital Neuralgia

Two large nerves, one on each side, travel from between the bones of your upper spine, through the muscles at the back of your head, and into your scalp. When one of these nerves becomes irritated or compressed, it can fire off shooting, electric, or zapping pain that starts at the base of your skull and radiates upward. The pain sometimes shoots forward toward one eye. Your scalp on the affected side can become so sensitive that washing your hair or resting your head on a pillow feels unbearable. Some people also notice numbness in the area.

Causes include arthritis in the upper neck compressing a nerve root, tight muscles entrapping the nerve, or prior injury or surgery to the scalp or skull. It can also appear without an obvious trigger. The greater occipital nerve is involved in roughly 90 percent of cases, while the lesser occipital nerve accounts for about 10 percent.

True isolated occipital neuralgia is actually quite rare. Johns Hopkins Medicine notes that many headaches, especially migraines, can repeatedly affect the back of the head on one side and inflame the occipital nerve, creating confusion about the real diagnosis. In one study of 800 patients at a headache clinic, about 25 percent were diagnosed with occipital neuralgia, but 85 percent of those also had a coexisting headache disorder like migraine. Only about 15 percent had occipital neuralgia on its own.

Migraines That Hit the Back of the Head

People often assume migraines always strike behind one eye or at the temple, but they frequently settle at the back of the head instead. A migraine in this location can feel a lot like occipital neuralgia, which is why the two are often confused. The giveaway is usually the full migraine package: throbbing or pulsing quality, sensitivity to light or sound, nausea, and episodes lasting hours to days. If you have a personal or family history of migraine, posterior head pain is more likely migraine than a nerve issue.

Low Spinal Fluid Pressure Headaches

A less common but important cause is low cerebrospinal fluid pressure, usually from a small leak in the membranes surrounding the brain and spinal cord. When the fluid pressure drops, the brain can sag slightly when you’re upright, stretching pain-sensitive structures and causing a headache that’s often worst at the back of the head. The signature feature is positional: the pain is absent or mild when you first wake up lying flat, then starts or worsens shortly after you get out of bed. It often comes with neck stiffness and nausea, and it improves quickly when you lie back down.

What Treatment Looks Like

For tension-related and posture-driven pain, the most effective changes are the simplest. Adjusting your workstation so your screen is at eye level, taking breaks from static postures, and stretching the muscles of your neck and upper back can reduce the frequency and severity of episodes significantly. Physical therapy targeting the upper cervical spine helps both tension-type and cervicogenic headaches.

For occipital neuralgia or cervicogenic headaches that don’t respond to conservative measures, a nerve block injection at the back of the skull is a common next step. Pain relief typically begins 20 to 30 minutes after the injection and can last anywhere from several hours to several months, depending on the person. Some people need a series of injections before they get lasting results, and not everyone responds.

Migraines affecting the back of the head are managed the same way as migraines in any other location, with acute medications to stop an episode and, if attacks are frequent, preventive strategies to reduce how often they occur.

When Back-of-Head Pain Is an Emergency

Most posterior headaches are not dangerous, but certain features demand immediate evaluation. A thunderclap headache, one that reaches maximum intensity within seconds to minutes, carries a greater than 40 percent probability of serious intracranial pathology like a brain bleed. That alone justifies an emergency room visit.

Other red flags to take seriously:

  • Fever combined with a stiff neck, which raises concern for infection around the brain
  • Sudden neurological changes like weakness, vision loss, confusion, or difficulty speaking
  • A brand-new headache pattern after age 50
  • Headache triggered by coughing, sneezing, or exertion, which can point to structural problems at the base of the skull
  • Headache that progressively worsens over days to weeks without responding to anything
  • Pain following a head injury, even if the injury seemed minor at the time

Any of these in combination with back-of-head pain shifts the situation from “probably nothing serious” to “needs imaging or further workup now.”