What actually stops a migraine
The fastest way to stop a migraine is to take medication as soon as you feel one starting—ideally during the aura phase if you have one, or the moment pain begins. Triptans (sumatriptan, rizatriptan, naratriptan) are the most effective class; they narrow blood vessels and block pain signals, and work best in the first two hours. Over-the-counter options like ibuprofen or naproxen work for some people, especially if the migraine is mild, but they work more slowly and less reliably than prescription triptans.
If medication alone isn't stopping the pain, combining approaches works better than waiting. Taking a triptan plus an NSAID (like ibuprofen) together is more effective than either alone. Resting in a dark, quiet room while the medication takes effect—usually 30 minutes to two hours—gives the drug time to work without sensory input making pain worse. Some people also find ice packs on the neck or forehead, or heat on tense shoulder muscles, helpful while waiting.
What doesn't work: pushing through, caffeine (unless you normally use it daily), or waiting to see if it goes away on its own. Migraines that go untreated often last 4 to 72 hours and can become harder to stop the longer they continue.
Key Takeaways
- Triptans are the most effective migraine-stopping medication and work best if taken in the first two hours of pain.
- Combining a triptan with an over-the-counter NSAID like ibuprofen works better than either medication alone.
- Resting in darkness and quiet while medication takes effect gives drugs time to work without making pain worse.
- Over-the-counter pain relievers alone work for mild migraines but are less reliable than prescription triptans for moderate to severe pain.
- Waiting to treat a migraine makes it harder to stop; medication works fastest in the first hours of an attack.
Prescription medications that stop migraines
Triptans are the standard prescription for stopping an active migraine. They come in several forms: tablets you swallow (sumatriptan, rizatriptan, naratriptan), nasal sprays (sumatriptan, zolmitriptan), or injections (sumatriptan). The form matters for speed—injections and nasal sprays work faster than tablets, usually in 15 to 30 minutes, while tablets take 30 to 90 minutes. If you vomit during a migraine, a nasal spray or injection bypasses your stomach.
Triptans work by narrowing blood vessels around the brain and blocking the release of pain-causing substances. They stop pain in about 65 to 70 percent of people when taken early. They do not prevent future migraines; they only stop the one you are having. Common side effects are mild: tingling, flushing, or a tight feeling in the chest or throat. Serious side effects are rare but include chest pain or stroke-like symptoms; if these occur, call 911.
Other prescription options exist if triptans do not work or cause side effects. Ditans (lasmiditan) work similarly to triptans but may cause less chest tightness. Gepants (ubrogepant, rimegepant) block a different pain pathway and work without narrowing blood vessels, making them safer for people with heart or blood pressure concerns. These are newer and less commonly prescribed than triptans, but your doctor can discuss whether one might work better for you.
Over-the-counter options and when they work
Ibuprofen and naproxen (Aleve) reduce migraine pain for some people, especially if the migraine is mild or moderate. They work by reducing inflammation and blocking pain signals. The dose matters: standard over-the-counter doses (200 mg ibuprofen, 220 mg naproxen) are often too low for migraine pain. Taking 400 to 600 mg ibuprofen or 500 to 660 mg naproxen at the first sign of pain gives a better chance of working. Aspirin combined with acetaminophen and caffeine (Excedrin Migraine) also works for some people, though less reliably than ibuprofen alone.
Over-the-counter options are slower than triptans—they typically take 60 to 90 minutes to reduce pain—and they work in only about 50 percent of people with moderate to severe migraines. They work better for mild migraines or for people whose migraines respond well to NSAIDs. If you have tried over-the-counter pain relievers and they have not stopped your migraines, prescription triptans are the next step.
One caution: using over-the-counter pain relievers more than 10 to 15 days per month can cause medication overuse headache, a condition where frequent pain relief actually triggers more frequent headaches. If you are taking pain relievers more than twice a week, talk to your doctor about prescription options or prevention strategies instead.
Combining medications for better results
Taking a triptan plus an NSAID together stops pain more effectively than either drug alone. Research shows that sumatriptan plus naproxen together works better than sumatriptan by itself, and the combination also reduces the chance of the migraine returning within 24 hours. Some pharmacies stock combination pills (sumatriptan-naproxen) that contain both in one tablet, which is simpler than taking two separate pills.
If you take a triptan, you can safely add ibuprofen or naproxen at the same time or within a few hours. Do not combine two different triptans or take a triptan more than once in 24 hours unless your doctor says otherwise. Combining medications does increase the risk of side effects, though serious ones remain rare. Talk to your doctor or pharmacist about which combinations are safe for you, especially if you take other medications.
Non-medication approaches while waiting for relief
Resting in a dark, quiet room is one of the most effective non-drug steps you can take. Light and sound make migraine pain worse for most people, so dimming lights, closing curtains, and minimizing noise gives your brain less sensory input to process while medication takes effect. Many people find they can sleep during this time, which also helps.
Temperature changes help some people: ice packs on the forehead, temples, or back of the neck can numb pain and narrow blood vessels. Others find heat more soothing—a warm compress on tense neck or shoulder muscles, or a warm shower. There is no universal rule; try both and see what your body responds to. Staying hydrated matters too; dehydration can trigger or worsen migraines, so drinking water during an attack may help, though it will not stop one that is already underway.
Caffeine has a complicated role. If you normally drink caffeine daily, it will not help during a migraine and may make it worse. If you rarely use caffeine, a small amount (a cup of tea or cola) combined with pain medication may slightly improve how well the medication works. The key is knowing your own baseline caffeine use.
When to seek immediate medical care
Most migraines can be managed at home with medication and rest. However, seek immediate care if: the migraine is the worst pain you have ever felt, it is accompanied by fever, stiff neck, confusion, vision loss, difficulty speaking, or weakness on one side of your body, or it is a completely different pattern from your usual migraines. These can signal something other than migraine, such as meningitis or stroke, that needs urgent evaluation.
Also seek care if your usual migraine medication suddenly stops working, or if you are having migraines more frequently than before. These changes warrant a conversation with your doctor about whether your treatment plan needs adjustment or whether something else is happening.
Frequently Asked Questions
How long does it take for migraine medication to work?
Triptans injections and nasal sprays typically work in 15 to 30 minutes. Triptan tablets take 30 to 90 minutes. Over-the-counter pain relievers take 60 to 90 minutes. Taking medication as early as possible—ideally in the first hour—gives it the best chance of stopping the migraine before it peaks.
Can I take a triptan if I have high blood pressure or heart problems?
Triptans narrow blood vessels, which can raise blood pressure temporarily. If you have heart disease, uncontrolled high blood pressure, or a history of stroke, tell your doctor before using a triptan. Gepants or ditans may be safer alternatives. Your doctor can assess your individual risk and recommend the best option.
What if my migraine comes back after medication wears off?
Migraines sometimes return within 24 hours after medication wears off, even if the initial dose worked. Taking a second dose of the same medication is usually safe if your doctor has said it is okay. Some people find that combining a triptan with an NSAID reduces the chance of the migraine returning. If this happens frequently, talk to your doctor about prevention strategies.
Is it safe to use migraine medication every time I have a migraine?
Yes, triptans are safe to use as needed for individual migraines. However, using any pain medication more than 10 to 15 days per month can trigger medication overuse headache, a condition where frequent use actually causes more frequent headaches. If you are having migraines that often, prevention medication may be a better approach than treating each one separately.
Why does caffeine sometimes help and sometimes not?
Caffeine can slightly improve how well pain medication works, but only if you do not use caffeine regularly. If you drink coffee or tea daily, your body is already used to caffeine, and adding more during a migraine will not help. If you rarely use caffeine, a small amount combined with pain medication may provide a modest boost to relief.