KetoBunny

Keto flu: why it happens and the electrolyte fix

Keto flu is mostly fluid and electrolyte loss as insulin drops. Here's why it happens, how long it lasts, the sodium, potassium and magnesium fix, and red flags.

By the KetoBunny teamUpdated October 27, 20268 min read
Bunny
The short version
  • Keto flu is a cluster of temporary symptoms (headache, fatigue, nausea, dizziness, brain fog) that usually shows up in the first week or two of keto. It is not an infection.
  • A big driver is that lower insulin makes your kidneys shed more sodium and water, and potassium and magnesium go with them.
  • The fix is usually salt and fluids first, then potassium-rich low-carb foods, then magnesium. Broth and salting your food do most of the work.
  • Avoid sugary sports drinks and check electrolyte powders for dextrose or maltodextrin.
  • If you take blood pressure, diuretic or diabetes medication (especially SGLT2 inhibitors), or have heart or kidney disease, talk to your doctor before adding salt or starting keto.

Keto flu is a group of temporary, flu-like symptoms (headache, fatigue, nausea, dizziness, brain fog, cramps and irritability) that many people get in the first days to weeks of a ketogenic diet. It is not an infection. A major cause is that when carbs and insulin drop, your kidneys excrete more sodium and water, and potassium and magnesium follow. For most healthy people, the fix is more salt and fluid, plus potassium- and magnesium-rich low-carb foods. If you have heart or kidney disease or take blood pressure or diabetes medication, check with your doctor first.

What keto flu feels like, and when

Cleveland Clinic dietitian Beth Czerwony describes keto flu as symptoms that appear "anywhere from two to seven days" after someone is in ketosis, usually lasting one to two weeks, though anywhere from two days to a month is possible (Cleveland Clinic).

The best look at what people actually report comes from a 2020 analysis of 448 posts by 300 users across 43 online forums (Bostock et al., Frontiers in Nutrition). Among the 101 users who described keto flu symptoms:

  • "Flu" or flu-like feelings: about 45%
  • Headache: about 25%
  • Fatigue: about 18%
  • Nausea: about 16%
  • Dizziness: about 15%
  • Brain fog and stomach discomfort: about 11% each

Reports peaked in the first week and dwindled after four weeks. That fits what clinicians see: annoying, usually short, and mostly preventable.

Why it happens: you are peeing out your electrolytes

Three things happen in the first days of keto, and together they explain most of the misery.

1. Glycogen and its water leave. Stored carbohydrate (glycogen) is held with water, so as you burn through it, the water goes too. That is the quick early drop on the scale.

2. Lower insulin means your kidneys dump sodium. Insulin helps the kidneys hold on to sodium. Researchers have long known that fasting causes a burst of sodium loss (natriuresis), and that a carbohydrate-free diet with normal calories produces a similar effect, suggesting low glucose availability, not just low calories, drives it (Heyman et al., Frontiers in Endocrinology).

3. Other minerals follow. A 2026 review of keto side effects notes that during keto adaptation urinary water excretion increases and the body loses more sodium, potassium and magnesium (Dyńka et al., Annals of Medicine).

Low sodium and fluid can leave you lightheaded, headachy and tired, especially when you stand up quickly or exercise. Add the brain's adjustment from glucose to ketones, plus the stress of giving up familiar foods, and you have "keto flu".

Watch out: "Eat clean, cut salt" is the wrong instinct in week one of keto. Ditching bread, crackers, chips and processed food removes a lot of the sodium you were eating without knowing it, at the same time as your kidneys start excreting more. Your intake falls just as your losses rise.

The electrolyte fix, step by step

Step 1: sodium and fluids first

For most healthy adults this is the single most effective change.

  • Salt your food to taste. One teaspoon of table salt is about 2,325 mg of sodium (USDA FoodData Central).
  • Have a mug of broth or bouillon once or twice a day, especially when symptoms hit.
  • Drink to thirst, and a little more if your urine is dark.

How much sodium? This is where advice splits, and you should know both sides. The FDA's Daily Value for sodium for the general population is less than 2,300 mg a day (FDA). Virta Health, a ketogenic-diet clinic, in guidance authored by researcher Stephen Phinney and team, recommends 3,000 to 5,000 mg of sodium a day as part of a well-formulated ketogenic diet, 3,000 to 4,000 mg of potassium, and an initial 300 to 500 mg of magnesium (Virta Health). That is a clinic's recommendation for people under its care, not a public-health guideline.

