The fastest relief depends on what stage your migraine is in

Migraine treatment splits into two separate problems: stopping the one happening right now, and preventing the next one. What works for acute relief (during an attack) is different from what prevents attacks from starting. Most people need both, and finding the right combination usually takes trial and a few weeks of tracking what actually works for your body.

For an attack in progress, the goal is to stop the pain and nausea as quickly as possible—ideally before it gets severe. For prevention, the goal is to reduce how often attacks happen or how bad they are when they do. Your doctor will likely start with one approach and adjust based on what you report back.

Key Takeaways

  • Acute migraine treatment (stopping an attack) works best when you take it early, before pain becomes severe, and includes over-the-counter options like ibuprofen or naproxen as well as prescription medications.
  • Preventive treatment reduces how often migraines happen and includes daily medications, Botox injections, and newer drugs called CGRP inhibitors that your doctor prescribes based on your attack frequency.
  • Tracking your migraines in a simple log or app helps you and your doctor spot patterns, identify triggers, and know whether a treatment is actually working.
  • Non-medication approaches like rest in a dark room, ice or heat, and avoiding known triggers work alongside medication and sometimes reduce how much medication you need.
  • If your first treatment does not work after a fair trial, tell your doctor—switching medications or doses is normal and expected.

Acute treatment: stopping a migraine that is happening now

The window for acute treatment is narrow. Taking medication within 30 minutes of pain starting works better than waiting an hour. If you wait until the pain is severe, even the right medication may not work as well.

Over-the-counter options include ibuprofen (Advil, Motrin) or naproxen (Aleve). These work for mild to moderate migraines in some people. The dose matters—taking the full recommended dose is more effective than a smaller amount. Aspirin combined with acetaminophen and caffeine (Excedrin Migraine) also works for some people. If over-the-counter medication has worked for you in the past, keep it on hand.

Prescription acute medications are triptans, which narrow blood vessels and block pain signals in the brain. Common ones are sumatriptan (Imitrex), rizatriptan (Maxalt), and zolmitriptan (Zomig). They come as pills, nasal sprays, or injections. Triptans work best taken early and work for about 70 percent of people who try them. If one triptan does not work, another one sometimes does. Newer prescription options called gepants (erenumab is one brand name) work differently and may help if triptans do not.

Nausea often comes with migraines and can prevent you from keeping medication down. Your doctor may prescribe an anti-nausea medication to take alongside your acute migraine drug, or recommend ginger supplements or peppermint tea as a first step.

Preventive treatment: reducing how often migraines happen

Prevention is for people who have migraines more than once or twice a month, or whose attacks are severe enough to disrupt work or daily life. Preventive medications work by changing your brain chemistry to make migraines less likely to start. They take two to four weeks to show an effect, and you take them every day whether you have a migraine or not.

First-line preventive medications include propranolol (Inderal), a beta-blocker that also treats high blood pressure; topiramate (Topamax), an anticonvulsant; and amitriptyline (Elavil), an older antidepressant. These have the longest track record and are often tried first. Your doctor will start at a low dose and increase it slowly to find the dose that works without side effects you cannot tolerate.

CGRP inhibitors are newer drugs (erenumab, fremanezumab, galcanezumab) that block a protein involved in migraines. They are given as monthly injections you can do at home or as a pill. They work for about half the people who try them and tend to have fewer side effects than older preventives. Insurance often requires you to try an older preventive first, but if that does not work, CGRP inhibitors are a real option.

Botox injections (onabotulinumtoxinA) are approved for chronic migraine—15 or more headache days per month. A neurologist injects small amounts into specific scalp and neck muscles every 12 weeks. It takes two to three rounds of injections to see full benefit. Insurance covers it only for chronic migraine, and you will need documentation of your migraine frequency.

Tracking migraines to know what is working

You cannot tell whether a treatment is working without knowing how often migraines happened before you started it. A simple log—on paper, in your phone notes, or in a migraine app—takes two minutes per entry and gives your doctor real information to work with.

Track the date, time of day, pain level (1 to 10), how long it lasted, what you took, whether it worked, and anything that might have triggered it (stress, sleep loss, certain foods, menstrual cycle, weather changes). After two to four weeks on a preventive medication, you and your doctor can look at the log and see whether attacks are fewer, shorter, or less severe. If nothing has changed, switching medications makes sense.

