How to Get Rid of a Migraine: Remedies That Actually Work

The fastest way to stop a migraine is to treat it early, ideally within the first 30 to 60 minutes of symptoms. Taking pain relief at the first sign of an attack, retreating to a dark and quiet room, and applying a cold compress to your neck or forehead form the core approach that works for most people. Beyond that immediate response, the right combination of medication, trigger avoidance, and prevention strategies can reduce how often migraines hit in the first place.

What to Take as Soon as a Migraine Starts

Over-the-counter pain relievers work best when you take them early and at the right dose. For ibuprofen, 400 mg is the standard effective dose, and roughly one in three people who take it will go from moderate or severe pain to mild pain within two hours. Acetaminophen and aspirin both work at 1,000 mg doses. Naproxen requires 500 mg, though 825 mg may be slightly more effective. If one type hasn’t helped you in the past, it’s worth trying another since people respond differently to each.

If over-the-counter options don’t cut it, prescription triptans are the gold standard. Among the available options, eletriptan and rizatriptan consistently outperform other triptans in head-to-head comparisons for pain freedom at two hours. Standard-dose triptans provide headache relief within two hours for 42 to 76 percent of people and complete pain freedom for 18 to 50 percent. Newer prescription options that target the CGRP pathway (the nerve signaling system involved in migraine pain) exist but are generally less effective than triptans for stopping an active attack.

Non-Drug Relief That Actually Helps

A cold compress applied to your neck or forehead constricts blood vessels and slows pain signals traveling through the nerves. Place an ice pack wrapped in a cloth on the area for 15 to 20 minutes, then remove it to protect your skin. You can repeat this several times throughout the day with breaks in between. A 2013 study found that a cold wrap on the back of the neck provided the best relief compared to other placement spots. The effect is temporary, but it can take the edge off while you wait for medication to kick in.

Light and sound sensitivity are hallmarks of migraine, so retreating to a dark, quiet room isn’t just comfort, it’s removing active triggers that worsen the attack. If you can, lie down. Many people find that sleep is the most reliable way to end a migraine completely.

The Medication Overuse Trap

One of the most common reasons migraines become chronic is the very medication people use to treat them. Taking over-the-counter pain relievers like ibuprofen, acetaminophen, or naproxen on more than 15 days per month puts you at risk for medication overuse headache, sometimes called rebound headache. For triptans, that threshold is lower: more than 10 days per month.

The general rule is to limit any as-needed headache medication to no more than two or three days per week, or fewer than 10 days per month. If you find yourself reaching for pain relief more often than that, it’s a signal to shift toward preventive treatment rather than relying on acute relief alone.

Devices for Migraine Relief

Several FDA-cleared devices offer drug-free options. The gammaCore is a handheld vagus nerve stimulator about the size of an electric razor that you hold against the side of your neck for two-minute sessions. In studies, it provided three times better pain freedom at 30 minutes compared to a sham device. You can repeat the stimulation on each side of the neck, with another round 20 minutes later if pain persists.

The Cefaly device sticks to your forehead with an adhesive electrode and stimulates the trigeminal nerve for about 20 minutes. It can be used both to treat active attacks and as a daily prevention tool. A transcranial magnetic stimulator delivers a single magnetic pulse to the back of the head, targeting the brain’s visual processing area where migraine aura originates.

Preventing Migraines Before They Start

If you’re getting migraines frequently, prevention is where the real quality-of-life gains happen. Traditional oral preventives include beta-blockers, certain antidepressants, and anti-seizure medications. They’re inexpensive and widely covered by insurance, but adherence is a known problem: only 26 to 29 percent of people are still taking them at six months, and just 17 to 20 percent at one year, largely because of side effects.

Newer injectable medications that block CGRP (the protein that drives migraine inflammation) have changed prevention significantly. Four of these are now available, given as a monthly or quarterly injection. They start working fast, with some showing results within four weeks and one showing effects as early as one day after the first dose. In one direct comparison study, 55 percent of people on erenumab (a CGRP blocker) achieved at least a 50 percent reduction in monthly migraine days, compared to just 31 percent on topiramate, one of the most commonly prescribed oral preventives. The American Headache Society now considers CGRP-targeting therapies a first-line option for migraine prevention.

Supplements Worth Trying

Three supplements have enough evidence behind them that headache specialists routinely recommend them. Magnesium oxide at 400 to 500 mg daily is recommended by the American Headache Society. People with migraine tend to have lower magnesium levels, and at adequate levels, magnesium helps calm overexcitable nerve signaling in the brain. Riboflavin (vitamin B2) at 400 mg daily supports energy production in brain cells and has shown benefit in reducing migraine frequency. CoQ10 at 300 mg daily has also been found to reduce how often migraines occur.

These supplements are generally well tolerated and can be combined with each other or with prescription preventives. They typically take two to three months of consistent daily use before you notice a difference.

Common Food and Environmental Triggers

Not everyone has the same triggers, but certain patterns are well established. Tyramine, a compound that builds up naturally in aged, fermented, or stored foods, is one of the most consistent dietary culprits. High-tyramine foods include aged cheeses (cheddar, brie, blue cheese, Swiss), cured meats like pepperoni and salami, fermented products like soy sauce and miso, sauerkraut, and pickled foods. Alcohol, particularly red wine, beer, and sherry, is another frequent trigger.

Processed meats containing nitrates and nitrites, MSG in large amounts, and foods made with yeast extracts can also provoke attacks in sensitive individuals. Nuts and seeds, including peanuts and peanut butter, appear on many trigger lists as well. Keeping a simple food diary for a few weeks can help you identify your personal triggers rather than unnecessarily restricting everything on a generic avoidance list.

Beyond food, common environmental triggers include bright or flickering lights, strong smells, changes in sleep patterns, dehydration, stress, and shifts in barometric pressure. You can’t control the weather, but stabilizing your sleep schedule, staying hydrated, and managing stress through regular exercise are practical steps that reduce your overall migraine threshold.

When a Headache Isn’t Just a Migraine

Most migraines, while miserable, are not dangerous. But certain features signal something more serious. Headache specialists use the mnemonic SNOOP to flag red flags: systemic symptoms like fever or night sweats, neurological signs like new weakness in an arm or leg or vision changes that aren’t your typical aura, sudden onset at maximum intensity (a “thunderclap headache” that hits 10 out of 10 instantly), new headache onset after age 50, and a clear pattern of headaches becoming progressively more severe or frequent over weeks.

A thunderclap headache is the most urgent of these. It can point to a vascular emergency like an aneurysm and warrants immediate evaluation. Headaches that change with position (worse when standing versus lying down) or that are triggered by coughing or straining can indicate pressure problems inside the skull. New headaches during or just after pregnancy also need prompt assessment for vascular causes.