Headaches at the back of the head most commonly come from tension in the neck and upper spine, but they can also signal nerve irritation, cervical spine problems, or migraine. The location alone doesn’t point to one diagnosis, so the type of pain, how long it lasts, and what triggers it matter more than where you feel it.
Tension and Posture Problems
The most common reason for pain at the back of your head is muscle tension in the neck and upper spine. Tension-type headaches produce a mild to moderate feeling of constant pressure across the head, face, or neck. They’re rarely severe, but they can linger for hours or even days.
Poor posture is a major driver. When you tilt your head forward to look at a screen, the effective weight of your head on your neck increases significantly. Over time, that added strain stresses the muscles, joints, and discs in the neck and upper spine. As those muscles work harder to keep your head upright, they tighten and can trigger headaches or worsen existing ones. This often produces stiffness, tingling, or a feeling of pressure right at the base of the skull. If your headaches tend to build through the workday or feel worse after long stretches at a computer, posture is a likely contributor.
Occipital Neuralgia
Occipital neuralgia is a nerve condition that causes sharp, shooting, or stabbing pain that starts in the upper neck and radiates up and over the back of the head toward the scalp. The pain comes in bursts lasting anywhere from a few seconds to a few minutes, and it can be severe. Between episodes, you may notice a dull ache or heightened sensitivity in the area. Even light touch on the scalp, like brushing your hair, can feel painful or uncomfortable.
The condition happens when the occipital nerves, which run from the upper spine through the scalp, become compressed or irritated. Common causes include trauma (a bump to the head, whiplash), tight muscles pinching the nerve, or arthritis in the upper cervical spine. It affects men and women equally. A hallmark feature is tenderness when you press on the nerve at the base of the skull, roughly where the neck meets the head on either side of the spine.
How Occipital Neuralgia Differs From Migraine
Migraine can also cause pain at the back of the head, so the two conditions are sometimes confused. The differences are fairly distinct once you know what to look for.
Occipital neuralgia produces short bursts of sharp, electric pain concentrated at the base of the skull and back of the head. Episodes last seconds to minutes. Migraine, by contrast, causes a pounding or throbbing pain that can be one-sided or affect both sides, lasting up to 72 hours when untreated. Migraine also comes with a package of associated symptoms: nausea, vomiting, sensitivity to light and sound. Occipital neuralgia rarely produces those.
Triggers are different too. Most migraine patients can identify patterns like changes in sleep, weather, hormones, stress, or reactions to flashing lights and strong smells. Occipital neuralgia episodes are more often set off by physical factors: sleeping in an awkward position, a blow to the head, or even something as minor as brushing your hair. Migraine is also far more common in women, while occipital neuralgia affects both sexes at similar rates.
Cervicogenic Headaches
A cervicogenic headache is pain you feel in your head that actually originates in your neck. It’s referred pain, meaning the source of the problem is in one place (the cervical spine) but you feel it somewhere else (the back or side of your head). Issues with the top three vertebrae (C1 through C3), the surrounding joints, ligaments, nerve roots, or vertebral arteries can all produce this type of headache.
The key clue is that the headache typically gets worse when you move your neck, and your range of motion may be noticeably limited. The pain usually starts in the neck and moves upward. It’s often one-sided and doesn’t switch sides. Causes include disc problems, joint dysfunction, whiplash injuries, and age-related wear in the cervical spine. Imaging findings in the upper cervical spine are common even in people without headaches, though, so a scan alone isn’t enough to confirm the diagnosis. Doctors look for a clear connection between the neck problem and the timing or behavior of the headache.
Exertion Headaches
Some headaches at the back of the head only show up during or right after physical effort. Activities that involve tensing the abdominal muscles or increasing pressure in the chest are typical triggers: heavy lifting, intense exercise, coughing, sneezing, straining on the toilet, and even sexual intercourse. These primary exertion headaches usually last seconds to minutes, but with repeated effort the pain can build and last longer.
Occasional exertion headaches are generally harmless. If the pattern is new or the pain is unusually intense, it’s worth getting evaluated, since headaches triggered by straining or changes in body position can occasionally point to pressure issues inside the skull.
Treatment for Chronic Back-of-Head Pain
Treatment depends entirely on the cause. For tension-related headaches driven by posture, the fix centers on ergonomic changes, regular breaks from screens, stretching, and sometimes physical therapy to address muscle imbalances in the neck and upper back.
For occipital neuralgia and cervicogenic headaches, one of the most effective treatments is an occipital nerve block. This is an outpatient injection of anesthetic (sometimes combined with a steroid) near the occipital nerve. You sit with your head tilted forward or lie on your stomach while the injection is placed at the base of your skull. The procedure is quick, and you go home the same day. Nerve blocks can also help with migraine and cluster headaches that produce posterior pain.
Physical therapy is a first-line approach for cervicogenic headaches, since the goal is to address the underlying neck problem. If the cervical issue improves, the headache typically improves in parallel.
Warning Signs That Need Urgent Evaluation
Most back-of-the-head headaches are benign, but certain features suggest something more serious. A sudden-onset headache that hits maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a vascular emergency like an aneurysm and needs immediate evaluation.
Other red flags include: new headaches starting after age 50, headaches that are progressively getting worse or more frequent over weeks, neurological symptoms like weakness in an arm or leg, new numbness, or vision changes. Headaches that change intensity when you shift position (standing versus lying down) or that are triggered by coughing and straining can sometimes point to a pressure problem inside the skull.
Fever, night sweats, unexplained weight loss, or a compromised immune system alongside new headaches also raise concern for a secondary cause. New-onset headaches during or after pregnancy warrant evaluation for vascular or hormonal conditions that can produce posterior head pain.

