What Fruits Are Good for Headaches and Migraines?

Several common fruits can help prevent or ease headaches by keeping you hydrated, reducing inflammation, and supplying key nutrients your nervous system needs. Berries, apples, pears, peaches, and watermelon are among the safest and most helpful choices, while some fruits you might expect to help (like citrus and avocados) can actually trigger migraines in sensitive people.

Why Fruit Helps With Headaches

Many headaches start with something simple: dehydration, a blood sugar drop, or low levels of electrolytes like potassium and magnesium. Electrolytes regulate nerve function, hydration, and muscle contractions, and when they dip too low, headaches are one of the first symptoms. Fruits deliver water, natural sugar, and these minerals in a form your body absorbs quickly. That combination makes them effective both as prevention and as a first response when a headache starts.

Inflammation also plays a role in many headache types, especially migraines. Certain fruits contain plant compounds that work against the same inflammatory pathways targeted by over-the-counter pain relievers. Eating these fruits regularly won’t replace medication, but they can reduce the frequency and severity of headaches over time.

Best Fruits for Headache Relief

Watermelon

Watermelon is roughly 92% water, making it one of the most hydrating foods you can eat. If your headache is tied to dehydration, especially after exercise, hot weather, or simply not drinking enough, watermelon delivers fluid along with potassium and magnesium. It also contains a small amount of natural sugar that can help if your blood sugar has dropped.

Berries

Blueberries, strawberries, raspberries, and tart cherries are rich in anthocyanins, the pigments that give them their deep color. These compounds inhibit the activity of enzymes involved in producing inflammation, working through some of the same pathways as ibuprofen. Tart cherries in particular have been studied for their ability to block inflammatory signaling at the cellular level. Berries are also listed as safe for people following migraine-elimination diets, meaning they’re unlikely to trigger headaches on their own.

Apples and Pears

Both are considered safe fruits for migraine-prone individuals. They provide steady, gentle energy from fiber and natural sugar, which helps prevent the blood sugar crashes that cause hunger headaches. An apple or pear eaten between meals can keep your blood sugar stable without the spike and crash you’d get from processed snacks. Their high water content adds a mild hydration benefit too.

Peaches

Peaches offer a good balance of water, potassium, and fiber. Like apples and pears, they appear on the “OK to eat” list in clinical migraine diets developed by headache centers. They’re a practical choice because they’re widely available fresh or frozen, and frozen peaches retain their nutrient content well.

Pineapple

Pineapple contains bromelain, an enzyme concentrated in the fruit’s core and stem. A review of 10 randomized controlled trials found that bromelain, when used alongside standard treatment, helped relieve sinus inflammation. Another review reported improvements in nasal symptoms like difficulty breathing. If your headaches are sinus-related, tied to congestion and facial pressure, pineapple may offer some relief. The evidence is promising but still limited, and most studies used supplemental doses rather than whole fruit.

Bananas

Bananas are one of the most concentrated fruit sources of potassium, which supports the electrolyte balance your nerves depend on. They’re especially useful for headaches after sweating or physical activity. One caveat: some migraine diet guidelines from headache clinics recommend limiting bananas to moderate portions, around half a cup per day, because they contain compounds that can be problematic for some migraine sufferers.

Fruits That May Trigger Headaches

Not every fruit is headache-friendly. UC Davis Health’s migraine diet guidelines specifically recommend avoiding or limiting several fruits that contain tyramine or other compounds known to trigger migraines in sensitive individuals:

  • Avocados, figs, papaya, passion fruit, raisins, and red plums are on the “avoid or limit” list
  • Citrus fruits and juices (orange, lemon, lime, grapefruit) should be limited to half a cup per day

This doesn’t mean these fruits cause headaches in everyone. But if you get frequent migraines and haven’t identified your triggers, reducing these fruits for a few weeks and then reintroducing them one at a time can help you figure out whether they’re part of the problem.

Magnesium and the Migraine Connection

Magnesium is one of the most studied nutrients in headache prevention. Low magnesium levels make nerve cells more excitable, which can lower your threshold for headaches. Fruits aren’t the richest source of magnesium compared to nuts, seeds, and leafy greens, but bananas, figs, and dried apricots do contribute meaningful amounts. If you’re eating fruit specifically for headache prevention, pairing it with a handful of almonds or some spinach gives you a more complete mineral profile.

How to Use Fruit Strategically

Timing matters more than quantity. Eating a piece of fruit when you first feel a headache coming on can help if the cause is dehydration or low blood sugar, because fruit delivers both water and glucose quickly. For prevention, spreading fruit throughout the day works better than eating it all at once. A serving with breakfast, another as an afternoon snack, keeps your blood sugar and hydration levels more stable.

If you tend to get headaches after exercise or in hot weather, eating watermelon or a banana before or immediately after activity helps replenish electrolytes you’ve lost through sweat. People who sweat heavily or eat an imbalanced diet are especially vulnerable to the electrolyte drops that cause headaches.

Frozen fruit works just as well as fresh for nutrient content, and smoothies made with berries, banana, and water can be easier to consume when a headache has already killed your appetite. Dried fruit is more calorie-dense and delivers minerals in a concentrated form, but stick with unsweetened varieties. Raisins and dried figs, though, are worth avoiding if you’re migraine-prone.