A practical middle ground: if you are healthy and symptomatic, add one or two cups of salted broth a day and salt your food, then see how you feel. If you have high blood pressure, heart failure or kidney disease, do not raise sodium without your doctor.

Step 2: potassium from food

The NIH's adequate intake for potassium is 3,400 mg a day for adult men and 2,600 mg for adult women, values that do not apply to people with kidney disease or on medications that affect potassium (NIH ODS). Low-carb food can get you there; potassium pills are a job for your doctor, not a guess.

Step 3: magnesium if you get cramps

Muscle cramps, especially at night, are a common sign people need more magnesium. The adult RDA is 310 to 420 mg a day depending on age and sex. The upper limit for magnesium from supplements is 350 mg a day; more can cause diarrhea, nausea and cramping, and extremely high intakes are dangerous (NIH ODS). Food magnesium does not count toward that limit.

Bunny tip: Make a "keto flu kit" before day one: bouillon cubes or boxed broth, a bag of spinach, a few avocados and some pumpkin seeds. Most people only need it for a week or two, and having it ready stops a bad afternoon turning into a carb binge.

Low-carb foods that replace lost electrolytes

Values from USDA FoodData Central (SR Legacy). Net carbs are total carbs minus fiber.

Food Serving Net carbs Main electrolyte Verdict
Chicken bouillon cube, dry 1 cube (4 g) about 0.7 g about 955 mg sodium Keto
Beef broth, ready-to-serve 1 cup about 0.1 g about 890 mg sodium Keto
Dill pickle spear 1 small (35 g) about 0.5 g about 280 mg sodium Keto
Spinach, cooked 1 cup (180 g) about 2.4 g about 840 mg potassium, 157 mg magnesium Keto
Avocado (California) 1 fruit (136 g) about 2.5 g about 690 mg potassium, 39 mg magnesium Keto
Salmon, farmed, cooked 3 oz (85 g) 0 g about 330 mg potassium Keto
Pumpkin seed kernels 1 oz (28 g) about 1.3 g about 168 mg magnesium, 229 mg potassium Keto
White mushrooms, raw 1 cup sliced (70 g) about 1.6 g about 220 mg potassium Keto
Almonds 1 oz (28 g) about 2.6 g about 77 mg magnesium Keto
Coconut water, unsweetened 1 cup about 10.4 g about 400 mg potassium Careful

Coconut water is often sold as "nature's electrolyte drink", and it does carry potassium. But 10 g of carbs per cup is a big chunk of a 20 to 30 g daily limit, and it is low in sodium, the mineral you most need.

The negatives: what makes keto flu worse

Sugary sports drinks

Regular sports drinks are built for carb-fueled exercise. USDA data for ready-to-drink Gatorade show about 6.4 g of carbs per 100 g, or roughly 39 g in a 609 g (about 20-ounce) bottle, and only about 95 mg of sodium per 8 ounces. That is more carbs than a strict keto day allows and less sodium than one cup of broth. Zero-sugar versions avoid the carbs but are still fairly low in sodium.

Electrolyte powders with hidden sugar

Many powders and "hydration" tablets use dextrose, maltodextrin or cane sugar. Read the ingredient list, not just the front of the pack, and look at carbs per serving. See Keto-friendly labels: 9 marketing tricks.

Too much magnesium at once

Taking a large magnesium supplement dose to fix cramps fast often trades cramps for diarrhea, which loses more fluid and electrolytes. Stay at or under the 350 mg supplement limit unless your doctor says otherwise.

Going zero-carb overnight and training hard

Cleveland Clinic suggests easing carbs down rather than cutting them all at once, eating regularly with enough fat and protein, and taking it easy on intense exercise during the transition (Cleveland Clinic).

Not eating enough

Under-eating in the first week, because you are not sure what to eat, makes fatigue and irritability worse. Eat real meals.

Who should talk to a doctor first

