You can eat
- Regular meals that fit your schedule, without skipping the ones you need.
- Vegetables with lunch and dinner, raw or cooked.
- Whole fruit, according to your appetite and needs.
- Fresh fish, chicken, turkey, eggs, pulses and tofu.
- Brown rice, wholemeal pasta and bread, and wholegrain oats, potatoes and sweet potatoes.
- Milk, plain yoghurt and fresh cheeses, if you tolerate them.
- Soya drink if you like it and do not have a soya allergy.
- Extra virgin olive oil, for cooking and uncooked.
- Water throughout the day.
- An easy-to-carry snack, such as fruit, a yoghurt or a small sandwich.
What to avoid
- Skipping meals regularly, especially if your diary links this to attacks [1].
- Alcohol: the less, the better. If it coincides with your attacks, avoid it; red wine is often reported [1].
- Avoiding all fermented foods as a rule: test one specific food only if there is a reason to suspect it [2].
- Sudden changes in caffeine intake, as stopping caffeine can also cause headaches [3].
- Cutting out entire food groups just in case, without checking each suspected trigger.
- IgG tests and bioresonance, which do not identify migraine triggers.
- Supplements that promise to prevent attacks: these should be recommended by your doctor or dietitian-nutritionist.
Changes that help
Drinks
Instead of a glass of wine with dinner, try sparkling water with lemon if alcohol coincides with your attacks [1].
Cheese
If you suspect an aged cheese, try fresh cheese and check your diary before widening the exclusion [2].
Sandwich
Instead of cured meat, try chicken, egg or omelette if you have identified that cured meat as a possible trigger.
A rushed-day breakfast
Instead of leaving with just a coffee, prepare yoghurt with fruit or toast with oil so you do not skip a meal [1].
Habits that help
- Go to bed and get up at the same time every day, including weekends.
- Move every day, even if it is just a half-hour walk.
- Set aside a little time to unwind each day, even if it is only ten minutes.
Almost everything you read about migraine and food is a list of foods such as chocolate, cheese or wine. The lists vary from one website to another, and hardly any explain where they come from.
We often see this in consultations: fridges getting emptier while the attacks continue. The evidence points to a much shorter list; the rest can be checked at home.
Which foods should I avoid if I have migraine?
There is no one rule that applies to everyone, and it is worth knowing that before clearing out your fridge. Lists do exist, but they do not agree with one another.
One review compared ten low-histamine diets [2]. In most cases, the foods excluded differed. Fermented foods were the only group that appeared in all ten. And only some exclusions could be explained by the food’s actual histamine content [2]. Of the rest, some were excluded because of other amines, while others contained neither.
The evidence on food triggers is not strong either. A review of 43 studies rates its quality as low [1]. Two out of three were surveys or cross-sectional studies, and no randomised trial tested a food as a trigger [1]. The factors most often associated with more attacks were alcohol and caffeine [1].
That is why we look first at alcohol and meal timing. No amount of alcohol is safe for health (WHO): the less, the better. Avoid it during pregnancy and breastfeeding, in childhood, while driving, or if your medication does not allow it. Low-histamine diets were studied for a different clinical suspicion [2]. They do not justify removing fermented foods from everyone with migraine.
Dehydration has been reported alongside attacks in observational studies [1]. That does not prove that drinking more water prevents them. Caffeine withdrawal can also cause headaches [3].
Is migraine caused by histamine and DAO deficiency?
DAO, or diamine oxidase, is the intestinal enzyme that breaks down histamine from food. The hypothesis is that people with low DAO build up histamine and have more attacks. It has been studied as a hypothesis, but has not been shown to explain all migraine.
The most frequently cited study measured DAO in 137 people with migraine and 61 without migraine [4]. DAO was low in 87 % of the first group and also in 44 % of the second [4]. The review discussing this study also notes that there is still no consensus or validated tool for diagnosing histamine intolerance [4].
In practice, a low DAO test result does not mean that migraine is a histamine problem. Commercial serum DAO tests cannot diagnose the cause of your attacks.
If you also have digestive symptoms such as bloating, gas, or indigestion, see our guide to bloating and abdominal distension.
Do tomatoes, avocados, milk, or chocolate cause migraine?
These are among the questions we hear most often in consultations. None of the four has the evidence behind it that its reputation might suggest.
- Chocolate. Placebo-controlled studies found no differences. There is no basis for routinely excluding it [5].
- Tomatoes and avocados. Some lists exclude them, but the proposed mechanism has not yet been clarified [2].
- Citrus fruits and bananas. Some lists exclude them because of putrescine; its clinical importance remains unclear [2].
- Milk. Some lists exclude it, but its histamine content is not equivalent to that of mature cheeses [2]. It is advisable not to remove it just because of a list and to discuss it in consultation.
If you have confirmed that one of them makes you feel unwell, simply avoid it. If not, the next step is to check.
Removing a food because it is on a list costs you one food and does not take away an attack.
How to find out whether a food triggers your migraine, step by step
Use a diary and check one food at a time. Intolerance tests sold online cannot answer this question.
- Keep a diary for several weeks. Record meals, drinks, sleep, attacks, medication and, where relevant, your menstrual cycle.
- Look for repeated patterns. One coincidence does not prove that a food is the trigger [3].
- Change just one thing at a time. Avoid removing several foods at once.
If you try excluding a food, do so for no more than two to four weeks and then review it with your dietitian-nutritionist. The same review warns that looking for a simple cause-and-effect relationship can be misleading [3]. Stress, sleep, your period and the weather act at the same time. Chocolate raises one more question. If a craving for something sweet is part of the hours before an attack, it could be the first symptom rather than the cause [5].
How can I prevent migraine through diet?
Start by looking at your meal times, caffeine intake, and how much you drink.

