This post may contain affiliate links. Migraine Strong, as an Amazon Affiliate, makes a small percentage from qualified sales made through affiliate links at no cost to you.

Keto Diet for Migraine – How to Get Started

Medically review by Danielle Aberman, Registered Dietitian, RD.

If you are reading this, then you are likely curious about whether or not the ketogenic diet can help you find migraine relief. As a registered dietitian schooled in the low-fat era, I thought “Eww, gross!” about low-carb and keto. I wish I had been more open-minded sooner. Keto is not at all what I thought it would be like. It helped reduce my attacks and improved my overall wellness while being delicious. There is scientific evidence to support the keto diet for migraine as well reports from neurologists and other practitioners.

You may be considering this significant change in the way you eat to help you find a new level of relief from migraine attacks. This article is focused on some basics. It is written with the assumption that you have done your own homework and have asked your doctor for input. I’m going to assume you have decided to dive in and commit to keto for a few months to see if it can help reduce attack frequency or lessen some symptoms. 

The focus will be on the ketogenic diet specific to migraine. For Phase 1 of the ketogenic diet, I recommend some migraine-specific tweaks discussed below.

**While Migraine Strong writes about the latest in migraine treatments, this is not medical advice. We are patient educators and all information you read should be discussed with your doctor.

What is the ketogenic diet?

The ketogenic diet is a low carbohydrate diet that is high in fat and moderate in protein. The intended result of this way of eating is to generate nutritional ketosis. If you aren’t currently on a ketogenic diet, your metabolism is using glucose (blood sugar) as its primary fuel source. 

When you eat, your body digests your food and uses the carbohydrates from the meal for fuel. If there isn’t enough, your body takes the fuel it needs by using stored glycogen from your liver and muscles. When you haven’t eaten in a while the glycogen is converted for needed blood sugar. 

After prolonged periods without adequate food and/or extreme exercise, you may start using your body’s fat storage. When your body uses its fat, the fuel source is from ketones. Fat does not breakdown to blood sugar so your body switches fuel sources from blood sugar to ketones. 

What foods are on a well-formulated ketogenic diet?

The keto diet excludes all added sugars, grains and starchy vegetables.  Because of the natural sugars in fruit, small amounts of berries are the only suggested fruits. Although avocado is technically a fruit, it is allowed. 

Keto includes lots of fat and fatty foods. All meats, poultry and seafood are allowed as well as full-fat cheeses and cream. Low-carb veggies and leafy greens are allowed. Getting into consistent, sustained ketosis is what I consider as Phase 1 of keto. For most people this will take at least a few days and will depend on your own metabolism as well as how low your carbohydrate level has been.

The goal of maintaining the diet is to switch your metabolism so that you become a fat-burning machine instead of a carb-burning machine. Phase 2 of the ketogenic diet happens when your personal “hybrid engine” goes through a process referred to as “keto-adaption.” 

Based on the research and observation of Dr. Stephen Phinney, one of the most prominent doctors in the field of low-carb and therapeutic ketosis, this process can take several weeks but is usually complete by 8 weeks. 

During this second phase of the ketogenic diet, your brain and other organs and your biochemistry adapt to the different energy source. The body adjusts to have the appropriate amounts of enzymes for the different types of chemical interactions that keep us healthy and feeling good. For most people, the Phase 1 transition period is not notable but others may have some symptoms like lethargy and headaches.

While overblown and anxiety-provoking, “keto flu” happens in this early phase. It will be discussed later.

What is the keto and migraine connection?

These are some of theories as to why the ketogenic diet for migraine is effective for some people:

1- Elimination of migraine triggering foods

Some people are triggered by certain foods and food additives. Since the ketogenic meals may differ significantly from what a person typically eats each week, it’s possible the culprit isn’t being consumed. For example, the ketogenic diet eliminates grains and many fruits. If a person was unknowingly triggered by corn or wheat or apples, they may see a reduction in migraine attacks with keto.

2- The “magical” effect of ketones

Nobody truly knows why being in nutritional ketosis is helpful for so many. Perhaps ketones alter cell metabolism thereby bringing relief. It is thought that some people with migraine may have faulty or impaired mitochondrial function. If you recall from biology class, the mitochondria are critically important powerhouses of our cells. Certain preventive medications we take as well as some suggested nutritional supplements (i.e. riblofavin) effect these important organelles. Ketones have been shown to enhance mitochondrial function.

Additionally, the keto and migraine link may be due to neurotransmitter (chemical messenger) balance. Ketones may act protectively in the migraine brain by altering the brain chemistry in a favorable way.

