Stop the pain as early as you can
The fastest way to stop a migraine is to take medication at the very first sign of pain—before it gets worse. Many people wait too long, thinking the headache will pass on its own. It usually won't. If you take a painkiller or a migraine-specific drug in the first 30 minutes after pain begins, you have a much better chance of stopping it completely or cutting it short.
The medications that work best depend on how severe your migraines are and what you've tried before. Over-the-counter options like ibuprofen (Advil, Motrin) or naproxen (Aleve) work for some people, especially if their migraines are mild. For moderate to severe migraines, your doctor may prescribe a triptan—a class of drugs designed specifically for migraines. Common triptans include sumatriptan (Imitrex), rizatriptan (Maxalt), and zolmitriptan (Zomig). These work by narrowing blood vessels around the brain and blocking pain pathways.
If you don't have medication on hand when a migraine starts, you can't get it fast enough. Talk to your doctor now about what to keep at home, at work, and in your bag.
Key Takeaways
- Taking medication within the first 30 minutes of migraine pain gives you the best chance of stopping it before it worsens.
- Over-the-counter painkillers work for mild migraines, but triptans (prescription drugs made for migraines) work better for moderate to severe pain.
- Rest in a dark, quiet room and apply ice or heat to your head or neck while the medication works.
- If you have more than four migraines a month, ask your doctor about preventive medications that reduce how often they happen.
- Keep a migraine diary to track what triggers your headaches so you can avoid them or prepare for them.
Create the right environment while medication works
While you wait for medication to take effect, your surroundings matter. Light, sound, and movement all make migraines worse. Go to a dark room if you can—close the curtains and turn off overhead lights. If you're at work or somewhere you can't leave, put on sunglasses and find the quietest spot available.
Many people find that cold or heat helps. Some prefer an ice pack on the forehead or back of the neck. Others do better with a heating pad on tense shoulder muscles. Try both and see what feels right for you. Lie down if possible, even for 15 minutes. Sleep is one of the best migraine treatments—many people wake up with the pain gone or much reduced.
Avoid screens if you can. The blue light from phones and computers can trigger or worsen migraines. If you must use a device, lower the brightness and take breaks every 20 minutes.
Recognize when you need a different approach
Some migraines don't respond to the first medication you try. If you take a triptan or painkiller and the pain doesn't improve after two hours, you have options. You can take a second dose (if your doctor said that's safe), try a different class of medication, or add an anti-nausea drug if vomiting is keeping you from keeping pills down.
Migraines that last more than 72 hours are called status migrainosus and need medical attention. Go to an urgent care or emergency room if your migraine doesn't break, or if this is the worst headache you've ever had. A sudden, severe headache that's completely different from your usual migraines can signal something else—like a stroke or infection—and needs immediate evaluation.
Keep track of which medications work and how long they take. This information helps your doctor choose the right treatment plan for you.
Prevent migraines before they start
If you have more than four migraines a month, prevention is worth discussing with your doctor. Preventive medications are taken daily, whether or not you have a migraine that day. They reduce how often migraines happen, how long they last, and how severe they are. Common preventive drugs include propranolol (a blood pressure medication), topiramate (an anti-seizure drug), and amitriptyline (an antidepressant). Newer options called CGRP inhibitors—such as erenumab (Aimovig) and fremanezumab (Ajovy)—are injected monthly or quarterly and work by blocking a protein involved in migraine pain.
Preventive medications take two to four weeks to show results, and you may need to try more than one before finding what works. They're not painkillers—they work in the background to make migraines less likely.
Your doctor will also ask about your triggers. Common ones include stress, certain foods (like aged cheese, cured meats, or foods with MSG), skipped meals, too much or too little sleep, hormonal changes, weather shifts, and caffeine withdrawal. Avoiding or managing your triggers is just as important as medication.
Track patterns in a migraine diary
Keeping a record of your migraines helps you and your doctor spot patterns. Write down the date and time each migraine starts, what you were doing when it began, what you ate that day, your stress level, where you are in your menstrual cycle (if applicable), and what medication you took and whether it worked. After a few weeks, patterns often emerge—you might notice migraines always happen after you skip breakfast, or during high-stress weeks, or on certain days of the month.
You can use a notebook, a calendar, or a migraine-tracking app. Some apps, like Migraine Buddy or Headache Coach, are designed specifically for this and can send reminders to log information. The goal isn't perfection—it's spotting what you can control.
Know the difference between migraine and other headaches
Not every bad headache is a migraine. Tension headaches feel like a tight band around your head and usually respond to over-the-counter painkillers. Cluster headaches cause severe pain on one side of the head and happen in groups over weeks or months. Medication overuse headaches develop when you take painkillers more than 10 to 15 days a month—they feel like a constant, dull ache.
Migraines have specific features: throbbing pain (usually on one side), nausea or vomiting, sensitivity to light and sound, and sometimes an aura—visual disturbances like flashing lights or blind spots that happen 20 to 60 minutes before the pain starts. Not everyone with migraines has an aura, and not every migraine feels the same. If you're unsure what type of headache you have, your doctor can help sort it out.
Talk to your doctor about your migraine pattern
Your primary care doctor can diagnose migraines and prescribe common treatments. If your migraines are frequent, severe, or not responding to standard medications, ask for a referral to a neurologist—a doctor who specializes in brain and nerve disorders. Neurologists have more training in migraine management and can discuss newer preventive options or other approaches.
Bring your migraine diary to your appointment. Tell your doctor how often migraines happen, how long they last, what makes them better or worse, and how they affect your work and daily life. This information helps them choose the right treatment. Also mention any other health conditions you have and all medications you take, because some drugs interact with migraine treatments.
Frequently Asked Questions
Can I take migraine medication every day to prevent them?
Some migraine medications are designed to be taken daily for prevention—like propranolol or topiramate. Others, like triptans, are meant only for acute pain and shouldn't be used more than 10 days a month because overuse can cause medication overuse headaches. Your doctor will tell you which approach fits your pattern.
What should I do if my migraine medication stops working?
Migraines can change over time, and medications sometimes become less effective. Talk to your doctor before stopping anything. They may adjust your dose, switch you to a different drug, or add a second medication. Keep taking your preventive medication even if it seems to stop working—stopping suddenly can make migraines worse.
Are migraines dangerous?
Most migraines are not dangerous, but they can be disabling. A sudden, severe headache that's completely different from your usual migraines, or one paired with fever, stiff neck, confusion, or vision changes, needs emergency care. If you're worried about a specific migraine, call your doctor or go to urgent care.
Can caffeine help or hurt migraines?
Caffeine can work both ways. A small amount—like a cup of coffee—can help some migraine medications work better and may ease pain. But too much caffeine or suddenly stopping it can trigger migraines. If you drink caffeine regularly, don't quit cold turkey; taper down slowly over a week or two.
What if I'm pregnant and get migraines?
Some migraine medications are safe during pregnancy and others aren't. Tell your doctor you're pregnant or planning to become pregnant before taking any new migraine drug. Many women find their migraines improve during pregnancy, but some get worse. Your doctor can help you manage pain safely.