The fastest way to stop a migraine depends on how quickly you act

The sooner you treat a migraine, the better your chances of stopping it. Most people find relief fastest by combining a painkiller with a quiet, dark space—but the specific medication that works varies from person to person. If you have had migraines before, your doctor may have already prescribed something designed to stop them mid-attack. If you have not, over-the-counter options exist, though they work better for some people than others.

The window matters: taking medication within 30 minutes of your first symptoms gives you the best shot at stopping the migraine before it peaks. Waiting hours makes any treatment less effective. If you have tried the same approach several times without relief, a different medication or combination may work better—this is something to discuss with your doctor after the migraine passes, not during it.

Key Takeaways

  • Taking medication within 30 minutes of your first migraine symptoms gives the best chance of stopping it before it gets worse.
  • Over-the-counter options include ibuprofen, naproxen, and acetaminophen, though they do not work for everyone and work better when combined with rest in a dark room.
  • If your doctor has prescribed a migraine-specific medication like a triptan or CGRP antagonist, using it early in the attack is more effective than waiting.
  • Resting in a dark, quiet space, applying ice or heat, and staying hydrated all reduce migraine pain even without medication.
  • If the same treatment fails repeatedly, tell your doctor—a different medication or dose may work better for your migraines.

Over-the-counter medications that can stop migraines

Standard painkillers work for some people's migraines, especially mild to moderate ones caught early. Ibuprofen (Advil, Motrin) and naproxen (Aleve) are nonsteroidal anti-inflammatory drugs, or NSAIDs, which reduce both pain and inflammation. Acetaminophen (Tylenol) works differently—it blocks pain signals but does not reduce inflammation. Many people find that combining acetaminophen with ibuprofen works better than either alone, though you should check the label to avoid taking too much of either drug.

The dose matters. A single tablet of ibuprofen (usually 200 mg) is often too small to stop a migraine; 400 to 600 mg taken at the first sign of pain works better. Naproxen takes longer to enter your bloodstream than ibuprofen, so if speed is your priority, ibuprofen is the better choice. None of these medications work if you wait hours into the migraine—they are most effective in the first 30 to 60 minutes.

Over-the-counter combination products that mix a painkiller with caffeine (like Excedrin) work for some people because caffeine can make painkillers more effective. If you drink coffee or tea regularly, the added caffeine may not help much. If you rarely drink caffeine, it may boost the painkiller's effect.

Prescription medications designed specifically for migraines

If your doctor has prescribed a triptan (such as sumatriptan, rizatriptan, or naratriptan), this is usually your fastest option. Triptans work by narrowing blood vessels around the brain and blocking pain pathways in a way that standard painkillers do not. They are most effective when taken at the very first sign of a migraine—before the pain peaks. Some people feel relief within 30 minutes; others take an hour or more.

Triptans come in several forms: tablets you swallow, tablets that dissolve on your tongue, nasal sprays, and injections. If you often feel too nauseated to swallow during a migraine, a nasal spray or injection may work better than a pill. Your doctor will recommend the form that fits your migraine pattern.

Newer prescription options include CGRP antagonists (such as erenumab or fremanezumab), which are usually given as monthly injections to prevent migraines rather than stop them once they start. However, some newer medications in this class can be taken at the first sign of a migraine. Ask your doctor whether your prescription is meant to prevent migraines or stop them mid-attack.

Non-medication steps that reduce migraine pain

Rest in a dark, quiet room is one of the most effective migraine treatments available, and it costs nothing. Light and sound make migraines worse for most people, so dimming lights, closing curtains, and turning off notifications can bring real relief. Many people find that lying down with their eyes closed, even without medication, reduces pain within 30 to 60 minutes.

Temperature changes help some people. A cold compress on your forehead, neck, or temples can numb pain and narrow blood vessels. Others find a warm compress or warm shower more soothing. Try both and see which one your body prefers. Staying hydrated matters too—dehydration can trigger or worsen migraines, so drinking water throughout the day and especially during an attack may help.

Some people find relief from gentle neck stretches or massage, while others find any movement makes the pain worse. During a migraine, do only what feels tolerable. The goal is to reduce stimulation and let your body rest until the medication (if you are taking one) takes effect.

When to seek immediate medical care

Most migraines are not emergencies, but some warning signs mean you should go to an urgent care clinic or emergency room rather than wait at home. Seek immediate care if this migraine is different from your usual ones—for example, if the pain is more severe than ever before, if you have weakness or numbness on one side of your body, if you have vision changes, or if the migraine came on suddenly with no warning signs.

Also seek care if you have taken your usual migraine medication and it has not helped after two hours, or if you are vomiting so much that you cannot keep medication down. A doctor can give you stronger medication by injection or IV, and can rule out other causes of severe headache.

What to do if your usual treatment stops working

If you have been using the same migraine medication for months or years and it suddenly stops working, or if it never worked well to begin with, do not just accept it. Tell your doctor at your next appointment (not during a migraine). You may need a higher dose, a different medication, or a different form—for example, switching from a pill to a nasal spray if nausea is the problem.

Some people find that using the same migraine medication too often actually makes migraines worse over time, a pattern called medication overuse headache. If you are taking a painkiller or triptan more than two or three days per week, your doctor may recommend switching to a preventive medication instead—something you take daily to reduce how often migraines happen, rather than something you take during an attack.

Frequently Asked Questions

How long does it take for migraine medication to work?

Over-the-counter painkillers usually take 30 to 60 minutes to reduce migraine pain. Prescription triptans often work faster—some people feel relief in 30 minutes, though it can take an hour or more. Nasal sprays and injections may work slightly faster than pills because they enter your bloodstream more quickly.

Can I take ibuprofen and acetaminophen together for a migraine?

Yes, many people find this combination more effective than either drug alone. However, check the label to make sure you are not exceeding the daily limit for either medication. Do not combine them with other products that contain the same drugs—for example, do not add Excedrin (which contains acetaminophen) to ibuprofen and acetaminophen taken separately.

What if I feel sick to my stomach during a migraine?

Nausea is common during migraines and can make it hard to keep medication down. Try sipping water slowly, eating a small amount of bland food like crackers, or asking your doctor about anti-nausea medication you can take before your painkiller. If you cannot keep pills down, a nasal spray, injection, or dissolving tablet may work better.

Is it okay to sleep during a migraine?

Yes. Sleep is one of the most effective migraine treatments. Many people find that resting in a dark room and sleeping for an hour or two brings significant relief, sometimes even stopping the migraine entirely. If you can sleep, do it.

Why does my migraine medication work sometimes but not other times?

Migraines vary—the same trigger may cause a mild migraine one time and a severe one another time. Medication is more likely to work if you take it early, if you are well-hydrated, and if you rest afterward. Stress, sleep loss, hormonal changes, and other factors can make migraines harder to treat even with the same medication.