What stops a migraine depends on when you treat it
The fastest way to stop a migraine is to take medication as soon as you feel one starting—not after the headache is full-blown. The drugs that work best are triptans (sumatriptan, rizatriptan, frovatriptan, and others), which narrow blood vessels and block pain signals. They work in 30 minutes to two hours for most people. Over-the-counter options like ibuprofen or naproxen work for some people, especially if the migraine is mild, but they are slower and less reliable than triptans.
If you wait until the migraine is severe, any medication takes longer to work and may not work at all. This is why people with frequent migraines carry medication with them and use it at the first sign of an attack—tingling, visual changes, or the first twinge of pain.
For migraines that do not respond to standard painkillers, your doctor may prescribe CGRP inhibitors (erenumab, fremanezumab, eptinezumab), which are newer drugs that block a protein involved in migraine. These are injections or infusions given monthly or quarterly, and they prevent migraines rather than stopping one that has started.
Key Takeaways
- Triptans work fastest when taken at the very first sign of a migraine, before the headache becomes severe.
- Preventive medications taken daily or monthly reduce how often migraines happen, not how fast they stop once they start.
- Identifying your personal triggers—stress, certain foods, sleep changes, hormones—lets you avoid or prepare for migraines.
- Lifestyle changes like regular sleep, hydration, and stress management prevent migraines for many people without medication.
- If over-the-counter pain relief does not work, you need a prescription from your doctor; no other route exists.
Preventive medications that reduce how often migraines happen
If you have migraines more than four times a month, your doctor will likely suggest a preventive medication—something you take every day or every month to reduce the number of migraines you get, not to stop one once it starts. Common preventive drugs include propranolol (a blood pressure medication), topiramate (an anti-seizure drug), and amitriptyline (an antidepressant). None of these are migraine drugs originally; they were found to prevent migraines as a side effect.
CGRP inhibitors (erenumab, fremanezumab, eptinezumab) are newer preventives designed specifically for migraine. They are injections or infusions given monthly or every three months. Insurance often requires you to try older preventives first, but if those do not work or cause side effects you cannot tolerate, CGRP inhibitors are an option worth discussing with your doctor.
Preventive medications take two to four weeks to show an effect, and you may need to try several before finding one that works for you. The goal is not to eliminate migraines entirely—that rarely happens—but to cut the number in half or more.
Identifying and avoiding your personal triggers
Most people with migraines have specific triggers: foods, stress, hormonal changes, sleep disruption, weather, or sensory overload. Keeping a migraine diary for two to three months—noting the date, time, what you ate, your stress level, sleep, and any other details before each migraine—often reveals a pattern. Common food triggers include aged cheeses, cured meats, alcohol (especially red wine and beer), and foods with MSG or artificial sweeteners, though triggers vary widely between people.
Once you know your triggers, you can plan around them. If stress triggers migraines, building in breaks or exercise may help. If certain foods do, avoiding them is simpler than treating the migraine afterward. If hormonal changes trigger them—many women's migraines worsen around their period—your doctor can discuss timing preventive medication around your cycle or adjusting your birth control.
Not all triggers can be avoided, and avoiding them does not replace medication. But reducing trigger exposure cuts down how often you need to use acute medication and how severe migraines become.
Sleep, hydration, and stress management as migraine prevention
Irregular sleep is one of the strongest migraine triggers. Going to bed and waking at the same time every day, even on weekends, prevents migraines for many people. Sleeping too little or too much both trigger attacks. If you have insomnia or sleep apnea, treating those conditions often reduces migraines.
Dehydration is another common trigger. Drinking enough water throughout the day—roughly half your body weight in ounces, though this varies—can prevent migraines. Caffeine withdrawal also triggers migraines, so if you drink coffee or tea, keeping your intake steady rather than skipping it on some days helps.
Chronic stress does not always trigger a migraine directly, but the release of stress—the weekend after a stressful week—often does. Regular exercise, meditation, or other stress management reduces migraine frequency for many people. These changes take weeks to show an effect, but they are worth trying before or alongside medication.
When to see a doctor about migraines
See your doctor if you have migraines more than once a month, if they are getting worse or changing in pattern, or if over-the-counter pain relief does not work. Bring your migraine diary if you have one. Your doctor will ask about the pain itself (location, intensity, how long it lasts), what happens before it starts, and what makes it better or worse.
You may need imaging (an MRI or CT scan) if your migraines are new, if they have changed significantly, or if you have neurological symptoms like weakness or vision loss. Most people with migraines do not need imaging, but your doctor will decide based on your history.
If your first preventive medication does not work or causes side effects, tell your doctor. There are many options, and finding the right one sometimes takes trial and error. Do not stop taking a preventive on your own; work with your doctor to switch to something else.
Emergency treatment for severe migraines
If a migraine is so severe that you cannot function and medication at home is not working, you can go to an urgent care or emergency room. They can give you stronger medication intravenously—often a combination of fluids, anti-nausea drugs, and pain medication or a triptan. This usually stops the migraine within an hour.
Going to the ER should not be your regular migraine treatment; it is for migraines that are unusually severe or different from your normal pattern. If you find yourself going to the ER more than once or twice a year for migraines, talk to your doctor about better prevention or acute treatment at home. Overusing pain medication—taking it more than 10 days a month—can actually cause more frequent migraines, a condition called medication overuse headache.
What does not work and why
Resting in a dark, quiet room helps you tolerate a migraine while it passes, but it does not stop the migraine itself. Ice packs or heat may feel soothing but do not address the underlying cause. Supplements like magnesium or riboflavin have weak evidence for prevention; they may help some people but are not reliable enough to replace medication.
Dehydration rehydration drinks, electrolyte supplements, and other "natural" remedies are not substitutes for medication. If you prefer to try non-medication approaches first, that is a choice to make with your doctor, but understand that they are less effective than prescription or over-the-counter drugs for stopping an active migraine.
Frequently Asked Questions
Can I take a triptan if I have high blood pressure or heart disease?
Triptans narrow blood vessels, which can raise blood pressure temporarily. If you have high blood pressure, heart disease, or a history of stroke, tell your doctor before taking a triptan. Some triptans are safer than others in these situations, and your doctor can help you choose one or suggest an alternative.
Why does my migraine medication stop working after a while?
Your body can build tolerance to some migraine medications over time, or your migraines may change. If a medication that worked well suddenly stops working, tell your doctor. You may need to switch to a different drug or adjust the dose. Overusing pain medication also makes migraines worse, so if you are taking it more than 10 days a month, cutting back often helps.
Is it safe to take migraine medication while pregnant?
Some migraine medications are safer in pregnancy than others. Acetaminophen and some triptans are considered lower-risk. Preventive medications like topiramate carry more risk. If you are pregnant or planning to become pregnant, discuss your migraine treatment with your doctor or an obstetrician before making changes.
What if nothing stops my migraines?
If standard treatments are not working, ask your doctor about referral to a neurologist or headache specialist. They have access to more specialized preventive medications and can sometimes identify triggers or patterns a general doctor might miss. Specialized clinics also offer newer treatments like nerve blocks or Botox injections for chronic migraine.
Can stress alone cause a migraine, or is it always something physical?
Stress can trigger migraines, but migraines are a neurological condition, not a psychological one. Stress activates the nervous system in ways that can set off a migraine in someone whose brain is prone to them. Managing stress helps prevent migraines, but it is not a cure and does not replace medication.