Electrolyte Balance on Keto: How Much Sodium, Potassium, Magnesium?
The dizziness, leg cramps, heart-fluttering feeling and "brain fog" that show up a few days into keto usually aren't about carbs at all — they're about electrolyte loss. The mechanism is simple: cutting carbs lowers the amount of water your body holds onto, and sodium, potassium and magnesium get flushed out faster along with it. The fix is usually less complicated than people expect — the right amount of salt, some greens, and a few practical habits resolve most cases within 2-3 days.
Why Does Electrolyte Loss Happen?
When carb intake drops, so does blood insulin. Insulin is one of the signals that tells your kidneys to hold onto sodium, so when it drops, the kidneys let go of more sodium and excrete it through urine. This is often called "keto diuresis." Water leaves the body along with that sodium, and as the water goes, potassium and magnesium go with it. This loss is most pronounced in the first 1-2 weeks and eases up once your body settles into a new equilibrium.
How Much Sodium, Potassium, Magnesium Do You Need?
There's no single number that fits everyone — bodyweight, sweat rate, activity level and existing health conditions all shift the target. But for someone with normal kidney function and no blood pressure or heart condition, the practical starting points commonly used in the keto community look like this:
- Sodium: an extra 3-5 grams of salt per day (roughly 1-2 teaspoons) — noticeably above the standard "eat less salt" advice, because keto's kidneys are already excreting more of it
- Potassium: 1000-3500 mg per day, ideally from food — avocado, spinach, asparagus, and mushrooms are good sources
- Magnesium: 300-400 mg per day — almonds, pumpkin seeds, dark leafy greens, or a magnesium glycinate/citrate supplement if needed
These are starting reference points, not a prescription. If cramps, dizziness or palpitations persist, don't just push the dose higher yourself — talk to your doctor.
Food or Supplements?
Getting electrolytes from food is generally safer, because food naturally limits how much you can overdo it, while pills and powders don't. The easiest practical approach: salt your food freely, eat at least one avocado or a serving of leafy greens daily, and keep almonds or pumpkin seeds around for snacking. That trio covers most people without any extra supplementation. If you sweat heavily (exercise, hot climate) or symptoms persist past the first two weeks, an electrolyte powder or tablet can be a practical add-on.
"Keto Flu" Is Mostly This
The headache, fatigue, irritability and poor sleep that show up in the first week of keto get lumped together as "keto flu." Most of that cluster isn't a separate condition — it's the sum of the water-sodium-potassium loss described above. Which is why the fastest way to ease keto flu usually isn't "rest more," it's deliberately getting more sodium and potassium in — most people feel noticeably better within a few hours of doing that.
When to Be Careful
The amounts above aren't automatically safe for everyone. If you have kidney disease, heart failure, or uncontrolled high blood pressure, extra sodium carries real risk. If you take blood pressure medication — especially a diuretic or an ACE inhibitor — those drugs already affect your electrolyte balance, and stacking keto's effect on top can push potassium to dangerous levels in either direction. Anyone in this group should set electrolyte targets together with their doctor, not on their own.
When Should You See a Doctor?
If fixing your water and salt intake doesn't bring noticeable relief within 2-3 days, if you feel palpitations or chest discomfort, or if you're on kidney, heart, or blood pressure medication — talk to your doctor before starting electrolyte supplementation. Don't wave these symptoms off as "just keto flu," especially if there's an underlying heart or kidney condition they could be flagging.
Want a personalized keto plan that accounts for electrolyte and macro balance?
Create My Free Plan →