Learn how regular meals, hydration and tracking food triggers can help reduce migraine attacks.
The best diet for migraine is one built on regular, balanced meals, plenty of fluids and a careful look at your personal food triggers. There is no single food that prevents migraine for everyone, but eating at steady times, staying hydrated and limiting known triggers such as alcohol and excess caffeine can reduce attacks for many people.
Migraine is a common neurological condition that can cause throbbing head pain, nausea and sensitivity to light and sound. Medicines are often an important part of treatment, but your daily habits matter too. This guide explains how food and drink can affect migraine and what practical changes are worth trying.
How can diet affect migraine?
Migraine attacks usually come from a mix of factors rather than one cause. Genes, hormones, stress, poor sleep, bright lights and changes in routine can all play a part. Food and drink are one piece of this puzzle.
Some people find that certain foods seem to set off an attack. Others notice that what matters most is when they eat and drink, not what. Skipping meals and becoming dehydrated are among the most commonly reported dietary triggers.
It is also worth knowing that cravings, especially for sweet foods like chocolate, can be an early sign that a migraine is already starting. This can make a food look like a trigger when it is actually a symptom.
What is the best diet for migraine prevention?
A steady, balanced eating pattern is the foundation. Aim for:
- Regular meals: eat breakfast and avoid long gaps between meals. A drop in blood sugar can trigger attacks in some people.
- Slow-release carbohydrates: wholegrain chapati, brown rice, oats, lentils and beans release energy gradually.
- Protein at each meal: eggs, yoghurt, chicken, fish, dal or chickpeas help keep you full and energy steady.
- Plenty of fruit and vegetables: these provide fibre, vitamins and minerals.
- Healthy fats: oily fish, nuts, seeds and olive oil support overall health.
If mornings are a struggle, our guide on why eating breakfast matters has simple ideas to get your day started.
Stay well hydrated
Dehydration is a well-known migraine trigger. Keep a water bottle with you and sip through the day, especially in hot weather or after exercise. Read more in our article on the importance of hydration.
Nutrients that may help
There is some evidence that magnesium and riboflavin (vitamin B2) may help reduce migraine frequency for some people. Good food sources of magnesium include nuts, seeds, leafy greens, beans and whole grains. Riboflavin is found in milk, yoghurt, eggs and lean meat. Talk to your doctor before taking supplements, as they are not right for everyone.
Which foods can trigger migraine?
Triggers are very individual. A food that affects one person may be completely fine for another. Commonly reported triggers include:
| Possible trigger | Examples | What to try |
|---|---|---|
| Alcohol | Especially red wine | Limit or avoid and note any pattern |
| Caffeine | Coffee, strong tea, energy drinks | Keep intake moderate and consistent |
| Aged cheeses | Cheddar, blue cheese | Track whether they affect you |
| Processed meats | Sausages, salami, cured meats | Choose fresh meat or pulses |
| Skipped meals | Long fasts, missed breakfast | Eat regularly with healthy snacks |
Some people also mention artificial sweeteners or flavour enhancers, although the evidence is mixed. Rather than cutting out long lists of foods, focus on the ones you have clearly linked to your attacks.
A note on caffeine
Caffeine has a complicated relationship with migraine. A small amount can sometimes help, but large or irregular amounts can make attacks more likely. Suddenly stopping caffeine can also cause withdrawal headaches. If you want to cut down, do so gradually.
How to identify your personal triggers
A food and symptom diary is one of the most useful tools you have. For four to eight weeks, note:
- What and when you ate and drank
- How much sleep you had
- Stress levels and your activity
- For women, where you are in your menstrual cycle
- When each migraine started and how severe it was
Look for patterns over time. Avoid cutting out lots of foods at once, as this can leave your diet unbalanced without clear benefit. A dietitian can help you test suspected triggers safely.
Migraine, fasting and Ramadan
Many people notice more headaches during fasting, including Ramadan. Lower fluid intake, caffeine withdrawal and changes to sleep all play a part. To reduce the risk, slowly cut back on tea and coffee in the weeks before fasting begins. At suhoor, choose slow-release foods such as oats, eggs, wholemeal bread and yoghurt, and drink plenty of water between iftar and suhoor. Break your fast with dates and water, then a balanced meal. If you have frequent migraines, discuss fasting with your doctor beforehand. Our guide to nutrition and stress management also offers helpful tips, since stress is a common trigger.
When to see a doctor or nutrition professional
See your doctor if your headaches are getting more frequent, if you need pain relief on many days each month, or if your usual pattern changes. Seek emergency help straight away for a sudden, severe headache, a headache with fever and stiff neck, weakness, confusion, loss of vision, difficulty speaking, or a headache after a head injury.
Frequently asked questions
What foods help migraines go away?
No food can stop a migraine once it has started. However, drinking water, eating a small balanced snack if you have missed a meal, and resting in a dark room can help some people feel better alongside medicine.
Is chocolate a migraine trigger?
Not necessarily. Craving chocolate can be an early sign of a migraine that is already beginning. Keep a diary to see whether chocolate truly comes before your attacks.
Can dehydration cause migraines?
Yes, not drinking enough is a common trigger. Drink regularly throughout the day and more in hot weather.
Should I follow an elimination diet for migraine?
Strict elimination diets are not usually needed and can be hard to balance. If you suspect several triggers, work with a dietitian to test them one at a time.
Get personalised nutrition support
Dr. Rida Saeed can help you build a regular, balanced eating plan, keep a useful food diary and identify your likely triggers without cutting out more than you need to. Explore our nutrition services or book an online consultation on WhatsApp +971 54 448 6145. Sessions are held online for clients in the UAE, Pakistan and worldwide.
Sources
This article is for general information only and is not a substitute for medical advice. Please speak to your doctor or a qualified health professional about your individual needs.
Personalised support
Want a plan made just for you?
Dr. Rida Saeed offers online nutrition consultations for clients in the UAE, Pakistan and worldwide.
Free downloads
Practical guides from Dr. Rida Saeed
Get our free 7-Day Gut-Friendly Meal Plan or the PCOS-Friendly Food List — everyday South Asian and Middle Eastern foods, easy swaps and printable shopping lists.
Have a question about this topic?
Send it to Dr. Rida’s team — we reply within 24 hours.









