What to Do for a Migraine Headache: Remedies That Work

When a migraine hits, your first moves should be to stop what you’re doing, get to a dark and quiet space, and take pain relief early. Timing matters more than most people realize: treating a migraine while the pain is still mild can double your chances of being pain-free within two hours compared to waiting until the pain becomes moderate or severe. Here’s what works, from immediate home strategies to medications and longer-term prevention.

What to Do in the First Few Minutes

As soon as you feel a migraine starting, whether that’s the visual disturbances of an aura or the first throb of pain, reduce sensory input. Turn off overhead lights or move to a room with blackout curtains. Lower the volume on anything making noise. Light and sound don’t just feel worse during a migraine; they actively intensify the pain.

Apply a cold pack wrapped in a thin towel to your forehead or temples. A 2020 study found that pain scores dropped significantly after 30 and 60 minutes of cold application. Keep the pack on for 10 to 15 minutes at a time, then remove it to avoid skin irritation. Some people prefer heat on the back of the neck to loosen tight muscles, so experiment with both.

Sip a small caffeinated drink. Caffeine narrows blood vessels and enhances the absorption of pain relievers. A cup of coffee or tea is enough. Too much caffeine can backfire, especially later in the day when it disrupts the sleep that often ends a migraine attack. If you can, lie down and try to nap. Sleep is one of the most effective ways to break a migraine cycle.

Over-the-Counter Pain Relievers

If you’re reaching for something in your medicine cabinet, three options have strong clinical evidence behind them. Ibuprofen at 400 mg brings moderate-to-severe pain down to mild within two hours for roughly one in three people who take it. Complete pain relief within two hours happens for about one in seven. Naproxen at 500 mg works more slowly but lasts longer, which means you’re less likely to need a second dose. A slightly higher dose of 825 mg may be somewhat more effective.

The combination of acetaminophen, aspirin, and caffeine (sold as Excedrin Migraine and generic versions) has particularly strong evidence and is considered a solid first-line option. The caffeine component boosts the effectiveness of the other two ingredients.

Take any of these as early as possible. Waiting until the pain peaks reduces their effectiveness considerably.

Avoiding Rebound Headaches

Here’s a trap many frequent migraine sufferers fall into: using pain relievers so often that they start causing headaches themselves. This is called medication overuse headache, and it creates a frustrating cycle where the thing you’re taking for relief becomes the problem.

The thresholds are specific. Over-the-counter painkillers like ibuprofen or acetaminophen should be used fewer than 15 days per month. Combination painkillers (like the acetaminophen-aspirin-caffeine products) and triptans should be limited to no more than 9 days per month. If you find yourself reaching for headache medication more than twice a week on a regular basis, that’s a signal to talk with your doctor about a preventive approach instead.

Prescription Options for Stronger Attacks

When over-the-counter medications aren’t cutting it, two main classes of prescription drugs can stop a migraine in progress.

Triptans have been the standard for decades. They work by narrowing blood vessels around the brain and blocking pain signals. They’re effective for many people, but because they constrict blood vessels, they aren’t safe for everyone, particularly people with heart disease or uncontrolled high blood pressure.

A newer class of medications called gepants works differently. Instead of narrowing blood vessels, these drugs block a protein called CGRP that triggers the inflammatory chain reaction behind migraine pain. They don’t carry the same cardiovascular restrictions as triptans. In clinical trials, gepants taken at the 50 mg dose provided complete pain freedom within two hours for about 23 to 25% of treated attacks, and meaningful pain relief for 65 to 68%. When people took them early, while pain was still mild, the pain-freedom rate jumped to over 50%. That early-treatment advantage is one of the biggest takeaways from gepant research.

Hydration and What You Put in Your Body

Dehydration won’t single-handedly cause a migraine, but it’s a well-documented trigger. If you haven’t been drinking enough water, or you’ve been sweating, drinking alcohol, or consuming a lot of caffeine, topping up your fluids during an attack is a low-effort step that may take the edge off. Better hydration over time can also reduce how often attacks happen in the first place.

During an active migraine, nausea can make eating and drinking difficult. Small, frequent sips of water or an electrolyte drink are easier to tolerate than gulping down a full glass.

Supplements That May Reduce Attack Frequency

Two supplements have enough evidence behind them to be recommended by headache specialists for migraine prevention (not for stopping an attack already in progress, but for making attacks less frequent over time).

Magnesium oxide at 400 to 500 mg daily is the most widely recommended. Many people with frequent migraines have lower magnesium levels, and supplementation can reduce attack frequency over several weeks. Magnesium can cause loose stools at higher doses, so starting at the lower end and building up is a reasonable approach.

Riboflavin (vitamin B2) at high doses has also shown benefit in clinical studies for prevention, though the effect takes two to three months of consistent daily use to appear.

When a Migraine Is an Emergency

Most migraines are painful but not dangerous. A few specific situations, however, require an emergency room visit.

  • Thunderclap headache: Severe pain that reaches maximum intensity within one minute. This pattern can signal a brain bleed or other vascular emergency.
  • High fever with neck stiffness: Combined with headache, these are classic signs of meningitis and need immediate evaluation.
  • New or worsening neurological symptoms: Sudden vision loss, confusion, weakness on one side of the body, difficulty speaking, or any symptom that feels drastically different from your usual migraine pattern.

The key question is whether this headache feels like your typical migraine or whether something is different. If it’s the worst headache of your life, came on instantly, or is accompanied by symptoms you’ve never had before, that’s when to go to the emergency department rather than treating it at home.