The fastest way to get rid of a migraine is to take a pain reliever early, retreat to a dark and quiet room, and apply something cold to your head or neck. Timing matters more than almost anything else: treating within the first 30 to 60 minutes of symptoms, before pain intensifies, dramatically improves your odds of relief. Here’s what works, what to try first, and what to keep in mind for next time.
Take Medication Early
Over-the-counter pain relievers are the most accessible first step. Ibuprofen at 400 mg brings moderate-to-severe pain down to mild within two hours for roughly one in three people who take it. Naproxen at 500 mg works more slowly but lasts longer, which means you’re less likely to need a second dose. Both work best when taken at the very first sign of a migraine, not after the pain has fully set in.
If over-the-counter options don’t cut it, prescription medications called triptans are the standard next step. Sumatriptan is the most widely used. An injectable form provides complete pain relief at two hours for about half of users, making it the single most effective acute migraine treatment available. Oral and nasal spray versions are also effective, though slightly less so. Your doctor can prescribe triptans in a form that fits your situation, including a nasal spray if nausea makes swallowing pills difficult.
A newer class of prescription medication works by blocking a protein called CGRP, which rises during migraine attacks and plays a direct role in the pain process. These come as tablets you can take at the start of an attack. In clinical use, about 85% of patients reported improvement or complete resolution of their migraine. Unlike triptans, these medications don’t constrict blood vessels, which makes them an option for people with certain heart conditions who can’t use triptans.
Use Cold Therapy
Applying something cold to your forehead, temples, or the back of your neck is one of the simplest things you can do during a migraine, and there’s real evidence behind it. A 2020 study found that pain scores dropped significantly within 30 minutes of applying a cold band and continued to improve at the 60-minute mark. A 2022 review of multiple studies confirmed that cold therapy, whether through gel caps, cold wraps, or chilled headbands, reduces migraine pain in the short term.
You can use a commercial cold pack, a bag of frozen peas wrapped in a thin towel, or even a cold wet washcloth. Apply it for 15 to 20 minutes at a time. Pair this with resting in a dark, quiet room, since light and sound sensitivity are hallmarks of migraine and reducing sensory input helps your nervous system calm down.
What About Caffeine?
A small amount of caffeine can enhance the effect of pain relievers. That’s why it’s included in some combination migraine products alongside acetaminophen and aspirin. A cup of coffee or tea at the onset of a migraine can help, particularly if you’re not a heavy daily caffeine user. But be careful: frequent caffeine use for headaches can contribute to a rebound cycle that makes migraines worse over time.
Watch Out for Rebound Headaches
Using acute migraine medication too frequently can paradoxically cause more headaches. This is called medication-overuse headache, and it’s defined as headache occurring 15 or more days per month after regularly using acute treatments for more than three months. The threshold varies by medication type: for triptans and combination painkillers, the cutoff is 10 or more days per month. For simple painkillers like ibuprofen, it’s 15 or more days per month.
If you find yourself reaching for migraine medication more than two or three days a week, that’s a signal to talk to a doctor about preventive treatment rather than continuing to treat each attack individually.
Drug-Free Devices
Several FDA-cleared wearable devices can treat migraines without medication. One category stimulates the trigeminal nerve through a small electrode worn on the forehead, using mild electrical current to interrupt pain signals. Another type is a handheld device placed against the neck that stimulates the vagus nerve with gentle electrical pulses. A third option uses single-pulse magnetic stimulation delivered to the scalp to disrupt the abnormal electrical activity that drives migraine pain.
These devices tend to work best for people who want to reduce their medication use or who can’t tolerate standard drugs. They require a prescription or purchase through the manufacturer and typically cost a few hundred dollars, though some are available through insurance.
Supplements That Reduce Frequency
These won’t stop a migraine in progress, but they can reduce how often you get them, which is the other half of the equation. Riboflavin (vitamin B2) at 400 mg daily has shown consistent benefit for migraine prevention. Melatonin at 3 mg before bed each night is another option with supporting evidence. Both are inexpensive and well-tolerated.
Magnesium is also commonly recommended, particularly for people with migraine with aura. Butterbur, an herbal extract, was previously a popular recommendation but is no longer advised due to concerns about liver toxicity.
When a Headache Isn’t Just a Migraine
Most migraines, while miserable, are not dangerous. But certain features point to something more serious. A thunderclap headache that hits maximum intensity within seconds is the most urgent red flag and can signal a vascular emergency like an aneurysm. This requires immediate emergency evaluation.
Other warning signs include new neurological symptoms you haven’t experienced before, such as weakness in an arm or leg, unusual numbness, or vision changes that don’t fit your typical aura pattern. Headaches that change in intensity when you shift positions (standing to lying down) or that are triggered by coughing or straining also warrant evaluation. A first-time severe headache after age 50, headaches accompanied by fever or night sweats, or new headaches during or after pregnancy all deserve prompt medical attention rather than home treatment.
If your migraines are steadily getting worse, becoming more frequent, or changing in character, that progression itself is a reason to get checked out rather than continuing to manage them on your own.