Stop what you're doing and take action early
The fastest way to stop a migraine is to treat it as soon as you feel it coming on—ideally during the warning signs before the headache itself begins. If you wait until the pain is severe, treatment becomes much harder. The goal at this stage is to use medication, reduce sensory input, and rest in a way that stops the migraine from getting worse.
What works varies from person to person. Some people need medication alone. Others need medication plus darkness and quiet. A few find that ice, heat, or specific movements help. The key is learning what your body responds to, then doing it immediately when you recognize the early signs.
Key Takeaways
- Take migraine medication as soon as you feel warning signs, not after the pain starts—early treatment works better than waiting.
- Over-the-counter options like ibuprofen or naproxen work for some people; prescription medications like triptans work for others.
- Reducing light, sound, and movement, plus resting in a cool dark room, stops the migraine from worsening in many cases.
- Keeping a migraine diary helps you spot patterns in what triggers yours and what treatment actually works for you.
- If migraines happen more than four days a month, talk to your doctor about prevention medications that reduce how often they occur.
Medication options: what's available without a prescription
Over-the-counter pain relievers stop migraines in roughly 50 percent of people who use them early. Ibuprofen (Advil, Motrin) and naproxen (Aleve) are the most common choices. Aspirin combined with caffeine can also work. These medications work best if you take them during the warning phase or within the first 30 minutes of pain.
The dose matters. For ibuprofen, 400 to 600 milligrams is standard; for naproxen, 220 to 500 milligrams. Taking more than the label recommends does not make it work better and can cause stomach or kidney problems with repeated use. If over-the-counter medication has not stopped your migraines in the past, prescription options are usually more effective.
Prescription medications that work differently
Triptans are the most common prescription migraine treatment. They work by narrowing blood vessels and blocking pain signals in the brain. Common triptans include sumatriptan (Imitrex), rizatriptan (Maxalt), and zolmitriptan (Zomig). They come as tablets, nasal sprays, or injections. Most people take them as soon as the migraine pain starts, and they often work within 30 to 60 minutes.
Triptans work better than over-the-counter medication for many people, but they are not right for everyone. If you have heart disease, uncontrolled high blood pressure, or certain other conditions, your doctor may recommend a different class of medication. Some people experience side effects like tingling, chest tightness, or dizziness—usually mild and temporary.
Other prescription options include CGRP receptor antagonists (erenumab, fremanezumab, galcanezumab), which are newer medications that block a protein involved in migraines. These are typically given as monthly injections and work differently than triptans. Your doctor can help determine which medication fits your situation.
Non-medication steps that reduce pain
Medication works best when combined with environmental changes. Move to a dark, quiet room as soon as you feel a migraine starting. Light and sound can make the pain worse, so closing curtains, turning off screens, and asking others to keep noise down all help. Many people find that lying down with their eyes closed speeds recovery.
Temperature changes help some people. A cold compress on your forehead or neck, or a warm compress on tense shoulder muscles, can reduce pain. Staying hydrated matters too—dehydration can trigger or worsen migraines. Drink water slowly if nausea is present.
Some people find relief through gentle movement or stretching, while others need complete stillness. Pay attention to what your body responds to. Avoid strong smells, caffeine (if you do not normally use it), and stressful activity. The goal is to create an environment where your nervous system can calm down.
When to go to the emergency room
Most migraines do not require emergency care, but certain warning signs mean you should go to the ER or call 911. Seek immediate care if the migraine is the worst headache you have ever had, if it came on suddenly and is different from your usual migraines, if you have fever, stiff neck, confusion, vision changes, weakness, or numbness alongside the headache, or if medication does not relieve it after several hours of treatment.
These signs can indicate a more serious condition like meningitis, stroke, or a bleed in the brain. Emergency doctors can rule these out and provide stronger medication if needed. If you are unsure whether your symptoms warrant the ER, call your regular doctor or a nurse hotline—they can help you decide.
Keeping track of what works for you
A migraine diary is one of the most useful tools you can use. Each time you have a migraine, write down the date, time it started, what you were doing beforehand, what you ate or drank, stress level, sleep the night before, and what medication you took. Then note whether the medication worked, how long it took, and what else you did to feel better.
Over a few months, patterns emerge. You may notice that certain foods, sleep changes, hormonal cycles, or stress levels trigger your migraines. You may also see that one medication works better than another, or that combining medication with darkness works better than medication alone. This information is invaluable when talking to your doctor about treatment adjustments.
Prevention if migraines happen frequently
If you have more than four migraines per month, or if each one lasts more than 12 hours and severely disrupts your life, ask your doctor about preventive medications. These are taken daily to reduce how often migraines occur, not to treat them once they start. Common options include beta-blockers (propranolol), tricyclic antidepressants (amitriptyline), and anti-seizure medications (topiramate, valproic acid).
Newer preventive options include the CGRP monoclonal antibodies mentioned earlier, which are given as monthly injections. Preventive medications take several weeks to show results, so patience is needed. Your doctor will work with you to find one that reduces your migraine frequency without side effects that bother you.
Frequently Asked Questions
Can caffeine help or hurt a migraine?
Caffeine can do both. If you normally drink coffee or tea, caffeine withdrawal can trigger a migraine, so maintaining your usual intake helps prevent them. During a migraine, a small amount of caffeine can make some pain relievers work better—some over-the-counter migraine products include caffeine for this reason. However, too much caffeine or sudden increases can trigger migraines in some people.
Why does my migraine medication stop working after I use it for a while?
Medication overuse can actually cause more frequent headaches, a condition called medication overuse headache. If you use pain relievers or triptans more than 10 to 15 days per month, your body may adapt and require more medication to get relief. Talk to your doctor about this pattern—they may recommend switching medications or starting a preventive medication instead.
Is it safe to take migraine medication while pregnant?
Some migraine medications are safer in pregnancy than others. Acetaminophen and some forms of ibuprofen are generally considered safe in the first and second trimesters, though you should check with your obstetrician. Triptans and some other medications carry more risk. If you are pregnant or planning to become pregnant, discuss your migraine treatment with your doctor before continuing any medication.
What should I do if nothing stops my migraine?
If a migraine does not respond to your usual medication after two hours, or if it is much worse than normal, contact your doctor or go to urgent care. You may need a different medication, a stronger dose, or an injection given by a healthcare provider. Prolonged migraines can lead to medication overuse problems, so getting professional help is important.
Can I prevent migraines by avoiding triggers?
Avoiding known triggers helps reduce how often migraines occur, but most people cannot avoid all triggers all the time. Common triggers include stress, sleep changes, certain foods, hormonal changes, and weather shifts. A migraine diary helps you identify your triggers. Reducing stress, maintaining regular sleep, staying hydrated, and eating consistently are general strategies that help many people.