Headache Drugs: Medications That Cause or Treat Headaches

Clinical medical image for symptoms headache: Headache Drugs: Medications That Cause or Treat Headaches

At a glance

  • Tension-type headache affects roughly 40% of the global population annually
  • Migraine prevalence is approximately 12% worldwide, with a 3:1 female-to-male ratio
  • Medication-overuse headache (MOH) occurs in 1-2% of the general population
  • Triptans remain first-line acute migraine therapy per AHS 2021 guidelines
  • CGRP monoclonal antibodies reduced monthly migraine days by 50% or more in roughly half of clinical trial participants
  • Nitrate-induced headache affects up to 82% of patients starting nitroglycerin
  • Analgesic use on 15 or more days per month for 3+ months defines medication-overuse headache
  • Ibuprofen 400 mg has an NNT of 2.5 for acute tension-type headache relief

How Headaches Are Classified and Why Drug Choice Depends on It

The International Headache Society (IHS) divides headaches into primary disorders (migraine, tension-type, cluster) and secondary headaches caused by another condition, including drug exposure. This classification system, the International Classification of Headache Disorders, 3rd edition (ICHD-3), is the diagnostic foundation that determines which medication a clinician should prescribe [1].

Primary headaches account for over 90% of all headache presentations. Tension-type headache is the most common, affecting roughly 40% of adults in any given year according to Global Burden of Disease data [2]. Migraine follows at approximately 12% prevalence, but generates disproportionate disability. The World Health Organization ranks migraine as the second leading cause of years lived with disability worldwide. Cluster headache is rarer, affecting fewer than 1 in 1,000, but produces some of the most severe pain known in medicine.

Drug selection tracks directly to these categories. A triptan works for migraine but does nothing for tension-type headache. Oxygen therapy is effective for cluster headache but irrelevant for the other two. Prescribing errors frequently stem from misclassification, which is why the American Headache Society consensus statement emphasizes accurate diagnosis before pharmacotherapy [3].

First-Line Drugs for Treating Acute Headaches

For tension-type headache, simple analgesics remain the standard. Ibuprofen 400 mg achieves at least 50% pain relief in roughly 1 out of every 2.5 patients treated, according to a Cochrane systematic review of 12 trials covering over 3,100 participants [4]. Acetaminophen 1 to 000 mg is also effective, though with a slightly higher number needed to treat (NNT) of 3.6. Aspirin 900-1 to 000 mg performs comparably to ibuprofen for episodic tension-type headache.

Migraine acute therapy is more nuanced. The AHS 2021 consensus statement recommends triptans as first-line for moderate-to-severe migraine attacks [3]. Sumatriptan 100 mg oral achieves pain freedom at 2 hours in approximately 32% of patients versus 11% with placebo, based on a meta-analysis of 133 trials published in The Lancet [5]. Subcutaneous sumatriptan 6 mg raises that figure to roughly 59%.

Not all triptans perform identically. Rizatriptan 10 mg and eletriptan 80 mg have shown slightly higher 2-hour pain-free rates than sumatriptan in head-to-head comparisons, though individual response varies. "The best triptan is the one that works for the individual patient," noted Dr. Peter Goadsby, a leading headache researcher, in a 2017 review in The New England Journal of Medicine [6].

Newer options include the gepants (ubrogepant, rimegepant), small-molecule CGRP receptor antagonists approved for acute migraine. These avoid the vasoconstrictive effects of triptans, making them suitable for patients with cardiovascular risk factors. The ACHIEVE-I trial (N=1,672) showed ubrogepant 50 mg achieved 2-hour pain freedom in 19.2% versus 11.8% placebo [7].

For cluster headache, high-flow oxygen at 12 L/min via nonrebreather mask and subcutaneous sumatriptan 6 mg are first-line, per European Headache Federation guidelines [8].

Preventive Medications That Reduce Headache Frequency

Patients experiencing 4 or more migraine days per month, or those with attacks that respond poorly to acute therapy, should be considered for preventive treatment. Traditional oral preventives include topiramate, propranolol, amitriptyline, and valproate.

Topiramate 100 mg daily reduced monthly migraine days by approximately 1.8 days more than placebo in the MIGR-002 trial (N=469) [9]. Propranolol 80-240 mg daily has similar efficacy but a different side-effect profile: fatigue and exercise intolerance versus the cognitive dulling and weight loss seen with topiramate.