Of course there is no real “magic,” but being unfazed by my usual migraine triggers while in ketosis felt truly miraculous. I could take joy in eating foods like raw onions and parmesan cheese again.

3- Carbs and migraines

Some of us have altered glucose metabolism. There is no denying that there is a relationship between simple carbs and migraines for a significant percentage of people.

Perhaps the keto diet for migraine works for some people as it addresses this flaw in their metabolism.

Dr. Alexander Mauskop, an authority on headache disorders, in his recent book, The End of Migraines- 150 Ways to Stop Your Pain, states:

Sugar is not always an obvious trigger. Many people develop migraine hours after a carbohydrate-rich food. Three-quarters of people with migraine have reactive hypoglycemia. This means that their blood sugar drops too low after a carbohydrate-rich meal.

In my blog about sugar and migraine, I expand on this interesting possibility.

4- Inflammation, keto and migraines

There is great controversy about what actually constitutes an anti-inflammatory diet. In general, the Mediterranean diet is often recommended to minimize inflammation. This is a very good diet recommendation for the general population. Because it’s a way of eating based on whole foods with limited sweets and highly processed foods, it would be expected that some people with migraine would improve.

However, for some people with frequent migraine attacks, the “magic” is in the ketones. Their metabolism, and possibly overall inflammation is improved with a well-formulated ketogenic diet.

Getting Started – Keto for migraine, Phase 1

This is the nitty gritty of what you need to know to get you through the earliest and trickiest phase of the keto diet for migraine. There are three steps to Phase 1.

1- Commit to keto for at least 3 months and print a list of allowed foods.    

Pay special attention to having enough quick, convenient foods. If you know you will be eating away from home, plan on having portable foods on hand. 

Keep things simple.  In this early phase, keep daily carbohydrate intake to 20-30 grams. I suggest keeping it simple and not trying to make some favorite carby foods into acceptable keto foods.  Save cauliflower crust pizza and keto desserts for another time. 

What about calculating macros?

One of the reasons trying the keto diet is intimidating is the math that is discussed in almost everything you read about keto. The way we eat should not be determined by numbers. There is no reason the calculate the percentage of calories you are getting from carbs, protein and fat. My suggestion is to just limit your carbs to 20-30 grams per day, have a moderate amount of foods high in protein. Choose fatty, satisfying foods but don’t feel like you have to add lots of extra fat to your foods unless that is what is helping you get over thoughts of eating carbs. I believe in the power of butter!

My favorite resource for practical information is DietDoctor.com. This beginner’s section is excellent. The visual guides are beautiful as well as helpful in understanding carb sources and making the best choices. This snack list will help you plan foods to always have at the ready.

Planning and setting up your environment is critically important in the beginning but will become second nature as you get into ketosis and think less and less about your next meal. Buy and prepare lots of simple favorites from the lists. 

This way of eating in Phase 1 is short-term

Plan on luxuriating in decadent, fatty foods.  This will keep you from obsessing about the carby foods that will not be on your plate. If you have a sweet tooth, you may want to make some simple “fat bombs” to keep on hand to help with cravings. 

Your current diet may be quite high in carbohydrate. I was addicted to sugar and carbs and I’m still shocked that I not only survived, but thrived.  Anticipating being without carbs was worse than the reality of what the diet was like.  The yummy, satisfying fat suppressed my appetite and surprisingly took most of my cravings away.

Embrace this change and know that the way you will be eating will change quite a bit.  DO NOT TRY TO HAVE A PERFECT, WELL-FORMULATED KETO DIET DURING PHASE 1. 

You will not be eating like this for long.  Your goal is setting up your first week or two to be as easy as possible and that might mean being repetitious and decadent. I ate an embarrassing amount of cream cheese but it was delicious! In Phase 2, more variety and balance is brought back into your day to day eating.

2- Get a bunch of cheap Ketostix

You can find them in the diabetes section of a pharmacy or online.  These urine dipsticks help determine if your body is making ketones. It is not a great way of measuring your degree of ketosis but will help you know when your body is shifting into ketosis. It can be quite motivating when you see your first positive signs of ketones!

Blood monitors are much better but that is an added, unnecessary expense. The results from ketostix merely provide some info that is likely helpful in the early stages of the diet. I admit to being obsessed with the ketostix and using them a few times a day.  I was very excited to see my efforts paying off and couldn’t wait to see my results. 

3- Keep hydrated and focus on your electrolytes

