Three days into keto. Eggs, bacon, salad, nothing else. Your head is pounding, your legs feel like wet cement, and you just snapped at your coworker over something you can’t even remember. You probably have keto flu, and as miserable as it feels, it’s actually a sign that something real is happening inside your body.

What the Keto Flu Actually Is (and Why It Happens)

The keto flu isn’t an illness. No virus, no bacteria, nothing contagious. It’s a cluster of symptoms that appear when your body switches from burning glucose to burning fat for fuel, a metabolic shift called ketosis.

Here’s the mechanics. Your body stores carbohydrates as glycogen in your muscles and liver. For every gram of glycogen, you’re holding roughly 3 grams of water. Cut carbs and you’ll burn through those glycogen stores in 24 to 48 hours. All that water leaves through your kidneys. Along with it go three critical electrolytes: sodium, potassium, and magnesium.

These aren’t just numbers on a lab report. They regulate nerve signaling, muscle contraction, cellular hydration, and your mood. Lose enough of them fast enough, and you feel it everywhere.

There’s a hormonal component too. Lower carb intake tanks your insulin levels significantly (which is kind of the point). But insulin also tells your kidneys to hang onto sodium. Less insulin means more sodium gets flushed out. More sodium out, more water out, more electrolytes dragged along. The result is what feels like the worst cold you’ve ever had, except it lasts 3 to 10 days while your body figures out its new fuel source.

The Most Common Symptoms (and the Less Obvious Ones)

Everyone knows about the headache and fatigue. But the full picture is broader.

The classics:

  • Headache, usually a dull pressure behind the eyes or across the forehead
  • Fatigue and low energy, especially during exercise
  • Brain fog, that frustrating inability to think clearly or find the word you need
  • Irritability (your family will notice this before you do)
  • Muscle cramps and weakness, particularly in the calves at night
  • Nausea, especially in the first 48 to 72 hours
  • Dizziness when standing up quickly (orthostatic hypotension from low sodium)

The ones that catch people off guard:

  • Heart palpitations. This one scares people, understandably. Low sodium and magnesium can make your heart feel fluttery or like it’s skipping beats. In a healthy person this typically resolves once you restore electrolytes, but if you have a heart condition or the palpitations are severe, talk to a doctor before continuing.
  • Constipation or diarrhea. The gut microbiome doesn’t love sudden dietary overhauls. Both extremes happen.
  • Difficulty sleeping despite being exhausted. Magnesium deficiency is usually the culprit.
  • Sugar cravings intense enough to feel physical. Your brain ran on glucose your entire life. It’s annoyed.

I’ve worked with clients who genuinely thought they had food poisoning. Some quit keto during that window, assuming the diet was making them sick rather than just uncomfortable. The turning point for most of them was understanding that these symptoms are temporary and mechanical, not a sign that keto is wrong for you. That shift in perspective is half the battle.

How Long Does Keto Flu Last?

It varies a lot. But it’s almost always shorter than people fear.

For most people, the worst symptoms peak around days 2 through 4 and begin fading by day 7. By week two, most people feel significantly better. Some report energy levels that exceed their pre-keto baseline once they’re fully fat-adapted.

A smaller group, maybe 20 to 30 percent from what I see, has a rougher experience. Symptoms linger for two weeks or more. This usually happens when they’re not replacing electrolytes, not eating enough fat (a common beginner mistake), or have metabolic factors like insulin resistance that slow the transition.

Full fat adaptation, where your body runs efficiently on fat and ketones without residual sluggishness, takes 4 to 12 weeks. The keto flu is just the acute opening phase.

Age, fitness level, how high-carb your previous diet was, and your individual biochemistry all influence how hard keto flu hits you and how long it sticks.

How to Treat Keto Flu: A Step-by-Step Approach

ElectrolyteDaily Target on KetoGood Keto SourcesNotes
Sodium3,000-5,000 mgBroth (800-1,000 mg/cup), salted foods, salt in waterHigher than standard guidelines due to elevated excretion
Potassium3,000-4,000 mgAvocados (~700 mg each), leafy greens, salmonAvoid high-dose supplements without medical supervision
Magnesium300-500 mgMagnesium glycinate or magnesium malate forms preferredBetter absorption; magnesium oxide may cause digestive issues

You don’t have to just wait it out. Most of the misery is directly addressable. Here’s what I recommend to clients, in priority order.

Step 1: Fix your electrolytes immediately.

