Keto Headache: Why You Have It and How to Prevent It

Blog Categories


Keto Headache: Why You Have It and How to Prevent It


One of the most common side effects of transitioning into a low-carb, ketogenic diet is the dreaded keto headache (also called a low-carb headache). But don’t let the flu-like side effects in the first week or two discourage you from your ketogenic journey.

There are specific lifestyle hacks and nutrient protocols you can take to prevent headaches induced by suddenly reducing your carbohydrate intake.

Eventually, your body will adapt to using fats as energy and the symptoms will disappear.

Read on to explore the reasons you might experience a keto headache and the steps you can take to prevent it as you reap the powerful health benefits of ketosis.

What Happens to Your Body When You First Go Keto

You’ve probably spent a good portion of your life feeding your body large amounts of carbohydrates, many of them from processed food sources.

This means your cells, hormones, and brain have adapted to using carbohydrates as their main source of energy.

Transitioning to a fat-dominant fuel source will confuse your body’s metabolism in the beginning.

This metabolic confusion will put your body through an “induction phase.”

This is the time when your metabolism works overtime to get accustomed to using ketones for energy (from fats) rather than glucose (from carbohydrates).

During this phase, you may experience flu-like symptoms commonly referred to as the “keto flu” — especially headaches and brain fog — because your body is going through physical carb withdrawal.

Mental Fog Is Normal at the Start of Keto

One of the very first signs of this “induction phase” comes from your brain losing its main source of fuel — glucose.

If you’ve never followed a low-carb, high-fat diet, your brain has been using carbohydrates as its main energy source.

When you start increasing your fats and restricting carbs, your body starts to burn through its last stores of glycogen. At first, your brain won’t know where to find the energy it needs because of the lack of carbohydrates.

It’s normal to start staring off into space, experiencing headaches, and feeling irritable.

A good way to combat these symptoms is to go as low-carb as possible when you’re first starting out. This way your body is forced to use up all of its glycogen stores much faster.

Many people try to taper off their high carb intake over time, but doing so will only make the brain fog last longer.

When you get into a state of ketosis, a large portion of the brain begins to burn ketones instead of glucose. It can take a few days or up to a couple of weeks for the transition to happen.

Luckily, ketones are a highly potent fuel source for the brain. Once your brain gets accustomed to using fats as energy, brain function is optimized.

Many studies have shown long-term ketogenic dieters to have improved brain cognition. The keto diet has even been considered for treating brain conditions such as memory loss[*][*][*].

The Keto Induction Phase Is Stressful on Your Body

Without much sugar from carbohydrates present, your body will begin to decrease blood sugar levels and increase the production of the stress hormone, cortisol.

Cortisol is a glucocorticoid hormone released by your adrenals to make sure your energy level is sufficient to survive. When you have low blood sugar levels, your brain sends a signal to your adrenals to release cortisol. Your body will begin to burn glycogen (stored glucose) for fuel.

Carbohydrate restriction — and thus, the keto diet — may sound like a bad idea due to your increased body stress triggering the release of additional cortisol. But this isn’t the case. Over time, your body will adapt and develop a preference for using fat as fuel through ketosis.

One study tested three separate diets: a low-carb diet, a low-fat diet, and a low-glycemic diet. This study showed that the different diets had significantly different metabolic effects, with the low-carbohydrate diet proving to be the most effective[*].

Causes of Keto Headache

One of the most common symptoms when making sweeping dietary changes, like the keto diet, is the pounding headache that accompanies carbohydrate restriction.

When your body’s been running on high-carb foods like bread and starchy vegetables your whole life, making a large transition to burning fat as fuel will require an adjustment period.

Keto headache is just one keto flu symptom and shouldn’t be compared to the normal flu. The keto flu isn’t viral or contagious and you’re not sick — you’re adapting.

What Causes a Keto Headache?

There are three main reasons why you may develop a headache after going low-carb: dehydration, electrolyte imbalances, and carbohydrate or sugar withdrawal.

The typical Western diet contains large amounts of sugar which give your body an instant rush.

Sugar impacts your brain through the same reward system that is seen with equally addictive substances, like cocaine, which is why you experience symptoms similar to drug withdrawals[*].

In fact, it’s the “sugar high” that’s responsible for your increased sugar cravings. The more sugar you eat, the more you want.

How Long Does the Keto Headache Last?

Some people may not experience any withdrawal symptoms at all. Everyone is different and the length of the symptoms depends on several factors.

For example, if you followed a diet relatively low in carbs before going keto and ate large amounts of green vegetables (or took a high-quality greens supplement), there’s a chance that your symptoms would be very short-lived or even nonexistent.

On average, the keto headache will last anywhere from 24 hours to one week.

In rare cases, it can take up to 15 days for the symptoms to subside.

