Skip to contentSkip to navigation

Education Center — 12 minutes

Diet and migraines: When what we’re eating is giving us a headache

April 7, 2025

Annie Ferland
Annie Ferland
PhD, PDt-Nutritionist

Have you ever experienced an intense headache which strikes right after one – just one! – glass of red wine? If you have, you’re not alone. The connection between diet and migraines has long intrigued us, and science is only just beginning to understand which foods may play a role in the onset or intensity of migraine episodes.

But be careful: just because we have chocolate the same day we get a migraine does not mean that the chocolate is necessarily to blame! The human body is complex, and the mechanisms involved are not always as clear-cut as you might think. So let us unscramble it all together… headache-free! diet-migraines

Understanding migraines

A migraine is not simply a “bad headache”. It is really a neurological storm which can last for hours, or even days [1-2]. There are a whole range of accompanying symptoms: intense throbbing pain and nausea plus heightened sensitivity to light and noise. When it hits, we only want one thing: to curl up in a blanket, shut ourselves away in the dark and wait for it to pass.

Why it happens

Science is still exploring this question, but we do know that migraines are based on the interaction of many genetic, neurological, hormonal and environmental factors [1-3]. The brains of migraine sufferers seem to be particularly sensitive to different stimuli, and specific factors—such as stress, lack of sleep, hormone fluctuations or some dietary aspects—may trigger or worsen episodes.

Distinguishing between cause and triggers

We need to approach the topic of diet-related causes with care and understanding. We often point to certain foods, such as caffeine, alcohol, monosodium glutamate (present in many processed foods), aged cheeses, citrus fruits, cold cuts (which contain sulfites and sulfates) and aspartame (an artificial sweetener) [5]. Yet foods are not the only things which can trigger a migraine — fatigue can play a role too.

It is important to understand that, first and foremost, migraines are a complex neurological condition (the cause), and that migraine attacks can be simply triggered by a combination of daily factors, such as stress or diet [2]. Looking at the situation sympathetically can defuse things and allow us not to feel guilty that our diet isn’t “perfect” when an episode comes on.

And that goes a long way toward managing migraines better.

Diet as prevention

Before we even start thinking about foods to avoid, it is crucial to establish a healthy dietary routine. Think about it as establishing a solid foundation [5-6]. This includes how much we gain by choosing complete, varied meals consisting of fruits, vegetables, whole grains, lean protein and good sources of fat, such as nuts, seeds and fatty fish. Not only do these habits promote overall health but they may also play a protective role against migraine attacks.

The importance of regular meals is underestimated

Not only is what we eat important, but also when we eat. Studies have shown that not eating for long periods and/or skipping meals are common migraine triggers. Maintaining stable energy intake all day long can help prevent headaches. For many, planning a small snack every 3-4 hours can really make a difference. It is worth noting that people prone to migraines should avoid popular eating trends, such as intermittent fasting, which may worsen the frequency or intensity of episodes.

Staying hydrated all day long

Dehydration is a well-established migraine trigger. And yet, we often forget that we start feeling thirsty after the body has started running short of water. Drinking regularly, even when we’re not thirsty, really can decrease the frequency and intensity of migraine attacks. This is particularly important in a cold climate, where we naturally tend not to drink as much. The goal: aim to drink about 1.5–2 litres of fluids a day, distributed over the whole day.

Caffeine can be either a trigger or a remedy

There have been many studies of the interaction between caffein and migraines [7]. As a result, we can make credible recommendations. For some, a small amount of caffeine—an espresso, black tea or cola drink—may help relieve a budding migraine, and caffeine is even an ingredient in many headache medications. But for others, the opposite is true: excessive or irregular coffee consumption may promote the onset of migraines and even lead to so-called rebound headaches.

A few insights for better managing caffeine during migraines

If migraines are occasional: the recommendation is not to have more than one or two caffeinated drinks a day.

