Several classes of medication treat acute migraine attacks, and the right choice depends on how severe your attacks are, how fast you need relief, and what other health conditions you have. For mild to moderate migraines, over-the-counter painkillers like ibuprofen or a combination of acetaminophen, aspirin, and caffeine work for many people. For moderate to severe attacks, prescription triptans remain the most widely used targeted therapy, and newer drug classes called gepants and ditans have expanded options further. The differences between these medicines matter more than most people realize, particularly around timing, side effects, and who should avoid what.
Over-the-Counter Painkillers and What the Evidence Actually Shows
The most common first-line medicines for migraine are nonsteroidal anti-inflammatory drugs (NSAIDs) like ibuprofen and naproxen, plus acetaminophen. They work by reducing inflammation and blocking pain signals, and for milder attacks they can be enough on their own. But the evidence for each one varies more than you might expect.
Ibuprofen at 400 mg has decent data behind it. In a Cochrane review, about one in four people taking ibuprofen 400 mg were pain-free at two hours, compared with roughly one in nine on placebo. Just over half had meaningful headache relief by two hours, and close to half sustained that relief over 24 hours.1Cochrane Database of Systematic Reviews. Ibuprofen with or without an antiemetic for acute migraine headaches in adults Earlier trial data also showed ibuprofen significantly reduced attack duration and nausea severity, and cut the need for rescue medication roughly in half compared with placebo.2PubMed. A double-blind study of ibuprofen versus placebo in the treatment of acute migraine attacks
Naproxen, despite being another popular NSAID, performs noticeably worse when used alone. A separate Cochrane review found that naproxen was statistically better than placebo but effective in fewer than two out of ten people for pain freedom at two hours, leading the reviewers to conclude it is “not clinically useful as a stand-alone analgesic in acute migraine.”3Cochrane Database of Systematic Reviews. Naproxen for acute migraine in adults That does not mean naproxen is useless in migraine care. As you will see later, it plays a valuable supporting role when paired with a triptan. But if you are reaching for a single OTC painkiller to stop an attack, ibuprofen has stronger evidence behind it.
The Acetaminophen-Aspirin-Caffeine Combination
One of the most effective OTC options is actually a combination product containing acetaminophen, aspirin, and caffeine (often sold as Excedrin Migraine in the United States). In three large randomized trials, about 59% of people who took this combination had pain reduced to mild or none within two hours, compared with roughly 33% on placebo. By six hours, half the treated group was completely pain-free versus under a quarter on placebo. The combination also improved nausea, light sensitivity, sound sensitivity, and the ability to function.4JAMA Neurology. Efficacy and Safety of Acetaminophen, Aspirin, and Caffeine in Alleviating Migraine Headache Pain: Three Double-blind, Randomized, Placebo-Controlled Trials
A head-to-head trial found this triple combination outperformed ibuprofen alone, with pain relief arriving about 20 minutes sooner.5PubMed. Acetaminophen, aspirin, and caffeine in combination versus ibuprofen for acute migraine: results from a multicenter, double-blind, randomized, parallel-group, single-dose, placebo-controlled study The combination also proved equally effective for menstrual migraines, which some people find harder to treat, with no difference in treatment response between attacks associated with menstruation and those that were not.6Clinical Therapeutics. Treatment of menstruation-associated migraine with the nonprescription combination of acetaminophen, aspirin, and caffeine: Results from three randomized, placebo-controlled studies
Caffeine is the ingredient that elevates this combination above what its individual painkillers can do alone. It blocks adenosine receptors, which counteracts the blood-vessel dilation associated with migraine pain, and it speeds up absorption of the other drugs in the tablet. But caffeine has a flip side: excessive or inconsistent intake can itself trigger headaches through mechanisms like sleep disruption and magnesium depletion.7PubMed Central. Caffeine and Headache: Exploring the Multifaceted Relationship If you rely on caffeine-containing pain relievers too often, you may end up in a cycle of withdrawal headaches that feel a lot like migraines. This is one pathway into medication overuse headache, discussed further below.
How Triptans Work
Triptans were a genuine breakthrough when sumatriptan launched in the early 1990s. They are the first drug class designed specifically for migraine rather than borrowed from general pain management. They work by activating serotonin receptors in the brain, which does two things: it quiets overactive trigeminal nerve fibers (the pain-signaling system at the heart of a migraine attack) and it narrows dilated blood vessels around the brain.8PubMed. Serotonin receptor ligands: treatments of acute migraine and cluster headache Research since their development has shown that the neuronal effects, particularly calming the trigeminal system, are probably more important than the blood-vessel narrowing, but both actions contribute to relief.9PubMed Central. Understanding migraine: Potential role of neurogenic inflammation
Seven triptans are available: sumatriptan, rizatriptan, zolmitriptan, eletriptan, naratriptan, almotriptan, and frovatriptan. They all hit the same receptors, but they differ in how fast they kick in, how long they last, and how reliably they get absorbed.
Comparing the Seven Triptans
Subcutaneous sumatriptan (a self-injection) is the most potent form of any triptan, with a therapeutic gain of about 51 percentage points over placebo. Among oral triptans, eletriptan 80 mg and rizatriptan 10 mg had the highest therapeutic gains at around 42% and 37% respectively, while naratriptan and frovatriptan were at the lower end, around 22% and 16%.10PubMed. Triptans in migraine: a comparative review of pharmacology, pharmacokinetics and efficacy
The pharmacokinetic differences help explain these gaps. Sumatriptan has relatively low oral bioavailability (about 14%), meaning most of the pill gets lost before reaching your bloodstream, while naratriptan’s is much higher (around 74%). But bioavailability is not the whole story. Frovatriptan has an exceptionally long half-life of 25 to 30 hours, compared with about two hours for sumatriptan and rizatriptan.11PubMed. Pharmacokinetics and pharmacodynamics of the triptan antimigraine agents: a comparative review In practice, this means frovatriptan and naratriptan are sometimes chosen for people whose migraines come back after initial treatment (so-called recurrence), since the drug stays in the system longer, while rizatriptan or eletriptan are better for people who need the fastest possible oral relief.
Why Timing Matters So Much
One of the biggest factors in whether a triptan works well is simply when you take it. The evidence here is striking. In the TEMPO study, people who dosed their triptan early, while pain was still mild, achieved two-hour pain freedom in about 53% of attacks, compared with roughly 30% when they waited until pain was moderate or severe.12PubMed. Early dosing and efficacy of triptans in acute migraine treatment: the TEMPO study Patients who switched from late dosing to early dosing on their doctor’s advice saw a similar jump in effectiveness.
The biological reason for this is a process called central sensitization. As a migraine attack progresses, the pain-processing centers in your brainstem become increasingly amplified and hypersensitive. Once that sensitization sets in, the attack becomes harder for triptans to shut down.13PubMed. Central sensitization theory of migraine: clinical implications The clinical takeaway from this research is straightforward: if you have a triptan prescription, the earlier you treat, the better your odds.14PubMed. Clinical benefits of early triptan therapy for migraine Many people try to “wait and see” whether an attack will get bad before taking medication. That instinct is understandable (especially with limits on how often triptans should be used), but the data argue against it when an attack is clearly underway.
Non-Oral Options When Nausea Gets in the Way
Migraine often comes with nausea or vomiting, and during an attack your stomach can slow down dramatically, a phenomenon called gastroparesis. That slowed digestion means oral tablets may sit unabsorbed. For people who deal with severe nausea during attacks, non-oral routes can make the difference between a medication that works and one that never gets a chance.15PubMed Central. Breath-powered sumatriptan dry nasal powder: an intranasal medication delivery system for acute treatment of migraine
Subcutaneous sumatriptan injection is the fastest-acting option available and works within about 15 minutes for most people. It outperformed intranasal dihydroergotamine at every time point measured from 15 minutes onward.16PubMed. A comparison of subcutaneous sumatriptan and dihydroergotamine nasal spray in the acute treatment of migraine The trade-off is that injections come with more side effects, particularly injection-site reactions and unusual sensations like tingling or warmth. Nasal sprays offer a middle ground. Newer formulations that include a permeation enhancer have been shown to achieve blood levels comparable to the injection while being well tolerated.17PubMed Central. DFN-02, Sumatriptan 10 mg Nasal Spray with Permeation Enhancer, for the Acute Treatment of Migraine Zolmitriptan nasal spray is another frequently prescribed option.
Pairing a Triptan With an NSAID
A common and well-supported strategy is combining sumatriptan with naproxen in a single tablet. A large randomized trial found that the combination provided better two-hour pain relief and better 24-hour sustained pain-free rates than either drug alone.18JAMA. Sumatriptan-Naproxen for Acute Treatment of Migraine: A Randomized Trial A Cochrane review confirmed the combination was more effective than either monotherapy, though it noted the additional benefit over sumatriptan alone was modest.19PubMed Central. Sumatriptan plus naproxen for acute migraine attacks in adults
Where naproxen really shines in this pairing is in reducing headache recurrence. Migraine coming back within 24 hours after initially responding to a triptan is one of the most frustrating aspects of treatment, and it happens frequently. In one study, the recurrence rate among patients taking sumatriptan alone was 59%, but dropped to about 25% when naproxen was added.20Arquivos de Neuro-Psiquiatria. Naproxen sodium decreases migraine recurrence when administered with sumatriptan So even though naproxen is underwhelming as a solo migraine drug, it earns a place in treatment through this anti-recurrence effect.
Antiemetics as Part of the Treatment
Nausea medications like metoclopramide and prochlorperazine play a dual role in migraine care. They control nausea and vomiting, which are among the most disabling migraine symptoms, and they also have independent pain-relieving effects. A meta-analysis of randomized trials found that parenteral metoclopramide was nearly three times as likely as placebo to significantly reduce migraine pain, leading researchers to recommend it as a primary agent in emergency departments.21PubMed Central. Parenteral metoclopramide for acute migraine: meta-analysis of randomised controlled trials
Prochlorperazine showed even stronger pain reduction than metoclopramide in one head-to-head trial, though neither was recommended as a stand-alone therapy since most patients in both groups still needed additional pain medication within the hour.22PubMed. Intramuscular prochlorperazine versus metoclopramide as single-agent therapy for the treatment of acute migraine headache In practice, antiemetics are most useful as add-ons. They can speed up stomach emptying, which helps oral painkillers or triptans absorb better, while simultaneously tackling nausea. Metoclopramide is sometimes taken alongside an oral triptan specifically for this reason.
Cardiovascular Risks and Who Should Avoid Triptans
Because triptans constrict blood vessels, they have always carried warnings about cardiovascular risk. For most migraine sufferers, who tend to be younger women, the risk is extremely low. A large case-crossover study concluded that while triptans may be associated with a slightly elevated short-term risk of stroke or heart attack, the absolute number of affected patients among triptan initiators was very small. The study supported the current FDA recommendation that triptans should not be prescribed to people with a history of coronary artery disease, prior stroke, or transient ischemic attack, but did not raise concern about use in people with low cardiovascular risk.23JAMA Neurology. Risk of Stroke and Myocardial Infarction Among Initiators of Triptans
However, a separate study emulating a target trial specifically in patients with existing cardiovascular disease or elevated cardiovascular risk found that triptan users in that group had a fourfold higher relative risk of major cardiovascular events within 60 days compared with nontriptan users, though the absolute event rate was still under 1.5%.24PubMed. Safety of Triptans in Patients Who Have or Are at High Risk for Cardiovascular Disease: A Target Trial Emulation The practical message: if you have known heart disease, prior stroke, uncontrolled high blood pressure, or significant vascular risk factors, triptans are generally off limits. That is one of the reasons newer drug classes that do not constrict blood vessels were developed.
Medication Overuse Headache
Any acute migraine medication, OTC or prescription, can cause medication overuse headache if used too frequently. The condition transforms episodic migraine into a near-daily pattern where the very drugs you take for relief start perpetuating the cycle. The threshold varies by drug class: triptans and combination analgesics are generally considered risky at 10 or more days per month, while simple analgesics like ibuprofen typically become problematic at 15 or more days per month.
The mechanisms behind medication overuse headache remain debated, but proposed explanations include sensitization of pain pathways from repeated activation, direct effects of the drug on the brain’s ability to suppress pain, and changes in serotonin signaling from chronic medication use.25PubMed. Medication overuse headache from antimigraine therapy: clinical features, pathogenesis and management Importantly, this phenomenon occurs only in people who already have a headache disorder; taking the same medications at the same frequency for other types of pain does not produce the same outcome. Confirmation of the diagnosis requires stopping the overused medication and observing whether headache patterns improve over a period that can stretch to three months or longer. If you find yourself needing acute migraine medication more than two or three days a week on a regular basis, it is worth discussing preventive therapy with your doctor rather than escalating your acute-medication use.
Gepants and Ditans, the Newer Alternatives
For people who cannot take triptans or who do not respond to them, two newer drug classes have filled a real gap. Gepants (CGRP receptor antagonists) block a protein called calcitonin gene-related peptide, which is heavily involved in the pain-signaling cascade of migraine. Unlike triptans, gepants do not constrict blood vessels, making them an option for people with cardiovascular contraindications.
Ubrogepant was the first oral gepant approved for acute migraine treatment. In its pivotal trial, about 19% of participants taking the 50 mg dose were pain-free at two hours versus roughly 12% on placebo, and it also significantly outperformed placebo in relieving the most bothersome symptom.26PubMed. Ubrogepant for the Treatment of Migraine Rimegepant is the other oral gepant available for acute use, and has the added feature of being approved for preventive use as well when taken every other day. A network meta-analysis found that rimegepant, ubrogepant, and lasmiditan (a ditan, discussed below) all beat placebo for pain freedom and relief, with no statistically significant difference in efficacy among the three.27PubMed Central. Efficacy of lasmiditan, rimegepant and ubrogepant for acute treatment of migraine in triptan insufficient responders Importantly, these agents have also been tested specifically in people who did not respond well to triptans, and they still outperformed placebo in that tougher-to-treat population.
Lasmiditan belongs to a separate class called ditans. It acts on a different serotonin receptor subtype than triptans, and critically, it does not cause blood-vessel narrowing, making it safe for patients with cardiovascular disease.28PubMed Central. Lasmiditan for the Treatment of Migraines With or Without Aura in Adults The main downside is that lasmiditan can cause dizziness and drowsiness at higher doses, and patients are advised not to drive for at least eight hours after taking it. A network meta-analysis comparing the newer agents found that rimegepant had lower rates of drowsiness and dizziness than higher doses of lasmiditan, while efficacy was broadly comparable.29PubMed. Comparative efficacy and safety of rimegepant, ubrogepant, and lasmiditan for acute treatment of migraine: a network meta-analysis
Migraine Treatment in Children and Adolescents
Kids and teenagers get migraines too, but most of the drug trials have been done in adults, which creates a frustrating evidence gap. An updated practice guideline from the American Academy of Neurology supports the use of ibuprofen and acetaminophen for children and adolescents, and triptans mainly in adolescents. The guideline found high confidence that adolescents taking oral sumatriptan/naproxen or zolmitriptan nasal spray were more likely to be headache-free at two hours than those receiving placebo. However, none of the acute treatments were effective for migraine-related nausea or vomiting in this age group, though some triptans did help with light and sound sensitivity.30Neurology / American Academy of Neurology. Practice guideline update summary: Acute treatment of migraine in children and adolescents
A practical note: pediatric migraines tend to be shorter than adult attacks, sometimes lasting only an hour or two. This means early treatment matters even more, and it also means study endpoints designed for adults (like “pain-free at two hours”) may miss the window. Sleep is often more effective for a child’s migraine than it is for an adult’s, and behavioral approaches tend to play a larger role in pediatric migraine management.
Migraine Treatment During Pregnancy
Pregnancy complicates migraine treatment substantially because safety data on many medications are limited. Acetaminophen is generally considered the safest analgesic option during pregnancy. NSAIDs like ibuprofen may be used in the second trimester but are typically avoided in the first and third trimesters due to concerns about fetal development and premature closure of a key blood vessel in the fetal heart. Triptans have a mixed picture: registry data have not shown a clear increase in birth defects, but the data are not robust enough for most guidelines to endorse routine use.
Newer targeted therapies, including gepants and CGRP monoclonal antibodies, have very little pregnancy safety data available, and established preventive medications like topiramate and valproate carry known risks of birth defects.31PubMed Central. Safety and Effectiveness of Pain Medications for Migraine Management During Pregnancy and Lactation Women experience migraine at the highest rates during their reproductive years, which makes the lack of safety evidence particularly frustrating. The silver lining is that many women find their migraines improve during the second and third trimesters due to stable estrogen levels, though attacks often return postpartum.
Neuromodulation Devices
For people who prefer non-drug approaches or who have run out of pharmacological options, several FDA-cleared neuromodulation devices deliver electrical or magnetic stimulation to nerves involved in migraine. These include transcutaneous supraorbital nerve stimulators, single-pulse transcranial magnetic stimulators, and vagus nerve stimulators applied to the neck. A systematic review and meta-analysis of randomized trials found that these devices showed some efficacy for acute migraine, and the reviewers suggested they may be particularly worth considering for patients who have contraindications to drug therapy.32PubMed. Non-invasive neuromodulation in the acute treatment of migraine: a systematic review and meta-analysis of randomized controlled trials The effect sizes are generally smaller than those seen with triptans, and insurance coverage can be patchy, but the near-absence of systemic side effects makes them appealing for certain patients, including those who are pregnant or who have frequent attacks and are at risk of medication overuse.