How to Get Rid of a Migraine Before It Gets Worse

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 a cold compress. Timing matters more than almost anything else: treating within the first 30 to 60 minutes of symptoms, before pain fully builds, dramatically improves your odds of relief. Beyond that first move, you have a range of options depending on how often you get migraines and how severe they are.

Start With Over-the-Counter Pain Relief

For mild to moderate migraines, standard painkillers work well when taken early. Ibuprofen at 400 mg made 41% of people pain-free at two hours in clinical trials, compared to 28% on placebo. Aspirin at 900 to 1,000 mg has been shown superior to placebo across 13 separate trials. Acetaminophen at 1,000 mg is another option, though it tends to work best for milder attacks.

The combination of aspirin, acetaminophen, and caffeine (the formula in Excedrin Migraine) is one of the most effective over-the-counter choices. In three trials, it showed a 26% advantage over placebo. Caffeine helps because it constricts blood vessels and boosts the absorption of the other ingredients. If you don’t have a combination product, washing your pain reliever down with a cup of coffee or tea can offer a similar boost.

One important detail: during a migraine, your stomach slows down significantly. This gastric stasis delays absorption of anything you swallow, which is one reason pills sometimes seem not to work. Effervescent or liquid formulations absorb faster. If you have nausea, an anti-nausea medication taken about 10 minutes before your pain reliever can normalize absorption and help the painkiller actually reach your bloodstream on schedule.

Prescription Options That Target Migraines Directly

If over-the-counter medications aren’t cutting it, triptans are the most widely prescribed class of migraine-specific drugs. They work by activating serotonin receptors in the brain, which constricts dilated blood vessels and blocks pain signals along the trigeminal nerve. Unlike general painkillers, triptans were designed specifically for migraines.

Among triptans, injectable sumatriptan works fastest. At a 6 mg dose, only two people need to be treated for one to be completely pain-free at two hours. Oral sumatriptan (50 or 100 mg) and rizatriptan (which dissolves on the tongue, useful when you’re nauseous) also have strong evidence behind them. Most people feel meaningful relief within one to two hours of taking an oral triptan.

A newer class of medications called gepants works differently, blocking a protein called CGRP that plays a central role in migraine pain. About 20 to 21% of people become completely pain-free at two hours, which sounds modest until you consider the side effect profile: it’s essentially the same as taking a sugar pill. No serious safety concerns emerged in pivotal trials. Perhaps more meaningfully, roughly double that percentage reported being restored to normal function even without becoming fully pain-free. Gepants are a good option if you can’t tolerate triptans or have heart disease, which rules triptans out.

What to Do Right Now Without Medication

Light sensitivity is one of the hallmarks of a migraine, and retreating to a dark, quiet room genuinely helps. If you can’t get to a dark room, sunglasses with yellow, orange, or red tinted lenses can filter out the wavelengths that aggravate migraine pain. Green light is the only band of light that has been shown not to worsen migraines, so green-tinted light bulbs are worth considering if you get frequent attacks.

Apply a cold pack to your forehead, temples, or the back of your neck. Cold reduces inflammation and has a mild numbing effect on pain signals. Keep it on for 15 to 20 minutes at a time with a cloth barrier to protect your skin. Some people alternate with a warm compress on the neck to relax tense muscles, but cold tends to be more effective during the acute throbbing phase.

Hydrate. Dehydration is a common migraine trigger and worsens attacks already underway. Sip water or an electrolyte drink steadily rather than gulping large amounts, especially if you’re nauseous.

Ginger for Pain and Nausea

Ginger has surprisingly solid evidence for migraine relief. A meta-analysis of randomized controlled trials found that ginger was nearly twice as likely to produce pain freedom at two hours compared to control groups, and it significantly reduced pain scores. It also lowered the incidence of nausea and vomiting, which makes it doubly useful since nausea is one of the most disabling migraine symptoms. Adding 400 mg of ginger extract to standard treatment improved both pain and functional status. You can take ginger as a supplement capsule, chew on crystallized ginger, or drink strong ginger tea. The side effect profile is comparable to placebo.

Neuromodulation Devices

Several FDA-cleared devices can abort migraines without drugs. Cefaly is a small electrode you wear on your forehead that stimulates the trigeminal nerve. In trials, two hours of use produced significantly better pain freedom and symptom relief than a sham device. Nerivio is a wearable you strap to your upper arm that sends electrical signals to distract your brain’s pain-processing pathways. In real-world use, about 59% of people experienced pain relief at two hours, and 20% became completely pain-free without any medication in at least half their attacks.

These devices work best for people who want to reduce their medication use or who can’t tolerate standard drugs. They require a prescription and aren’t cheap, but they have very few side effects.

Why Timing Changes Everything

Migraines progress through phases. In the early phase, pain signals are still mostly peripheral, traveling along nerves outside the brain. Standard painkillers and triptans can intercept these signals effectively. Once the attack progresses to central sensitization, where the brain itself amplifies pain, the same medications become far less effective. This is why the universal advice from headache specialists is to treat early and treat aggressively.

If you notice prodrome symptoms like yawning, food cravings, neck stiffness, or mood changes, that’s your window. Taking medication during prodrome, before pain even starts, gives you the best chance of stopping the attack entirely.

Red Flags That Need Medical Attention

Most migraines, while miserable, aren’t dangerous. But certain features signal something more serious. Neurologists use a checklist to identify headaches that need urgent evaluation:

  • Sudden, explosive onset described as “the worst headache of my life” could indicate bleeding in the brain.
  • Neurological symptoms like weakness, numbness, double vision, or ringing in the ears that you’ve never had with previous migraines.
  • New headaches starting after age 50 or in young children under 5 to 10 deserve investigation.
  • Headaches triggered by coughing, sneezing, exercise, or sex may suggest increased pressure inside the skull.
  • Headaches during or shortly after pregnancy can be related to serious complications of pregnancy or delivery.
  • A pattern that’s new or different from your usual migraines, especially if it’s progressively worsening over weeks.

If your migraines are happening more than four days a month, that’s the threshold where preventive treatment, taken daily or monthly to reduce attack frequency, becomes worth discussing with a doctor. Frequent use of acute medications (more than 10 to 15 days per month) can paradoxically cause rebound headaches, trapping you in a cycle of worsening pain.