If headaches are frequent or daily: ideally, limit caffeine or even avoid it completely.

For medications which contain caffeine: the best thing is to use them sparingly, not more than two days a week, to avoid any rebound, and talk to your pharmacist.

If you want to decrease your consumption: go slowly! Gradually cutting back will reduce withdrawal symptoms (fatigue, irritability) and a few more headaches!

Nutrition-related ways of managing migraines

When a connection between diet and migraines is suspected, there are several approaches which can help understand what is impacting the attacks and how our diet may be contributing.

Food diary and symptoms

This is often the starting point for nutritional management and is the method recommended in the guidelines [1-4]. For a few weeks, record everything you eat and drink, as well as migraine symptoms and other factors, such as stress, sleep, menstrual cycle or physical activity.

The goal is not so much to eliminate certain foods, but rather to identify connections between lifestyle habits and migraine episodes. This method is valuable for understanding your own reality… without jumping to conclusions too quickly.

Dietary education

For many migraine sufferers, the food itself is not always the problem, but rather the time when it is eaten or the conditions surrounding its consumption. For example, a piece of chocolate may be tolerated very well after a good night’s sleep and a balanced meal… but it may trigger a migraine if eaten in the middle of a stressful day, on an empty stomach or after skipping a meal.

The goal of this approach is to better understand your own triggers, instead of eliminating foods unnecessarily. Ideally, you should do this with support from a dietician-nutritionists, who can help separate real signals from false alarms – while keeping your meals varied and enjoyable.

Global food approaches

Global food approaches to prioritize:

  • Mediterranean diet: this approach has been the best documented one so far, for many medical conditions, including migraines. Packed with veggies, fruits, whole grains, legumes, fish, nuts and olive oil, it offers a combination of foods which provide nutritional balance and protect our health. A number of studies seem to indicate that it may help reduce the frequency/intensity of migraines, as well as improving cardiovascular and metabolic health. Accessible, balanced and sustainable, it is a solid base for anyone who wants to eat better without depriving themselves unnecessarily.

Watch for these dietary approaches, which are still exploratory

Some dietary approaches are attracting interest because they potentially affect migraines, but the scientific data are still limited or inconclusive. In some cases, they may be considered, but always cautiously and with professional support [1-2,6]:

  • Low-histamine diets: histamine is a molecule which is naturally present in some foods, such as red wine, aged cheeses, cold cuts, canned or smoked fish, commercial broth, chocolate, tomatoes, spinach and avocado. Since sensitivity can vary from one person to the next, science cannot yet draw any clear conclusions. As a result, a low-histamine diet is sometimes tested in specific cases, but it should never be adopted without supervision, because of how many restrictions it has and how difficult it is to follow.
  • Keto (ketogenic) diet: often presented as a miracle solution, the keto diet is also one of the most restrictive ones [9]. A few small studies have seen positive short-term effects on the frequency of migraines, but the results are still preliminary. This approach may lead to side effects or deficiencies and requires strict medical monitoring. Despite its popularity, a keto diet is not the first approach to try, nor is it a sustainable solution for most of us.
  • Low- tyramine or low-monosodium-glutamate (MSG) diets: some patients show individual sensitivity to compounds such as tyramine (aged cheeses, cold cuts, red wine) or monosodium glutamate (present in some prepared dishes or Asian cuisine) [6,10]. Research has not established any clear connection between these compounds and migraines in the general population. Even though their effectiveness has yet to be demonstrated, these diets may sometimes be explored on a case-by-case basis.
Exclusion (elimination) diet, worth exploring cautiously

When you live with migraines, you’re often ready to try anything, but eliminating food “just in case” is not always the best solution [6].

An elimination diet consists of temporarily removing certain foods suspected of triggering migraines, then reintroducing them one at a time. Although this approach may sometimes help to identify trends or personal triggers, it still has its limitations.