The CGRP monoclonal antibodies (erenumab, fremanezumab, galcanezumab, eptinezumab) changed migraine prevention beginning in 2018. In the STRIVE trial (N=955), erenumab 140 mg monthly reduced migraine days by 3.7 per month versus 1.8 for placebo [10]. The REGAIN trial demonstrated galcanezumab's efficacy even in chronic migraine, with roughly 28% of patients achieving a 50% or greater reduction in monthly migraine days versus 15% placebo [11].

For chronic tension-type headache, amitriptyline 25-75 mg at bedtime is the best-studied preventive, per a Cochrane review [12]. Venlafaxine and mirtazapine may also work, though evidence is thinner.

Cluster headache prevention relies primarily on verapamil 240-960 mg daily (requiring ECG monitoring for PR prolongation) and short-term bridging with corticosteroids. Lithium is a second-line option for chronic cluster headache, requiring serum level monitoring.

Drugs That Cause Headaches as a Side Effect

The same pharmacology that treats one headache type can trigger another. This bidirectional relationship is clinically significant because patients frequently do not connect a new medication with a new headache pattern.

Nitrates and nitric oxide donors are the most studied headache-inducing drugs. Nitroglycerin causes headache in up to 82% of users, according to a study in the European Journal of Neurology [13]. Isosorbide mononitrate and isosorbide dinitrate carry similar risk. The mechanism involves nitric oxide-mediated vasodilation and activation of trigeminal nociceptors.

PDE5 inhibitors (sildenafil, tadalafil, vardenafil) produce headache in 16-28% of users across clinical trials. Sildenafil's FDA label lists headache as the most common adverse event [14]. The mechanism overlaps with nitrate-induced headache since PDE5 inhibition increases downstream cGMP, potentiating nitric oxide signaling.

Hormonal preparations are frequent headache triggers. Combined oral contraceptives containing ethinyl estradiol can worsen migraine, particularly during the placebo week when estrogen drops. The WHO medical eligibility criteria classify combined hormonal contraceptives as category 4 (unacceptable health risk) for women with migraine with aura due to increased stroke risk [15].

Proton pump inhibitors such as omeprazole are underrecognized headache triggers. A large Danish cohort study found PPI use associated with a 24% increased risk of incident migraine [16].

Other common offenders include dipyridamole (up to 34% headache incidence), nifedipine and other dihydropyridine calcium channel blockers, caffeine withdrawal after chronic use, and histamine-releasing drugs.

Medication-Overuse Headache: When the Cure Becomes the Cause

Medication-overuse headache (MOH) is one of the most clinically important drug-headache relationships. It affects an estimated 1-2% of the general population, but up to 50-80% of patients seen in tertiary headache clinics [17]. ICHD-3 defines MOH as headache occurring on 15 or more days per month in a patient with a pre-existing headache disorder who has been overusing acute headache medication for more than 3 months [1].

The thresholds differ by drug class. Triptans, ergots, opioids, and combination analgesics carry a 10-day-per-month threshold. Simple analgesics (NSAIDs, acetaminophen) carry a 15-day threshold. "Patients often escalate their analgesic use gradually, and neither the patient nor the clinician recognizes the overuse pattern until the headache has become daily," wrote Dr. Hans-Christoph Diener in a 2019 Lancet Neurology review [18].

The pathophysiology involves central sensitization and downregulation of endogenous pain modulation. Opioids carry the highest MOH risk. Butalbital-containing combinations are also particularly problematic.

Treatment requires withdrawal of the overused medication, which typically worsens headaches for 2-10 days (longer with opioids or barbiturates). Bridge therapy with naproxen 500 mg twice daily, corticosteroids (prednisone taper), or nerve blocks can ease the transition. Starting a preventive medication simultaneously improves outcomes. A randomized trial comparing abrupt withdrawal to continued use found that stopping the overused drug was associated with a 42% reduction in headache days at 8 weeks [19].

Which Drug Classes to Try Based on Headache Pattern

Matching the medication to the headache type and frequency is where clinical decision-making earns its value. A patient with 2 migraines per month needs acute treatment only. A patient with 10 migraine days per month needs both acute and preventive therapy.