Eat without long gaps. According to a review drawing on other studies, skipping meals is reported as a trigger by 44 % of people with migraine, and alcohol by 27 % [1]. Try a meal schedule you can stick to even during a working week.
Keep your caffeine intake steady. Coffee is among the factors most often associated with more attacks [1]. But stopping suddenly can also cause headaches [3]. If you drink coffee, keep the amount steady. If you want to cut down, talk to your healthcare professional about how to do so. As a general reference, EFSA sets 400 mg of caffeine per day for adults, 200 mg during pregnancy, and up to 200 mg per day while breastfeeding. For children and adolescents, the amount is 3 mg per kilogram of body weight per day.
Drink throughout the day. A small trial compared drinking more water with maintaining usual intake. It found no statistically significant reduction in pain [1]. Drink according to your thirst and circumstances; water is not a substitute for medical treatment.
Underneath all of this is your overall eating pattern, which has its own guide: the anti-inflammatory diet. It is based on vegetables, pulses, fish, nuts, and extra virgin olive oil, with few ultra-processed foods.
What mistakes do we see in consultations?
- Following a low-histamine diet without review. It may reduce variety without clarifying the trigger [2].
- Cutting back until you skip dinner. Fasting is a commonly reported trigger [1].
- Judging a food based on just one day. Review several entries and other possible factors [3].
Can diet get rid of migraine?
No. Migraine is a chronic neurological disease that can be treated and managed. Food choices can help you avoid things that trigger attacks and maintain a routine. Your doctor or neurologist will prescribe acute and preventive treatment.
There are treatments available. In addition to medication, the American Headache Society consensus includes behavioural therapies [6]. These include cognitive behavioural therapy, biofeedback, relaxation techniques, and mindfulness [6]. If you have spent years coping with whatever you have in the medicine cabinet, it is worth discussing this with your doctor.
There is also a pitfall unrelated to food. Taking medication for attacks on many days of the month can contribute to another type of headache. Medication-overuse headache refers to headache on fifteen or more days a month in someone who already had a headache disorder [7]. In addition, the medication must have been taken for ten or fifteen days a month, depending on the drug, for more than three months [7]. If this sounds familiar, discuss it with your doctor.
If you also live with fibromyalgia, your dietary approach should take that into account. See our fibromyalgia nutrition guide.
What types of migraine are there, and when should I see a neurologist?
Migraine can occur with or without aura. Aura involves reversible neurological symptoms, often visual, that usually develop gradually [7]. Chronic migraine involves headache on at least fifteen days a month for more than three months, with migraine features on eight or more days [7]. If you have not yet been diagnosed, your attacks are becoming more frequent, or the pattern of your pain changes, make an appointment with your doctor. They will assess whether you need to see a neurologist [8]. Dietary care can support that assessment.
If you have spent months cutting things out without knowing whether it helps, or have narrowed your diet so much that even planning dinner is difficult, we can help you make sense of it. Our dietitian-nutritionists specialising in anti-inflammatory nutrition work in Barcelona and online, alongside the treatment prescribed by your doctor.
We explain it on video
More videos
Your first step this week
Keep an emergency dinner ready
Keep eggs, wholemeal bread and fruit at home. On a day when your head cannot cope with any more, a plain omelette with toast and a piece of fruit means you will not go to bed without dinner.
When to see a doctor
When should you see a doctor?
Through nutrition, we can help you avoid things that trigger your attacks and keep to regular meal times. We can also help make sure a trial diet does not become more and more restrictive. We cannot diagnose your headache or prescribe its treatment. That is your doctor’s role.
Book a medical appointment without waiting to change your diet if you notice any of these signs:
- A headache that reaches maximum intensity in less than five minutes, the worst you can remember [8]
- A headache with fever, neck stiffness or confusion [8]
- You lose strength, vision or speech, or someone notices a change in your character [8]
- The pain comes on when you cough, bend down or exert yourself, or changes in nature with your posture [8]
- You take painkillers for your headache on more than ten days a month [8]
What to do. For any of the first three signs, call 112 or go to an emergency department now. For the last two, contact your GP this week; they may refer you to neurology if needed.
Migraine is common and treatable. These signs help distinguish it from what is not migraine.

