How to Handle the Keto Flu: A 7-Day Recovery Plan
The keto flu is the cluster of symptoms (fatigue, headache, brain fog, irritability, muscle cramps, dizziness) that hits 3 to 5 days into keto for most people. It's almost entirely an electrolyte issue, not a real flu, and it's preventable with the right preparation. The plan below covers prevention, treatment, and when to escalate to a doctor.
The 9 steps
Follow these in order — each step builds on the previous one.
- 1
Step 1 — Understand what's actually happening
When you cut carbs, insulin drops sharply. Insulin tells the kidneys to retain sodium. Lower insulin means kidneys flush sodium aggressively. With sodium go magnesium and potassium. The keto flu is electrolyte depletion, plain and simple. Understanding this matters: it tells you exactly how to prevent and reverse it.
- 2
Step 2 — Front-load sodium from day 1
Aim for 4,000 to 7,000 mg of sodium daily during the first 2 weeks (a teaspoon of salt is about 2,300 mg). Salt food aggressively, drink 1 to 2 cups of bone broth daily, or sip pickle juice (1 to 2 ounces gives about 500 mg sodium). Don't worry about the sodium guidelines for the standard diet. Those assume high-carb intake and high insulin. On keto, your sodium needs are 2 to 3x higher.
- 3
Step 3 — Add 300–400 mg magnesium glycinate before bed
Magnesium prevents leg cramps, sleep disruption, and lingering brain fog. Magnesium glycinate is the most absorbable form and doesn't cause GI distress (unlike magnesium citrate or oxide). Take it 30 minutes before bed. Many keto dieters notice deeper sleep within 2 to 3 days. 300 to 400 mg is the daily target.
- 4
Step 4 — Get 3,000–4,700 mg of potassium daily
Potassium is harder to supplement (most pills cap at 99 mg per FDA limits), so get it from food: avocado (about 975 mg per fruit), spinach (about 840 mg per cooked cup), salmon (about 535 mg per fillet), and mushrooms (about 420 mg per cooked cup). One avocado plus one cup of spinach plus salmon dinner equals about 2,350 mg, well over half your target.
- 5
Step 5 — Hydrate but don't overdo plain water
Drink to thirst, not to a specific number. Excessive plain water without electrolytes worsens the keto flu by further diluting the sodium you do have. The classic mistake is drinking a gallon of water daily without supplementing electrolytes. This makes symptoms worse, not better. If you're thirsty, add a pinch of salt to the water.
- 6
Step 6 — Day 3–5 expect peak symptoms
Days 3 to 5 are typically the worst. You may feel fatigued, foggy, headachy, or short-tempered. This is normal and predictable. It's not a sign that keto is bad for you or that you should quit. It's the predictable electrolyte adjustment. Cut down on intense exercise during these days. Sleep more if possible.
- 7
Step 7 — If you're already in it, do an electrolyte rescue
Mid-flu rescue protocol: 1 cup of bone broth plus 500 mg magnesium glycinate plus 1 large avocado plus a salty meal (steak with extra salt). Most people feel notably better within 30 to 60 minutes. If you're severely fatigued or dizzy, double the sodium for 24 hours and skip exercise. The body recovers quickly once electrolytes catch up.
- 8
Step 8 — Day 5–7: ride it out
By day 5 to 7 most people break through the flu and start feeling notably better than baseline. Mental clarity improves, hunger drops, energy stabilizes. If you're still flu-ish at day 10, electrolytes are likely still off. Check sodium intake and add more for another week. A small subset of people take 14 days to fully clear. That's still normal.
- 9
Step 9 — When to see a doctor
See a doctor immediately for: heart palpitations beyond mild post-stand-up dizziness, persistent vomiting, severe muscle weakness or cramping that doesn't respond to magnesium, severe confusion, or chest pain. These are signs of electrolyte imbalance severe enough to warrant medical evaluation. Especially urgent if you're on diabetes, blood pressure, or heart medication. Keto can affect dosing.
Frequently asked questions
Common questions about how to handle the keto flu.
How long does the keto flu last?
Three to seven days for most adults. Days 3 to 5 are typically the worst, with symptoms tapering through day 7. A small subset of people take 10 to 14 days to fully clear, usually because of inadequate electrolyte intake. Properly supplemented from day 1, many people feel little or no flu at all.
Can I prevent the keto flu entirely?
Mostly yes, with aggressive front-loaded electrolytes. Adults who start sodium at 5,000+ mg per day, magnesium at 300+ mg per day, and food-source potassium from day 1 often skip the flu entirely or feel only mild symptoms for 1 to 2 days. The flu is almost always a symptom of inadequate electrolyte preparation.
Is the keto flu the same as the actual flu?
No. Despite the name, the keto flu is an electrolyte adjustment, not a viral infection. Symptoms overlap (fatigue, headache, body aches), but there's no fever, no contagion, and no sore throat. If you have a fever or a productive cough alongside keto-flu symptoms, you have an actual viral illness. Not the keto flu. See a doctor.
Should I quit keto if the flu is bad?
Not unless symptoms are severe (vomiting, palpitations, severe confusion). For ordinary fatigue and headache, double down on electrolytes for 48 hours rather than quitting. Most people break through by day 7. Quitting on day 4 means doing the keto-flu adjustment again next time you try. Pushing through means it's done.
Can children, pregnant women, or older adults safely manage the keto flu?
These groups should consult a doctor before starting keto, not just for the keto flu but for keto generally. Children with epilepsy do supervised therapeutic keto under medical care. Pregnancy and nursing have specific protein and micronutrient needs that may not align with keto. Older adults may have electrolyte sensitivities or medications (diuretics, blood pressure drugs) that interact with keto's electrolyte shifts.
Related guides
How to Start Keto in 7 Days
The ketogenic diet sounds intimidating but boils down to a small number of high-leverage choices: keep carbohydrates under 20–50 grams a day, eat enough fat to stay satisfied, manage your electrolytes, and give your body 2–4 days to enter ketosis. This guide walks through the first seven days in order.
How to Test if You're in Ketosis
Ketosis is the metabolic state at the foundation of keto, but it's invisible. You can't tell from the scale or the mirror whether you're actually in it. The four ways to test (blood, breath, urine, subjective signs) vary in accuracy, cost, and convenience. The breakdown below compares them and tells you which to use when.
Last updated: 2026-04-30. This guide is a tracking and education resource, not medical advice. Consult a doctor before starting keto if you have a medical condition.