The fastest way to help a migraine go away is to take an over-the-counter pain reliever early, retreat to a dark and quiet room, and apply something cold to your head or neck. Most migraine headaches last several hours to three days, but acting quickly during the first signs of pain can shorten that window significantly. Here’s what works, what the evidence says, and how to layer these strategies together.
Take Pain Relief Early
Timing matters more than most people realize. Over-the-counter anti-inflammatory drugs like ibuprofen and aspirin work best when taken at the first sign of migraine pain, before it builds. Ibuprofen at 400 mg is the strongest first option: in clinical trials, about one in three people improved from moderate or severe pain to mild pain within two hours. Aspirin at 1,000 mg shows similar effectiveness but is harder on the stomach. Acetaminophen (1,000 mg) is a reasonable backup, though it consistently performs worse than anti-inflammatories in head-to-head comparisons.
If you know from experience that over-the-counter options don’t touch your migraines, prescription medications called triptans work through a different mechanism. They narrow blood vessels and lower levels of a protein involved in migraine pain signaling. Newer prescription options called gepants block that same protein at its receptor and have been shown to produce pain freedom within two hours at rates significantly better than placebo. Both classes require a prescription, so if your migraines regularly resist ibuprofen or aspirin, that conversation with a doctor is worth having.
Control Your Environment
During a migraine, your brain becomes hypersensitive to light, sound, and sometimes smell. This isn’t psychological. The neural pathways that process sensory input are genuinely amplified during an attack. Moving to a dark, quiet room reduces the signals flooding your already-overloaded nervous system and can meaningfully lower pain intensity.
Cold therapy also helps. Place an ice pack or cold compress on your forehead, temples, or the back of your neck for 15 to 20 minutes at a time. Cooling the area calms nerve activity involved in migraine pain. Research from the Cleveland Clinic found that cooling near the nasal passages can inhibit a nerve bundle behind the nose that plays a direct role in migraine. You don’t need a medical device to get a version of this benefit: a simple cold pack or even a bag of frozen vegetables wrapped in a cloth works.
Hydrate, but Skip the Salt
Dehydration is a well-known migraine trigger, and drinking water during an attack won’t hurt. But the relationship between fluids and migraines is more nuanced than “just drink more water.” A study published in the British Journal of Nutrition found that high sodium levels were associated with longer headache duration. Interestingly, that link wasn’t independent of body weight and overall diet, meaning it’s part of a bigger picture rather than a simple cause-and-effect. Potassium intake, on its own, didn’t show a significant relationship with migraine duration or severity.
The practical takeaway: drink water or a low-sugar electrolyte drink during an attack, but don’t load up on salty foods or high-sodium sports drinks thinking they’ll help. Plain water is your best bet.
Try Ginger
This one surprises people. In a clinical trial comparing ginger powder to sumatriptan (one of the most widely prescribed migraine medications), ginger reduced pain scores by 4.6 points on a 10-point scale, while sumatriptan reduced them by 4.7 points. The difference was not statistically meaningful. The overall treatment effect of ginger was modest, but for something you can buy at a grocery store and take without a prescription, that’s notable. You can use ginger tea, ginger capsules, or even raw ginger. It also helps with the nausea that often accompanies migraines.
Understand the Migraine Timeline
A migraine isn’t just a headache. It’s a neurological event that moves through distinct phases, and knowing where you are in that timeline helps you respond appropriately.
The prodrome comes first: subtle changes like fatigue, food cravings, neck stiffness, or mood shifts that can appear hours or even days before the headache. If you learn to recognize your prodrome, you can take medication and adjust your environment before the pain hits. About 20% of people then experience an aura, usually visual disturbances like flashing lights or blind spots, lasting 5 to 60 minutes (occasionally longer).
The headache phase itself typically lasts several hours to three days. After it ends, many people enter a postdrome, sometimes called a “migraine hangover,” marked by fatigue, difficulty concentrating, and lingering sensitivity. The postdrome varies in length. Don’t push yourself back to full activity the moment the pain fades. Your brain is still recovering.
Avoid Rebound Headaches
One of the most counterintuitive facts about migraine treatment: using pain medication too frequently can cause more headaches. This is called medication overuse headache, and it’s more common than most people expect. The thresholds are specific. Simple painkillers like ibuprofen or acetaminophen should not be used more than 15 days per month. Triptans or combination painkillers carry a lower limit of 9 to 10 days per month.
If you find yourself reaching for pain relief that often, it’s a sign your migraines need a preventive strategy rather than repeated acute treatment. The American Headache Society now considers medications that target the protein involved in migraine signaling a first-line option for prevention. Daily supplements can also play a role: magnesium oxide at 400 to 500 mg per day and riboflavin (vitamin B2) at 400 mg per day both have evidence supporting their use for reducing migraine frequency over time. These are preventive measures, not acute treatments, so they won’t stop a migraine in progress but can make future attacks less frequent.
Red Flags That Need Emergency Care
Most migraines, while miserable, are not dangerous. But certain headache features signal something more serious. Get emergency evaluation if you experience any of the following:
- Sudden, maximum-intensity onset. A headache that hits 10 out of 10 within seconds (called a thunderclap headache) can indicate a vascular emergency like an aneurysm.
- New neurological symptoms. Weakness in an arm or leg, new numbness, or vision changes that aren’t part of your typical aura pattern.
- Fever, night sweats, or signs of systemic illness alongside a headache.
- First severe headache after age 50. New-onset headaches later in life are more likely to have a secondary cause.
- Clear progression. A headache pattern that is steadily worsening in severity or frequency over weeks.
- Positional changes. Pain that dramatically shifts when you stand up, lie down, or strain (coughing, bearing down).
- New headache during or after pregnancy, which warrants evaluation for vascular or pituitary conditions.
If your headache feels fundamentally different from your usual migraines, trust that instinct. “Worst headache of my life” is a phrase emergency doctors take very seriously.