Keto changes fluid balance fast, which can interact with medications.

  • Blood pressure medications and diuretics. Keto often lowers blood pressure, and the Annals of Medicine review notes that antihypertensive doses may need lowering (Dyńka et al.). Combined with fluid loss, that can mean dizziness or fainting.
  • SGLT2 inhibitors (such as empagliflozin, dapagliflozin or canagliflozin). The same review states that these drugs carry a risk of diabetic ketoacidosis when combined with a ketogenic diet, and that the American Society of Clinical Endocrinology suggests stopping them before starting keto. That decision is your prescriber's, not yours.
  • Insulin or sulfonylureas. Blood sugar can fall quickly; doses often need adjusting.
  • Heart failure or kidney disease. Sodium and potassium advice for you may be the opposite of the general keto advice above.
  • Pregnancy or breastfeeding, and anyone with a history of eating disorders.

Watch out: Keto flu should feel like a bad cold, not an emergency. Get medical help promptly for fainting, chest pain, a racing or irregular heartbeat, confusion, repeated vomiting, severe abdominal pain or rapid breathing. If you have type 1 diabetes or take an SGLT2 inhibitor, these can be signs of ketoacidosis, which can occur even when blood sugar looks normal.

Is it keto flu or something else?

Keto flu has a clear pattern: it starts within the first days to weeks of cutting carbs, improves with salt and fluid, and fades as you adapt. Symptoms that start months in, get worse over time, or come with fever are probably not keto flu, and are worth a call to your doctor. If you want to confirm you are actually in ketosis rather than guessing from symptoms, see How to know you're in ketosis; nutritional ketosis is commonly defined as 0.5 to 3.0 mmol/L blood beta-hydroxybutyrate.

Track it with KetoBunny: Keto flu often coincides with the week people are least sure what to eat. KetoBunny lets you photo-log meals to keep an eye on net carbs, and gives an estimate of whether you are likely in ketosis, so you can tell "I am adapting" apart from "I accidentally ate 60 g of carbs yesterday".

The short version

Keto flu is real, common and usually short. It is driven largely by fluid and electrolyte loss as insulin drops, so the fix is boring: salt your food, drink broth, eat greens, avocado and seeds, and go easy on exercise for a week. Skip sugary sports drinks, keep magnesium supplements modest, and if you take blood pressure, diuretic or diabetes medication, or have heart or kidney disease, make your doctor part of the plan before you start.

Bunny
Stop guessing what's on your plate.

Snap a meal and Bunny counts the net carbs and the hidden fat, then keeps an honest estimate of your ketosis.

Frequently asked

How long does keto flu last?

For most people, days to a couple of weeks. Cleveland Clinic says symptoms usually appear two to seven days in and last about one to two weeks, and an analysis of online reports found they peaked in the first week and faded after about four weeks.

What is the fastest way to get rid of keto flu?

For most healthy people, more sodium and fluid is the quickest lever, for example a mug of salted broth, along with potassium- and magnesium-rich low-carb foods. If you have blood pressure, heart or kidney issues, ask your doctor first.

Can I avoid keto flu completely?

Not always, but reducing carbs gradually, salting food, drinking enough fluid and eating plenty of leafy greens and avocado before symptoms start helps many people.

Does keto flu mean I am in ketosis?

Not necessarily. It suggests your body is adapting to low carbs, but the only direct check is measuring ketones; nutritional ketosis is commonly defined as 0.5 to 3.0 mmol/L blood beta-hydroxybutyrate.

Is Gatorade good for keto flu?

Regular Gatorade is a poor choice: USDA data show about 39 g of carbs in one bottle (609 g, roughly 20 ounces). A zero-sugar electrolyte drink or salted broth is a better fit.

Sources

  1. Keto Flu: Symptoms and How To Get Rid of It — Cleveland Clinic
  2. Consumer Reports of 'Keto Flu' Associated With the Ketogenic Diet — Frontiers in Nutrition
  3. Fasting-Induced Natriuresis and SGLT: A New Hypothesis for an Old Enigma — Frontiers in Endocrinology
  4. The ketogenic diet is not for everyone: contraindications, side effects, and drug interactions — Annals of Medicine / PMC
  5. How much sodium, potassium and magnesium should I have on a ketogenic diet? — Virta Health
  6. Sodium in Your Diet — US Food and Drug Administration
  7. Magnesium Fact Sheet — NIH Office of Dietary Supplements
  8. Potassium Fact Sheet for Health Professionals — NIH Office of Dietary Supplements
  9. FoodData Central (SR Legacy) — USDA FoodData Central

This article is general information, not medical advice. Talk to your doctor before starting keto if you take medication for diabetes or blood pressure, are pregnant or breastfeeding, or have kidney disease.

Keep reading