The fastest way to stop a migraine is to treat it early, ideally within the first 20 to 30 minutes of pain. A combination of an over-the-counter pain reliever and caffeine, a cold pack on your neck, and a dark, quiet room can cut a mild-to-moderate attack short. For stronger migraines, prescription options work faster and more reliably. Here’s what actually works, and in what order to try it.
Take the Right OTC Combination Early
The most effective over-the-counter approach combines three ingredients: acetaminophen (250 mg), aspirin (250 mg), and caffeine (65 mg) per tablet, taken as two tablets with water. This triple combination is sold specifically as migraine relief and outperforms any single ingredient alone. The caffeine narrows swollen blood vessels and helps your body absorb the pain relievers faster.
Ibuprofen (400 mg) is another solid option if you can’t take aspirin. Whichever you choose, the critical factor is timing. Taking medication when pain is still mild is significantly more effective than waiting until it builds. Once a migraine reaches moderate or severe intensity, OTC options become far less likely to resolve it completely.
Use a Cold Pack on Your Neck
Applying a cold pack to the front of your neck, over the carotid arteries on either side, is one of the most underrated physical treatments for migraine. In a clinical trial of 55 participants, a frozen neck wrap targeting these arteries reduced pain by about 32% within 30 minutes. The control group actually got worse by a similar margin over the same period. The cold constricts blood vessels carrying warm blood to the brain, which appears to interrupt part of the pain cycle.
A bag of frozen peas wrapped in a thin towel works fine. Hold it against the sides of your neck, not just the back. Keep it on for 15 to 30 minutes.
Control Your Environment
Light sensitivity during a migraine isn’t just uncomfortable. Certain wavelengths of blue and green light actively make the pain worse by stimulating pathways in the brain that amplify the migraine process. Get into a dark room as quickly as possible. If you can’t, sunglasses help, and specially tinted FL-41 lenses filter out the specific blue-green wavelengths most likely to aggravate migraine pain. Research from the University of Utah found these lenses reduced both light sensitivity and headache severity.
Sound and smell work similarly. Even low-level noise or a mild fragrance can sustain a migraine that might otherwise fade. Quiet, dark, and cool is the combination you’re aiming for.
Drink Water With Electrolytes
Dehydration alone can trigger a migraine, and it makes an existing one harder to break. But plain water isn’t always enough. Migraine involves a phenomenon called cortical spreading depression, where a wave of disrupted electrolyte balance moves through brain tissue, temporarily silencing normal nerve activity. This massive shift in sodium and potassium concentrations between cells is the basis of migraine aura and contributes to the pain phase.
Drinking something with electrolytes (a sports drink, coconut water, or water with a pinch of salt) helps your body restore that balance faster. Sip steadily rather than gulping, especially if you’re nauseous.
If You Get Aura, Time Your Medication Carefully
If your migraines start with visual disturbances, numbness, or other aura symptoms, you might assume you should take medication immediately. The evidence suggests otherwise. For triptans specifically, the best results come from taking the medication at the onset of pain, not at the onset of aura. Taking a triptan during the aura phase is safe, but it’s less effective at stopping the headache that follows. For OTC pain relievers, the same general principle applies: wait for the first hint of actual pain, then act fast.
Prescription Options for Stronger Attacks
When OTC treatments aren’t enough, two main classes of prescription medication can stop a migraine in progress.
Triptans are the older, more established option. Sumatriptan is the most commonly prescribed, and the injectable form is the most powerful version available for acute migraine. Nasal spray formulations of sumatriptan and zolmitriptan work faster than pills because they bypass the stomach, which slows down during a migraine. Orally disintegrating tablets (like rizatriptan) are another good option if you’re nauseous. You can take a second dose after two hours if the first doesn’t fully work, but no more than two doses in 24 hours.
A newer class of medications called gepants works differently by blocking a protein involved in migraine pain signaling. In clinical trials, about 20% of people taking ubrogepant or rimegepant were completely pain-free at two hours, compared to roughly 10% on placebo. Around 36% had relief of their most bothersome symptom. These numbers are lower than triptans for many people, but gepants have fewer cardiovascular side effects and don’t cause the chest tightness some people experience with triptans. Ubrogepant can be repeated once after two hours. Rimegepant cannot.
Devices That Stimulate Nerves
FDA-cleared neuromodulation devices offer a drug-free option. The Cefaly device, worn on the forehead, stimulates the nerve above your eyes that’s involved in migraine pain. About 29% of users are pain-free after one hour of treatment. The gammaCore device stimulates the vagus nerve through the skin of the neck, with nearly 30% of users reporting little to no pain within two hours.
These devices work best for people who can’t tolerate medications, use them too frequently, or want to combine approaches. They require a prescription but have essentially no systemic side effects.
Magnesium as a Supplement Strategy
Magnesium plays a role in nerve signaling and blood vessel tone, both central to migraine. The American Academy of Neurology rates it as “probably effective” for migraine prevention at 400 to 600 mg daily of magnesium oxide. While it’s primarily used as a daily preventive, taking it during an attack at the same dose may help, particularly if your magnesium levels run low. People who menstruate, drink alcohol regularly, or eat few leafy greens and nuts are more likely to be deficient.
Magnesium oxide can cause loose stools at higher doses. Magnesium glycinate is gentler on the stomach, though less studied specifically for migraine.
Warning Signs That Need Emergency Care
Most migraines, as miserable as they are, resolve on their own or with treatment. But certain headache features signal something more dangerous than a migraine. Neurologists use a checklist called SNOOP4 to identify red flags:
- Sudden onset at maximum intensity: A headache that hits 10 out of 10 within seconds (a “thunderclap headache”) can indicate a brain aneurysm or bleed.
- New neurological symptoms: Weakness on one side of the body, new numbness, or vision changes that don’t fit your usual aura pattern.
- Fever, night sweats, or weight loss: These systemic symptoms suggest infection or another underlying condition.
- New headache after age 50: A first-time severe headache in someone over 50 is more likely to have a secondary cause.
- Progressive worsening: A headache pattern that’s clearly getting more severe or more frequent over weeks.
- New headache during or after pregnancy: This warrants evaluation for vascular or pituitary problems.
If any of these apply, skip the home remedies and get to an emergency department.