Some people prefer to start keto on the weekend so the symptoms are more tolerable and won’t affect everyday life too much.

Dehydration Is Common During the Keto Induction Phase

When you adopt a low-carb high-fat ketogenic lifestyle, your body begins to excrete excess water.

Don’t get too excited when you notice a lot of weight loss after first beginning keto. The bodyweight reduction isn’t all from fat loss; it’s water being flushed out of your body.

Ketosis is known for its strong diuretic effect. This means your body is excreting both water and electrolytes which leads to reduced water retention[*].

Water is stored in your body from carbohydrates. When you restrict carbohydrates, your body begins to excrete water rapidly.

For each gram of glycogen (from carbs) used as energy, twice the mass is lost in water.

Once your body enters ketosis, your body starts sparing glucose but water loss continues. Having ketones present in your body will lead to more water excretion.

It’s vital to drink plenty of water while adapting to carbohydrate restriction in order to mitigate dehydration symptoms and maintain your overall health and well-being.

Perfect Keto Daily Electrolytes

Replenish & Recover

Perfect Keto Daily Electrolytes – Precise 4:2:1:1 Ratio. Stay Balanced & Energized on Your Keto Journey.

Try It Yourself

Electrolyte Imbalances Are Common When You First Go Keto

The main electrolytes to keep a close eye on are magnesium, sodium, and potassium.

When your body excretes water, you begin to flush out these essential electrolytes which are crucial for several different bodily functions like energy production, body temperature control, and optimal brain function.

Your daily electrolyte requirements are higher on keto compared to a normal diet.

An electrolyte supplement can help while you’re in transition.

Sodium Requirements

Insulin plays a huge role in electrolyte maintenance. It’s a hormone that lowers your blood sugar when it’s too high[*].

The main job of insulin is to shuttle sugar into cells so they can use it as fuel and deposit excess sugar into fat. It also works to promote sodium absorption in the kidneys[*].

When you start a low-carbohydrate diet, insulin levels are much lower.

The sodium eventually draws more fluid into your kidneys to prepare for the excretion of water.

Less insulin in the body means there is less sodium present.

Low sodium levels in your body are one of the main reasons why you may experience decreased energy levels and headaches while on a low-carb diet.

You should aim for 5,000 to 7,000 mg of sodium throughout the day.

This can be consumed in the form of pink Himalayan sea salt, bouillon, bone broth, and even sodium pills.

Potassium Requirements

If you are potassium-deficient, you can expect to experience depression, irritability, constipation, skin problems, muscle cramps, and heart palpitations[*]

To combat this you should consume ~3,000 mg of potassium a day.

Here is a list of keto-friendly foods that contain ample amounts of potassium:

  • Nuts: ~100-300 mg per one oz serving
  • Avocados: ~1,000 mg per serving
  • Salmon: ~800 mg per serving
  • Mushrooms:  ~100-200 mg per serving

It’s important to note that too much potassium can be dangerous. While it would be difficult to reach the upper threshold of toxic levels, it’s best to steer away from potassium supplements and stick to the natural sources listed above.

Magnesium Requirements

While magnesium deficiency is not as common for low-carb dieters, it’s important to maintain optimal levels.

A magnesium deficiency can lead to muscle cramps, dizziness, and keto headache[*].

The recommended daily average for people on the keto diet is ~400 mg of magnesium a day.

Try these keto-approved, magnesium-rich foods:

  • Cooked spinach: ~75 mg per cup
  • Cacao powder with dark chocolate: ~80 mg per one tbsp of cacao powder
  • Almonds: ~75 mg per 1 oz
  • Salmon: ~60 mg per fillet

How to Prevent a Keto Headache

The headache you get when adapting to burning fat for fuel comes from an impaired ability to effectively use fat as energy.

Any time your body’s ability to burn fat is impaired, you have a hard time losing weight. You become very hungry when your blood sugar runs out — no matter how much fat you have available to burn.

To combat the keto headache, you must improve your body’s metabolic flexibility to burn fat as energy instead of glucose.

Metabolic flexibility is your capacity to adapt fuel oxidation to fuel availability. This is your body’s ability to switch from one fuel source to another (from carbohydrates to fat).

Your keto headache symptoms will soon diminish once you become used to using fat (ketones) as energy.

Here are five techniques you can implement today to prevent keto headache:

#1. Drink Water and Salt

When you start eating a low-carb diet, your insulin levels will naturally go down. You won’t hold onto as much sodium as compared to a traditional Western diet with a moderate amount of carbs.

You also begin to excrete stored water when you restrict carbohydrates.

Sodium deficiency is one of the main causes of keto headache and can be mitigated by adding more water and salt into your system.

It’s important to increase the amount of salt you consume because drinking more water will flush out sodium at the same time.

Consuming bouillon or bone broth will help you maintain proper amounts of sodium.