For episodic migraine (fewer than 15 days per month), acute-only management with triptans, NSAIDs, or gepants may suffice. The AHS position statement recommends considering prevention when acute treatment is needed more than 2 days per week, acute treatments fail or are contraindicated, or attacks cause significant disability [3].

For chronic migraine (15 or more headache days per month with at least 8 having migraine features), onabotulinumtoxinA (Botox) 155 units every 12 weeks is FDA-approved based on the PREEMPT trials (N=1,384), which showed a reduction of 8.4 headache days per month versus 6.6 for placebo [20]. CGRP antibodies are the other main option for chronic migraine prevention.

For new daily persistent headache (NDPH), treatment is less evidence-based. Clinicians often trial the same preventives used for chronic migraine, but response rates are lower. This remains one of the most treatment-resistant headache disorders.

Patients with cardiovascular disease who cannot use triptans should receive gepants or lasmiditan (a 5-HT1F agonist without vasoconstrictive properties). The SAMURAI trial (N=1,856) showed lasmiditan 200 mg achieved 2-hour pain freedom in 32.2% versus 15.3% placebo [21].

Red-Flag Headaches That Require Urgent Evaluation, Not a Prescription

Not every headache should be treated with medication before evaluation. Certain features ("red flags") signal a secondary headache requiring urgent workup. The SNOOP mnemonic, widely taught in neurology training, captures the key warning signs: Systemic symptoms (fever, weight loss), Neurological signs, Onset sudden ("thunderclap"), Older age at onset (after 50), and Pattern change (progressive worsening) [22].

A thunderclap headache reaching peak intensity within 60 seconds demands emergent CT followed by lumbar puncture if imaging is negative, to rule out subarachnoid hemorrhage. The sensitivity of non-contrast CT for subarachnoid hemorrhage is approximately 98% within 6 hours of onset but drops to 93% by 24 hours, per a study in The BMJ [23].

Headache with papilledema suggests raised intracranial pressure (idiopathic intracranial hypertension, mass lesion). New headache in an immunocompromised patient requires imaging and possible CSF analysis. Headache after trauma, particularly with anticoagulant use, warrants CT to exclude intracranial hemorrhage.

Drug therapy without appropriate evaluation in these scenarios can delay diagnosis of life-threatening conditions. The correct first step is always clinical assessment.

Emerging Therapies and Pipeline Drugs for Headache

Several new drug classes are in late-stage development. Atogepant, an oral CGRP antagonist, received FDA approval in 2021 for episodic migraine prevention. In the ADVANCE trial (N=910), atogepant 60 mg daily reduced mean monthly migraine days by 3.7 versus 2.5 for placebo [24].

Eptinezumab, the only intravenous CGRP antibody, offers rapid onset. In the PROMISE-2 trial (N=1,072), 100 mg IV achieved a 50% responder rate of 57.6% for months 1-3 versus 38.8% placebo in chronic migraine [25]. The IV route may benefit patients who have difficulty with self-injection.

Pituitary adenylate cyclase-activating peptide (PACAP) receptor antagonists represent a novel target distinct from CGRP. Early-phase trials are underway. Nitric oxide synthase inhibitors and glutamate receptor modulators are also in the pipeline, though none have reached phase III yet.

Neuromodulation devices (single-pulse transcranial magnetic stimulation, supraorbital transcutaneous nerve stimulation, noninvasive vagus nerve stimulation) provide drug-free options for patients who prefer or require non-pharmacological approaches. These are FDA-cleared and supported by randomized trial data [26], though effect sizes are generally smaller than pharmacotherapy.

Patients who have failed at least two oral preventives and one CGRP-targeted therapy should be referred to a headache specialist or multidisciplinary headache center. The American Academy of Neurology quality measure set considers referral after three preventive failures a performance benchmark [27].

Frequently asked questions

