A headache in the back of the head is most often a tension-type headache, but it can also signal nerve irritation or a problem originating in the neck. The location matters because the back of the head (the occipital region) is a crossroads where neck muscles, spinal nerves, and scalp nerves all converge. Understanding the type of pain you’re feeling helps narrow down the cause and points you toward the right relief.
Tension-Type Headaches
The most common culprit is a tension-type headache. It feels like a dull, aching pressure or tightness across the forehead, sides, or back of the head. Many people describe it as a band squeezing around their skull. You may also notice tenderness in your scalp, neck, and shoulder muscles, though muscle contraction isn’t actually what causes the pain. The exact mechanism is still debated, but heightened sensitivity of pain pathways in the brain plays a central role.
Episodic tension headaches can last anywhere from 30 minutes to a full week. If they become chronic, they may last hours at a time or feel nearly constant. Stress, poor sleep, skipped meals, and prolonged screen time are the most common triggers. These headaches respond well to over-the-counter pain relievers, rest, and stress management, but overusing pain medication (more than a couple of days per week) can actually cause rebound headaches that make the cycle worse.
Occipital Neuralgia: Nerve Pain in the Scalp
If the pain feels sharply different from a typical headache, stabbing or shooting rather than dull and achy, the problem may be occipital neuralgia. This condition involves irritation of the occipital nerves, which run from the upper spine through the scalp. The pain typically comes in sudden bursts lasting seconds to minutes, and it can feel like an electric shock or a piercing jab on one or both sides of the back of the head.
A hallmark sign is tenderness when you press on the base of the skull where the nerves emerge. Some people also develop unusual sensitivity in their scalp, where even brushing their hair or resting their head on a pillow becomes uncomfortable. The cause is almost always nerve compression. Tight neck muscles, particularly the muscles connecting the upper spine to the skull, are the most common source. Less often, injury, arthritis in the upper cervical spine, or inflammation can pinch the nerve at various points along its path.
For people whose pain doesn’t respond to standard treatments, a nerve block injection at the base of the skull can help. When effective, relief typically begins within 20 to 30 minutes and can last anywhere from several hours to several months. People who have reproducible tenderness when pressing on the nerve are the most likely to respond well to this procedure.
Cervicogenic Headaches: Pain Referred From the Neck
A cervicogenic headache starts in the neck but is felt in the back of the head, and sometimes radiates forward to the forehead or behind the eye. The pain is “referred,” meaning it originates in one place (the cervical spine) but is perceived in another (the head). This happens because the upper three spinal nerves in the neck (C1, C2, and C3) share a pain processing hub with the main nerve of the head and face. When structures in the upper neck become irritated, the brain interprets the signals as head pain.
About 70 percent of cervicogenic headaches trace back to the joint between the second and third cervical vertebrae, making it the single most frequent source. These headaches are usually one-sided and often triggered by neck movement or sustained awkward postures. Pressing on specific spots along the neck can reproduce the pain, which helps distinguish this type from a migraine or tension headache. Physical therapy targeting neck mobility and strength is the primary treatment approach.
How to Tell These Types Apart
The quality of pain is your best clue:
- Tension headache: Dull pressure or tightness, bilateral (both sides), often involves the forehead too. No sharp or shooting quality.
- Occipital neuralgia: Sharp, stabbing, or electric-shock pain in sudden bursts. Scalp tenderness or sensitivity. Often triggered by pressing the base of the skull.
- Cervicogenic headache: Starts with neck stiffness or pain, usually one-sided, worsens with neck movement, and may spread toward the eye or temple on the same side.
Overlap is common. Someone with chronic neck tension might develop both cervicogenic headaches and tension-type headaches simultaneously, making self-diagnosis tricky. If your headaches follow a consistent pattern and respond to basic self-care, tracking your triggers is usually enough. If the pattern changes or pain becomes severe, a clinical evaluation can sort out which structures are involved.
The Role of Posture and Screen Time
Forward head posture, sometimes called “tech neck,” is an increasingly common contributor to headaches at the back of the head. Looking down at a phone or laptop forces the neck muscles to strain while the shoulders slump forward. Over time, this uneven pressure on the spine increases the load on the muscles and joints of the upper neck, exactly the area connected to occipital and cervicogenic headaches.
The fix is straightforward but requires consistency. Position your screen at eye level so your head stays balanced over your spine rather than jutting forward. Take breaks every 20 to 30 minutes to move your neck through its full range of motion. Chin tucks, where you gently pull your chin straight back as if making a double chin, strengthen the deep neck muscles that counteract forward head posture. Stretching the upper trapezius and the muscles at the base of the skull can also relieve the tightness that compresses occipital nerves.
Self-Care That Helps
For tension-type and mild cervicogenic headaches, applying heat to the neck and base of the skull relaxes tight muscles and improves blood flow. A warm towel or heating pad for 15 to 20 minutes often provides noticeable relief. For occipital neuralgia flares, some people find that alternating cold and warm applications works better, since cold helps numb the irritated nerve while heat relaxes the surrounding muscles.
Gentle neck stretches and self-massage at the base of the skull can reduce the muscle tightness that contributes to all three types. Pressing firmly (but not painfully) on the bony ridge where your skull meets your neck and holding for 20 to 30 seconds can release tension in the suboccipital muscles. Regular exercise, adequate sleep, and managing stress reduce the frequency of all headache types, not just those at the back of the head.
When the Pain Is an Emergency
Most headaches at the back of the head are uncomfortable but not dangerous. A few patterns, however, require immediate medical attention. A sudden, explosive headache that reaches maximum intensity within seconds, sometimes called a “thunderclap” headache, can indicate bleeding in the brain. A headache accompanied by fever, stiff neck, nausea, and vomiting may signal meningitis. Slurred speech, vision changes, difficulty moving your arms or legs, confusion, or loss of balance alongside a headache suggest a possible stroke or other neurological emergency.
Also pay attention to headaches that come on during or right after physical exertion like weightlifting, running, or sex, as well as any headache you’d describe as “the worst ever,” even if you get headaches regularly. A headache that steadily worsens over 24 hours without responding to any treatment also warrants urgent evaluation.

