A keto headache feels like a dull, pressing pain across the forehead or the back of the head. It often comes with fatigue, brain fog, and light sensitivity. The cause is usually the body’s adjustment to very low carbohydrate intake, and it typically eases within a few days once you address fluids and electrolytes.
Most people describe it as different from a migraine or a tension headache they get normally. It tends to build slowly in the first few days of cutting carbs. It is not a sign that something is wrong with your brain. It is a sign that your body’s fluid and electrolyte balance has shifted.
What Does a Keto Headache Actually Feel Like?
The pain is usually mild to moderate and steady rather than throbbing. People commonly report it behind the eyes, across the forehead, or wrapping around the back of the skull. It is the kind of headache that makes you want to lie down in a dark room but does not usually stop you from functioning entirely.
What separates it from other headaches is the company it keeps. A keto headache rarely shows up alone. It arrives with a cluster of other symptoms that together point to the same underlying cause:
- Fatigue and low energy that sleep does not fix
- Difficulty concentrating or a mental fog
- Lightheadedness, especially when standing up quickly
- Irritability or a short temper
- Muscle cramps or twitching
- Constipation
- Bad breath with a fruity or nail-polish smell
That last one is worth explaining. When the body burns fat for fuel instead of glucose, it produces compounds called ketones. One of them, acetone, is exhaled through the breath. This is a normal part of nutritional ketosis, not a warning sign.
The combination of headache, fatigue, and brain fog in the first week of a low-carb diet is often called the “keto flu.” It is not a flu and there is no virus involved. It is a collection of adjustment symptoms, and the headache is usually the most noticeable one.
Why Does Cutting Carbs Cause a Headache?
The main driver is water and electrolyte loss. This is well established physiology, not speculation.
Carbohydrate is stored in the body as glycogen, and each gram of glycogen holds onto roughly three to four grams of water. When you cut carbs sharply, you burn through glycogen stores and release that water. You urinate more. Along with the water, you lose sodium, potassium, and magnesium. The body’s fluid balance shifts, blood volume drops slightly, and the result is a headache along with fatigue and dizziness.
Insulin plays a role too. Lower carb intake means lower insulin levels. Insulin normally signals the kidneys to hold onto sodium. When insulin falls, the kidneys excrete more sodium, and water follows the sodium out.
There is a second factor that gets less attention. The brain runs largely on glucose under normal conditions. During the transition to ketones, it takes time for the brain to adapt its fuel use. Some researchers think this transitional period contributes to the foggy, headachy feeling. The evidence for this specific mechanism in humans is not fully settled, but the timing lines up with what people report.
What is not in question is the fluid and electrolyte piece. That part is well understood and it is also the part you can do something about.
How Long Does a Keto Headache Last?
For most people, it lasts a few days. Symptoms usually show up within the first two to four days of cutting carbs and ease within about a week as the body adjusts.
Some people get through it in 24 to 48 hours. Others take longer, especially if they are also cutting calories hard, exercising a lot, or starting from a high-carb diet. If the headache is still going strong after two weeks, the diet itself may not be the whole story. Look at hydration, electrolyte intake, sleep, and whether you have cut back on caffeine at the same time.
One thing worth saying plainly: a headache that is severe, sudden, or comes with confusion, weakness on one side, fever, or a stiff neck is not a keto headache. Those are reasons to seek medical care right away.
How Do You Stop a Keto Headache?
The first lever is sodium. When you cut carbs, your body dumps sodium, and replacing it is the single most effective step for most people. This is why some clinicians recommend adding salt to food or drinking a simple salt-and-water mix during the transition. How much sodium a person needs varies with sweat loss, activity, and how low-carb they go, so there is no single number that fits everyone.
The second lever is water. Drink to thirst and then a bit more during the first week. Plain water alone can actually make things worse if you are not also replacing electrolytes, because it dilutes what sodium you have left.
Potassium and magnesium matter too. Food sources are the safest route. Potassium is found in leafy greens, avocados, and salmon. Magnesium is found in nuts, seeds, and leafy greens. Magnesium supplements are widely sold, but they can cause digestive upset and can interact with some medications, so it is worth checking with a clinician before adding one.
Other steps that help:
- Ease into the diet rather than cutting carbs to near zero overnight
- Do not cut calories and carbs at the same time in the first week
- Keep caffeine steady rather than quitting it cold at the same time
- Get enough sleep, since poor sleep lowers the headache threshold
- Consider pausing intense workouts for a few days
Over-the-counter pain relievers can take the edge off. They treat the symptom, not the cause. They are also not a fix you want to lean on daily for more than a short stretch without medical advice.
What If the Headache Does Not Go Away?
A headache that persists past the adjustment window deserves a closer look. The most common reasons are ongoing under-replacement of sodium and fluids, or a diet that is too aggressive too fast.
There are also reasons unrelated to the diet. Dehydration from illness, poor sleep, caffeine withdrawal, alcohol, and skipped meals can all produce the same feeling. So can tension headaches and migraines that would have happened anyway.
If the headache is new, severe, or different from anything you have had before, that is a medical question, not a diet question. See a clinician. The same goes if you take blood pressure medication, diuretics, or diabetes medication, since electrolyte shifts and blood sugar changes can interact with those drugs in ways that need medical supervision.
Is a Keto Headache a Sign the Diet Is Working?
No. It is a sign your body is adjusting, not proof that fat-burning has kicked in. People who never get a headache still reach nutritional ketosis, and people who get a bad one are not doing anything better.
It is also worth separating the headache from the diet’s long-term effects. The headache is a short-term adjustment symptom. Whether a ketogenic diet is a good fit for you over months or years is a separate question with its own evidence, and that evidence is mixed depending on the outcome being measured. A headache in week one tells you nothing about that.
Frequently Asked Questions
What does a keto headache feel like?
It feels like a dull, steady pressure across the forehead or back of the head, usually with fatigue and brain fog. It is generally mild to moderate rather than throbbing.
How long does a keto headache last?
Most people get through it in a few days, and it usually eases within about a week. If it lasts longer than two weeks, look at hydration, electrolytes, and other causes.
How do you get rid of a keto headache fast?
Replacing sodium and drinking enough fluid is the fastest route for most people. Adding potassium and magnesium from food sources helps, and easing into the diet more slowly prevents it in the first place.
Is a keto headache dangerous?
A typical adjustment headache is not dangerous and resolves on its own. A sudden severe headache, or one with confusion, weakness, fever, or a stiff neck, needs medical care right away.

