A headache in the back of the head most often comes from the upper neck and skull base, not the brain itself. The brain has no pain receptors; the tissues that hurt are the muscles, joints, and nerves around the skull and cervical spine. That is why occipital pain is usually mechanical or nerve-driven, and why location alone cannot rule out a dangerous cause.
The occiput is the back of the skull. Pain there is called occipital headache, and clinicians sort it by which structure is irritated. Three generators dominate: the upper cervical joints and muscles, the greater and lesser occipital nerves, and the meninges or blood vessels inside the skull. Each produces a different pattern, and the pattern is what makes the location useful.
Why the back of the head hurts: the anatomy of referred pain
The upper three cervical nerve roots converge with the trigeminal nerve in a region called the trigeminocervical complex in the brainstem. Signals from the neck and signals from the face and meninges land on overlapping neurons there. The brain cannot tell exactly where a signal originated, so neck dysfunction is felt in the back of the head and sometimes behind the eye. This convergence is the anatomical reason a stiff neck can cause a headache.
The greater occipital nerve is the main sensory nerve of the back of the scalp. It arises from the C2 nerve root, wraps around the semispinalis capitis muscle, and travels up the back of the skull. The lesser occipital nerve (C2–C3) supplies the side of the head behind the ear. Both can be compressed or irritated by muscle tension, joint degeneration, or direct trauma.
Cerebrospinal fluid pressure and meningeal traction are a separate pathway. When intracranial pressure rises or falls, the meninges stretch, and pain is felt at the back of the head and neck because the meninges are innervated by upper cervical and vagus fibers. This is why a thunderclap headache or a low-pressure headache after a spinal procedure often localizes to the occiput.
Muscles matter too. The suboccipital muscles, semispinalis capitis, and trapezius attach to the skull base and upper cervical vertebrae. Sustained contraction, poor posture, or whiplash injury makes these muscles taut and tender, and they refer pain upward into the occiput. Pain is not imaginary when the muscle is the generator; the muscle is a genuine source of nociceptive input.
The practical takeaway: occipital location points to a short list of generators, and the pattern of pain, timing, and triggers separates them. A clinician uses that pattern before ordering any test.
How common each cause is, and how long it lasts
Tension-type headache is the most common headache overall, and its pain frequently sits in the occiput and neck. Population surveys consistently place lifetime prevalence of tension-type headache at roughly one-third to one-half of adults, though estimates vary widely by definition. Migraine affects roughly one in seven adults worldwide, and about half of migraine attacks involve the neck and occiput, often as a premonitory symptom.
Cervicogenic headache, pain genuinely driven by cervical structures, has a reported prevalence of about 1 to 4 percent in the general population but a much higher share in headache clinics. Occipital neuralgia is rarer, estimated at a few cases per 100,000 people per year, and is frequently overdiagnosed when the actual cause is cervicogenic.
Duration is the discriminator. A tension-type episode typically lasts 30 minutes to several days. A migraine attack runs 4 to 72 hours untreated. A cervicogenic headache is usually unilateral, moderate, and builds over minutes, and it can persist for days if the neck problem persists. Occipital neuralgia produces brief, electric-shock-like jabs lasting seconds to minutes, repeated in clusters.
| Pattern | Typical duration | Key trigger | Laterality |
|---|---|---|---|
| Tension-type | 30 min to days | Stress, sustained posture | Bilateral |
| Migraine | 4–72 hours | Light, sound, hormonal shifts | Usually unilateral |
| Cervicogenic | Minutes to days | Neck movement, sustained position | Unilateral |
| Occipital neuralgia | Seconds to minutes per jab | Scalp touch, neck extension | Unilateral |
| Medication overuse | Daily, on waking | Frequent painkiller use | Variable |
| Secondary (red flag) | Sudden or progressive | Exertion, cough, trauma | Variable |
The table is a starting point, not a diagnosis. Overlap is common; migraine and tension-type headache coexist in many people, and a cervicogenic component can sit on top of either.
The time course: when to watch and when to act
Timing carries diagnostic weight. A headache that peaks within seconds to a minute is a thunderclap headache until proven otherwise. A headache that builds over hours and worsens with lying down, coughing, or straining suggests raised intracranial pressure. A headache that follows a head or neck injury within days is post-traumatic and needs its own evaluation.
| Time frame | What it suggests | What to do |
|---|---|---|
| Seconds to 1 minute | Thunderclap; possible subarachnoid hemorrhage | Emergency evaluation now |
| Minutes to hours, first ever, severe | New secondary headache | Urgent same-day assessment |
| 4–72 hours, recurring with light/sound sensitivity | Migraine | Discuss with primary care |
| Days to weeks after trauma | Post-traumatic headache | Clinical evaluation, imaging if indicated |
| Weeks to months, daily, on waking | Medication overuse or sleep-related cause | Review medications with a clinician |
| Progressive over weeks with neurologic signs | Mass lesion or raised pressure | Urgent imaging |
| Brief jabs over months, same spot | Occipital neuralgia | Neurology or pain clinic referral |
A headache that is new after age 50 deserves attention because giant cell arteritis and other secondary causes become more likely with age. A headache in someone with cancer, immune suppression, or a bleeding disorder is higher risk for secondary causes.
Red flags and edge cases that change the workup
Most occipital headaches are benign, but location does not protect you. The warning signs below do not diagnose anything; they are the reasons to seek urgent care rather than wait.
Thunderclap onset reaching maximum intensity within one minute Headache with fever, stiff neck, rash, or confusion New weakness, numbness, vision loss, or trouble speaking Headache after a fall, collision, or whiplash injury Headache that is worse when lying flat, coughing, or straining New headache after age 50, especially with scalp tenderness or jaw pain on chewing
The counterintuitive detail: a headache that is clearly positional, worse when upright and better when lying flat, can signal low cerebrospinal fluid pressure, not high pressure. The two point in opposite directions and are often confused. Low-pressure headache is typically worst within 15 minutes of standing and relieved within 30 minutes of lying down.
Another edge case is medication overuse headache. Taking simple analgesics on 15 or more days per month, or triptans or combination analgesics on 10 or more days per month, can sustain a daily headache that worsens on waking. The location is often occipital. Stopping the overused medication is the treatment, but it should be done with clinical guidance.
Occipital neuralgia is overcalled. True neuralgia produces paroxysmal jabs with tenderness over the nerve, and it responds to nerve blockade. Many people labeled with it have cervicogenic headache from upper cervical joint dysfunction, which needs a different approach. The distinction matters because the treatments diverge.
Common misconceptions about occipital headache
The most persistent myth is that pain at the back of the head means the problem is in the brain. The brain itself cannot feel pain, and most occipital pain arises outside it. That said, the myth has a kernel of truth: meningeal and vascular causes do refer pain to the occiput, which is why red flags still matter.
A second misconception is that neck pain and headache are always separate problems. They often share a generator through the trigeminocervical complex. Treating the neck can reduce the headache, and treating only the headache can leave the neck driver untreated.
A third is that imaging settles the question. A normal MRI does not exclude cervicogenic headache, tension-type headache, or migraine; those are clinical diagnoses. Imaging is for excluding structural and secondary causes, not for confirming primary headache disorders. Ordering scans reflexively adds cost and anxiety without changing management in most typical cases.
A fourth is that posture alone explains everything. Posture contributes, but sleep, stress, hydration, caffeine intake, and medication patterns matter as much or more. Blaming the desk chair can crowd out the factors that are actually modifiable.
Practical actions and when to seek care
Start with a short headache diary. Record onset time, location, severity on a 0–10 scale, triggers, sleep hours, medications taken, and what relieved it. Two to four weeks of entries gives a clinician far more than a single office visit description. Bring the diary to the appointment.
Address the modifiable drivers. Keep a consistent sleep and wake time, since irregular sleep is a common migraine trigger. Maintain hydration and regular meals. Limit caffeine to a stable daily amount rather than cycling up and down. Take breaks from sustained neck positions every 30 to 45 minutes. These steps are low risk and often reduce attack frequency.
Use over-the-counter analgesics sparingly and follow the label. The threshold that matters is frequency: daily or near-daily use can convert an episodic headache into a chronic one. If you are using pain relievers more than 2 to 3 days per week, that is a reason to see a clinician rather than to keep self-treating.
Seek emergency care for thunderclap onset, headache with fever and stiff neck, new neurologic deficits, or headache after significant head trauma. Seek same-day or urgent care for a first severe headache, a headache that is progressive over days, or a new headache after age 50. Seek routine care for headaches that interfere with work or sleep, or that are increasing in frequency.
For persistent occipital pain with nerve tenderness, ask about a diagnostic greater occipital nerve block. It is both a treatment and a test: relief after blockade supports a nerve-mediated cause. Physical therapy targeting the upper cervical spine and postural endurance helps cervicogenic headache. These are clinical decisions, not self-treatment steps.
What location can and cannot tell you
Location narrows the differential but never closes it. Occipital pain is most often benign and mechanical, yet the same location hosts the red-flag secondary causes. The pattern, timing, and associated symptoms carry more diagnostic weight than the spot on the skull. A careful history outperforms a scan in typical primary headache.
Be cautious with certainty from any single source, including this one. Prevalence figures vary by definition and population, and the boundaries between cervicogenic headache, occipital neuralgia, and migraine with neck involvement are debated among specialists. If your headache pattern changes, escalates, or stops responding to what usually works, that change is itself information worth acting on.
The practical summary for a headache in the back of the head: most cases trace to the neck, muscles, or nerve irritation and respond to sleep, posture, and trigger management. A minority reflect serious causes, and the red flags above are how you tell the difference. When in doubt, the safe move is evaluation, not waiting.