How migraine treatment works
Migraine treatment falls into two categories: stopping a migraine once it starts, and preventing them from happening in the first place. Most people use both. The first-line approach is usually over-the-counter pain relief—ibuprofen, naproxen, or aspirin—taken as soon as you feel a migraine beginning. If those don't work or your migraines are frequent, your doctor can prescribe medications designed specifically for migraines, preventive drugs that reduce how often they occur, or both.
The right treatment depends on how often you get migraines, how severe they are, what other health conditions you have, and what you've already tried. There's no single answer that works for everyone, which is why finding what works for you often takes some trial and adjustment with your doctor.
Key Takeaways
- Over-the-counter pain relievers work best when taken at the first sign of a migraine, before pain becomes severe.
- Prescription migraine medications like triptans work differently than regular pain relievers and are more effective for many people.
- Preventive medications reduce how often migraines occur and are usually recommended if you have more than four per month.
- Non-medication approaches—ice, rest, light control, and stress management—can reduce migraine frequency and severity for some people.
- Keeping a migraine diary helps you and your doctor identify triggers and track whether a treatment is actually working.
Over-the-counter pain relief for acute migraines
Ibuprofen (Advil, Motrin), naproxen (Aleve), and aspirin all reduce migraine pain for some people. The key is timing: take them as soon as you recognize a migraine is starting, not after pain has built up. A dose that works for a headache may not work for a migraine, so follow the package instructions for migraine dosing specifically, which is often higher than the standard headache dose.
Combination products that pair a pain reliever with caffeine (like Excedrin Migraine) work better than the pain reliever alone for some people, because caffeine can increase how quickly the medication is absorbed. If you find one of these works for you, use it consistently at the first sign of pain rather than waiting to see if the migraine will pass on its own.
Over-the-counter medications stop working if you use them more than two or three days per week—this actually causes medication overuse headaches, which feel like constant migraines. If you're reaching for pain relief more often than that, talk to your doctor about preventive options instead.
Prescription migraine medications (triptans and others)
Triptans are the most common prescription migraine treatment. They work by narrowing blood vessels and blocking pain pathways in the brain—a different mechanism than regular pain relievers. Triptans include sumatriptan (Imitrex), rizatriptan (Maxalt), zolmitriptan (Zomig), and several others. They come as pills, nasal sprays, or injections, and work fastest when taken early in a migraine.
Triptans stop a migraine in progress but don't prevent future ones. They work for roughly 60 to 70 percent of people who try them, meaning some people get significant relief and others don't. If one triptan doesn't work, your doctor may have you try a different one—they're not all equally effective for every person. You should not use triptans more than ten days per month, for the same medication overuse reason as over-the-counter drugs.
Other prescription acute medications include ditans (lasmiditan), which work similarly to triptans but may have fewer side effects for some people, and gepants (ubrogepant, rimegepant), a newer class that blocks a different pain pathway. Your doctor will choose based on your medical history and what you've already tried.
Preventive medications for frequent migraines
If you have four or more migraines per month, or if acute medications aren't working well enough, your doctor will likely recommend a preventive medication. These are taken daily and reduce how often migraines occur, how severe they are, or both. It usually takes two to four weeks to notice improvement, and sometimes longer.
Common preventive medications include beta-blockers (propranolol, timolol), which reduce blood vessel reactivity; tricyclic antidepressants (amitriptyline), which affect neurotransmitters involved in pain; and topiramate (Topamax), an anticonvulsant. Newer options include CGRP monoclonal antibodies (erenumab, fremanezumab, galcanezumab)—injectable medications that block a protein involved in migraine pain. CGRP inhibitors are often effective but are more expensive and require prior authorization from insurance.
Preventive medications work differently for different people. You may need to try more than one before finding one that reduces your migraines without side effects you can't tolerate. Keep track of how many migraines you have each month while on a preventive so you and your doctor can tell whether it's actually working.
Non-medication approaches that reduce migraine frequency
Medication isn't the only tool. Many people reduce migraine frequency or severity by identifying and avoiding triggers. Common triggers include specific foods (aged cheese, processed meats, alcohol), skipped meals, sleep changes, stress, hormonal shifts, and sensory overload like bright lights or strong smells. Keeping a migraine diary—noting the date, time, what you were doing, what you ate, and stress level before each migraine—helps you spot patterns.
Lifestyle changes that help some people include regular sleep schedule, consistent meal timing, regular exercise, stress reduction (meditation, yoga, or therapy), and staying hydrated. Magnesium supplementation, riboflavin (vitamin B2), and coenzyme Q10 have some evidence behind them for migraine prevention, though the effect is modest. Talk to your doctor before starting supplements, especially if you take other medications.
During a migraine, rest in a dark, quiet room with ice on your neck or forehead, or heat if that feels better. Some people find relief from a heating pad on tense neck muscles. These approaches won't stop a migraine but can reduce suffering while medication takes effect.
How to work with your doctor on migraine treatment
Start by describing your migraines clearly: How often do they happen? How long do they last? What does the pain feel like and where is it? What makes it better or worse? Do you have warning signs before they start? What have you already tried, and did it work? This information helps your doctor choose the right first treatment to try.
If a medication doesn't work after a fair trial (usually at least two to three migraines treated with it, or two to four weeks of preventive use), tell your doctor. Don't assume you're stuck with that medication. Different medications work for different people, and your doctor has other options to try. Keep notes on side effects, timing, and whether pain actually improved—this helps your doctor adjust your plan.
Some migraine treatments require prior authorization from your insurance company, which means your doctor has to submit paperwork and get approval before you can fill the prescription. This can add a week or two to the process. Ask your doctor's office about this upfront so you're not surprised.
When to see a doctor about migraines
See your primary care doctor if migraines are new, if they've changed in pattern or severity, if over-the-counter medications aren't working, or if you're having more than two per month. You don't need to wait for migraines to become unbearable—early treatment is more effective than waiting.
Go to an emergency room or urgent care if you have a migraine unlike any you've had before, if it's accompanied by fever, stiff neck, confusion, vision changes, weakness, or numbness, or if it doesn't improve with your usual medication. These can be signs of something other than migraine that needs immediate evaluation.
If your migraines are frequent, severe, or not responding to standard treatments, ask your doctor for a referral to a neurologist or headache specialist. They have access to more specialized medications and can help with complex cases.
Frequently Asked Questions
How long does it take for a migraine medication to work?
Over-the-counter pain relievers usually take 30 to 60 minutes. Triptans often work within 30 to 90 minutes, depending on the form—nasal spray and injection work faster than pills. Preventive medications take two to four weeks to show an effect. If a medication hasn't worked after a reasonable time, it may not be the right one for you.
Can I use migraine medication while pregnant?
Some migraine medications are safer in pregnancy than others. Acetaminophen is generally considered safe. Many triptans have limited safety data, and some preventive medications are not recommended. Talk to your doctor or obstetrician before taking any migraine medication during pregnancy—they can help you weigh the risks and benefits.
Why do my migraines come back after medication wears off?
This is called migraine recurrence and happens in about 15 to 30 percent of people treated with triptans. It doesn't mean the medication failed—it means the migraine wasn't completely resolved. Your doctor can adjust your dose, try a different medication, or add a second dose if recurrence is a pattern for you.
What's the difference between a migraine and a regular headache?
Migraines are usually one-sided, throbbing pain often accompanied by nausea, sensitivity to light or sound, or vision changes. They last four to 72 hours and are often disabling. Regular headaches are usually mild to moderate pressure, affect both sides of the head, and don't come with those other symptoms. The distinction matters because migraine-specific medications don't work well for regular headaches.
Can I prevent migraines by avoiding all my triggers?
Trigger avoidance helps, but most people can't avoid all triggers all the time, and some triggers (like stress or hormonal changes) aren't fully avoidable. The goal is to reduce trigger exposure where you reasonably can while also using medication to raise your migraine threshold—so occasional trigger exposure doesn't always cause a migraine.