How to Get Rid of a Migraine: What Actually Works

The fastest way to get rid of a migraine is to take pain relief early, reduce sensory input, and hydrate. Timing matters more than almost anything else: treating within the first 30 to 60 minutes of symptoms, when pain is still mild, dramatically improves your chances of stopping the attack before it peaks.

Start With What You Have at Home

If you don’t have a prescription, over-the-counter pain relievers are your first option. Ibuprofen (Advil, Motrin) is the most commonly used, though people only rate it helpful about 42% of the time. The combination of aspirin, acetaminophen, and caffeine (sold as Excedrin) performs slightly better, working roughly half the time. These aren’t spectacular numbers, but they improve significantly when you take them at the very first sign of pain rather than waiting until the migraine is fully established.

Naproxen sodium (Aleve) is another option that lasts longer than ibuprofen, which can help if your migraines tend to drag on for hours. Whichever you choose, take it with a full glass of water. Dehydration is a common migraine trigger, and for some people, rehydrating with a small amount of sodium (a pinch of salt in water, or a sports drink) can help relieve pain, especially when the attack started alongside skipped meals or heavy sweating.

Prescription Medications That Work Faster

If over-the-counter options aren’t cutting it, prescription medications designed specifically for migraines are considerably more effective. The two main categories are triptans and a newer class called gepants.

Triptans (sumatriptan is the most well-known) work by narrowing dilated blood vessels in the brain and blocking pain signals from the trigeminal nerve, which is the main nerve involved in migraine pain. They’re the gold standard for fast relief, with most people experiencing significant improvement within two hours. They come as tablets, nasal sprays, and injections, with the non-oral forms working faster if nausea makes swallowing pills difficult.

Gepants (like ubrogepant and rimegepant) take a different approach. Instead of constricting blood vessels, they block a protein called CGRP that drives migraine inflammation and pain. They’re slightly slower to kick in than triptans, but they’re better tolerated, cause fewer side effects, and are safer for people with heart disease or circulation problems who can’t use triptans. If you get migraines regularly and don’t yet have a prescription abortive medication, this is worth discussing with your doctor, because the difference in effectiveness compared to ibuprofen is substantial.

Reduce Sensory Input Immediately

Light sensitivity during a migraine isn’t just uncomfortable. It actively makes the headache worse. Research from Harvard Medical School found that at normal office-level brightness, nearly 80% of migraine patients experienced intensified pain from exposure to white, blue, amber, and red light. Green light was the sole exception. Exposure to a narrow band of green light actually reduced migraine pain by about 20%. If you have access to a green-tinted light bulb or green light therapy glasses, they may help. Otherwise, a dark or very dimly lit room is your best bet.

Sound and smell can be just as aggravating. Move to a quiet space, turn off screens, and avoid strong odors like perfume, cooking smells, or cleaning products. This isn’t just about comfort. Sensory stimulation activates the same trigeminal nerve pathways that are already inflamed during a migraine, so reducing input helps your nervous system calm down.

Cold, Caffeine, and Ginger

A cold pack on your forehead, temples, or the back of your neck constricts blood vessels and numbs the area, providing temporary but real relief. Wrap ice in a towel and apply for 15 to 20 minutes at a time. Some people find alternating cold on the head with warmth on the neck or shoulders helpful, since tension in the neck muscles often accompanies migraines.

Caffeine is a double-edged sword. In small amounts (a cup of coffee or tea), it enhances the absorption of pain relievers and constricts blood vessels on its own. That’s why it’s an active ingredient in Excedrin. But if you’re a heavy daily caffeine user, it may not provide the same boost, and relying on it too often can create a cycle of withdrawal headaches.

Ginger is one of the few natural remedies with genuine clinical evidence behind it. In a head-to-head trial, 250 mg of ginger powder taken at migraine onset reduced pain nearly as much as sumatriptan, with both groups showing a roughly 4.6 to 4.7 point drop on a 10-point pain scale. You can use ginger capsules, ginger tea, or even chew on fresh ginger root. It also helps with the nausea that often accompanies migraines.

Wearable Devices for Drug-Free Relief

Several FDA-cleared devices now offer non-drug migraine treatment. These work by delivering gentle electrical or magnetic pulses to nerves involved in migraine pain.

  • CEFALY sits on your forehead and stimulates the trigeminal nerve with mild electrical current. It has a 60-minute acute treatment mode designed to interrupt an active migraine.
  • gammaCore is a handheld device you press against the side of your neck to stimulate the vagus nerve. In clinical trials, patients applied two-minute stimulations to each side of the neck within 20 minutes of migraine onset, repeating if pain hadn’t improved after 15 minutes.
  • SAVI Dual uses single-pulse magnetic stimulation delivered to the scalp to disrupt the abnormal brain activity driving the migraine.

These devices won’t replace medications for severe attacks, but they’re useful for people who get frequent migraines and want to reduce how often they take pills, or for those who don’t tolerate medications well.

Watch Your Medication Frequency

This is the part most people don’t know about: taking migraine or headache medication too frequently can actually cause more headaches. It’s called medication overuse headache, and it creates a vicious cycle where the treatment itself becomes a trigger.

The thresholds are specific. Triptans, combination painkillers (like Excedrin), and opioids should not be used more than 10 days per month. NSAIDs like ibuprofen and naproxen have a slightly higher ceiling of 15 days per month. If you’re reaching for pain relief more often than this, it’s a sign you need a preventive strategy rather than relying solely on treating each attack as it comes. Opioid painkillers like hydromorphone are now strongly recommended against for migraine treatment altogether, because safer and more effective options exist.

What to Do While You Wait for Relief

Most migraine treatments take 30 minutes to two hours to fully work. In the meantime, lie down in a cool, dark, quiet room. Slow, deep breathing can help activate your vagus nerve, which has a natural calming effect on pain signaling. Some people find that pressing firmly on the temples or the space between the thumb and index finger provides mild, temporary relief.

If you can sleep, do it. Sleep is one of the most reliable ways a migraine resolves naturally, and many people wake up with the worst of it over. Avoid screens entirely if possible, since the blue light from phones and computers is among the wavelengths most likely to intensify migraine pain.