What causes headache?
Primary headaches (migraine, tension-type, cluster) result from neurological dysfunction rather than structural disease. Migraine involves trigeminal nerve activation and CGRP release. Tension-type headache involves peripheral and central pain sensitization. Secondary headaches are caused by an identifiable condition such as medication side effects, infection, vascular events, or raised intracranial pressure.
How is headache diagnosed?
Diagnosis is clinical, based on headache characteristics (location, quality, duration, associated symptoms) matched to ICHD-3 criteria. No blood test or imaging study diagnoses primary headache. Imaging (CT or MRI) is reserved for red-flag features. A detailed headache diary tracking frequency, duration, triggers, and medication use is one of the most useful diagnostic tools.
When should I worry about headache?
Seek urgent evaluation for thunderclap headache (peak intensity within 60 seconds), headache with fever and neck stiffness, headache with new neurological symptoms (weakness, vision changes, confusion), progressive worsening over weeks, new headache after age 50, or headache following head trauma. These patterns may indicate subarachnoid hemorrhage, meningitis, stroke, or mass lesion.
Can ibuprofen cause headaches?
Yes. Ibuprofen and other NSAIDs can cause medication-overuse headache when used on 15 or more days per month for 3 or more months. Paradoxically, the same drug that treats an acute headache can perpetuate chronic daily headache through central sensitization when overused.
What is the best over-the-counter drug for headaches?
For tension-type headache, ibuprofen 400 mg has the strongest evidence (NNT 2.5). For mild migraine, a combination of acetaminophen 250 mg, aspirin 250 mg, and caffeine 65 mg (sold as Excedrin Migraine) is FDA-approved and effective, with an NNT of approximately 3.3 for 2-hour pain relief.
Do blood pressure medications cause headaches?
Some do, others prevent them. Calcium channel blockers like nifedipine commonly cause headache through vasodilation. Conversely, beta-blockers (propranolol, metoprolol) and candesartan are used as migraine preventives. ACE inhibitors like lisinopril have also shown preventive efficacy in small trials.
How do triptans work for migraines?
Triptans are serotonin 5-HT1B/1D receptor agonists. They constrict dilated intracranial blood vessels, inhibit release of inflammatory neuropeptides (including CGRP) from trigeminal nerve terminals, and block pain signal transmission in the trigeminal nucleus caudalis. They work best when taken early in an attack.
What is medication-overuse headache?
Medication-overuse headache (MOH) is a secondary headache occurring on 15 or more days per month that develops from regular overuse of acute headache medication for more than 3 months. Triptans and opioids carry a 10-day-per-month threshold. Simple analgesics carry a 15-day threshold. Treatment requires withdrawal of the overused drug and initiation of preventive therapy.
Are CGRP inhibitors safe long-term?
Open-label extension studies of erenumab, fremanezumab, and galcanezumab out to 5 years have shown sustained efficacy without new safety signals. Constipation (primarily with erenumab) and injection-site reactions are the most common side effects. Because CGRP plays a role in cardiovascular protection, long-term cardiovascular monitoring is prudent.
Can headaches be a sign of something serious?
Most headaches are primary and not dangerous, but certain patterns indicate serious pathology. Thunderclap headache may signal subarachnoid hemorrhage. Headache with papilledema suggests raised intracranial pressure. New headache with weight loss in an older patient raises concern for giant cell arteritis. Any sudden change in headache pattern warrants evaluation.
What headache medications are safe during pregnancy?
Acetaminophen is the preferred acute analgesic during pregnancy. Ibuprofen is generally avoided after 20 weeks gestation due to risk of premature ductus arteriosus closure. Triptans have limited but reassuring pregnancy registry data. Among preventives, propranolol and amitriptyline have the longest safety track record. Valproate and topiramate are contraindicated due to teratogenicity.
Does caffeine help or hurt headaches?
Both. Caffeine 65-200 mg enhances analgesic efficacy and is a component of several approved headache treatments. Regular intake exceeding roughly 200 mg per day (about two cups of coffee), followed by abrupt cessation, reliably triggers withdrawal headache within 12-24 hours. The dose and pattern of use determine whether caffeine is therapeutic or harmful.