Free migraine tracking apps include Migraine Buddy and the American Migraine Foundation's app. Your doctor may also have a simple paper form they prefer you to use. The format matters less than actually writing things down—memory is unreliable for this.

Non-medication approaches that reduce migraine severity

Medication works better when paired with migraine management. During an attack, rest in a dark, quiet room, apply ice to your head or neck, or use heat if that feels better. Some people find a cool compress on the forehead helpful. Staying hydrated and avoiding caffeine withdrawal (if you normally drink it) can prevent attacks.

Common triggers include skipped meals, dehydration, too much or too little sleep, stress, and sudden weather changes. Keeping your log will show you which ones affect you. You cannot avoid all triggers, but reducing the ones you can control sometimes cuts migraine frequency in half.

Stress management, regular sleep, and consistent meal timing help some people significantly. Exercise can prevent migraines, though intense exercise during an attack can make it worse. Magnesium supplements, riboflavin (vitamin B2), and coenzyme Q10 have some evidence behind them, though the effect is usually modest. Talk to your doctor before starting supplements, especially if you take other medications.

When to see a doctor about migraines

See your primary care doctor if migraines are new, changing in pattern, or happening more than twice a month. Your doctor can rule out other causes, prescribe acute and preventive medications, and refer you to a neurologist if needed.

See a neurologist (a doctor specializing in nervous system disorders) if your migraines are frequent or severe, if standard treatments are not working, if you need Botox or CGRP inhibitors, or if your doctor thinks a specialist evaluation would help. Neurologists have more training in migraine patterns and can access a wider range of medications.

Go to an emergency room or urgent care if you have a migraine that is different from your usual ones, a sudden severe headache unlike anything you have felt before, headache with fever and stiff neck, vision changes, weakness, or difficulty speaking. These can signal something other than migraine that needs immediate evaluation.

What to expect from your first appointment

Your doctor will ask when migraines started, how often they happen, what the pain feels like, whether you have warning signs (aura), what makes them better or worse, and how much they interfere with work and daily life. They will ask about other health conditions, medications you take, and family history of migraines (which runs in families). They may do a basic neurological exam to rule out other causes.

Bring your migraine log if you have one, or be ready to describe your pattern from memory. Tell your doctor about any medications or supplements you have already tried and whether they helped. This conversation usually takes 20 to 30 minutes. Your doctor will then recommend a treatment plan and schedule a follow-up in two to four weeks to see how it is working.

Frequently Asked Questions

Can I take my acute migraine medication every day to prevent migraines?

No. Taking triptans or other acute medications more than 10 days per month can cause medication overuse headache, where your brain becomes dependent on the drug and headaches actually increase. If you need acute medication more than twice a week, you need preventive treatment instead. Talk to your doctor about switching to a daily preventive medication.

What if the first medication my doctor prescribes does not work?

Switching is normal. Not every medication works for every person, and finding the right one often takes two or three tries. Give each medication a fair trial—usually two to four weeks at the full dose—before deciding it is not working. Keep your log so you can tell your doctor whether the frequency, severity, or duration of migraines actually changed. If nothing changed, ask about trying a different medication.

Are migraines dangerous?

Migraines themselves are not dangerous, but severe migraines can be disabling. A sudden change in your migraine pattern—new symptoms, much worse pain, or a migraine that lasts longer than usual—warrants a call to your doctor. Migraines with aura (visual disturbances) carry a slightly higher stroke risk if you also smoke or take certain hormonal contraceptives, so mention this to your doctor.

Can I prevent migraines by avoiding triggers?

Partially. Avoiding known triggers reduces migraine frequency, but most people cannot avoid all triggers all the time. Stress, weather, and hormonal changes are hard to control. That is why preventive medication exists—it makes your brain less reactive to triggers so that occasional exposure does not always cause an attack.

How long does it take for preventive medication to work?

Two to four weeks. Some people see improvement in the first week, but most need at least two weeks at the full dose to know whether it is working. Do not judge a preventive medication on one or two weeks. Keep your log and compare your migraine pattern from before you started the medication to your pattern after four weeks.