Bring your blood tests and we will see what food can change
Tell us which values are altered and who manages your care. We will tell you whether this consultation helps now, with whom and in which format, and you can decide without pressure.---
Keep reading

Anti-inflammatory nutrition: what to eat and what to expect
You have been told to eat ‘anti-inflammatory’ foods, and what you find is superfoods, supplements and lists of…

Weight-loss diet: how to lose fat and keep it off
You have tried diets that worked for a month, only for the weight to come back, and now…

Migraine and DAO deficiency: what the evidence says
You have recurring migraine attacks and have read that an enzyme that is not working is to blame.…
Resource hubOther conditions: diet and nutrition guides
Nutrition as part of your treatment
ConsultationRegistered dietitian for metabolic health in Barcelona and online
Nutrition as part of your treatment
Book a visit →
Sources
- Hindiyeh NA, Zhang N, Farrar M, et al. 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
- Sánchez-Pérez S, Comas-Basté O, Veciana-Nogués MT, et al. Low-Histamine Diets: Is the Exclusion of Foods Justified by Their Histamine Content? Nutrients. 2021;13(5):1395. doi:10.3390/nu13051395
- Gazerani P. Migraine and Diet. Nutrients. 2020;12(6):1658. doi:10.3390/nu12061658
- Comas-Basté O, Sánchez-Pérez S, Veciana-Nogués MT, et al. Histamine Intolerance: The Current State of the Art. Biomolecules. 2020;10(8):1181. doi:10.3390/biom10081181
- Nowaczewska M, Wiciński M, Kaźmierczak W, et al. To Eat or Not to Eat: A Review of the Relationship between Chocolate and Migraines. Nutrients. 2020;12(3):608. doi:10.3390/nu12030608
- Ailani J, Burch RC, Robbins MS, et al. The American Headache Society Consensus Statement: Update on integrating new migraine treatments into clinical practice. Headache. 2021;61(7):1021-1039. doi:10.1111/head.14153
- Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1-211. doi:10.1177/0333102417738202
- National Institute for Health and Care Excellence. Headaches in over 12s: diagnosis and management. CG150. 2012; updated 2025. NICE guideline CG150
Written and reviewed by

How we can help
Now, applied to you
Registered dietitian for metabolic health in Barcelona and onlineNutrition as part of your treatment
4.9 on Google · 5.0 on Doctoralia · 2,047 reviews






