What to Do for a Migraine: Treatments That Work

When a migraine hits, the fastest relief comes from taking pain medication early, retreating to a cool, dark room, and applying a cold compress to your forehead or the back of your neck. That combination works better than any single step alone. But what you do between attacks matters just as much: the right supplements, lifestyle adjustments, and preventive treatments can cut the number of migraines you get each month in half or more.

During an Attack: Immediate Steps

Timing is everything with migraine medication. Taking a painkiller within the first 20 to 30 minutes of symptoms, before pain fully escalates, dramatically improves your odds of stopping the attack. Once a migraine is entrenched, the same medication becomes far less effective.

While you wait for medication to kick in, move to a quiet, dark room. Light and sound amplify migraine pain through sensitized nerve pathways. An ice pack or cold washcloth on your forehead, temples, or the base of your skull can numb pain signals and reduce the throbbing sensation. Some people find that alternating cold on the head with warmth on the neck helps relax tense muscles that worsen the headache.

Dehydration is a common migraine trigger and can also make an active attack worse. Sip water steadily. If you’ve been vomiting or sweating, a drink with electrolytes helps your body absorb the fluid more effectively. The general target is eight 8-ounce glasses of water per day, plus an extra glass for every caffeinated drink you have.

Over-the-Counter Pain Relief

Ibuprofen at 400 mg is the best-studied OTC option for migraine and consistently outperforms placebo in clinical trials. Naproxen works well too, typically at 500 mg, though 825 mg may be slightly more effective. Acetaminophen at 1,000 mg is a reasonable choice if you can’t take anti-inflammatory drugs, but head-to-head comparisons show it’s less effective than ibuprofen or naproxen.

All three of these carry an important limitation: if you use them on more than 15 days per month, you risk developing medication overuse headache, sometimes called rebound headache. This creates a vicious cycle where the painkiller itself starts triggering more frequent headaches. The safe threshold is no more than two to three days per week.

Prescription Options for Acute Attacks

If OTC medications aren’t cutting it, triptans are the most widely prescribed class of migraine-specific drugs. They work by narrowing blood vessels and blocking pain signals in the brain. Standard doses provide meaningful headache relief within two hours for 42% to 76% of patients, and complete pain freedom for 18% to 50%. An injectable form of sumatriptan is the most effective option in the triptan family, relieving pain in about half of patients within two hours.

Combining a triptan with an anti-inflammatory works better than either alone. In clinical trials, sumatriptan plus naproxen was superior for pain relief at two hours and sustained relief at 24 hours compared with each drug individually.

A newer class of medications called gepants blocks a protein involved in migraine pain (CGRP) rather than narrowing blood vessels. This makes them a better fit for people with heart disease or other cardiovascular risk factors, since triptans aren’t recommended in those cases. Gepants are generally well tolerated, with nausea being the most notable side effect for some versions. The same 10-day-per-month limit applies to triptans and gepants to avoid rebound headaches.

Common triptan side effects include dizziness, fatigue, nausea, and tingling sensations. Some people experience brief chest tightness, which is usually harmless but worth mentioning to your doctor.

Supplements That Reduce Migraine Frequency

Three supplements have enough evidence behind them that headache specialists routinely recommend them for prevention. They won’t stop a migraine that’s already happening, but taken daily, they can reduce how often attacks occur.

  • Magnesium oxide at 400 to 500 mg per day. The American Headache Society specifically recommends this dose. Magnesium plays a role in nerve signaling, and many people with migraine have lower-than-normal levels.
  • Riboflavin (vitamin B2) at 400 mg per day. This is far higher than the amount in a typical multivitamin. Riboflavin supports energy production in brain cells, which may be impaired during migraines.
  • CoQ10 at 300 mg per day. Research has found this dose reduces migraine frequency in adults.

These supplements take six to eight weeks of consistent daily use before you’ll notice a difference. They’re generally safe and inexpensive, which makes them a reasonable first step before moving to prescription preventives.

Preventive Medications for Frequent Migraines

If you’re getting four or more migraine days per month, or your attacks are severe enough to regularly disrupt your life, preventive medication is worth considering. The goal isn’t to eliminate migraines entirely but to cut their frequency by at least 50%.

The newest preventive option targets CGRP, the same pain-signaling protein that gepants block during acute attacks. These treatments come as monthly or quarterly injections. In clinical studies, about 52% of patients achieved at least a 50% reduction in monthly headache days within the first three months. Among those who stayed on treatment for a full year, 80% reached that threshold. The American Headache Society now considers CGRP-targeting therapies a first-line option for migraine prevention, putting them on equal footing with older preventives like blood pressure medications and certain antidepressants.

Devices That Treat Migraine Without Drugs

Several FDA-cleared devices use mild electrical or magnetic stimulation to interrupt migraine signals. They’re worth knowing about if medications aren’t working well or cause side effects you can’t tolerate.

Nerivio, a wearable arm device, has the strongest clinical evidence. In a randomized trial, users experienced a reduction of 4.0 monthly migraine days compared to 1.3 days for a placebo device. It’s cleared for both acute treatment and prevention in patients as young as 8. Cefaly, a forehead-worn device, showed a roughly 30% reduction in monthly migraine days in trials, though results didn’t reach statistical significance compared to a sham device. GammaCore, which stimulates the vagus nerve on the neck, showed similar modest reductions.

These devices work best as add-ons to other treatments rather than replacements.

Biofeedback and Behavioral Approaches

Biofeedback trains you to consciously control physical stress responses like muscle tension, heart rate, and skin temperature. Sensors attached to your skin give you real-time feedback, and over several sessions you learn to shift your body out of the tense, reactive state that can trigger or worsen migraines. Meta-analyses show biofeedback produces roughly a 40% improvement in migraine activity, which is comparable to the benefit from preventive medications. Those improvements hold up over follow-up periods averaging 17 months.

The practical appeal of biofeedback is that once you’ve learned the techniques, you can use them on your own without ongoing appointments or medication costs.

Lifestyle Changes That Lower Attack Frequency

Migraine brains are sensitive to irregularity. Skipping meals, sleeping too little (or too much), and dehydration are among the most common triggers. Keeping a consistent daily routine matters more for migraine prevention than almost any single intervention.

Sleep is particularly important. Going to bed and waking up at the same time every day, even on weekends, helps stabilize the brain patterns that trigger attacks. A cool, dark bedroom supports better sleep quality. Avoiding screens for two hours before bed also helps, since the light from phones and tablets activates the brain at a time when it needs to wind down.

Caffeine is a double-edged sword. Small, consistent amounts can actually help migraine (it’s an ingredient in some OTC migraine formulas), but irregular caffeine intake, such as drinking coffee only on weekdays, can trigger withdrawal headaches on the days you skip it. If you drink caffeine, keep it to the same amount at roughly the same time each day, and add an extra glass of water for each caffeinated drink.

Red Flags That Need Emergency Evaluation

Most migraines, however painful, aren’t dangerous. But certain headache features signal something more serious. A thunderclap headache, one that reaches maximum intensity within seconds to minutes, carries a greater than 40% probability of serious brain pathology such as a hemorrhage. That requires immediate emergency evaluation, not a wait-and-see approach.

Other combinations that warrant urgent attention: headache with fever and a stiff neck (possible infection around the brain), headache with vision changes and impaired consciousness, and a new headache pattern that feels fundamentally different from your usual migraines. A headache accompanied by sudden eye pain, redness, or halos around lights could indicate acute glaucoma, which also needs immediate treatment to protect your vision.