Migraine medications, compared
How to stop a migraine attack, told straight: the triptans that are first-line for most people, and the newer drugs for those who can’t take them — with what each is, how it differs, and our independent recall-safety rating. We rate medications; we don’t sell or prescribe them.
The one distinction that decides it
Triptans work, but they narrow blood vessels. For most people that is fine and they are first-line. But if you have heart disease, a past stroke, or uncontrolled blood pressure, triptans may be unsafe — and that is the whole reason the newer gepants (Ubrelvy, Nurtec) and the ditan (Reyvow) exist: they stop attacks without that vasoconstriction. Your heart history, more than anything, points to which group is right.
Triptans — first-line for most
The established acute treatment. Take one as early in the attack as you can. Ranked by our recall-safety score.
Sumatriptan (Imitrex)
Triptans
Starts in: Tablets ~30-60 min; the injection and nasal spray work faster
The original triptan and the most-used first-line option for moderate-to-severe attacks; it comes as a tablet, nasal spray and self-injection for when nausea or speed matters. Two labeled rules apply to every triptan: do NOT take one within 24 hours of another triptan or of any ergotamine/DHE product, and they are contraindicated with an MAO-A inhibitor now or in the past 2 weeks. Beyond heart disease and stroke, the labels also contraindicate them in hemiplegic or basilar migraine, Prinzmetal's (vasospastic) angina, peripheral vascular disease, ischaemic bowel disease and accessory-pathway arrhythmias such as WPW. Sumatriptan is additionally contraindicated in severe liver impairment. Best taken as early in the attack as possible.
IMITREX (sumatriptan) tablet — FDA label, DailyMed ↗Rizatriptan (Maxalt)
Triptans
Starts in: ~30 min, among the faster-acting oral triptans
A fast-acting triptan that also comes as an orally-disintegrating tablet (Maxalt-MLT) taken without water — useful mid-attack. The dose is lowered if you take propranolol. Two labeled rules apply to every triptan: do NOT take one within 24 hours of another triptan or of any ergotamine/DHE product, and they are contraindicated with an MAO-A inhibitor now or in the past 2 weeks. Beyond heart disease and stroke, the labels also contraindicate them in hemiplegic or basilar migraine, Prinzmetal's (vasospastic) angina, peripheral vascular disease, ischaemic bowel disease and accessory-pathway arrhythmias such as WPW.
MAXALT (rizatriptan benzoate) tablet — FDA label, DailyMed ↗Zolmitriptan (Zomig)
Triptans
Starts in: ~45 min oral; nasal spray works faster
Another effective triptan, with a nasal spray option that can help when nausea makes swallowing hard or a faster start is needed. Two labeled rules apply to every triptan: do NOT take one within 24 hours of another triptan or of any ergotamine/DHE product, and they are contraindicated with an MAO-A inhibitor now or in the past 2 weeks. Beyond heart disease and stroke, the labels also contraindicate them in hemiplegic or basilar migraine, Prinzmetal's (vasospastic) angina, peripheral vascular disease, ischaemic bowel disease and accessory-pathway arrhythmias such as WPW. Zolmitriptan's dose is capped in moderate-to-severe liver impairment.
Zolmitriptan tablet — FDA label, DailyMed ↗Gepants & the ditan — when triptans are off the table
Newer classes that relieve attacks without narrowing blood vessels — the option for people with cardiovascular risk.
Ubrogepant (Ubrelvy)
Gepants (CGRP blockers)
Starts in: ~1-2 hours
A newer 'gepant' (CGRP receptor blocker) for acute attacks. Because it does NOT narrow blood vessels, it is an option for people with heart disease or stroke risk who cannot take triptans — but it is not restriction-free. It is CONTRAINDICATED with strong CYP3A4 inhibitors (ketoconazole, itraconazole, clarithromycin), the dose must be reduced with moderate ones such as verapamil, and it should be avoided in end-stage kidney disease. Note too that the gepant labels warn of new or worsening high blood pressure and of Raynaud's, so blood pressure still needs watching. It is an option for people who cannot take triptans — the key advantage of this class.
UBRELVY (ubrogepant) tablet — FDA label, DailyMed ↗Rimegepant (Nurtec ODT)
Gepants (CGRP blockers)
Starts in: ~1-2 hours
A gepant that is unusual in doing two jobs: an orally-disintegrating tablet that treats an acute attack, and, taken every other day, also helps PREVENT migraines. Avoid it with strong CYP3A4 inhibitors or inducers, avoid a second dose within 48 hours if you take a moderate CYP3A4 inhibitor or a potent P-gp inhibitor, and avoid it in severe liver impairment (Child-Pugh C). Like other gepants it does not narrow blood vessels.
NURTEC ODT (rimegepant) tablet — FDA label, DailyMed ↗Lasmiditan (Reyvow)
Ditan
Starts in: ~1-2 hours
A 'ditan' that relieves attacks without narrowing blood vessels, so it too is an option when triptans are off the table. Do not combine it with alcohol or other sedating drugs, serotonin syndrome has been reported when it is taken with serotonergic antidepressants, and it is not recommended in severe liver impairment. The trade-off: it is sedating and its label warns not to drive or operate machinery for at least 8 hours after a dose, and it is a controlled substance.
REYVOW (lasmiditan) tablet — FDA label, DailyMed ↗See a clinician online
Licensed online providers — consult & get prescribed if eligible.
Advertising disclosure: We may earn a commission, at no extra cost to you. This never affects our ratings. Details
Frequently asked questions
What is the best medication to stop a migraine?
For most people with moderate-to-severe attacks, a triptan (like sumatriptan or rizatriptan) is the first-line choice — taken as early in the attack as possible. But triptans narrow blood vessels, so if you have heart disease, a history of stroke, or uncontrolled high blood pressure, they may be off the table. In that case the newer gepants (ubrogepant, rimegepant) and the ditan (lasmiditan) work without narrowing blood vessels. The right choice depends on your heart health and how fast you need relief — a prescriber's call.
Why can't some people take triptans?
Triptans relieve migraine partly by narrowing blood vessels, which also constricts vessels elsewhere. That makes them unsafe for people with coronary artery disease, a previous heart attack or stroke, certain other vascular conditions, or uncontrolled high blood pressure. This is exactly the gap the gepants and the ditan fill — they relieve attacks without that vasoconstriction.
What's the difference between a triptan, a gepant and a ditan?
They target different receptors. Triptans (5-HT1B/1D agonists) are the established first-line class but narrow blood vessels. Gepants (CGRP receptor blockers, like Ubrelvy and Nurtec) and the ditan lasmiditan (a 5-HT1F agonist, Reyvow) are newer and do NOT narrow blood vessels — the main reason to choose them. Lasmiditan is sedating and its label bars driving for 8 hours; Nurtec can also be used to prevent migraines, not just treat them.
What about preventing migraines rather than stopping them?
This page is about stopping an attack. Prevention is a separate strategy for frequent migraines, using drugs like CGRP monoclonal antibodies (e.g. erenumab), the oral gepant atogepant, topiramate, or propranolol. Rimegepant (Nurtec) is unusual in doing both. If your attacks are frequent, ask a clinician about prevention — and there is a specific reason not to put that conversation off. Using any acute migraine drug on roughly 10 or more days a month can itself cause medication-overuse headache, a labeled warning on the triptans, the gepants and lasmiditan alike. The advice on this page to treat an attack early is about each attack, not about treating more of them.
Sources: each drug’s FDA label (openFDA / DailyMed), linked on its card. This page covers stopping an acute attack, not prevention. General reference information, not medical advice, and not a recommendation to take any drug — the choice, especially around heart health, is a prescriber’s.