Many migraineurs notice a pattern that takes years to recognize before an attack begins, sometimes hours, sometimes a full day before. There can be an urgent pull toward a specific food. Salt. Chocolate. Something sweet. Chips. Ice cream. The craving feels intense and specific, and when the migraine follows, it is easy to assume the food causes it.
But in most cases, the craving did not bring on the migraine attack. The attack was already underway, and the craving was the brain's first signal that something was shifting.
Understanding why these cravings happen is one of the most practically useful things a migraineur can know. Not because avoiding the food will stop the attack, but because recognizing the craving as a warning gives you a window to act before symptoms escalate.
Migraine is not an event that begins when the head pain starts. It is a process with distinct phases, and the prodrome, or premonitory phase, is the first. It can begin anywhere from a few hours to two days before the headache phase, and it is driven by neurological changes already underway in the brain.
The prodrome is not subtle if you know what to look for. Prodrome symptoms include excessive yawning, fatigue, neck stiffness, mood changes, increased thirst and urination, sensitivity to light and sound, irritability, and, critically, food cravings.¹ Sugar cravings, salt cravings, and cravings for chocolate are all specifically listed as prodrome markers in migraine research and in clinical protocol documentation.
The reason cravings occur during prodrome lies in the hypothalamus, the region of the brain that governs hunger, thirst, temperature regulation, and sleep. Research has confirmed that the hypothalamus is activated early in the migraine process, ahead of the pain phase, and that several neuropeptides involved in this early activation, including dopamine, CGRP, and orexins, directly influence appetite and food-seeking behavior.² Dopamine fluctuations during prodrome in particular drive reward-seeking behavior, which is why the foods craved tend to be specific, intense, and highly palatable, not a general sense of hunger but a pull toward something particular.
Yes, and it is more common than most people realize. Food cravings are reported by approximately 30–40% of migraineurs as a prodrome symptom, with sweet and carbohydrate-heavy foods among the most frequently reported.³
The physiological reason sugar cravings occur in prodrome is tied to the migraine brain's relationship with blood sugar and energy demand. The migraine brain has ion channel variants that create a higher and more continuous demand for neurological energy. As the prodrome begins and neurological activity escalates, the brain senses an increasing energy demand and signals for fast-access fuel which, in a carbohydrate-conditioned metabolism, means sugar.
There is also a serotonin component. Serotonin levels fluctuate during the migraine process, and changes in serotonin signaling during prodrome may drive cravings for carbohydrate-rich foods, since carbohydrates help the brain produce more serotonin through insulin-driven tryptophan uptake.⁴ This is a self-regulating signal, not a dietary choice.
The critical distinction, and one that the migraine research increasingly supports is that the sugar craving itself is a symptom of prodrome, not the cause of the attack. The attack was already set in motion before the craving appeared. But that does not mean acting on the craving is consequence-free. When glucose enters cells, it pulls sodium and water with it, depleting the extracellular sodium the migraine brain depends on electrical stability. During prodrome, when the nervous system is already under metabolic stress, consuming significant sugar or carbohydrates can accelerate that sodium shift and bring the attack faster or more severely than it might otherwise have been. The craving was a warning. What you do with it matters. Maintaining electrolyte balance during prodrome, rather than reaching for the sugar the brain is asking for, is the more protective response.
Salt cravings are one of the most physiologically meaningful signals the migraine brain can send, and they are worth acting on promptly.
The migraine brain is a sodium-wasting brain. Research documented as far back as 1951 confirms that migraineurs excrete approximately 50% more sodium in their urine than people without migraines eating the same diet. This is a baseline deficit that exists independent of diet, stress, or exercise. The migraine brain is chronically running lower on extracellular sodium than it needs to maintain electrical stability across its ion channels.
During the prodrome, as neurological activity increases and the early phases of cortical spreading depression begin to develop, sodium is consumed and displaced at an accelerated rate. The brain's resulting signal, a craving for salt, is a direct request to replenish what is being lost.
Salt helps because sodium is the primary extracellular electrolyte the migraine brain depends on for electrical stability. When extracellular sodium drops, whether through normal loss, stress, carbohydrate consumption, fasting, or exercise, the electrical threshold lowers and the risk of an attack rises.
When sodium is restored, through salted water, electrolytes, or a salt capsule, the extracellular environment stabilizes and the ion channels that govern neuronal communication can function more reliably. This is not a placebo effect. It is basic electrophysiology. The migraine brain's ion channel variants make it more sensitive to sodium fluctuation than a typical brain, which means restoring sodium when it drops has a proportionally larger effect than it would in someone without migraine.
Chocolate sits at the intersection of three separate prodrome mechanisms, which is why it is one of the most commonly craved foods before an attack and one of the most misidentified causes.
First, chocolate is rich in magnesium. The migraine brain is frequently magnesium-depleted; magnesium is needed for NMDA receptor regulation, mitochondrial energy production, and nervous system calming. As the prodrome begins and neurological demand rises, the brain signals magnesium-rich food. Chocolate is one of the highest-magnesium foods in the typical diet.
Second, chocolate contains phenylethylamine (PEA) and theobromine, compounds that affect dopamine and norepinephrine release. During prodrome, when dopamine is already fluctuating, the brain's reward circuitry is more active and more specifically drawn toward foods that modulate dopamine signaling. ²
Third, chocolate is both sweet and fatty, which means it simultaneously answers the sugar craving (fast energy for the energy-demanding prodrome brain) and the fat craving (fuel for a brain shifting toward fat metabolism under carbohydrate stress).
The important note for migraineurs: the evidence does not strongly support chocolate as a direct migraine cause in most people. The correlation between chocolate consumption and migraine onset is most likely driven by the fact that the craving itself precedes the attack, meaning the attack was already underway when the chocolate was eaten. ³
The most useful reframe is this: instead of feeling guilty about a craving, treat it as information.
A salt craving during what feels like a normal day is a signal that sodium is dropping, act on it immediately with a glass of salted water or an electrolyte supplement.
A sugar craving or chocolate craving that feels specific and intense, different from ordinary hunger, may signal that the prodrome is beginning. This is the window to act: take salt, drink water with electrolytes, stabilize blood sugar with a small clean protein meal, rest if possible, and avoid additional destabilizing factors like screens, noise, or stress.
Using cravings as a diagnostic tool, rather than a source of frustration or guilt, shifts the entire relationship with the prodrome from something that happens to you to something you can respond to.
It also explains something that went unexpectedly viral a few years ago: the "Coke and fries cure" for migraines. Videos of people swearing that a McDonald's Coke and french fries stopped their migraine in its tracks spread across social media with millions of views and a lot of skepticism. But the physiology behind it is actually straightforward — a cold Coke provides caffeine (a vasoconstrictor that reduces the vasodilation associated with migraine) and sugar (fast energy for an energy-depleted migraine brain), while the fries deliver a significant hit of sodium and fat. It is not a cure. It is an accidental electrolyte and vasoconstriction intervention.
The fact that it works for some people in some situations is not magic, it is the body getting a rough version of what it was signaling for. A glass of salted water and a clean protein meal does the same thing without the sugar spike that follows, but the "hack" went viral for a reason: the body was asking for something real.
Related Reading on Health By Principle
Sources
Gollion C, De Icco R, Dodick DW, et al. — The Premonitory Phase of Migraine Is Due to Hypothalamic Dysfunction: Revisiting the Evidence. Journal of Headache and Pain, 2022;23(1):158. PMC8636453
Meylakh N, Henderson LA — The Hypothalamus as a Conductor of the Migraine Prodrome: A Narrative Review. Cephalalgia, 2026. PubMed 42383290
Aberman D — Sugar and Migraine Attacks: All You Need to Know. Migraine Strong, October 2024. (Secondary source) migrainestrong.com
CalmGrid — Food Cravings and Migraines: Symptom, Not Trigger. March 2026. (Secondary source) calmgrid.app
Campbell, Tonks & Hay — An Investigation of the Salt and Water Balance in Migraine. British Medical Journal, 1951.
Pogoda et al. — Severe Headache or Migraine History Is Inversely Correlated With Dietary Sodium Intake: NHANES 1999–2004. Headache, 2016. DOI: 10.1111/head.12792