The fastest relief usually comes from medication taken early, before pain spreads

Migraine treatment works best when you start it as soon as you feel an attack beginning—ideally during the aura phase if you have one, or the moment pain starts. The sooner you take medication, the more likely it will stop the migraine from getting worse. Waiting until pain is severe makes any treatment less effective.

The main categories are over-the-counter pain relievers, prescription medications designed specifically for migraine, and non-drug approaches you can use alongside medication. Most people find they need different tools for different situations—what stops a mild migraine at work may not touch a severe one at home.

Key Takeaways

  • Over-the-counter options like ibuprofen or naproxen work for mild to moderate migraines if taken early, but prescription migraine medications (triptans, CGRP inhibitors) work differently and often work better for moderate to severe pain.
  • Triptans narrow blood vessels and block pain signals; CGRP inhibitors prevent migraines from developing; both require a prescription and work best in the first hour of an attack.
  • Combining a pain reliever with an anti-nausea medication often works better than either alone, since nausea and vomiting prevent your stomach from absorbing the medication.
  • Rest in a dark, quiet room, ice packs, and staying hydrated support medication but do not replace it for moderate to severe migraines.
  • Keeping a migraine diary—noting when attacks happen, what triggered them, and what stopped them—helps you and your doctor find patterns and adjust your treatment plan.

Over-the-counter pain relievers and when they work

Ibuprofen (Advil, Motrin) and naproxen (Aleve) are nonsteroidal anti-inflammatory drugs (NSAIDs) that reduce inflammation and block pain signals. For mild migraines or migraines caught very early, these can be enough. Aspirin combined with caffeine and acetaminophen (Excedrin Migraine) is formulated specifically for migraine and includes caffeine because it narrows blood vessels slightly and helps your stomach absorb the other ingredients faster.

The catch: over-the-counter options work poorly once a migraine is established. If you wait more than an hour after pain starts, or if your migraine is moderate to severe, these medications often will not stop it. Taking them too often—more than two or three days a week—can trigger medication overuse headaches, a separate problem where your body adapts to the drug and pain returns as soon as it wears off.

Acetaminophen (Tylenol) alone is less effective for migraine than NSAIDs and is not recommended as a first choice, though some people use it if they cannot take NSAIDs due to stomach problems or other medical conditions.

Prescription migraine medications: triptans and how they work

Triptans are a class of drugs designed specifically for migraine. They work by narrowing blood vessels around the brain and blocking pain pathways in the nervous system. Common triptans include sumatriptan (Imitrex), rizatriptan (Maxalt), and zolmitriptan (Zomig). They come as tablets, dissolving tablets, nasal sprays, and injections.

Triptans work best in the first hour of a migraine and can stop pain completely in about 50 to 60 percent of people who take them. They also often reduce nausea and sensitivity to light and sound. The main drawback is that they do not work for everyone, and some people find they stop working over time. They can also cause side effects like tingling, chest tightness, or dizziness, though serious side effects are rare.

You cannot take triptans if you have certain heart conditions, and they should not be combined with some other medications. Your doctor will screen for these before prescribing. If one triptan does not work or stops working, trying a different one often helps—people respond differently to different triptans.

CGRP inhibitors and other newer prescription options

CGRP inhibitors are a newer class of migraine medication that work differently from triptans. They block a protein called calcitonin gene-related peptide, which plays a role in migraine pain. Unlike triptans, which you take during an attack, some CGRP inhibitors (erenumab, fremanezumab, galcanezumab) are given as monthly or quarterly injections to prevent migraines from happening in the first place. Others like ubrogepant and rimegepant are taken as tablets during an attack.

CGRP inhibitors are often prescribed for people who have frequent migraines (four or more a month) or whose migraines do not respond well to triptans. They tend to have fewer side effects than triptans and do not narrow blood vessels, making them safer for some people with heart conditions. However, they are newer, more expensive, and insurance coverage varies widely.

Lasmiditan is another newer option—a serotonin receptor agonist taken as a tablet during an attack. It works through a different mechanism than triptans and may help people who do not tolerate triptans well.

Combining medication with anti-nausea drugs

Nausea and vomiting are part of migraine for many people, and they create a real problem: if you vomit, your pain medication never reaches your bloodstream. For this reason, doctors often prescribe an anti-nausea medication (antiemetic) to take alongside your pain reliever. Common options include metoclopramide (Reglan) and prochlorperazine (Compazine).

Some migraine medications come in formulations designed to work around nausea—dissolving tablets that bypass the stomach, nasal sprays, and injections all avoid the need for your stomach to absorb the drug. If nausea is severe, your doctor may recommend a suppository form of anti-nausea medication taken first, followed by your migraine medication once the nausea settles.

Non-medication approaches that support treatment

Medication works better when you also address your environment and physical state. Resting in a dark, quiet room reduces sensory input that amplifies migraine pain. Applying ice to your head or neck, or heat to your neck and shoulders, can ease pain for some people. Staying hydrated matters—dehydration both triggers migraines and makes them worse once they start.

Some people find relief from relaxation techniques like deep breathing or progressive muscle relaxation, though these work best as prevention rather than treatment during an active migraine. Massage of the neck and shoulders may help if tension is part of your migraine pattern. These approaches are not replacements for medication in moderate to severe migraines, but they can reduce pain and help you recover faster.

Tracking your migraines to improve treatment over time

A migraine diary is one of the most useful tools for getting better treatment. Write down the date and time each migraine starts, what you were doing beforehand, what you took to treat it, how long it lasted, and whether the treatment worked. Over weeks and months, patterns emerge: certain foods, sleep changes, stress levels, or hormonal cycles may consistently trigger your migraines.

This information helps your doctor understand whether your current medication is working well enough, whether you need a preventive medication, or whether a different acute treatment might work better. It also shows whether you are taking pain medication too often, which could be causing medication overuse headaches. Bring your diary to appointments—it is far more useful than trying to remember attacks from memory.

Frequently Asked Questions

Can I take ibuprofen and acetaminophen together for migraine?

Some people do combine them, and some over-the-counter products contain both. However, this increases the risk of side effects and does not work significantly better than either drug alone for most people. If over-the-counter options are not working, switching to a prescription migraine medication is more effective than increasing the dose or combining drugs.

What should I do if my triptan stops working?

Triptans do not stop working permanently, but some people develop tolerance over time or find that a particular triptan becomes less effective. Switching to a different triptan often works—your body may respond better to a different chemical structure. Your doctor can also discuss whether a preventive medication might reduce how often you need acute treatment.

Are there migraine treatments that do not require a prescription?

Over-the-counter NSAIDs and Excedrin Migraine are available without a prescription and work for mild migraines caught early. However, prescription medications are significantly more effective for moderate to severe migraines. If over-the-counter options are not controlling your migraines, talking with your doctor about prescription options is the next step.

How long does it take for migraine medication to work?

Over-the-counter pain relievers typically take 30 to 60 minutes to reduce pain. Triptans often work within 30 to 60 minutes as well, though nasal sprays and injections may work faster. CGRP inhibitors taken during an attack may take longer. Starting medication as early as possible gives it the best chance to work before pain becomes severe.

Can I take migraine medication every day to prevent attacks?

Acute migraine medications like triptans are not meant for daily prevention—taking them too often causes medication overuse headaches. If you have migraines more than four days a month, your doctor may recommend a preventive medication taken daily (like beta-blockers, antidepressants, or CGRP inhibitors) to reduce how often attacks happen in the first place.