How to Help Migraines: Remedies, Diet, and Prevention

Migraines respond to a combination of quick-acting treatments during an attack and longer-term strategies that reduce how often they strike. The most effective approach layers immediate pain relief with lifestyle changes, and for frequent migraines, preventive options that can cut monthly migraine days in half or more. Here’s what actually works.

What to Do During an Attack

When a migraine hits, acting fast matters. Over-the-counter pain relievers like ibuprofen are a reasonable first step for mild to moderate attacks, and ibuprofen specifically performs well for sustained pain relief over 24 hours. For stronger or more frequent migraines, prescription medications called triptans remain the gold standard. A large network analysis published in The BMJ compared all major migraine drugs head-to-head and found that eletriptan and rizatriptan were the most effective at eliminating pain within two hours, followed closely by sumatriptan and zolmitriptan. These outperformed newer drug classes on the market.

Triptans do come with side effects. Dizziness, nausea, and tingling sensations are the most common complaints, and eletriptan is occasionally linked to chest discomfort. If you can’t tolerate triptans or have cardiovascular risks that rule them out, a newer class of medication called gepants (such as rimegepant) offers a gentler alternative. Rimegepant is well tolerated with fewer side effects, though it’s not quite as powerful at stopping pain quickly.

Beyond medication, cold therapy is one of the simplest tools. Applying a cold pack to your forehead or the back of your neck numbs pain and reduces inflammation by slowing blood flow to the area. Keep it on for 15 minutes, take a 15-minute break, then reapply if needed. Resting in a dark, quiet room during an attack also helps, since light and sound sensitivity are core features of migraines.

Supplements That Lower Migraine Frequency

Two supplements have enough evidence behind them that headache specialists routinely recommend them. Magnesium oxide, taken at 400 to 500 milligrams daily, helps stabilize nerve signaling that goes haywire during a migraine. Riboflavin (vitamin B2) at 400 milligrams daily supports energy production in brain cells, which may be impaired in people prone to migraines. Both are inexpensive, widely available, and have minimal side effects. The main downside is patience: it typically takes two to three months of consistent daily use before you notice a difference in how often migraines occur.

Dietary Triggers Worth Investigating

Certain chemicals in food can set off migraines in susceptible people. The main culprits are tyramine (found in aged cheeses, cured meats, and fermented foods), MSG (common in processed soups, seasoned snacks, and some restaurant cooking), aspartame (the artificial sweetener in many diet products), and sulfites (found in wine and dried fruits).

The VA’s Whole Health program identifies 12 food categories most likely to trigger headaches: caffeine, chocolate, MSG-containing foods, processed meats, aged dairy products, nuts, certain fruits (especially citrus, bananas, and anything overripe), onions and legumes, alcohol and vinegar, fresh-baked goods like sourdough and bagels, artificial sweeteners, and processed soy products like soy sauce and miso.

That’s a long list, and you don’t need to avoid all of it permanently. The practical approach is an elimination diet: cut out the most common triggers for a few weeks, then reintroduce them one at a time to identify your personal triggers. Most people with migraines find that only a handful of these foods actually affect them. A small trial found that people who tailored their diet based on their individual sensitivities did see a measurable drop in headache frequency.

Preventive Medication for Frequent Migraines

If you’re getting four or more migraine days per month, preventive treatment can be a game-changer. The newest option targets a protein called CGRP, which plays a central role in migraine pain signaling. These are injectable medications given monthly or quarterly. In a large Australian study tracking patients over a year, 52% achieved at least a 50% reduction in monthly migraine days within the first three months. For patients who stayed on treatment for a full year, that number climbed to 80%, with a median reduction of 18 fewer migraine days per month compared to baseline. For people living with chronic migraine, that kind of improvement is transformative.

Older preventive options, including certain blood pressure medications, antidepressants, and anti-seizure drugs, also work and are far less expensive. Your provider will typically consider how frequent your migraines are, what other health conditions you have, and which side effects are most acceptable to you when choosing a preventive strategy.

Migraines Tied to Your Menstrual Cycle

If your migraines cluster around your period, the likely driver is the natural drop in estrogen that happens just before menstruation. The goal of treatment is to smooth out that hormonal dip rather than letting your body experience a steep decline. Strategies include using supplemental estrogen patches or gel during the late phase of your cycle, or adjusting hormonal contraceptives to extend the active hormone period and shorten the placebo week.

Another well-studied approach is short-term prevention: taking a triptan for a few days around the window when menstrual migraines typically start. This doesn’t require daily medication all month, just targeted coverage during vulnerable days. Magnesium, naproxen, biofeedback, and acupuncture have also been investigated specifically for hormonally related migraines. During menopause, migraines linked to hormone replacement therapy often improve by adjusting the dose or delivery method to minimize estrogen fluctuations.

Daily Habits That Make a Difference

Migraines thrive on inconsistency. Irregular sleep, skipped meals, and dehydration are among the most reliable triggers, and they’re the ones you have the most control over. Going to bed and waking up at the same time every day, even on weekends, stabilizes your brain’s internal clock. Eating at regular intervals prevents the blood sugar drops that can initiate an attack. Staying well-hydrated throughout the day is a baseline requirement for anyone with migraines.

Regular aerobic exercise, around 30 minutes most days, has been shown to reduce migraine frequency over time. The mechanism likely involves improved stress regulation and more stable blood vessel function. Start gently if intense exercise tends to trigger your migraines, and build up gradually.

Headache Patterns That Need Urgent Attention

Most migraines, while miserable, aren’t dangerous. But certain features suggest something more serious than a typical migraine. A sudden-onset headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can signal a blood vessel problem like an aneurysm and needs emergency evaluation.

Other warning signs include headaches accompanied by fever, night sweats, or unexplained weight loss; neurological symptoms you’ve never had before, such as new weakness in an arm or leg, unusual numbness, or vision changes; headaches that are clearly getting worse over weeks or months in severity or frequency; a first-ever severe headache after age 50; and headaches that change dramatically with position (worse when standing or lying down) or are triggered by coughing or straining. Any of these patterns warrant prompt medical evaluation to rule out causes beyond migraine.