This is the single most impactful thing you can do. Don’t wait until you feel bad, start the day you begin keto.

  • Sodium: Aim for 3,000 to 5,000 mg daily on keto. That sounds high compared to standard guidelines, but you’re excreting it at an elevated rate. Salt your food aggressively, drink broth (a cup of chicken or beef broth contains 800 to 1,000 mg), or add a pinch of salt to your water.
  • Potassium: Target 3,000 to 4,000 mg daily. Avocados (about 700 mg each), leafy greens, and salmon are excellent keto-compatible sources. Don’t supplement potassium in high doses without medical supervision since too much can cause its own cardiac problems.
  • Magnesium: 300 to 500 mg daily, ideally as magnesium glycinate or magnesium malate. These forms absorb better and are less likely to cause the digestive distress that magnesium oxide is known for. If you’re waking up with leg cramps, magnesium is usually the missing piece.

A dedicated electrolyte supplement helps. LMNT is popular in the keto community because it’s high in sodium and free of sugar, though any electrolyte product without added sugar or maltodextrin works. (This site may earn a commission on qualifying purchases.)

Step 2: Eat enough fat.

Keto flu gets worse when people cut carbs but under-eat fat. Your body needs a fuel source. If it’s not getting glucose and it’s not getting dietary fat, it’s just starving. Aim for fat to make up 65 to 75 percent of your calories. That means butter on your vegetables, full-fat dairy if you tolerate it, olive oil on everything, and fatty cuts of meat over lean ones.

MCT oil is useful during the transition because it converts to ketones faster than long-chain fats, giving your brain quick access to its new fuel source. Start with a teaspoon and work up slowly, too much too soon causes digestive distress. (This site may earn a commission on qualifying purchases.)

Step 3: Stay hydrated, but not with plain water.

Counterintuitively, drinking more plain water can dilute your sodium further and worsen symptoms. Hydrate with water that has sodium in it. Add salt, drink broth, or use an electrolyte mix.

Step 4: Don’t exercise hard during the acute phase.

I know this is hard to hear if you started keto as part of a fitness plan. High-intensity training during days 2 through 5 will deepen your symptoms and drain electrolytes faster. Light walking is fine. Save the lifting and sprinting for week two.

Step 5: Sleep more than you think you need to.

Metabolic transitions are physiologically demanding. If you can get 8 to 9 hours during the first week, do it. Take a nap. Your body is doing real work.

Keto Flu vs. Carb Withdrawal vs. Feeling Sick: A Quick Comparison

Three different things can happen in the early days of keto, and people often mix them up. Here’s how to tell them apart.

ConditionTimingKey FeaturesWhat Helps
Keto FluDays 1 to 10Headache, fatigue, muscle cramps, brain fogElectrolytes, fat intake, hydration, rest
Carb/Sugar WithdrawalDays 1 to 5Intense cravings, mood swings, anxiety, irritabilityTime, adequate calories, protein at meals
Actual IllnessAny timeFever above 100.4°F, sore throat, congestion, body aches unrelated to exerciseRest, fluids, see a doctor if needed

The overlap is confusing. Carb withdrawal is real, research shows that sugar activates reward pathways in certain populations similarly to addictive substances. But it’s emotionally driven where keto flu is more physical. You can have both simultaneously.

If you have a fever, that’s not keto flu. See a doctor.

What Doesn’t Actually Help (Common Mistakes)

Sources

  • LMNT
  • MCT oil
  • Gustavo Fring
  • energy levels that exceed their pre-keto baseline once they’re fully fat-adapted
  • shows that sugar activates reward pathways in certain populations similarly to a

Chasing ketone levels obsessively. I see this constantly. People buy blood ketone meters or strips and spiral into anxiety when numbers don’t look “right.” During the transition, your body’s ability to use ketones efficiently is still developing. High ketone readings don’t guarantee you feel good, and lower readings don’t mean you’re failing.

Adding “keto flu cures” that are basically caffeine. Several products marketed for keto energy are stimulants. They’ll temporarily mask fatigue while your nervous system is already stressed. Not helpful.

Quitting and restarting repeatedly. Every time you drop out of ketosis and restart, you go through keto flu again. If you’re going to try keto, commit to at least two weeks before deciding whether it works for you.

Eating too little protein. Some people get so fat-focused that they eat inadequate protein. On keto, 0.7 to 1.0 grams of protein per pound of lean body mass is a solid target. Protein supports muscle retention and keeps you satiated in ways pure fat does not.

The first ten days of keto are genuinely the hardest part. Not because the diet is hard to follow, but because your body is performing a real biochemical overhaul, and that process has costs. Get your electrolytes dialed in. Eat enough fat. Rest more than feels necessary. Give it the full two weeks before deciding whether this way of eating works for you. Most people I’ve coached who pushed through that early rough patch were glad they did.

Photo: Gustavo Fring via Pexels