If you are still having difficulty increasing your salt intake on a low-carb diet, supplementing with sodium supplements and simply adding more salt to every meal will help.

#2. Eat More Fats

Eating more dietary fat will help your body get accustomed to using fats as energy. Since you’re replacing carbs with fats as your main source of calories, you need to consume larger amounts of fat than you were previously.

You should aim for 65-70% of your total calories from fats.

Taking the time to track your fat intake should be a priority in the beginning since it’s very easy to undereat fats. This is because fats are more calorically dense and will fill you up quicker.

Eat fatty meats like rib-eye steak, bacon, salmon and chicken thighs. Add coconut oil and butter to each meal to increase your fat intake.

#3. Take Supplements

Supplements can greatly help your conversion into a fat-fueled machine, but it’s important to never use supplements as a replacement for dietary deficiencies.

Some key vitamins and minerals that can help mitigate a keto headache include:

  • L-carnitine: High fat intake from the keto diet means more fatty acids need to be moved into the mitochondria for fat oxidation. Carnitine is required for effective transportation.
  • Co-Enzyme Q10: This is an antioxidant responsible for the cellular process of creating energy. It’s another supplement that helps mobilize fat and will help you transition into ketosis faster.
  • Omega-3 fatty acids: Fish oil is a potent natural anti-inflammatory. Consuming omega-3’s will also help to lower triglyceride levels in your body which are fat molecules held in the blood for later use.

#4. Exercise More

Studies have shown that exercise can improve your body’s metabolic flexibility.

Exercising increases both fat utilization and improves weight loss, both are contributing factors to combating the dreaded keto headache[*].

One study shows that the benefits of exercise go beyond weight loss. It also helps to repair broken metabolisms. This study showed that after exercise, the metabolism of people with type 2 diabetes was restored and they were able to utilize calories for energy more efficiently[*].

Making a habit to work out will help you regain your metabolic flexibility and stimulates your body to increase fat burning both during exercise and at rest.

Exercise will greatly improve the speed at which your body starts using fat as its main source of energy and will help mitigate symptoms of keto headache.

#5. Supplement With Exogenous Ketones

Taking exogenous ketones is an effective way to elevate your ketone levels, even if you haven’t fully converted to using fats as a primary source of energy. They can elevate your beta-hydroxybutyrate (BHB) levels by up to 2 mMol after consumption.

Exogenous ketones cause blood glucose to decrease due to an increase in insulin sensitivity. This is important during the induction phase because you’re priming your body to start preferring fats as energy rather than carbohydrates.

They also contain ample amounts of calcium, magnesium, and sodium which are critical electrolytes your body needs for peak brain and body functioning.

By adding exogenous ketones into your routine, you will drastically mitigate the severity of your keto-induced headaches.

Don’t Be Discouraged by the Keto Headache

While the keto headache may sound daunting and may discourage you from adopting a keto diet, taking the steps to mitigate the symptoms isn’t as hard as some make it out to be.

Replacing essential nutrients and minerals, exercising frequently, and maintaining a proper low-carb, high-fat diet will ensure that your keto flu-like symptoms diminish sooner than later.

Remember that a low-carb headache is a normal induction stage of the process and happens to most people who adopt this way of eating.

The light at the end of the tunnel is much closer than you think. Let this encourage you to stick it out until you begin to experience the benefits of a low-carb, high-fat ketogenic lifestyle. It will all be worth it!


