Keto may affect migraines because it changes the fuel available to the brain. When carbohydrate intake is very low, the body produces ketones, which can be used alongside glucose for energy. Some people report fewer or less intense migraine attacks, but research in adults is still limited, and keto can also trigger headaches during the adjustment period. It is not a proven cure, and any dietary change should fit your health needs and treatment plan.
How ketosis may change the brain’s energy supply
Most of the time, the brain relies heavily on glucose from carbohydrates. A ketogenic diet is high in fat, very low in carbohydrate, and moderate in protein. When carbohydrate availability falls enough, the liver makes ketones from fat. These ketones can cross into the brain and be used as an alternative source of energy.
That shift is the reason keto has attracted attention in migraine research. Migraine is more than “just a headache”; it is a neurological condition involving changes in brain signalling, nerve sensitivity, inflammation-related pathways, sleep, hormones, stress and the environment. A diet that alters energy metabolism could, in theory, influence some of those processes.
Researchers are exploring whether ketones may help stabilise brain energy use, reduce excitability in certain nerve networks, or affect inflammatory and oxidative-stress pathways. These are plausible mechanisms, not a guarantee that ketosis will prevent migraines. The biology of migraine varies considerably from person to person.
What the evidence does — and does not — show
Ketogenic dietary therapy has an established medical role in some forms of epilepsy, which is one reason scientists have investigated it for other neurological conditions. Small studies and clinical observations suggest that some people with migraine may experience fewer headache days or less severe attacks while following a ketogenic diet.
A 2019 randomized crossover trial tested very-low-calorie ketogenic and non-ketogenic diets in people with migraine and overweight. Its short duration and selected population mean the findings should not be generalized to every person with migraine or every version of keto.
However, the evidence for migraine remains emerging. Studies may be small, short, or use different definitions of keto and different methods for tracking migraines. It can also be difficult to separate the effect of ketosis from other changes that often happen at the same time, such as eating fewer ultra-processed foods, reducing alcohol, regularising meals, losing weight, or paying closer attention to hydration.
For now, keto is best viewed as a possible option to discuss with a qualified clinician or dietitian, rather than a replacement for proven migraine care. Preventive medicines, acute treatments, sleep support and trigger management may still be important.
💡 A useful distinction: Feeling better while eating keto does not prove keto alone caused the improvement. A migraine diary can help you and your clinician spot patterns without jumping to conclusions.
Why keto helps some people but causes headaches for others
In the first days or weeks of a major dietary change, headaches can occur. This is sometimes called the “keto flu,” although it is not influenza. Rapidly cutting carbohydrates changes fluid and electrolyte handling in the body. Dehydration, lower sodium intake, skipped meals, caffeine withdrawal, poor sleep and reduced calorie intake can all contribute to headache.
For someone already prone to migraine, these changes may trigger an attack. That does not necessarily mean keto will never suit you, but it is a reason to avoid an abrupt, unsupervised approach.
Common migraine-related pitfalls during a keto transition
- Eating too little because familiar carbohydrate-based meals have been removed without suitable replacements.
- Drinking less fluid or failing to consider electrolyte needs, especially during the early adjustment period.
- Stopping coffee, tea or energy drinks suddenly when caffeine withdrawal is a known trigger.
- Relying on highly processed keto foods that may contain ingredients you personally find triggering.
- Changing several things at once, making it impossible to tell what is helping or worsening attacks.
Also remember that foods often described as “migraine triggers” are not universal triggers. Aged foods, chocolate, artificial sweeteners, alcohol or cured meats may affect some people and not others. Your own pattern matters more than a generic avoid-list.
If you want to try keto, make the experiment safer and clearer
Start with a conversation with the clinician who manages your migraines, particularly if you use preventive medicines, take medication for diabetes or blood pressure, or have another long-term condition. Ask whether a gradual carbohydrate reduction would be more appropriate than a strict ketogenic approach.
Keep a simple diary before and during the change. Record headache or migraine days, severity, duration, aura or other symptoms, medication use, sleep, meals, hydration, menstrual-cycle timing if relevant, and major stressors. You are looking for a meaningful pattern over time, not a verdict from one good or bad week.
Practical steps that can reduce avoidable problems
- Keep meals regular rather than fasting unintentionally while you learn new routines.
- Plan satisfying meals with protein, non-starchy vegetables, fats and fibre-rich foods that fit your chosen approach.
- Pay attention to fluids and discuss electrolyte guidance with a professional if you have medical conditions or take regular medication.
- Keep caffeine intake steady at first instead of making a sudden change alongside a diet transition.
- Set a review point with your clinician so you can assess benefit, side effects, nutrition and sustainability.
A less restrictive pattern may be a better fit for some people. Consistent meals, adequate hydration, more minimally processed foods and identifying personal triggers can support migraine management without requiring ketosis.
When keto needs medical supervision
Do not start a ketogenic diet without individual clinical advice if you are pregnant or breastfeeding, have a history of an eating disorder, significant kidney, liver, pancreatic or gallbladder disease, or have been advised to follow a different therapeutic diet. Extra care is also needed if you use insulin, certain diabetes medicines, blood-pressure medicines or medicines that affect fluid balance.
Seek urgent medical help for a sudden, severe headache unlike your usual migraine, a headache after a head injury, new weakness, confusion, fainting, seizure, vision loss, fever with a stiff neck, or new neurological symptoms. Dietary advice is never a substitute for assessment of warning signs.
Frequently asked questions
Can keto stop migraines completely?
It may reduce migraine burden for some people, but it cannot be relied on to stop migraines completely. Response varies, and current evidence does not support promising a cure.
How long does it take to know whether keto is helping?
The adjustment period itself can bring headaches, so an immediate response can be misleading. Agree on a reasonable review period with your clinician and use a diary to look at the overall pattern.
Should you stop migraine medication if keto seems to work?
No. Do not stop, start or change migraine medication without speaking to the prescriber. If your symptoms improve, they can help you decide whether any treatment plan should be reviewed.
You do not have to work through migraine alone
Learning what supports your health can take time. Explore practical information and compassionate community support at your own pace.
A specific medicine safety check
If you take an SGLT2 inhibitor for diabetes, heart failure or kidney disease, discuss very-low-carbohydrate eating with your prescriber before changing your diet. Ketoacidosis can occur without very high blood glucose. Vomiting, abdominal pain, unusual breathing or confusion need urgent assessment; do not adjust medication yourself.
MHRA: SGLT2 inhibitors and ketoacidosis safety.
Sources and further reading
- Di Lorenzo and colleagues (2019): randomized crossover trial of very-low-calorie ketogenic and non-ketogenic diets in people with migraine and overweight
- NHS: migraine symptoms, treatment and warning signs
Updated 24 October 2026. General health information; individual care should be discussed with a qualified healthcare professional. Images are illustrative.