When starting the ketogenic diet, your body goes through many changes as it becomes a fat-burning machine. For many people, the keto foods they choose to eat are whole foods and much less processed than foods they used to eat. This often means that their sodium intake is lowered without them realizing it. 

In these early days, the lowered carb intake and burning-off of the body’s stored carbs signals the kidneys to make more urine. So, many people notice that they are needing to pee more as well as feeling the urge to drink more.

For overall health, as well as to avoid some of the common side effects of keto, it’s important to boost your fluid intake as well as your electrolytes (sodium, potassium and magnesium). DietDoctor.com recommends drinking 3 liters per day (~101 ounces) for the first week of keto.  As someone who struggles with drinking enough, that amount seems daunting but it’s just during the first week of keto. 

Paying attention to electrolytes is also very important for overall health and an easier transition to ketosis.  This link discusses amounts and sources of key electrolytes to make sure you are aware.  Personally, I do best when I drink homemade, salty broth along with salting my food well. Of course, I always take my usual magnesium supplements. 

What about keto headache?

Keto headache is usually from dehydration headache or shifts in electrolytes. Sometimes people feel lousy and have “keto flu.” Keto headache doesn’t last long.

As stated above, for some of us, there is a relationship between carbs and migraine. The headache may also be due to a “detox” effect combined with being a bit sad about not having some carby favorites. Treat yourself to a nice “fat bomb” to get yourself through. In Phase 2 you will be feeling better and will be making changes to your routine meals and snacks.

Keto for migraine – what’s different about it

Many of you have already noticed that quite a few keto mainstay foods like avocado, aged cheeses, nuts and bacon are considered common migraine triggers. I typically recommend going through a migraine-oriented elimination diet prior to trying keto to figure out your potential food triggers. 

If you have figured out your triggers, you should avoid them in Phase 1 of keto. Once you are in ketosis, the ketones seem to work their magic and provide a virtual force field and allow trigger foods to be safely eaten. Weird, right? 

I had a LOT of food triggers but was able to eat nearly all of them while in ketosis. It was fantastic. I felt more freedom at restaurants.  My experience with this force field phenomenon is not unique, fortunately. The keto diet may allow you to find relief as well as enjoy foods you have been avoiding due to migraine.

The downside of Phase 1

Combining Phase 1 of keto while eliminating common migraine triggers can be rather repetitive. But is certainly doable as it typically lasts for just a few days to a week.  You can find a pattern that will work for you.  However, you certainly do not have to do these tweaks especially if you are not convinced that the common triggers that I mentioned are YOUR triggers. You can simply jump into the unrestricted keto food list.

There is a lot more to the ketogenic diet than the above 3 steps, but the process outlined and the resources from DietDoctor.com will help you get on your way. 

Phases 2 and 3 of the the ketogenic diet for migraine will add much more variety and healthy, satisfying options for you.

What about the keto diet for vestibular migraines?

One of the most frustrating things about vestibular migraine (VM) is the lack of research. Even small studies can make a person with VM make important decisions that can shape quicken their improvement. The Migraine Strong Facebook and Instagram community is quite large but I have not seen many people discuss their adventures in keto. I am reluctant to recommend the keto diet for vestibular migraine without seeing research or more anecdotal reports. If you have VM and are considering it, don’t let me dissuade you. My personal and professional opinion is that the Heal Your Headache approach that is blessed by some prominent dizzy doctors may be a better first approach for managing VM. With that said, keto may be perfect for you.

If you have VM and have tried the keto diet, please leave us a comment or let us know in our social media channels.

Keto Diet for Migraine - How to Get Started

Amazon and the Amazon logo are trademarks of Amazon.com, Inc, or its affiliates.

