What to Eat With a Migraine and What to Avoid

When a migraine hits, eating the right foods can help ease pain, prevent nausea from getting worse, and keep your blood sugar stable so the attack doesn’t drag on longer than it needs to. The short answer: reach for magnesium-rich foods, stay hydrated with electrolytes, and avoid aged, fermented, or heavily processed foods that can make things worse.

Why Eating During a Migraine Matters

Skipping meals is one of the most reliable migraine triggers. Glucose is your brain’s preferred fuel, and when blood sugar drops, it can both spark a migraine and intensify one that’s already underway. Even if you feel nauseated and eating sounds terrible, getting something small and bland into your system helps stabilize the attack. The goal is to pair a small amount of carbohydrate with protein or fat so your blood sugar rises gently instead of spiking and crashing.

Best Foods to Reach For

Magnesium-Rich Options

Magnesium is the single most relevant nutrient during a migraine. It helps relax blood vessels, reduces the release of pain-signaling chemicals in the brain, and may block a process called cortical spreading depression, which is the wave of abnormal brain activity behind migraine aura. Many people with migraines have lower magnesium levels than average, so eating magnesium-dense foods during an attack is a practical first step.

Good choices include bananas, a handful of almonds or pumpkin seeds, dark leafy greens like spinach, and black beans. Bananas are especially useful because they’re easy on the stomach, provide quick energy, and are rich in both magnesium and potassium. If you can tolerate a small meal, sautéed spinach with white rice and beans covers multiple bases at once.

Ginger

Ginger is one of the few foods with clinical evidence specifically for migraine relief. A meta-analysis of randomized controlled trials found that ginger significantly improved the chance of being pain-free at two hours and reduced pain scores compared to a control group. It also lowered the incidence of nausea and vomiting, which matters when your stomach is already churning. Fresh ginger steeped in hot water as a tea is the simplest option. You can also grate fresh ginger into broth or sip a ginger-based drink, though avoid sugary ginger ales that are mostly corn syrup with minimal actual ginger.

Broth and Soup

Warm broth checks several boxes: it delivers sodium, potassium, and fluid all at once. When your electrolytes are too low or too diluted, nerve cells misfire more easily, which can lower your migraine threshold. A cup of chicken or vegetable broth with a little salt replenishes sodium, raises blood volume, and is gentle enough to keep down when you’re nauseated. Miso soup works well too, especially with some soft tofu for protein.

Watermelon and Other High-Water Fruits

Dehydration is a classic migraine amplifier, and sometimes plain water isn’t enough because it dilutes your remaining electrolytes further. Watermelon is about 92% water but also contains potassium and natural sugars that help your body absorb the fluid. Berries, oranges, and grapes are other good options. If solid food feels impossible, blending watermelon into a smoothie with a pinch of salt gives you hydration and electrolytes in an easy-to-tolerate form.

Drinks That Help

Water is the obvious starting point, but electrolyte balance matters just as much as total fluid intake. Low sodium reduces blood volume and alters nerve signaling, which can worsen dizziness, fatigue, and head pain. Oral rehydration solutions or electrolyte drinks without excessive sugar are your best bet. Coconut water is a reasonable natural alternative since it’s high in potassium.

Caffeine is tricky. In small amounts, around 50 to 100 milligrams (roughly half a cup of coffee), it constricts blood vessels in the brain and can genuinely reduce pain. But the Cleveland Clinic recommends keeping daily caffeine intake to 150 to 200 milligrams total, because once caffeine wears off, those blood vessels reopen and the rebound can trigger another headache. If you don’t normally drink caffeine, a small cup of green tea is a safer choice than a large coffee. If you’re a regular caffeine drinker already in the middle of an attack, a small dose can help, but don’t exceed your usual amount.

Foods to Avoid During an Attack

Certain foods contain compounds that can worsen migraine pain or trigger a second wave. The main culprits fall into a few categories:

  • Aged cheeses and fermented dairy: Cheddar, blue cheese, brie, yogurt, sour cream, and buttermilk all contain tyramine, a compound that builds up as foods age and can dilate blood vessels in the brain.
  • Processed and cured meats: Hot dogs, bacon, salami, pepperoni, beef jerky, and deli meats preserved with nitrites or nitrates are among the most commonly reported migraine triggers.
  • MSG-heavy foods: Many restaurant dishes, flavored snack chips, bouillon cubes, and packaged soups contain monosodium glutamate, sometimes hidden under the label “natural flavoring.”
  • Chocolate: This one is complicated. Dark chocolate contains magnesium, which helps, but it also contains both caffeine and tyramine. During an active migraine, the trigger potential likely outweighs the magnesium benefit, especially in large amounts.
  • Alcohol: Red wine is the most notorious, but any alcohol during a migraine dilates blood vessels and promotes dehydration.

The simplest rule: stick to fresh, unprocessed, unaged foods while you’re in pain. Anything that’s been sitting, fermenting, curing, or aging has had time to accumulate the chemical compounds that worsen migraines.

A Simple Migraine Meal Plan

When you’re in the middle of an attack, you probably aren’t going to cook an elaborate meal. Here’s what a realistic day of eating looks like:

Start with ginger tea and a banana when you first feel the migraine. If you can tolerate more food within an hour or two, have a bowl of warm broth with rice or plain crackers. For a slightly more substantial option, try oatmeal with pumpkin seeds and blueberries, which delivers magnesium, antioxidants, and steady energy without any common triggers. Later, if the pain has eased, a piece of salmon or sardines with steamed spinach gives you omega-3 fatty acids and another dose of magnesium.

The key is eating something small every few hours rather than waiting until you’re starving. Even a few bites of a banana with a handful of almonds and some water can prevent the blood sugar crash that prolongs the attack.

Long-Term Eating Patterns That Reduce Migraines

What you eat during an attack matters, but your overall dietary pattern matters more for reducing how often migraines happen in the first place. A randomized controlled trial found that women following the DASH diet (rich in fruits, vegetables, whole grains, and lean protein) experienced three fewer migraine days per month compared to a control group, along with significantly lower pain severity.

Omega-3 fatty acids from fatty fish have some of the strongest evidence. A study funded by the National Institutes of Health found that after 16 weeks on a diet higher in omega-3s from fish like salmon, mackerel, and sardines, participants had fewer total headache hours, fewer days with headache per month, and less severe pain. The benefit was even greater when participants also reduced their intake of omega-6 fatty acids, which are concentrated in vegetable oils like soybean, corn, and sunflower oil.

Riboflavin, or vitamin B2, is another nutrient worth building into your regular diet. The American Headache Society notes that 400 milligrams daily is a common dose used for migraine prevention, likely because it supports energy production inside brain cells. While that dose usually requires a supplement, regularly eating mushrooms, eggs, and leafy greens helps increase your baseline intake. Keeping your magnesium stores consistently high through nuts, seeds, beans, and greens makes each individual attack less likely to take hold.