Nighttime Headaches: Evaluation and Management
For headaches occurring primarily at night, you must first rule out secondary causes—particularly obstructive sleep apnea, intracranial hypertension, and bruxism—before diagnosing and treating specific primary headache disorders such as hypnic headache, cluster headache, or nocturnal migraine.
Initial Diagnostic Approach
Red Flags Requiring Immediate Investigation
When evaluating nighttime headaches, screen for these critical secondary etiologies 1, 2:
- Obstructive sleep apnea (OSA): Ask about snoring, witnessed apneas, daytime somnolence, morning headaches that improve after rising
- Intracranial hypertension: Look for papilledema, progressive worsening, positional changes, neurological deficits
- Temporomandibular joint dysfunction/bruxism: Jaw pain, teeth grinding, temporal muscle tenderness
- Structural lesions: New onset after age 50, progressive pattern, focal neurological signs
Diagnostic Testing Strategy
- Polysomnography is indicated when OSA is suspected or when the headache pattern is poorly defined without clear primary headache features 3, 4
- Neuroimaging (MRI with gadolinium) when red flags are present or to exclude structural causes 5, 2
- Basic laboratory work to exclude systemic causes (anemia, hypoxemia) 6
Primary Headache Disorders with Nocturnal Presentation
Once secondary causes are excluded, differentiate between these primary headache types:
Hypnic Headache ("Alarm Clock Headache")
Clinical features:
- Awakens patient at same time nightly (typically after 3-5 am)
- Occurs exclusively during sleep
- Bilateral or unilateral, dull to moderate intensity
- Duration: 15 minutes to 4 hours
- Age of onset typically >50 years
- May occur during REM sleep 6, 5
Treatment approach:
- First-line: Caffeine (40-60 mg before bedtime) or indomethacin 25-75 mg at bedtime 6, 5
- Alternative: Lithium 300-600 mg at bedtime 6
- Emerging option: Agomelatine 25 mg at bedtime showed complete resolution in case reports 7
Cluster Headache
Clinical features:
- Strictly unilateral, severe periorbital/temporal pain
- Circadian and circannual rhythmicity (predictable timing)
- Associated autonomic features (lacrimation, rhinorrhea, ptosis, miosis)
- Duration: 15-180 minutes
- Preferentially occurs during REM sleep 6
Treatment approach:
- Acute: Injectable sumatriptan and high-flow oxygen (12-15 L/min) 6
- Preventive: Verapamil (first-line), steroids for transitional therapy, lithium 6
- Intractable cases may respond to hypothalamic deep brain stimulation 6
Nocturnal Migraine
Clinical features:
- May awaken patient from sleep or present upon awakening
- Unilateral, throbbing quality
- Photophobia, phonophobia, nausea
- Can occur with or without aura
- Sleep deprivation is a known trigger 6
Treatment approach per 2023 VA/DoD guidelines:
- Acute treatment: Triptans, CGRP inhibitors (gepants), or aspirin-acetaminophen-caffeine combination 8
- Preventive for episodic migraine: Angiotensin-receptor blockers, lisinopril, magnesium, topiramate, valproate, memantine, CGRP monoclonal antibodies, or atogepant 8
- Preventive for chronic migraine: AbobotulinumtoxinA (note: NOT recommended for episodic migraine) 8
- Avoid gabapentin for episodic migraine prevention 8
Paroxysmal Hemicrania
Clinical features:
- Multiple daily attacks (>5 per day)
- Shorter duration than cluster (2-30 minutes)
- Similar autonomic features to cluster
- Can occur nocturnally
Treatment approach:
- Indomethacin shows absolute response (diagnostic and therapeutic) 6
Management of Sleep-Related Secondary Headaches
OSA-Associated Morning Headache
- CPAP or BiPAP typically resolves headache within one month 6
- This represents a direct treatment of the underlying cause rather than symptomatic management
Chronic Daily Headache with Insomnia
For chronic migraine or chronic tension-type headache with comorbid insomnia 6, 4:
- Screen for depression and anxiety (highly comorbid)
- Behavioral insomnia treatment is essential
- Preventive medications: Amitriptyline (addresses both headache and insomnia), topiramate, valproate 8, 6
- Address medication overuse if present
Common Pitfalls to Avoid
Don't assume all nighttime headaches are benign primary headaches—OSA is frequently missed and completely treatable 6, 4
Don't order polysomnography reflexively for well-defined primary headache disorders without sleep symptoms 3
Don't use gabapentin for episodic migraine prevention despite its common off-label use 8
Don't use botulinum toxin for episodic migraine—it's only indicated for chronic migraine 8
Consider upper airway resistance syndrome even in patients lacking traditional OSA risk factors 4
Recognize the REM sleep association—cluster headache, hypnic headache, and paroxysmal hemicrania preferentially occur during REM sleep due to silencing of anti-nociceptive networks 6
Algorithmic Decision Tree
- History suggests secondary cause? → Appropriate imaging/polysomnography
- OSA features present? → Polysomnography → CPAP/BiPAP
- "Alarm clock" pattern, age >50? → Trial of caffeine or indomethacin for hypnic headache
- Severe unilateral with autonomic features? → Cluster vs. paroxysmal hemicrania (differentiate by frequency and indomethacin response)
- Migraine features? → Follow 2023 VA/DoD guideline recommendations for acute and preventive treatment 8
- Chronic pattern with insomnia? → Screen for mood disorders, address behavioral sleep issues, consider amitriptyline