How to Get a Migraine to Go Away: What Works

The fastest way to get a migraine to go away is to take medication early, reduce sensory input, and apply cold to your neck or forehead. Timing matters more than almost anything else: treating within the first 20 to 30 minutes of an attack, before pain fully escalates, dramatically improves your odds of relief. Here’s what works, ranked from immediate options to prescription therapies.

Over-the-Counter Pain Relievers

If you don’t have a prescription migraine medication on hand, standard pain relievers are your first line of defense. But they’re not all equally effective. A large study covered by Harvard Health found that ibuprofen (Advil, Motrin) was rated helpful only 42% of the time. Acetaminophen (Tylenol) performed worse, helping just 37% of the time. A combination of aspirin, acetaminophen, and caffeine (Excedrin) did slightly better, working about half the time.

Those numbers might seem discouraging, but they improve significantly when you take the medication early in an attack rather than waiting until the pain is severe. Swallow your chosen painkiller at the very first sign of migraine pain, not after you’ve been suffering for an hour.

Why Caffeine Helps

Caffeine does more than just perk you up. It increases gastric motility, meaning your stomach processes and absorbs the painkiller faster. Research shows that at least 100 mg of caffeine combined with a standard analgesic dose leads to a greater proportion of people achieving satisfactory pain relief compared to the analgesic alone. That’s roughly the amount in one strong cup of coffee or one Excedrin dose. If you’re taking plain ibuprofen or aspirin, drinking a small cup of coffee or tea alongside it can boost its effectiveness. One caveat: if you consume caffeine daily in large amounts, this trick is less reliable, and caffeine withdrawal itself can trigger migraines.

Cold Therapy on Your Neck

Applying a cold pack to the back of your neck is one of the simplest and most effective non-drug strategies. A 2013 study found that placing a frozen neck wrap at the onset of a migraine significantly reduced pain. The mechanism involves cooling the blood flowing through the carotid artery, which helps reduce inflammation reaching the brain. Cold also constricts blood vessels and interrupts pain signaling. Your nervous system essentially prioritizes the cold sensation over the pain signal.

Use a gel ice pack or a bag of frozen peas wrapped in a thin towel. Place it on the back of your neck or along the sides where you can feel your pulse. Keep it on for 15 to 20 minutes, take a break, and reapply if needed.

Control Your Environment

During a migraine, your brain is hypersensitive to stimulation. Light, sound, and smell all amplify pain. The single best environmental change is getting into a dark, quiet room as quickly as possible. Close the blinds, turn off screens, and lie down. Even dimming your phone screen or wearing sunglasses indoors can help if a fully dark room isn’t available.

If you can sleep, sleep. Many people find that even a 20 to 30 minute nap can break a migraine cycle, especially when combined with early medication. Your brain essentially resets during sleep, and the inflammatory process driving the attack can wind down.

Prescription Medications That Stop Attacks

If over-the-counter options consistently fail you, prescription medications designed specifically for migraines are significantly more effective. There are two main categories worth knowing about.

Triptans

Triptans have been the standard prescription migraine treatment for decades. They work by activating specific serotonin receptors in your brain, which does three things at once: constricts swollen blood vessels inside your skull, blocks pain signals from traveling through the trigeminal nerve (the main nerve responsible for head and face pain), and stops the release of inflammatory chemicals that sustain the attack. Most people feel relief within one to two hours. Triptans come in tablets, nasal sprays, and injections, with the non-oral forms working faster for people who experience nausea.

Gepants (CGRP Blockers)

A newer class of medications blocks a protein called CGRP, which plays a central role in triggering migraine pain. Rimegepant (Nurtec ODT) is one example: it’s a dissolvable tablet you place on your tongue during an attack. In clinical trials, about 59% of people experienced pain relief within two hours, and 21% were completely pain-free at the two-hour mark compared to 11% on placebo. Gepants don’t constrict blood vessels the way triptans do, which makes them an option for people with heart disease or other vascular conditions who can’t safely take triptans.

Neuromodulation Devices

Several FDA-cleared devices can treat a migraine in progress without medication. These work by delivering mild electrical stimulation to specific nerves, interrupting the pain cycle.

  • Nerivio is a wearable arm band that uses electrical nerve stimulation to activate your body’s built-in pain-dampening system. You apply it to your upper arm when a migraine starts.
  • gammaCore stimulates the vagus nerve through the skin of your neck. A typical treatment session takes four to six minutes and can be repeated throughout the day.
  • Relivion targets branches of the trigeminal and occipital nerves with electrical stimulation and is used specifically for acute migraine pain.

These devices require a prescription but can be especially useful for people who want to reduce their medication use or who don’t respond well to pills.

Hydration and Magnesium

Dehydration is a common migraine trigger, and even mild fluid loss can prolong an attack. Drink water steadily once a migraine begins. If you’ve been sweating, skipping meals, or drinking alcohol, an electrolyte drink is a better choice than plain water.

Magnesium plays a specific role in migraine biology. Research reviewed by the American Headache Society found that intravenous magnesium sulfate improved pain intensity within 60 to 120 minutes in emergency department patients. One study found it particularly effective for migraines with aura. While IV magnesium isn’t something you can do at home, oral magnesium supplements taken regularly may reduce the frequency of future attacks, and some people find magnesium-rich drinks helpful during an episode.

What a Full Response Plan Looks Like

The most effective approach layers multiple strategies at once rather than relying on a single remedy. At the first hint of a migraine, take your medication (prescription or OTC) with a small amount of caffeine. Apply a cold pack to your neck. Move to a dark, quiet room and lie down. Drink a full glass of water. This combination attacks the migraine from several angles simultaneously: reducing inflammation, constricting blood vessels, limiting sensory triggers, and correcting dehydration.

The biggest mistake most people make is waiting too long. Once a migraine has fully established itself, with severe throbbing pain and nausea, every treatment becomes less effective. The window for the best response is narrow, usually the first 30 minutes after symptoms begin. If you experience aura (visual disturbances, tingling, or other warning signs before the headache starts), that’s your cue to act immediately, before the pain phase even begins.

When a Headache Isn’t a Migraine

Most migraines, while miserable, follow a pattern you recognize over time. Certain headache features signal something more dangerous. A headache that reaches maximum intensity within seconds, often called a thunderclap headache, can indicate a blood vessel emergency like an aneurysm and needs immediate evaluation. New neurological symptoms you’ve never experienced before, such as weakness in one arm or leg, unusual numbness, or sudden vision changes, also warrant urgent medical attention. These red flags don’t mean every bad migraine is dangerous, but a headache that feels fundamentally different from your usual pattern deserves a closer look.