Electrolyte Guide
Keto Electrolytes: How to Avoid the Keto Flu in 2026
Keto flu is not a mandatory rite of passage. It is an electrolyte deficiency caused by the metabolic shift into ketosis — and it is almost entirely preventable with the right sodium, potassium, and magnesium strategy from day one.
Last updated: April 2026
Why Keto Depletes Electrolytes
The ketogenic diet triggers a fundamental shift in how your kidneys handle electrolytes. When carbohydrate intake drops below 50g per day, insulin levels decline significantly. Insulin has a direct effect on the kidneys: it signals the renal tubules to retain sodium. Lower insulin means less sodium retention — and you begin excreting sodium at a much higher rate.
This process, called insulin-mediated natriuresis, accounts for the rapid water weight loss in the first week of keto. For every gram of glycogen your body depletes, you lose 3–4 grams of water — and the electrolytes dissolved in that water go with it. The result: within 3–7 days of starting keto, you can lose significant amounts of sodium, potassium, and magnesium.
The body attempts to compensate. When sodium drops, aldosterone increases to conserve sodium at the expense of excreting potassium. Magnesium follows a similar depletion curve. The net effect is a triple electrolyte deficit that produces the constellation of symptoms known as keto flu.
The Three Critical Electrolytes
Sodium: The Master Electrolyte on Keto
Sodium is the electrolyte most aggressively depleted on keto and the primary cause of keto flu symptoms. Headaches, fatigue, dizziness, and brain fog are almost always sodium-related. The standard dietary advice to limit sodium (2,300 mg/day) does not apply to ketogenic dieters — you need roughly double that amount.
Volek and Phinney, in their landmark work The Art and Science of Low Carbohydrate Living, recommend 3,000–5,000 mg of sodium per day for keto-adapted individuals. Athletes and those in hot climates may need even more.
Potassium: The Muscle and Heart Electrolyte
Potassium is critical for muscle contraction, nerve signaling, and cardiac rhythm. Deficiency manifests as muscle cramps, weakness, heart palpitations, and fatigue. The adequate intake is 3,500–4,700 mg per day. Many keto dieters fall short because potassium-rich foods (bananas, potatoes, beans) are high in carbs.
Keto-friendly potassium sources exist but require deliberate inclusion: avocados (975 mg each), spinach (839 mg per cup cooked), salmon (534 mg per fillet), mushrooms (428 mg per cup), and zucchini (512 mg per cup).
Magnesium: The Sleep and Recovery Electrolyte
Magnesium deficiency is already prevalent in the general population (50–60% of Americans do not meet the RDA), and keto exacerbates it. Magnesium is essential for over 300 enzymatic reactions, including energy production, protein synthesis, and nervous system regulation. On keto, magnesium deficiency presents as poor sleep, muscle cramps (especially at night), anxiety, and constipation.
Target: 300–400 mg per day. Keto-friendly sources include almonds (80 mg per oz), dark chocolate (85%+ cacao: 65 mg per oz), spinach (157 mg per cup cooked), and pumpkin seeds (156 mg per oz).
Daily Electrolyte Targets for Keto
| Electrolyte | Standard Diet | Keto Target | Why Higher on Keto |
|---|---|---|---|
| Sodium | 2,300 mg | 3,000–5,000 mg | Insulin-mediated natriuresis increases excretion |
| Potassium | 2,600–3,400 mg | 3,500–4,700 mg | Aldosterone compensates for sodium loss by excreting K+ |
| Magnesium | 310–420 mg | 300–400 mg | Baseline deficiency + increased excretion on keto |
Best Keto-Friendly Electrolyte Food Sources
| Food | Sodium | Potassium | Magnesium | Net Carbs |
|---|---|---|---|---|
| Bone broth (1 cup) | 800–1,000 mg | 200 mg | 10 mg | 0g |
| Avocado (1 whole) | 14 mg | 975 mg | 58 mg | 3.7g |
| Spinach (1 cup cooked) | 126 mg | 839 mg | 157 mg | 1.4g |
| Salmon fillet (6 oz) | 86 mg | 534 mg | 53 mg | 0g |
| Almonds (1 oz) | 0 mg | 208 mg | 80 mg | 2.7g |
| Pumpkin seeds (1 oz) | 5 mg | 261 mg | 156 mg | 1.3g |
| Pickle juice (1/4 cup) | 500–700 mg | 25 mg | 4 mg | 0g |
Supplement Recommendations
Even with deliberate food choices, most keto dieters benefit from some supplementation — especially for sodium and magnesium, which are difficult to meet from food alone.
DIY Keto Electrolyte Drink
A simple, cost-effective option:
- 1/4 teaspoon salt (sodium chloride) — ~590 mg sodium
- 1/4 teaspoon NoSalt (potassium chloride) — ~650 mg potassium
- 1 tablespoon Natural Calm (magnesium citrate) — ~325 mg magnesium
- Juice of 1/2 lemon + stevia or monk fruit to taste
- Mix in 16–24 oz water. Sip throughout the morning.
Supplement Forms That Matter
- Magnesium glycinate: Best for sleep and muscle relaxation. Well absorbed, minimal GI side effects. Take 200–400 mg before bed.
- Magnesium citrate: Good absorption. Can have mild laxative effect — useful if keto is causing constipation.
- Magnesium oxide: Poorly absorbed (4% bioavailability). Avoid despite being the cheapest form.
- Potassium citrate: Well absorbed. Keep individual doses under 100 mg for safety; spread throughout the day.
Tracking Electrolytes with Precision
The challenge with electrolyte management on keto is that most nutrition trackers only show macros — fat, protein, carbs, and calories. Electrolytes are micronutrients, and most popular tracking apps either do not track them or have incomplete data.
PlateLens tracks 82+ micronutrients from a single photo, including sodium, potassium, magnesium, calcium, zinc, and iron. This means you can photograph your keto meals throughout the day and see exactly how much of each electrolyte you have consumed — identifying gaps before symptoms appear rather than after.
This is particularly valuable during the first 2 weeks of keto when electrolyte needs are highest and most people are still learning which foods contribute meaningfully to their electrolyte targets.
Recommended by Kim
Track all 82+ micronutrients — including electrolytes
Most keto trackers only show macros and net carbs. PlateLens tracks sodium, potassium, magnesium, and 79 other micronutrients from a single photo. Know your electrolyte intake before keto flu symptoms appear.
Free to download · ±1.2% accuracy · 82+ nutrients tracked · No credit card required
Week-by-Week Electrolyte Strategy
Week 1–2: The Critical Window
This is when electrolyte depletion is most aggressive. Front-load your electrolyte strategy: start the DIY electrolyte drink from day 1, salt all food generously, include 1 cup bone broth daily, and eat at least 1 avocado per day. If headaches or fatigue appear, increase sodium immediately (an extra 1/4 tsp salt in water usually resolves symptoms within 30 minutes).
Week 3–4: Stabilization
As your body adapts to ketosis, electrolyte excretion stabilizes somewhat. You may be able to reduce supplementation slightly, but food-based electrolyte sources should remain consistent. Continue tracking to ensure you are meeting minimums.
Week 5+: Maintenance
By now, your body has largely adapted. Electrolyte needs remain higher than a standard diet, but the acute depletion phase is over. Maintain a baseline electrolyte intake through food sources and supplement as needed — especially around exercise, hot weather, or alcohol consumption (all of which increase electrolyte losses).