Occipital Neuralgia: Shooting Pain at the Back of the Head, How It Differs From Migraine and Which Treatments Help
⚡ Some headaches do not ache at all. They strike. A sudden jolt of pain shoots from the base of the skull up over the back of the head, sometimes reaching behind the eye, lasts a few seconds, and then comes again when you brush your hair, lie on a pillow or turn your neck. This electric, stabbing pattern points to occipital neuralgia, an irritation of the nerves that run from the upper neck into the scalp. 🔍 It is less common than migraine or tension headache, and it is often mistaken for both, which means many people try the wrong tablets for months. This guide explains where the occipital nerves run, what irritates them, how doctors confirm the diagnosis with a simple nerve block, which warning signs need urgent care, and how treatment works step by step, from heat and neck care to gabapentin, amitriptyline, carbamazepine and procedures for stubborn cases.
🧠 What occipital neuralgia is
📖 The word neuralgia means pain along the course of a nerve. In occipital neuralgia, the pain follows the occipital nerves, which carry feeling from the back of the scalp. Headache specialists define it by a short list of features: attacks of shooting, stabbing or electric pain in the area those nerves supply, often lasting seconds to a few minutes; abnormal sensitivity of the scalp, so that light touch or combing hurts; tenderness when the nerve is pressed at the base of the skull; and relief, at least for a while, when the nerve is numbed with a local anaesthetic. Between the jolts many people feel a dull ache or soreness in the same area.
📍 It is usually felt on one side, although both sides can be involved. The pain is a symptom of an irritated nerve, not a disease of the brain, which is reassuring, but the same pattern can sometimes be produced by problems in the upper neck that need their own care. That is why a proper examination matters before a label is given.
🗺️ Where the occipital nerves run
🧬 Three nerves are involved. The greater occipital nerve is the main one: it leaves the spine at the level of the second neck vertebra, curls through the deep neck muscles, pierces the tough tissue near the base of the skull and spreads over the back and top of the head. The lesser occipital nerve supplies the skin behind and above the ear. The third occipital nerve supplies a strip of skin low on the back of the head and upper neck. Because the nerves pass between muscles and close to the joints of the upper neck, tight muscles, joint arthritis or an old injury can squeeze or irritate them.
🔗 The last step explains a puzzling symptom. In the brainstem, signals from the upper neck nerves meet signals from the trigeminal nerve, which serves the face and eye. Pain that starts in the occipital nerve can therefore be felt behind the eye or in the forehead, even though nothing is wrong there. Doctors call this referred pain, and it is one reason occipital neuralgia is easily confused with migraine.
⚡ How the pain feels
💬 People describe it in vivid terms: an electric shock, a hot needle, a lightning bolt, a knife pushed up from the neck. The hallmark is a sudden jolt that peaks within a second and fades quickly, sometimes in volleys of several stabs in a row. Many also notice a background ache, a burning or tingling scalp, or patches of numbness. The scalp can become so sensitive that wearing a hat, resting the head on a car seat or tying the hair back sets off an attack.
🎯 Everyday triggers
🛏️ Attacks often come with no warning, but most people learn a set of triggers. Anything that stretches, presses or rubs the nerve can set it off. Recording them for two weeks helps both the patient and the doctor, because avoiding a trigger is the cheapest treatment there is.
🔍 What irritates the nerve
🧩 In many people no single cause is found, and the condition is called primary or idiopathic. In others, the nerve is irritated by something nearby that can be identified and sometimes treated. A doctor asks about neck injury, arthritis, previous surgery and other illnesses, because the cause shapes the treatment plan.
| 🧩 Possible cause | 📋 Typical story | 🧪 What may be checked |
|---|---|---|
| Tight neck muscles | Desk work, stress, poor sleep posture, pain worse late in the day | Examination of neck and shoulder muscles |
| Whiplash or head injury | Pain began days or weeks after a car accident or fall | Neck examination, imaging if needed |
| Upper neck arthritis | Older adult, stiff neck, pain on turning the head | X-ray or MRI of the cervical spine |
| After neck or skull surgery | Scar near the nerve path | Surgical history, examination |
| Shingles at the C2 level | Burning pain, then a rash on the back of the scalp | Skin examination |
| Diabetes and other nerve damage | Burning or numb areas elsewhere too | Blood sugar, other blood tests |
| Rare: tumour, blood vessel problem | Steady progression, neurological signs | MRI of brain and upper neck |
📖 If the pain started after a rash of blisters, the story is closer to nerve pain after shingles; see postherpetic neuralgia treatment for that pattern.
⚖️ Occipital neuralgia or migraine?
🤔 This is the most common mix-up. Migraine can start at the back of the head and spread forward, and occipital neuralgia can send pain to the eye. The difference lies in the rhythm of the pain and in what comes with it. Migraine builds over minutes to an hour, throbs, lasts hours to days, and brings nausea and sensitivity to light and sound. Occipital neuralgia flashes in seconds and comes in bursts, usually without nausea. The two can also exist in the same person, and an irritated occipital nerve can trigger migraine attacks in people prone to them.
💊 Triptans such as Imitrex (Sumatriptan) are made for migraine attacks and usually do little for neuralgic jolts. If a triptan reliably stops the pain, migraine is the more likely diagnosis. 📖 Full migraine treatment is covered in treatment of migraines.
🧩 Other headaches that look similar
| 🔎 Condition | 📋 How it differs |
|---|---|
| Tension-type headache | Pressing band-like ache on both sides, no electric jolts, scalp not exquisitely sensitive |
| Cervicogenic headache | Ache from the neck joints spreading forward, clearly linked to neck movement and reduced neck range, steady rather than stabbing |
| Cluster headache | Severe pain around one eye for 15 to 180 minutes, red watery eye, restlessness, attacks at night in bouts |
| Trigeminal neuralgia | Same electric quality but in the cheek, jaw or forehead, triggered by chewing, talking or touching the face |
| Giant cell arteritis | New headache after 50, tender temples, jaw pain on chewing, risk of vision loss, needs same-day care |
| Medication overuse headache | Daily dull headache in someone taking painkillers or triptans on many days each month |
📖 Related reading on these look-alikes: trigeminal neuralgia, cluster headache attacks at night, giant cell arteritis after 50, tension headache and physical therapy.
🩺 How the doctor makes the diagnosis
📝 There is no blood test or scan that proves occipital neuralgia. The diagnosis rests on the story, the examination and the response to a nerve block. The doctor asks how each attack feels, how long it lasts and what sets it off, then presses along the base of the skull. Pressing over the greater occipital nerve, about a third of the way from the bony bump at the back of the head toward the ear, often reproduces the pain or sends a tingle over the scalp. A light touch test checks for numb or oversensitive areas, and a short neurological examination looks for any weakness, change in reflexes, balance or vision.
🖼️ Do you need a scan?
🧲 Most people with a typical story and a normal examination do not need imaging before treatment starts. An MRI of the brain and upper neck is advised when anything does not fit: neurological signs, pain that keeps getting worse, pain that began after 50, a history of cancer or a weak immune system, constant rather than stabbing pain, or failure to respond to a nerve block. X-rays of the neck can show arthritis but rarely change management. Imaging is also used before any surgical procedure on the nerve.
Typical jolts, normal examination, good block response
Atypical pain, age over 50 at onset, no response to treatment
Weakness, confusion, vision loss, fever with stiff neck
🚩 Red flags that are not occipital neuralgia
⚠️ Pain at the back of the head needs same-day medical care if it comes with any of these:
🔹 A sudden severe headache that reaches full strength within a minute (a thunderclap headache).
🔹 Fever, a stiff neck, a rash or confusion.
🔹 Weakness, numbness of an arm or leg, slurred speech, double vision or loss of balance.
🔹 A new headache after a significant head or neck injury.
🔹 New headache after age 50 with tender temples, jaw pain while chewing or blurred vision.
🔹 Neck pain after neck manipulation followed by dizziness or vision change, which can signal a tear in a neck artery.
💉 The occipital nerve block
🧪 A nerve block is a small injection of local anaesthetic, such as lidocaine or bupivacaine, placed next to the greater occipital nerve at the base of the skull, sometimes with the lesser nerve too. It works as a test and a treatment at the same time. If the pain and scalp soreness fade within minutes, the diagnosis is confirmed. Relief often lasts much longer than the anaesthetic itself, for days, weeks and sometimes months, because calming the nerve for a while seems to reset its sensitivity. A corticosteroid is sometimes added, although its extra benefit is debated and it can thin the skin or cause a small bald patch at the injection site when repeated.
🏠 First steps at home
🔥 Mild or recent cases often settle with simple measures, and these remain useful alongside any medicine. The aim is to take pressure and tension off the nerve for long enough that it calms down.
🧘 Posture, physiotherapy and neck exercises
💪 When tight muscles or stiff upper neck joints are part of the problem, a course of physiotherapy aimed at the deep neck muscles and posture can reduce how often the nerve flares. Typical work includes chin tuck exercises to strengthen the deep neck flexors, shoulder blade exercises, gentle stretches of the muscles at the base of the skull, and advice on desk and sleep set-up. Forceful neck manipulation is usually avoided when the nerve is very irritable. Progress is slow and steady, and the benefit comes from daily practice over weeks rather than a single session.
💊 Anti-inflammatory painkillers: short-term help
📉 Ordinary painkillers do little against the electric jolts themselves, but a short course of an anti-inflammatory can ease the background ache and muscle soreness while other treatment takes effect. Common choices are Naprosyn (Naproxen), typically 250 to 500 mg twice a day with food, or Motrin (Ibuprofen), 400 mg up to three times a day with food. They are best used for days to a couple of weeks, not month after month.
🚫 Anti-inflammatories are not suitable, or need a doctor first, if you have: a stomach ulcer or bleeding in the past, kidney disease, heart failure, uncontrolled high blood pressure, asthma made worse by aspirin, or if you take blood thinners. Using any painkiller on more than about 10 to 15 days a month risks medication overuse headache; see medication overuse headache.
💊 Gabapentin: the most used nerve pain tablet
🧠 Gabapentin was developed for epilepsy, but it is widely used for nerve pain because it reduces the release of pain signals from overexcited nerve cells. In occipital neuralgia it is used off-label, based on its proven effect in other nerve pain conditions and on clinical experience. It does not work instantly: the dose is built up slowly, and it is judged after several weeks at a useful dose. Brands include Neurontin (Gabapentin) and Gabatop (Gabapentin).
⚠️ Gabapentin side effects and safety
😴 The most common side effects are drowsiness, dizziness and unsteadiness, which are worst in the first weeks and after each dose increase. Others include weight gain, swollen ankles, blurred vision and, less often, mood changes. Starting low and going slowly reduces most of them. Gabapentin should not be stopped suddenly after weeks of use; it is tapered over at least a week to avoid withdrawal symptoms and, in people with epilepsy, seizures.
| 🚫 Situation | 📝 Why it matters |
|---|---|
| Kidney disease | Gabapentin is cleared by the kidneys; the dose must be lowered |
| Opioids, sleeping tablets, alcohol | Added drowsiness and a risk of slowed breathing |
| Lung disease or older age | More sensitive to sedation and breathing effects |
| Past drug misuse | Gabapentin can be misused; close follow-up is needed |
| Driving or machinery | Wait until you know how it affects you |
| Antacids with aluminium or magnesium | Reduce absorption; take gabapentin about 2 hours later |
| Pregnancy or planning one | Discuss with the prescriber before starting |
🌙 Amitriptyline and nortriptyline at night
💤 Low-dose tricyclic medicines are the other main option for preventing nerve pain, and they are often chosen when poor sleep, neck muscle tension or coexisting headaches are part of the picture. The doses used for pain are much lower than those once used for depression. Amitriptyline usually starts at 10 mg about two hours before bed and rises by 10 mg every week or two, often to 25 to 50 mg, sometimes up to 75 mg. Nortriptyline is a close relative that tends to cause less sleepiness and dry mouth. Options include Elavil (Amitriptyline) and Pamelor (Nortriptyline).
📋 How it is commonly used
💊 10 mg in the evening to start
📈 Small steps every 1 to 2 weeks
⏳ Judged after 6 to 8 weeks at a steady dose
🌙 Taken early evening to reduce morning grogginess
⚠️ Main cautions
👄 Dry mouth, constipation, drowsiness, weight gain
💓 Not after a recent heart attack or with some rhythm problems
👁️ Avoided in narrow-angle glaucoma and urine retention
💊 Interacts with tramadol, some antidepressants and MAO inhibitors
🚨 Tricyclics are dangerous in overdose, so they are prescribed in small amounts to anyone who has had thoughts of self-harm. Older adults are more prone to confusion, falls and dizziness on standing, which is one reason nortriptyline or gabapentin may be preferred in that group.
⚡ Carbamazepine and oxcarbazepine for stabbing attacks
🔌 Carbamazepine is the classic medicine for trigeminal neuralgia, and some doctors use it when occipital pain comes as pure electric jolts, because the two conditions behave alike. It calms nerves that fire in bursts. It is typically started at 100 to 200 mg once or twice a day and increased slowly. Oxcarbazepine is a related medicine with fewer interactions that some people tolerate better. Options include Tegretol (Carbamazepine) and Trileptal (Oxcarbazepine).
💪 Muscle relaxants for a tight neck
🧷 When a tight, knotted band of muscle at the base of the skull seems to drive the attacks, a muscle relaxant taken at night can help for a limited period. Tizanidine, for example Tizan (Tizanidine), is usually started at 2 mg at bedtime. It causes drowsiness, dry mouth and low blood pressure, must not be combined with ciprofloxacin or fluvoxamine, and needs liver tests with longer use. It treats the muscle, not the nerve, so it works best combined with physiotherapy and posture work.
💊 Comparing the main medicines
💡 Pregabalin, a relative of gabapentin, is another option some doctors use. There is no proof that any one of these medicines is clearly best for occipital neuralgia, so the choice depends on other health problems, sleep, age, kidney function and side effects. Combining a low dose of two medicines can sometimes work better and with fewer side effects than a high dose of one.
🌳 Choosing the next step
🏥 Procedures for stubborn cases
🔧 A minority of people keep having frequent attacks despite nerve blocks and two or more medicines. For them, a pain specialist or neurosurgeon may offer procedures, which are used only after the diagnosis is secure, usually confirmed by a good response to blocks.
📅 What recovery usually looks like
🌱 The outlook is generally good. Many people improve over weeks to a few months, especially when a clear trigger such as posture or muscle tension is addressed. Some have flares that come and go for years, often during stressful periods or after a neck strain. Medicines that work are usually continued for several months after pain settles, then tapered slowly to see whether they are still needed.
Diagnosis, home measures, diary, maybe a block
Physiotherapy, medicine dose built up
Fewer attacks, triggers under control
Slow taper, flare plan ready
🗿 Myths about occipital neuralgia
🚨 When to see a doctor
⛔ Book a doctor visit if:
🔹 Shooting pain at the back of the head keeps coming back for more than a week or two.
🔹 Pain wakes you at night or stops you lying on a pillow.
🔹 You are taking painkillers on most days to cope.
🔹 The pain began after a neck injury or neck surgery.
⛔ Seek emergency care now if the headache is sudden and severe, or comes with fever, stiff neck, confusion, weakness, speech or vision changes, or follows a head injury.
📖 If your headaches are mostly throbbing with nausea, read treatment of migraines; if the electric pain is in the face rather than the back of the head, see trigeminal neuralgia.
❓ Frequently asked questions
What does occipital neuralgia feel like?
Sudden shooting, stabbing or electric jolts from the base of the skull over the back of the head, lasting seconds, often with a sore, sensitive scalp between attacks.
What causes occipital neuralgia?
Irritation of the occipital nerves by tight neck muscles, whiplash, upper neck arthritis, surgery or shingles. In many people no single cause is found.
How is occipital neuralgia different from migraine?
Occipital neuralgia gives brief electric stabs triggered by touch, usually without nausea. Migraine is a throbbing headache lasting hours with nausea and light sensitivity.
Is occipital neuralgia dangerous?
It is painful but not life-threatening. Sudden severe headache, fever, weakness or vision changes are not typical and need urgent care.
How long does an occipital nerve block last?
The numbness wears off within hours, but pain relief often lasts days to weeks and sometimes months. Blocks can be repeated.
Does gabapentin work for occipital neuralgia?
It is one of the most used medicines for it, off-label. The dose is built up slowly and judged after 4 to 8 weeks at a working dose.
What is the usual gabapentin dose for nerve pain?
Often 300 mg at night at first, rising to 900 mg a day in three doses and higher if needed. Kidney disease and older age need lower doses.
Can amitriptyline help occipital neuralgia?
Yes, at low doses such as 10 to 50 mg in the evening. It is useful when poor sleep or other headaches are also present.
Do I need an MRI for occipital neuralgia?
Not usually with a typical story and normal examination. An MRI is advised for red flags, onset after 50 or poor response to treatment.
Can occipital neuralgia go away on its own?
Yes, many cases settle over weeks to months, especially when posture and neck tension are addressed. Some people have flares that return.
📑 Sources and editorial
- 📘 International classification of headache disorders: diagnostic criteria for occipital neuralgia
- 🧠 Neurology and headache society reviews on occipital neuralgia and cervicogenic headache
- 💉 Clinical studies and reviews of greater occipital nerve blocks in headache disorders
- 💊 Prescribing information for gabapentin, amitriptyline, nortriptyline, carbamazepine, oxcarbazepine and tizanidine
- 📋 Guidelines on the pharmacological management of neuropathic pain in adults
- 🏥 Reviews of pulsed radiofrequency, botulinum toxin and occipital nerve stimulation
- 📖 Related reading: trigeminal neuralgia, treatment of migraines, cluster headache, medication overuse headache, postherpetic neuralgia
- 🛒 Related products: Neurontin (Gabapentin), Gabatop (Gabapentin), Elavil (Amitriptyline), Pamelor (Nortriptyline), Tegretol (Carbamazepine), Trileptal (Oxcarbazepine), Naprosyn (Naproxen), Tizan (Tizanidine)
- 🩺 RXshop Editorial Team — reviewed by James Carter, MD — Neurology and Sleep Medicine
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.