In this guide
If you started keto and immediately felt worse — headaches, muscle cramps, dizziness, fatigue that no amount of sleep fixes — before you conclude the diet "doesn't work for you," there's a very good chance the actual problem is electrolytes, not fat adaptation, ketosis, or anything specific to how your body processes a low-carb diet. This is one of the most common and most easily fixed mistakes new keto dieters make, and it stems from a genuine biochemical mechanism that most keto guides mention in passing without explaining properly.
Carbohydrate restriction triggers a direct hormonal cascade — via lower insulin levels — that causes the kidneys to excrete significantly more sodium and water than usual. This is why keto dieters typically need 3,000–5,000mg of sodium daily — considerably more than general population guidelines — alongside deliberately higher potassium and magnesium intake, to avoid the cluster of symptoms known as "keto flu."
This guide explains the actual mechanism behind why keto changes your electrolyte needs, and gives you specific, practical targets rather than vague "drink more water and add salt" advice.
Why Keto Specifically Drains Your Electrolytes
This isn't a random side effect — it's a direct, well-understood consequence of how carbohydrate restriction changes kidney function. Understanding the actual mechanism is what allows you to address it precisely, rather than guessing at "drink more electrolytes" without knowing why or how much.
The Insulin-Sodium Connection Nobody Explains Clearly
Insulin has a direct effect on the kidneys that most people never learn about: it signals the kidneys to retain sodium. When carbohydrate intake drops sharply on a ketogenic diet, insulin levels drop correspondingly — and with less insulin signalling sodium retention, the kidneys excrete considerably more sodium into urine than they would on a higher-carb diet. Water follows sodium out of the body along with it, which is also why the dramatic early water-weight loss on keto happens so quickly.
This means your sodium needs on keto aren't just "a bit higher" as a general precaution — they're mechanistically elevated by the diet itself, through a specific, well-documented hormonal pathway. Ignoring this and eating "normal" amounts of sodium on keto essentially guarantees a deficit.
Sodium — How Much You Actually Need on Keto
| Population | General Guideline | Keto-Adjusted Target |
|---|---|---|
| General population (non-keto) | ~2,300mg/day (upper limit) | N/A |
| Keto dieters, sedentary | N/A | 3,000–4,000mg/day |
| Keto dieters, physically active or heavy sweaters | N/A | 4,000–5,000mg/day |
This is one of the rare, well-documented situations in nutrition where standard population-level sodium guidance genuinely doesn't apply — the mechanism driving the recommendation (insulin's effect on renal sodium handling) is specifically altered by the diet, justifying a meaningfully higher target for this population specifically.
Potassium and Magnesium — The Two Most Commonly Missed
Sodium gets the most attention, but potassium and magnesium losses compound the same underlying mechanism and are frequently under-addressed even by people who've already increased their salt intake.
| Electrolyte | Keto Target | Best Food Sources |
|---|---|---|
| Sodium | 3,000–5,000mg/day | Salted broth, added salt to meals, olives, pickled vegetables |
| Potassium | 3,000–4,700mg/day | Avocado, leafy greens, salmon, mushrooms |
| Magnesium | 300–500mg/day | Nuts, seeds, leafy greens, dark chocolate (unsweetened) |
Many of keto's most commonly restricted foods — fruit, whole grains, legumes — happen to be significant sources of potassium and magnesium in a typical diet, which is part of why these two minerals in particular require deliberate attention rather than assuming they'll be adequately covered incidentally.
The Keto Flu — Almost Entirely an Electrolyte Problem
The cluster of symptoms known as "keto flu" — fatigue, headache, brain fog, irritability, muscle cramps, typically appearing in the first 3–7 days of carbohydrate restriction — is now understood to result predominantly from this rapid electrolyte and water loss, not from some mysterious "adjustment" process the body needs to endure. This matters practically because it means keto flu isn't something you simply have to tough out — it's a specific, addressable deficiency, and most cases resolve within days once sodium, potassium, and magnesium intake are deliberately corrected rather than left to chance.
Getting Electrolytes From Food vs. Supplements
Whole-food sources are generally preferable where practical — salted bone broth, olives, and avocado provide electrolytes alongside other nutritional benefits that isolated supplements don't. That said, hitting 3,000-5,000mg of sodium specifically from whole foods alone can be genuinely difficult without deliberately salting food more heavily than habit typically allows, which is where a dedicated electrolyte supplement (a simple sodium-potassium-magnesium blend, without added sugar) becomes a practical, reasonable tool rather than a necessity to avoid.
Who Should Approach High Sodium Intake With More Caution
The elevated sodium recommendations in this guide apply to the general healthy population starting a ketogenic diet. People with hypertension, kidney disease, heart failure, or anyone on medications affecting fluid or electrolyte balance (including certain blood pressure medications and diuretics) should discuss keto-specific electrolyte needs directly with their physician before adopting these higher targets, since the standard reasoning here assumes normal kidney and cardiovascular function.
Frequently Asked Questions
Why do I feel terrible in the first week of keto?
This is almost always "keto flu" — a cluster of symptoms driven predominantly by rapid sodium, potassium, and water loss caused by lower insulin levels changing how your kidneys handle sodium. Deliberately increasing intake of all three electrolytes typically resolves symptoms within a few days.
How much salt should I add to my food on keto?
Most keto dieters need roughly 3,000-5,000mg of sodium daily, considerably more than standard population guidelines of around 2,300mg. This typically requires actively salting food, drinking salted broth, or using an electrolyte supplement, since incidental sodium intake on a whole-foods keto diet is often lower than on a typical processed-food-containing diet.
Is it dangerous to eat that much sodium on keto?
For healthy individuals without hypertension, kidney disease, or heart conditions, the elevated sodium recommendation reflects a genuine physiological need created by lower insulin levels on a low-carb diet, not an arbitrary high number. People with cardiovascular or kidney conditions should discuss their specific targets with a physician rather than following general keto guidance.
What are the best food sources of potassium on keto?
Avocado, leafy greens (spinach, kale), salmon, and mushrooms are among the most keto-friendly potassium sources, since many typical high-potassium foods (bananas, potatoes, legumes) are also high in carbohydrates and don't fit well within a ketogenic diet.
Do I need an electrolyte supplement on keto, or can food alone cover it?
Food alone can cover electrolyte needs on keto, but reaching 3,000-5,000mg of sodium specifically from whole foods without deliberately over-salting meals is genuinely difficult for most people. A simple, sugar-free electrolyte supplement is a practical tool many keto dieters find easier than tracking food-based sodium precisely.
How long does keto flu typically last?
With adequate electrolyte correction, most keto flu symptoms resolve within 3-7 days. Symptoms persisting longer than a week despite deliberately increased sodium, potassium, and magnesium intake may warrant reassessing overall hydration and total electrolyte intake, or consulting a healthcare provider if symptoms are severe.
References & Sources
- DeFronzo, R. A. (1981). The effect of insulin on renal sodium metabolism. Diabetologia, 21(3), 165–171.
- Bostock, E. C. S. et al. (2020). Consumer reports of "keto flu" associated with the ketogenic diet. Frontiers in Nutrition, 7, 20.
- Volek, J. S. & Phinney, S. D. (2011). The Art and Science of Low Carbohydrate Living. Beyond Obesity LLC.
- Institute of Medicine (2005). Dietary Reference Intakes for Water, Potassium, Sodium, Chloride, and Sulfate. National Academies Press.
- MacrosMeasure (2025). Free Water Intake Calculator.
Calculate your own numbers — free.
18 science-backed calculators covering everything in this article and more.