References

  1. Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1-211. PubMed
  2. GBD 2016 Headache Collaborators. Global, regional, and national burden of migraine and tension-type headache, 1990-2016. Lancet Neurol. 2018;17(11):954-976. PubMed
  3. Ailani J, Burch RC, Robbins MS. The American Headache Society Consensus Statement: Update on integrating new migraine treatments into clinical practice. Headache. 2021;61(7):1021-1039. PubMed
  4. Derry S, Wiffen PJ, Moore RA. Ibuprofen for acute treatment of episodic tension-type headache in adults. Cochrane Database Syst Rev. 2015;(7):CD004624. Cochrane Library
  5. Cameron C, Kelly S, Hsieh SC, et al. Triptans in the acute treatment of migraine: a systematic review and network meta-analysis. Headache. 2015;55(Suppl 4):221-235. PubMed
  6. Goadsby PJ, Holland PR, Martins-Oliveira M, et al. Pathophysiology of migraine: a disorder of sensory processing. Physiol Rev. 2017;97(2):553-622. NEJM reference
  7. Dodick DW, Lipton RB, Ailani J, et al. Ubrogepant for the treatment of migraine. N Engl J Med. 2019;381(23):2230-2241. PubMed
  8. Mitsikostas DD, Edvinsson L, Jensen RH, et al. Refractory chronic cluster headache: a consensus statement on clinical definition from the European Headache Federation. J Headache Pain. 2014;15:79. PubMed
  9. Brandes JL, Saper JR, Diamond M, et al. Topiramate for migraine prevention: a randomized controlled trial. JAMA. 2004;291(8):965-973. PubMed
  10. Goadsby PJ, Reuter U, Hallström Y, et al. A controlled trial of erenumab for episodic migraine. N Engl J Med. 2017;377(22):2123-2132. NEJM
  11. Detke HC, Goadsby PJ, Wang S, et al. Galcanezumab in chronic migraine: the randomized, double-blind, placebo-controlled REGAIN study. Neurology. 2018;91(24):e2211-e2221. PubMed
  12. Jackson JL, Mancuso JM, Nickoloff S, et al. Tricyclic and tetracyclic antidepressants for the prevention of frequent episodic or chronic tension-type headache in adults. Cochrane Database Syst Rev. 2017;(1):CD011681. Cochrane Library
  13. Afridi SK, Kaube H, Goadsby PJ. Glyceryl trinitrate triggers premonitory symptoms in migraineurs. Pain. 2004;110(3):675-680. PubMed
  14. U.S. Food and Drug Administration. Viagra (sildenafil) prescribing information. FDA
  15. World Health Organization. Medical eligibility criteria for contraceptive use, 5th ed. 2015. WHO
  16. Jiang L, et al. Proton pump inhibitor use and risk of migraine: a nationwide cohort study. Neurology. 2023;100(11):e1147-e1156. PubMed
  17. Westergaard ML, Hansen EH, Glümer C, et al. Definitions of medication-overuse headache in population-based studies and their implications on prevalence estimates. Cephalalgia. 2014;34(6):409-425.
  18. Diener HC, Dodick D, Evers S, et al. Pathophysiology, prevention, and treatment of medication overuse headache. Lancet Neurol. 2019;18(9):891-902. Lancet
  19. Carlsen LN, Munksgaard SB, Jensen RH, et al. Complete detoxification is the most effective treatment of medication-overuse headache: a randomized controlled open-label trial. Cephalalgia. 2018;38(2):225-236. PubMed
  20. Aurora SK, Dodick DW, Turkel CC, et al. OnabotulinumtoxinA for treatment of chronic migraine: results from the double-blind, randomized, placebo-controlled phase of the PREEMPT 2 trial. Cephalalgia. 2010;30(7):804-814. PubMed
  21. Kuca B, Silberstein SD, Wietecha L, et al. Lasmiditan is an effective acute treatment for migraine: a phase 3 randomized study. Neurology. 2018;91(24):e2222-e2232. PubMed
  22. Dodick DW. Pearls: headache. Semin Neurol. 2010;30(1):74-81.
  23. Perry JJ, Stiell IG, Sivilotti MLA, et al. Sensitivity of computed tomography performed within six hours of onset of headache for diagnosis of subarachnoid haemorrhage. BMJ. 2011;343:d4277. BMJ
  24. Ailani J, Lipton RB, Goadsby PJ, et al. Atogepant for the preventive treatment of migraine. N Engl J Med. 2021;385(8):695-706. PubMed
  25. Lipton RB, Goadsby PJ, Smith J, et al. Efficacy and safety of eptinezumab in patients with chronic migraine: PROMISE-2. Neurology. 2020;94(13):e1365-e1377. PubMed
  26. Tassorelli C, Grazzi L, de Tommaso M, et al. Noninvasive vagus nerve stimulation as acute therapy for migraine: the randomized PRESTO study. Neurology. 2018;91(4):e364-e373. PubMed
  27. Sandhu GS, et al. Quality measures for headache care. Neurology. 2019;92(23):e2699-e2709. PubMed