33 thoughts on “Keto Headache: Why You Have It and How to Prevent It

  1. I began my keto journey 3mnths ago.

    Amazing results so far.
    I feel amazing and have lost 6inches in my waist.

    After I was told of a mild fatty liver, adrenal body type.
    I decided to research on a healthier lifestyle.

    Present day…I feel so much healthier and alive, fueling my body this way.

    1. Thank you, Erin, and congratulations! It’s almost 2 months later – how are you doing? It’s been almost four weeks for me, and I’m battling bad headaches. Did this happen for you? What helped you through it?

  2. Thank you for this excellent article. I’m 77yrs. old and am not ready to give up. Been doing the keto plan for one and a half months. I’m doing so good except for a slight headache. You’re very encouraging. Being a woman, i love life.

  3. Thought my electrolytes were low, giving me the keto headache. Searching the 7-11 near my office, I saw packaged pickles… plenty of sodium. Ate a whole one and it quickly alleviated the symptoms. Hours later, headache started coming back, so I downed another pickle. Worked well. I’m gonna remember this.

    1. Thank you Rob. That’s awesome. Have a keto headache right now but also have a full jar of pickles. I am going to try it.

  4. This is my first day of Keto and my head started hurting. probably doesn’t help that before today I’ve been living off of chips, pretzels, Nutella, chocolate candies, pickles, and cheese. My body is not sure what to do with itself right now I guess. Pickle and avocado helped the headache exponentially!!

  5. Great article! Thank you for breaking this down a bit more. I’m new to this, so this was quite helpful!

  6. I thought I had avoided the keto headache because I had been eating fairly low carb before I started keto. Wrong, I have had a headache on and off for the last three days. It kept me awake most of the night so today I feel worse than ever. I just ate a cheddar cheese stick and it seemed to help but I’m not sure if that’s real or just my imagination. I think it may have been the salt in the cheese but I guess time will tell.

  7. I’ve been on the the Keto diet for a week. I woke up in the middle of the night with a headache. I had a few almonds with almond butter and water with salt. It seem to help with the headache.

  8. Please check you data on sodium. 5-7 gms/day of sodium is 12.5 – 17.5 gms/day of salt. That is “off the charts” high. The healthy range of salt intake is 5-12 gms/day and the recommended daily allowance is <6 gms/day. Did you mean to say salt instead of sodium?

  9. I wonder if you can adjust your numbers for body size and dietary intake. I have read that to be in mild ketosis you have to keep carbs under 70 gms/day and the full ketogenic diet calls for <30 gms/day. I am 84 years old, weigh 160 lbs and have a daily caloric intake <1400 calories. I have been under 60 gms/day of carbs for 18 months, have lost 6 lbs and maybe 2 inches. Have just started exogenous ketones to see if that will help. Does the 70 gms/day apply only to the youthful consuming 2500 calories/day? Do I have to get under 40 gms/day? Please advise.

  10. This is my first day of ketogenic diet.I have a really bad headache. I hope I can stick to my diet. Also, I wanted to ask if it is okay to fast during keto.

  11. Thank you for this wonderful article.. finally found the real cause of headache during the keto diet.. try to consume himalayan pink salt along with food and water to enhance the sodium intake..

  12. I am about two weeks into my keto diet and I started experiencing frequent headaches. I took about a glass of salty water and the headaches cleared. I can’t stand the metallic taste in my mouth however I’ve lost an inch round my hips so its well worth it. So far no major cravings

  13. Thanks for the great article and information. Answers so many questions I didn’t even know I had. I’m into my 1st keto cleanse and now have the knowledge and strength to stay with it

  14. I’ve just started the keto diet and am prone to migraines. I’ve got pork rinds stashed in my desk at work because I love chips and pop corn. It seems to be helping….also, jerky, and pumpkin seeds. I’ve noticed my sugar cravings are all but gone. 🙂

  15. 2nd Day of the Keto Diet and 1st day of the headache….besides the headache I feel okay and waiting for the weight loss as well Pat.

  16. I’m about 2 weeks into keto diet and I was up all night last night with headache. Already this evening my headache returned. I read this article and remembered that I haven’t had my Propel drink for 2 days (duh). I use the sugar free propel powder and add it to bottled water. Thanks for the obvious yet much needed reminder to stay on my sodium.

  17. I have been faithful for 9 days now and will not give up…with that being said I am waking in the EARLY morning hours because of a headache for 2 days… Yesterday I drank 100 oz of alkaline 88 water Himalayan mineral..and woke with a mild headache…but overall great article and I wont give up..down 6lbs

  18. just been 11 hours since I started keto today. and headaches and fatigue started within 8 hours. is it due to keto? I feel it’s very early to get into ketosis. I managed to keep carbs at 35 grams today though I aimed at 20.

    1. Side effects vary from person to person depending on their age, body type, activity level, and diet. You can avoid these side effects by drinking more water, increasing salt intake and making sure you’re eating enough fat.

  19. Do you have to take the supplements for weight loss? Also, can you take L-carnitine and not Q10 or do you need both to work? Thanks,Gina.

    1. Hey Gina, you do not have to take supplements for weight loss. Try using one or the other and see if that is enough to help, if it is not, you can try taking them together

  20. Headaches became 24/7 for me after about 2 months, had no idea about the keto headaches till now, lost 20 lbs, so going to try some of the suggestions here in order to deal with these terrible headaches.

  21. Been on keto diet for a month now. Last two weeks head aches have been bad all throughout the day and also feeling dizzy. Also taking exgroenous ketone powder drinks twice daily for the past 2 weeks that I have had the headaches. they have about 910g of sodium in each drink. I think i’m getting enough salt in, but I don’t understand. I guess i could be drinking more water. Also trying to get the high fat in is also challenging. Any suggestions are greatly appreciated!

    1. Hi Jessica, try drinking more water and replenishing your electrolytes. Exogenous ketones may also provide your brain with extra energy. If dizziness and headache persist, it is recommended to consult your doctor.

  22. I am on my 3rd day of Keto now and am suffering from brain fog and headache. hoping it will subside soon

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Join the Internet's largest keto newsletter

We'll send you articles, product guides, and exclusive offers customized to your goals.