What to Do When You Feel a Migraine Coming On

The moment you notice early migraine signs, you have a window to act that can mean the difference between a full-blown attack and one that fizzles out. Headache specialists recommend treating within the first two hours of pain onset, ideally while pain is still mild. But your real advantage starts even earlier, during the warning phase that can appear one to two days before the headache itself.

Recognize the Warning Signs

Most people think a migraine begins with head pain, but the attack actually starts much earlier. In the day or two before the headache phase, your brain enters a prodrome stage that produces subtle but recognizable changes: neck stiffness, unusual food cravings, mood shifts (anything from irritability to unexpected euphoria), excessive yawning, increased thirst, more frequent urination, or constipation. Nearly 39% of migraine patients experience premonitory symptoms two or more hours before pain begins, with a tense neck, sensitivity to sound, and difficulty concentrating among the most common.

Learning your personal pattern is one of the most powerful tools you have. If you always yawn repeatedly before an attack, or your neck tightens on one side, that signal is your cue to start acting. Many people also develop light or sound sensitivity during this early phase, well before any headache. Research suggests these sensitivities aren’t actually triggers but early symptoms of the attack already in progress. Your brain’s sensory threshold is dropping, making normal stimuli feel overwhelming. Recognizing this shift for what it is lets you respond immediately rather than waiting for pain to confirm what’s happening.

Take Medication Early

If you have a pain reliever available, take it as soon as you recognize early symptoms or the first hint of head pain. Treating while pain is mild is consistently more effective than waiting until it intensifies. This early window, roughly the first two hours of head pain, is when acute medications work best.

For over-the-counter options, combination products containing acetaminophen (250 mg), aspirin (250 mg), and caffeine (65 mg) are specifically formulated for migraine. The caffeine component acts as a pain reliever aid, helping the other ingredients absorb faster and enhancing their effect. Naproxen sodium and ibuprofen are also commonly used, though naproxen on its own has modest results when pain is already moderate or severe.

If you have a prescription, triptans remain the most effective class of acute migraine medication. In a large meta-analysis of over 46,000 participants, most triptans outperformed newer drug classes for pain freedom at two hours. Newer options called gepants work differently by blocking a protein involved in migraine pain signaling. They’re less potent than triptans on average but cause fewer side effects and don’t carry the cardiovascular restrictions that make triptans off-limits for some people. Your prescription choice depends on your health profile, but the principle is the same regardless of the drug: earlier is better.

Watch Your Frequency

There’s an important limit to how often you can use acute migraine medications. Taking simple pain relievers like ibuprofen, naproxen, aspirin, or acetaminophen on more than 15 days per month for three consecutive months can cause medication-overuse headache, a cycle where the treatment itself starts generating more headaches. For triptans, that threshold is lower: more than 10 days per month. If you’re reaching for acute medication that frequently, it’s a sign you need a preventive strategy rather than repeated rescue treatment.

Control Your Environment Immediately

Your brain is already in a state of heightened sensitivity during the early phase of a migraine. Light, sound, and strong smells that you’d normally ignore can intensify the attack as it builds. This isn’t psychological. The neurological threshold for processing sensory input drops as the migraine progresses, meaning ordinary stimuli genuinely register as painful or aversive.

Move to a dim, quiet space as soon as you can. If you’re at work or out in public, even partial measures help: sunglasses, noise-canceling earbuds, stepping away from fluorescent lighting. The goal is to reduce the total sensory load on a brain that’s already struggling to regulate incoming signals. Lying down in a dark room isn’t just comfort. It removes the stimuli that can push a developing migraine from mild to severe.

Apply Cold to Your Neck

Cold therapy is one of the simplest and most immediate non-drug interventions. A cold pack applied to the front or sides of your neck, where major blood vessels run close to the skin surface, causes blood vessels to constrict and reduces downstream blood flow. In a controlled trial, participants who wore a frozen neck wrap for 30 minutes during a migraine experienced meaningful pain reduction.

The practical limitation is that most small gel packs only stay cold for about 15 to 20 minutes, so having a larger pack or rotating between two helps extend the benefit. Keep the cold on for up to 30 minutes, then remove it. A secondary blood vessel response kicks in after 20 to 30 minutes of continuous cold, which can reduce effectiveness if you leave the pack on too long.

Hydrate and Consider Magnesium

Dehydration is a well-known migraine contributor, and increased thirst during the prodrome phase suggests your body may already be signaling a fluid deficit. Drinking water or an electrolyte drink at the first sign of an attack is a low-risk intervention worth doing immediately.

Magnesium has over three decades of research supporting its role in migraine. The evidence is strongest for intravenous magnesium during acute attacks (in emergency settings, it produces pain freedom in the majority of patients within 15 to 30 minutes), but oral magnesium supplementation also has support as part of a broader migraine management approach. Magnesium deficiency is linked to several mechanisms involved in migraine, including abnormal nerve excitability, inflammation, and blood vessel changes. If you get frequent migraines, daily oral magnesium supplementation may reduce their frequency over time, though it’s not a fast-acting rescue treatment the way a cold pack or medication is.

Device-Based Options

Two FDA-cleared portable devices can be used at the onset of a migraine without medication. The Cefaly device is a small unit that sticks to your forehead and delivers mild electrical pulses to branches of the trigeminal nerve, which plays a central role in migraine pain. The Nerivio device wraps around your upper arm and sends electrical stimulation to peripheral nerves there, activating a pain-inhibition pathway in the brainstem. Both are controlled through smartphone apps and designed to be used at home the moment symptoms start. They’re particularly useful for people who can’t tolerate medications, have reached their monthly medication limits, or want a drug-free option to pair with other treatments.

Putting It All Together

When you feel a migraine coming on, speed matters more than perfection. The most effective response layers several actions at once: take your medication immediately while pain is mild, move to a low-stimulation environment, apply cold to your neck, and drink fluids. None of these steps conflicts with the others, and combining them gives you the best chance of blunting the attack before it fully develops. Over time, tracking which prodrome symptoms reliably predict your migraines will let you start this process even earlier, sometimes hours before pain begins.