22 thoughts on “Keto Diet for Migraine – How to Get Started

  1. Danielle, I too, have experienced this “force field” that I like to call ketone therapy. Have you noticed any diffence in migraine in correlation to deeper state ketosis or your GKI being in the theraputic range, 3-1 GKI?
    I’m curious as I’ve been attempting a deeper state of ketosis for its theraputic benefits trying to see a difference in my own history with migraine

    1. Hi, Ashley. Personally, I have not noticed but I haven’t experimented with it. Anecdotally, a friend who had a more severe form of migraine than me noticed that she did better with deeper ketosis but I haven’t known many people who have looked into this. I suppose it’s possible that higher levels of ketosis could shift neurotransmitter levels in a more favorable balance and give you more relief. Or, if the magic of ketones is helping your mitochondria, it’s possible that your cellular energy production would be better with higher levels of ketosis, but it’s an unknown. There has been a small study that showed positive results from using MCT oil without a ketogenic diet for people with migraine. While I love keto, I might be more inclined to try supplementing with a quality MCT oil rather than restricting my diet further. You probably already know this, but using and increasing MCT oil should be done slowly as your GI system usually needs some time to adjust…. if you know what I mean. – Danielle

      1. Danielle, I definitely know where your coming from! This is definitely something I hope to hear more about, maybe a topic that can be more heavily covered at the 2020 migraine summit, or the metabolic health summit.
        I appreciate the time you took to respond and I look forward to part two of this blog series.

  2. I am honestly surprised to see this post. It is just an amazing one. This gives complete guide and provides information.

  3. Danielle – I’m considering keto, but have found pretty much all the HYH foods to be triggers. On top of that my stomach doesn’t love dairy. I honestly prefer eating vegan but have made peace with the fact that isn’t going to happen. What were the HYH compliant Keto foods you used those first few months? Do you ever provide consulting calls on this for your dietitian practice?

    1. Hi, Chris. You may be like me. I was triggered by so many of the HYH foods that the idea of keto was intimidating. I wish I had kept my records, but I think my first few days were high in dairy like cream and cream cheese, coconut milk made into chia “pudding,” fresh meats, eggs, cruciferous veggies and some berries. After I was in ketosis for a couple of days, I successfully added macadamia nuts and bacon. Then, I became more brave and added avocado. It was a success! The keto force field helped me tremendously and gave me so many more delicious and nutritious options, especially while eating away from home. Avoiding dairy in keto is certainly a challenge but it is doable. Layering HYH with low-dairy keto with HYH can also be complicated but I think it would not be necessary for long.
      To answer your question about consulting, yes, Eileen and I provide coaching services for people looking for help finding relief from migraine. Feel free to email me at [email protected] if you would like more info. I hope 2020 is the year you get migraine in good control 🙂

  4. Hello,
    Thank you for this informational post. I’m researching keto now, as a treatment for my hormonal migraines, and am easing into the 20-30 carb limit over the next week. Dr. Westman is also a great resource, and really simplifies the diet.
    I’m curious if you’re still on keto or if you went off at all, and why? Will you return to it? I’ve heard the biggest drawback is it’s unsustainable, which makes me nervous. If and when you did stop, did your headaches return? Thank you again for this post.


    1. Hi Laura-
      I stayed on keto for about 10 months. Then, I planned to take a short break and just eat low-carb. My attacks did not come back and I was very grateful for that. My brain fog returns when I increase my carbs for a few days, but I’m happy to say that I do not need to be in ketosis for good control. I think keto is sustainable since many people can stay in ketosis with higher amounts of carbs. Additionally, many of us still get significant relief from being low-carb but not in ketosis. I wish you luck with whichever diet approach to migraine you choose 🙂

  5. I changed to a ketogenic diet 3 years ago, after reading up on it when my sister with type 2 diabetes told me about her experience with it. When I saw that it was an early treatment for epilepsy, I wondered if it might be effective for migraine and the papers I found were encouraging, so I started.

    It has been great. I still get migraine attacks, but much less frequently and much less severe. I never felt deprived as far as food choices and the quality of life improvements are a more than worthwhile trade for the pasta and potatoes I no longer eat.

  6. I have suffered with migraines and chronic tension headaches all my life. I am wanting to try Keto. Would it be better to go low carb just to ease off them or do you recommend just jumping all in? I am a serious soda addict too but I want to eliminate that from my diet too. I am desperate for relief so I know I’m ready for change.

    1. Thanks for writing! My opinion is to jump in but after you have successfully transitioned to a different beverage. Hydration is very important so you need to find something that is acceptable to you so that you can keep hydrated. I was a sugar fiend and I did surprisingly well early in keto. I thought I’d be miserable but wasn’t. You may want to get a partner for support or join a supportive groups in Facebook.

  7. Great and encouraging article! currently doing gluten and dairy free, trying to limit alcohol as well. i drink black coffee. Been following this for 6 weeks w no results. Thinking my brain needs more fat and need to shift to keto. What r some meal examples. Also did HYH for 4 mo last year and quit coffee then w/o results. Desperate for relief of daily migraines and believe theyre hormonal. never ever did i hvd any until 2 months after my 3rd child. its now been almost 2 yrs of this. Thanks

    1. I’m glad you continue to try diet. In my article I link to DietDoctor . com for some meal ideas that are far better than what I could suggest on my own. It’s a great website. Since you say your symptoms are daily, I hope you are seeing a headache specialist to help you with appropriate meds. The longer chronic migraine goes on, the harder it is to reverse. Diet can often help but is often not enough for those people on the more severe end of the migraine spectrum. Good luck to you. – Danielle

  8. Hi, my name is Sara, from Iran, thanks for this information. I have suffered with migraines and chronic tension headaches all my life and I used a lots of methods and had taken drugs but were not effective , But the Keto diet helped me a lot , My migraine stopped exactly when I started diet.. I have been on a diet for almost 3 months.
    ketone is high in my test (5 mg/dl) , LDL :184 mg/dl, Chole : 275 mg/dl and HDL:47 mg/dl.
    I do not know how long I will continue this keto diet? Nutrition Doctor told me It (keto diet) can acidify the blood and damage the brain, more than three weeks. but i very happy that i don’t migraines and chronic tension headaches.
    I kindly ask you if i continue,Should I take fat pills? And how long can I continue without worry?

    Thank you and I wish you success

    1. Hello Sara. Thanks for writing. I’m glad you are finally finding relief and that it’s from keto. I assume you found the article by doing your homework on the keto diet. I do not think there is any evidence that following a well-formulated ketogenic diet is harmful in the short-term. Additionally, our kidneys keep blood pH in a healthy range regardless of our diet. I’m not sure, but the nutrition doctor you mentioned may be assuming you are in “keto acidosis,” a dangerous condition rather than nutritional ketosis, a benign and possibly beneficial condition. I do not know you and this is not medical advice. I encourage you to continue to do your homework and consult with health professionals with experience in working with the keto diet. There are no long-term studies on keto and I am eager to see some well-designed studies get published. Personally, I was in ketosis for over 10 months. After that I was just low carb and not in ketosis. For some people, low carb is enough to help migraine while others seem to need the ketones. I can’t give specific recommendations, but I have never suggested “fat pills” other than omega=3 fatty acid supplements. But, the recommendation is always to talk to your doctor before changing your supplement regimen. I hope you continue to find relief from diet whether it’s keto or a different approach.

  9. Hi! I’m considering keto/diet changes to see if it impacts my migraines. I’m in the range of 7-12 a month. I’m at this point with medication, without medication, it skyrockets to over 15 a month. I saw your comment about chronic migraines being less responsive to diet. In your opinion, at what point are migraines too frequent to be significantly impacted by dietary changes? Thanks in advance.

    1. Hi Erika and thank you for commenting. To clarify, I do not think people with chronic migraine respond to diet changes less than those who are episodic. In general, chronic migraine is harder to get control of when it has been uncontrolled for an extended period of time. And, some people who have migraine at the more extreme end of the spectrum tend to need more interventions simultaneously (i.e. meds, devices, diet, supplements, therapy, meditation, etc.) I/we advocate for using diet changes no matter how frequent attacks occur. I’m so happy meds are helping you. Perhaps changing your diet can increase the number of migraine-free days you have even more. If you haven’t already, checkout this article the reviews some other options besides keto. Personally and professionally I love keto but it’s not for everyone. Best of luck to you with whichever you decide. https://www.migrainestrong.com/whats-the-best-diet-for-your-migraine/

  10. I have done a couple of fasts…. Found this to be life changing…. I hadn’t contemplated a keto diet but can see the similarities. I am currently in the midst of a flare up so am going to do a water fast now for 36 hours to try and break the flare…. Have you heard of this ?

    1. Yes, I have heard of fasting to break a cycle. I even know of a neurologist that does this for his own difficult flares. I hope you feel better soon. If not, please give your doctor a call as we are heading into a weekend when it will be harder to get help. – Danielle

Leave a Reply

Your email address will not be published. Required fields are marked *

About the Author

Danielle Aberman RDN

My degree is in clinical nutrition and I’m a registered dietitian. I changed my career to focus only on helping people with migraine find relief and became a certified health and wellness coach to help me help my clients beyond just my expertise in food and nutrition. My fascination with diet, nutrition and migraine began when I made my condition worse by eating “clean and healthy.” This was mainly due to both rebound/medication-overuse headache and a diet high in beautiful, nutritious, wholesome food triggers. Implementing a comprehensive migraine elimination diet helped me dramatically. Continuing my research into diet, I transitioned to the Ketogenic diet which further improved my brain fog. My work with the Ketogenic diet for migraine relief has led me to working with one of the pioneers in reversing diabetes and obesity with Keto, Dr. Eric Westman. I love helping people take control of their wellness and get their lives back. For relaxation and enjoyment, I like to go on adventures with my family, spend time in the garden and cook for friends and family.

View all posts by Danielle Aberman RDN