Migraine and food: meals, caffeine and individual triggers

Understand possible food-related migraine triggers, why chocolate before pain does not prove causation and how to observe meals and caffeine without blanket restrictions.

Oatmeal with pear, toast with egg and water beside a closed notebook.

Food and habits can contribute to migraine attacks, but triggers vary between people. A universal list of forbidden foods does not capture that variation; observe your pattern with professional support. (MedlinePlus)

Eating at regular times

A plate of rice, beans and vegetables beside a glass of water.

MedlinePlus lists skipped meals among possible triggers. Regular meals and a consistent sleep routine are part of management. This does not guarantee freedom from attacks or mean that any interval without food causes migraine in everyone. (MedlinePlus)

To organize your routine, consider when you usually lack access to a meal. Planning what to bring may be more manageable than changing your entire menu at once.

Eating before pain does not prove the food caused the attack

The American Migraine Foundation explains that chocolate cravings can be part of prodrome, the early phase of an attack before pain. Eating chocolate and then developing pain does not, by itself, demonstrate that it was the trigger. Evidence does not support blaming the same foods in everyone. (AMF: diet)

Caffeine: amount and changes in habits matter

A cup of coffee and a glass of water on a table.

Responses to caffeine vary: it may relieve pain in some contexts and contribute to attacks in others. Abrupt withdrawal after regular use can also trigger symptoms. If you plan to cut down, discuss a gradual, individualized reduction. (AMF: caffeine)

What a small trial can tell us

A randomized crossover trial in 2020 enrolled ten adults with episodic migraine and high habitual caffeine intake. It observed attacks during abrupt withdrawal but ended because of low recruitment, leaving long-term effects unanswered. It cannot define a universal dose or establish that everyone should quit coffee. (Alstadhaug and colleagues)

Use a diary to develop hypotheses

A blank notebook with a pen, chocolate and water illustrating a habit record.

NHS recommends an attack diary. Note times, meals, caffeine and changes in routine. Bring it to a consultation: the record develops hypotheses rather than proving a cause on its own. (NHS)

You can use three simple fields:

MomentWhat to record
EatingWhat you ate and drank, and when.
SymptomsWhen they started and what they were like.
ContextRelevant changes that day.

When food should not delay medical attention

A sudden, extremely painful headache, or new symptoms such as weakness on one side, trouble speaking, confusion or vision loss, requires emergency assessment. Worsening attacks also need evaluation. Do not automatically blame these signs on food. (NHS)

Choose a simple record you can sustain and agree on next changes with your healthcare team. The aim is to understand your situation without turning every meal into an endless investigation.

Frequently asked questions

Does everyone with migraine have the same triggers?

No. Possible triggers vary between people and contexts. (MedlinePlus)

Does chocolate before pain prove that it was the trigger?

No. A chocolate craving may be part of the early phase of the attack itself. (AMF: diet)

Should I stop all caffeine at once?

Abrupt withdrawal can cause symptoms; discuss an individualized gradual reduction. (AMF: caffeine)

Does the 2020 trial prove long-term benefits from quitting coffee?

No. Recruitment was small and the study did not adequately answer questions about effects over time. (Alstadhaug and colleagues)

Can a sudden, extremely painful headache wait for a diet change?

No. This sign requires emergency assessment. (NHS)

Scientific sources

  1. MigraineNational Library of Medicine — MedlinePlus
  2. Diet and Headache ControlAmerican Migraine Foundation — 2025
  3. Sudden Caffeine Withdrawal Triggers Migraine—A Randomized Controlled TrialAlstadhaug KB, Ofte HK, Müller KI, Andreou AP — Frontiers in Neurology — 2020
  4. Understanding Caffeine Headache: Is Caffeine a Migraine Treatment or Trigger?American Migraine Foundation — 2023
  5. MigraineNational Health Service — NHS