Even though this method has been recommended for a long time, we now know that studies have not been conclusive, particularly in adults. When poorly managed, this approach may lead to deficiencies or an unhealthy relationship with food. For these reasons, it is only suggested in very specific cases, and always with professional support.

Targeted supplementation

Certain nutrients (such as magnesium, riboflavin [B2], coenzyme Q10 or alpha-lipoic acid) are being studied for preventing migraines [11-12]. These supplements may sometimes be helpful, but they are not right for everyone.

Just because a product is “natural” does not mean that there is no risk. Any supplementation needs to be done under medical supervision and with advice from a nutritionist, to avoid interactions, adjust doses and make sure it really is relevant.

Takeaways

Eating better may not make migraines go away right away but understanding when and what to eat can go a long way toward controlling them.

Sources11
  1. Migraine Québec. “Apprivoiser les symptômes et entretenir l’espoir”. https://www.migrainequebec.org/fr/. Accessed in March 2025.
  2. Migraine Canada. Patient Education Resource Kit: Migraine Management in one source! https://migrainecanada.org/patient-education-resource-kit-migraine-management-in-one-source/. Accessed in March 2025.
  3. Sutherland HG, Albury CL, Griffiths LR. Advances in genetics of migraine. J Headache Pain. 2019;20(1):72. doi:10.1186/s10194-019-1033-9
  4. Mallampalli MP, Reddy A, Nordin JD, et al. Care Gaps and Recommendations in Vestibular Migraine: An Expert Panel Summit. Front Neurol. 2022;12:812678. doi:10.3389/fneur.2021.812678
  5. Hindiyeh NA, Zhang N, Farrar M, Banerjee P, Lombard L, Aurora SK. The Role of Diet and Nutrition in Migraine Triggers and Treatment: A Systematic Literature Review. Headache. 2020;60(7):1300-1316. doi:10.1111/head.13836
  6. Bunner AE, Agarwal U, Gonzales JF, Valente F, Barnard ND. Nutrition intervention for migraine: a randomized crossover trial. J Headache Pain. 2014;15(1):69. doi:10.1186/1129-2377-15-69
  7. Gadoth N, Hering-Hanit R. Caffeine as a risk factor for chronic daily headache: a population-based study. Neurology. 2005;65(1):180. doi:10.1212/01.wnl.0000167696.35406.24
  8. Tu YH, Chang CM, Yang CC, Tsai IJ, Chou YC, Yang CP. Dietary Patterns and Migraine: Insights and Impact. Nutrients. 2025;17(4):669. doi:10.3390/nu17040669
  9. Neri LCL, Ferraris C, Catalano G, et al. Ketosis and migraine: a systematic review of the literature and meta-analysis. Front Nutr. 2023;10:1204700. doi:10.3389/fnut.2023.1204700
  10. Lucerón-Lucas-Torres M, Ruiz-Grao MC, et al. Association between wine consumption and migraine: a systematic review and meta-analysis of cross-sectional. Alcohol. 2025;60(2):agaf004. doi:10.1093/alcalc/agaf004
  11. Dominguez LJ, Veronese N, Sabico S, Al-Daghri NM, Barbagallo M. Magnesium and Migraine. Nutrients. 2025;17(4):725. doi:10.3390/nu17040725
Annie Ferland
Annie Ferland
PhD, PDt-Nutritionist
Annie Ferland is a dietitian-nutritionist, doctor of pharmacy, and the founder of ScienceFourchette.com, an independent online platform that explores nutrition from a scientific, accessible, and caring perspective. She also holds a master’s degree in kinesiology and a certificate in physical activity promotion from the University of South Carolina. She has also completed five years of postdoctoral education, including two in nutritional epidemiology and three in clinical nutrition at the University of Colorado in Denver. A member of the Ordre des diététistes-nutritionnistes du Québec, she is actively involved in advancing knowledge about nutrition and advocates for a scientific, accessible approach focused on the joys of eating.