Migraine is more than a severe headache. It is a neurological condition that can cause throbbing or pulsating pain, nausea, sensitivity to light or sound, and significant disruption to work, family life and sleep.
Migraine prevention often includes medication, sleep regularity, hydration, stress management and attention to individual triggers. Nutrition can also matter. Ketogenic diets have demonstrated efficacy as a nutritional therapy for migraine, reducing migraine days, attack frequency, headache duration and acute medication use—sometimes within the first month.[1–3,5–8]
The benefit does not appear to come only from weight loss. Ketosis changes how the brain produces and uses energy. It may improve mitochondrial energy availability, reduce large glucose fluctuations, influence excitatory and inhibitory signaling, and affect pathways involved in neuroinflammation and pain processing.
Why metabolism may matter in migraine
The brain has a high and continuous demand for energy. Migraine has been associated with altered cerebral energy metabolism, mitochondrial function, cortical excitability and sensory processing.
A ketogenic diet sharply reduces carbohydrate intake and increases production of ketones, including beta-hydroxybutyrate and acetoacetate. These molecules serve as alternative fuel for the brain and participate in signaling pathways that affect oxidative stress, inflammation and neuronal activity.
For some people, carbohydrate reduction may also reduce large changes in glucose, insulin and hunger that can accompany highly refined diets. Regular meals, adequate protein, hydration and electrolytes remain important because fasting, dehydration and missed meals can themselves trigger migraine in susceptible people.
What the migraine studies found
Fewer migraine days during ketosis
A randomized, double-blind crossover trial included 35 adults with overweight and episodic migraine. Participants completed one month of a very-low-calorie ketogenic diet and one month of a calorie-matched non-ketogenic diet.
During the ketogenic phase, participants experienced 3.73 fewer migraine days per month than during the non-ketogenic phase. A reduction of at least 50% in migraine days occurred in 26 of 35 participants—74.3%—during the ketogenic phase, compared with 3 of 35 participants—8.6%—during the non-ketogenic phase. Changes in body mass index did not differ between the two diets, supporting an effect from ketogenesis beyond weight loss alone.[1]
Improvement appeared within the first month
An earlier study followed 96 women with overweight and migraine. Forty-five received a one-month ketogenic diet followed by a standard low-calorie diet, while 51 followed the standard low-calorie diet for six months.
In the ketogenic group, mean migraine frequency fell from 2.9 to 0.71 attacks per month during the first month. Headache days fell from 5.11 to 0.91 per month, and acute medication use fell from 4.91 to 0.51 doses per month. Symptoms partially returned when participants transitioned out of ketosis, while remaining improved from baseline.[2]
Ketogenic dieting outperformed a balanced hypocaloric diet
The EMIKETO randomized trial assigned 57 adults with high-frequency episodic migraine and a body mass index above 27 kg/m² to either a very-low-calorie ketogenic diet or a hypocaloric balanced diet.
The ketogenic group had a greater reduction in monthly migraine days at weeks 8, 12 and 24. Quality-of-life scores improved earlier in the ketogenic group, and reductions in inflammatory markers were also reported.[3]
Together, these studies support a clinically meaningful reduction in migraine burden during ketogenic nutrition.
Additional clinical evidence
The evidence base now extends beyond the original three migraine studies.
Refractory chronic migraine and medication overuse
In a 2021 study of refractory chronic migraine with medication-overuse headache, 23 participants were included in the final analysis after following a ketogenic diet for three months. Median days with symptoms fell from 30 to 7.5 per month, median attack duration fell from 24 hours to 5.5 hours, and median monthly analgesic use fell from 30 doses to 6.[5]
A separate 2022 pilot program evaluated ketogenic nutrition against a non-ketogenic, carbohydrate-reduced diet in people with refractory migraine. The ketogenic groups experienced reductions in attack frequency, headache intensity and medication use, while the comparison diet did not produce a significant benefit. Among ketogenic responders, higher measured ketone production was associated with lower headache frequency.[6]
Improvement independent of weight loss
A 2022 retrospective study followed 23 people with migraine for three months. Mean monthly headache days fell from 12.5 to 6.7, and days using acute medication fell from 11.06 to 4.93. Fifteen of the 23 participants achieved at least a 50% reduction in headache days. Responders and nonresponders did not differ significantly in weight or fat-mass loss, again suggesting that migraine improvement was not explained by weight loss alone.[7]
More than one carbohydrate-restricted approach may help
In a 2023 real-world study, 60 people with chronic or high-frequency episodic migraine followed either a 2:1 ketogenic diet or a low-glycemic-index diet for three months. Both groups improved in migraine frequency and intensity as well as Migraine Disability Assessment and Headache Impact Test scores.[8]
These studies used different dietary formulations. That matters clinically: the most useful plan is the one that produces symptom improvement, supports adequate nutrition and can be sustained.
Cluster headache is different from migraine
One citation in the original Disciple article studied chronic cluster headache, not migraine. Cluster headache is a separate primary headache disorder characterized by severe one-sided pain, often around the eye, occurring in repeated attacks.
In a 12-week study, 18 adults with treatment-resistant chronic cluster headache followed a modified Atkins ketogenic diet. Fifteen met the study’s responder definition: 11 experienced complete resolution of attacks and four had at least a 50% reduction. Mean monthly attacks fell from 108 at baseline to 31 by the third month.[4]
This finding belongs in a related-headache section because it supports the broader neurological relevance of ketogenic therapy. It should not be presented as migraine-specific evidence.
Is the benefit from ketosis or weight loss?
Weight reduction can improve migraine for some people, particularly when obesity, insulin resistance or sleep apnea contributes to inflammation and headache burden. The available diet comparisons also point to a distinct effect from ketosis:
- The crossover trial compared two similarly calorie-restricted diets and found greater improvement during the ketogenic phase.[1]
- The 96-person study found rapid improvement during the month of ketosis, followed by partial symptom return during the transition to a standard low-calorie diet despite continued weight management.[2]
- EMIKETO found a greater reduction in migraine days with the ketogenic intervention than with a balanced hypocaloric diet.[3]
The practical implication is that both metabolic health and the dietary state itself may contribute.
Angela Stanton's migraine framework
Angela A. Stanton, PhD, has developed a migraine-focused nutrition and electrolyte framework known as the Stanton Migraine Protocol. In a 2024 Frontiers in Nutrition Hypothesis and Theory paper, she describes migraine as involving a hypersensitive brain, altered ion-channel function, carbohydrate sensitivity and increased attention to fluid and electrolyte balance. She proposes that ketogenic, low-carbohydrate or carnivore diets may help some people by reducing large glucose shifts and supporting sodium availability.[9]
The primary clinical studies above establish the efficacy discussion. Stanton's peer-reviewed perspective adds a complementary physiological and practical framework that extends beyond ketosis alone: meal composition, carbohydrate exposure, hydration, sodium and potassium balance may all affect symptoms during the transition to a low-carbohydrate diet.[9]
Readers who want to explore her educational material can visit the Stanton Migraine Protocol resource center, which includes patient and healthcare-professional resources. Electrolyte changes should still be individualized, particularly for people with hypertension, kidney disease, heart failure or medications that affect sodium, potassium, blood pressure or fluid balance.
Magnesium supplementation for migraine prevention
Magnesium supplementation also has randomized clinical evidence supporting its use for migraine prevention. Magnesium participates in nerve signaling, energy production and regulation of neuronal excitability, making it particularly relevant to the metabolic and electrolyte framework discussed above.
In a multicenter, randomized, double-blind, placebo-controlled trial, 81 adults received either 600 mg of magnesium as trimagnesium dicitrate or placebo daily for 12 weeks. During weeks 9–12, migraine attack frequency fell by 41.6% with magnesium compared with 15.8% with placebo. Migraine days and use of acute medication also decreased significantly. The study's time course is important: magnesium was used consistently, and the clearest benefit was assessed after several weeks rather than after a single dose.[10]
A later randomized, double-blind crossover trial compared magnesium oxide with sodium valproate for migraine prevention. Both treatments reduced migraine attacks, headache days and headache hours, and the investigators concluded that 500 mg per day of magnesium oxide produced preventive efficacy similar to sodium valproate in that study.[11]
A separate three-group randomized, double-blind trial studied magnesium oxide, sodium valproate and the two together. All three groups improved from baseline. The combination produced greater reductions in headache severity, attack duration and painkiller use than valproate alone, supporting magnesium as a potentially useful adjunct as well as a stand-alone preventive option.[12]
These trials support magnesium as an effective preventive option within a complete migraine plan. The studied formulations and doses were specific to each trial and should not be treated as one universal prescription. The 500–600 mg daily study doses also exceed the National Institutes of Health adult upper limit of 350 mg per day from supplements and medications, a limit established primarily because higher supplemental doses commonly cause diarrhea, nausea and abdominal cramping. That limit does not include magnesium naturally present in food.[13]
People with impaired kidney function have a greater risk of magnesium toxicity. Magnesium can also interfere with the absorption of certain antibiotics and osteoporosis medications, while diuretics and long-term proton-pump-inhibitor use can affect magnesium status. The form, dose and timing should therefore be individualized with a clinician or pharmacist when kidney disease or interacting medication is present.[13]
What a therapeutic approach looks like
A ketogenic intervention for migraine should be structured enough to produce consistent carbohydrate restriction while still providing adequate nutrition. It does not require eating unlimited fat or relying on processed “keto” foods.
A practical plan commonly emphasizes:
- Adequate protein at meals
- Nonstarchy vegetables and whole-food fat sources
- Removal of sugar and refined starch
- Consistent hydration and sodium intake
- Regular sleep and meal timing
- A gradual transition when abrupt dietary change triggers symptoms
- Tracking migraine days, attack severity and acute medication use
Some people may benefit from a very-low-carbohydrate ketogenic diet. Others may respond to a less restrictive low-carbohydrate pattern that reduces glycemic variability and improves metabolic health.
Work with your medical team
Migraine treatment should remain coordinated with a clinician, particularly for people using preventive medication, insulin, sulfonylureas, blood-pressure medication or therapies that affect fluid and electrolyte balance.
Pregnancy, breastfeeding, a history of eating disorders, pancreatitis, significant liver disease, disorders of fat metabolism and certain rare metabolic conditions require individualized medical guidance before ketogenic therapy.
Seek urgent medical care for a sudden “worst headache,” a new headache with weakness or numbness, confusion, fainting, fever, stiff neck, loss of vision, seizure, head injury or a major change from the person’s usual migraine pattern.
The takeaway
Ketogenic diets are effective for reducing migraine burden. Randomized comparisons and clinical cohorts report improvements in migraine frequency, duration, disability and medication use, and some patients respond within weeks.[1–3,5–8]
The strongest approach combines carbohydrate reduction with adequate protein, hydration, electrolytes, regular sleep and careful symptom tracking. Ketogenic nutrition is one tool within a complete migraine plan, not a reason to ignore standard neurological evaluation or treatment.
References
-
Di Lorenzo C, Pinto A, Ienca R, et al. A randomized double-blind, cross-over trial of very low-calorie diet in overweight migraine patients: A possible role for ketones? Nutrients. 2019;11(8):1742. doi: 10.3390/nu11081742.
-
Di Lorenzo C, Coppola G, Sirianni G, et al. Migraine improvement during short-lasting ketogenesis: A proof-of-concept study. Eur J Neurol. 2015;22(1):170–177. doi: 10.1111/ene.12550.
-
Caprio M, Moriconi E, Camajani E, et al. Very-low-calorie ketogenic diet vs hypocaloric balanced diet in the prevention of high-frequency episodic migraine: The EMIKETO randomized, controlled trial. J Transl Med. 2023;21:656. PubMed. doi: 10.1186/s12967-023-04561-1.
-
Di Lorenzo C, Coppola G, Di Lenola D, et al. Efficacy of Modified Atkins Ketogenic Diet in Chronic Cluster Headache: An Open-Label, Single-Arm, Clinical Trial. Front Neurol. 2018;9:64. doi: 10.3389/fneur.2018.00064. Cluster-headache evidence.
-
Bongiovanni D, Benedetto C, Corvisieri S, et al. Effectiveness of ketogenic diet in treatment of patients with refractory chronic migraine. Neurol Sci. 2021;42(9):3865–3870. doi: 10.1007/s10072-021-05078-5.
-
Lovati C, d'Alessandro CM, Della Ventura S, Muzio F, Pantoni L. Ketogenic diet in refractory migraine: Possible efficacy and role of ketone bodies—a pilot experience. Neurol Sci. 2022;43(11):6479–6485. doi: 10.1007/s10072-022-06311-5.
-
Valente M, Garbo R, Filippi F, et al. Migraine Prevention through Ketogenic Diet: More than Body Mass Composition Changes. J Clin Med. 2022;11(17):4946. doi: 10.3390/jcm11174946.
-
Tereshko Y, Dal Bello S, Di Lorenzo C, et al. 2:1 ketogenic diet and low-glycemic-index diet for the treatment of chronic and episodic migraine: A single-center real-life retrospective study. J Headache Pain. 2023;24(1):95. doi: 10.1186/s10194-023-01635-9.
-
Stanton AA. Specifically formulated ketogenic, low carbohydrate, and carnivore diets can prevent migraine: A perspective. Front Nutr. 2024;11:1367570. doi: 10.3389/fnut.2024.1367570.
-
Peikert A, Wilimzig C, Köhne-Volland R. Prophylaxis of migraine with oral magnesium: Results from a prospective, multi-center, placebo-controlled and double-blind randomized study. Cephalalgia. 1996;16(4):257–263. doi: 10.1046/j.1468-2982.1996.1604257.x.
-
Karimi N, Razian A, Heidari M. The efficacy of magnesium oxide and sodium valproate in prevention of migraine headache: A randomized, controlled, double-blind, crossover study. Acta Neurol Belg. 2021;121(1):167–173. doi: 10.1007/s13760-019-01101-x.
-
Khani S, Hejazi SA, Yaghoubi M, Sharifipour E. Comparative study of magnesium, sodium valproate, and concurrent magnesium-sodium valproate therapy in the prevention of migraine headaches: A randomized controlled double-blind trial. J Headache Pain. 2021;22(1):21. doi: 10.1186/s10194-021-01234-6.
-
National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Accessed September 4, 2026. NIH ODS.
















