8 min
Published July 19, 2026

Keto Electrolytes: The Complete Guide to Avoiding the Crash

Electrolyte imbalance is the #1 reason people feel terrible on keto. Here's exactly how much sodium, potassium, and magnesium you need — and how to get it from food and supplements.

Keto Simplified - Article Author

Keto Simplified

Keto Expert & Guide

Glass of electrolyte drink with salt and lemon

You’re on Day 4 of keto. You feel like you got hit by a truck. Headache, brain fog, muscle cramps, zero energy, and you can’t figure out why.

It’s not the diet. It’s not “keto flu” in the viral sense. It’s almost certainly electrolytes — and it’s the most fixable problem in all of keto.

Electrolyte imbalance causes 80%+ of the side effects people blame on “keto flu.” Fix your electrolytes and most side effects disappear within 24 hours.

Why Keto Wrecks Your Electrolytes

On a normal diet, carbs hold water and sodium in your body. Every gram of glycogen (stored carbs) holds 3-4 grams of water. When you cut carbs:

  1. Your body burns through glycogen in 1-2 days
  2. All that stored water gets released
  3. You pee out water and electrolytes together
  4. Your sodium, potassium, and magnesium levels drop

This is why you lose 5-8 pounds in your first week of keto — it’s mostly water weight. But with that water goes the electrolytes that keep your nerves, muscles, and brain functioning properly.

The 3 Electrolytes You Need

Sodium: 3,000-5,000mg per day

Sodium is the most important electrolyte on keto. Without enough, you get:

  • Headaches
  • Fatigue
  • Dizziness when standing
  • Muscle weakness
  • Brain fog
  • Low blood pressure

How to get it:

  • Salt your food generously (1 tsp of salt = ~2,400mg sodium)
  • Drink 1-2 cups of bouillon or broth per day
  • Add salt to your water (1/2 tsp per liter)
  • Eat salted nuts and pickles

Quick Tip

The “keto headache” that hits on Day 2-3 is almost always low sodium. Drink a cup of bouillon and it’ll be gone in 30 minutes. This is not a myth — try it.

Potassium: 1,000-3,500mg per day

Potassium works alongside sodium to regulate fluid balance and nerve function. Low potassium causes:

  • Muscle cramps (especially leg cramps at night)
  • Heart palpitations
  • Weakness
  • Constipation

How to get it from food:

FoodPotassium per Serving
Avocado (1 medium)700mg
Spinach (1 cup cooked)840mg
Salmon (6 oz)780mg
Mushrooms (1 cup)420mg
Pork chop (6 oz)600mg
Zucchini (1 medium)500mg

Do NOT take potassium supplements without consulting a doctor. Too much potassium from supplements can cause dangerous heart arrhythmias. Get it from food — it’s nearly impossible to overdose from food sources.

Magnesium: 300-400mg per day

Magnesium is the unsung hero of keto. It helps with:

  • Sleep quality
  • Muscle relaxation (prevents cramps)
  • Bowel regularity
  • Stress management
  • Blood sugar regulation

Best forms:

  • Magnesium glycinate — best for sleep and stress, gentle on stomach
  • Magnesium citrate — best for constipation (also helps with sleep)
  • Magnesium malate — best for energy and muscle function

Avoid magnesium oxide — it’s poorly absorbed and mostly wasted.

Food sources: pumpkin seeds, almonds, spinach, dark chocolate (85%+), avocado.

The Electrolyte Fix Protocol

If you’re feeling terrible on keto, follow this for 24 hours:

Morning

  • 1 cup of bouillon or broth (2,000mg sodium)
  • 1 avocado (700mg potassium, 40mg magnesium)

Lunch

  • Salt your food with 1/2 tsp salt (1,200mg sodium)
  • 2 cups of spinach in a salad (800mg potassium)

Afternoon

  • 1/2 tsp salt in 1 liter of water (1,200mg sodium)
  • Handful of almonds (80mg magnesium)

Evening

  • Magnesium supplement: 200-400mg magnesium glycinate or citrate
  • Dinner with salted food (another 1,200mg sodium)

Total: ~4,500mg sodium, 1,500mg potassium, 400mg magnesium. This hits the sweet spot for most people.

Signs Your Electrolytes Are Balanced

You’ll know your electrolytes are dialed in when:

  • No headaches
  • Steady energy all day
  • No muscle cramps
  • Clear thinking
  • Normal bowel movements
  • You don’t get dizzy when standing up quickly
  • Sleep is restful

If you hit all of these, you’re golden. If not, adjust sodium first — it’s almost always the issue.

Do You Need Electrolyte Supplements?

The supplement industry wants you to think you need $30 electrolyte powders. You probably don’t.

You DO need:

  • Salt (cheap, $2 for a pound)
  • Magnesium supplement ($8-15 for a 3-month supply)
  • Potassium from food (avocados and spinach are cheap)

You probably DON’T need:

  • LMNT, Liquid IV, or other electrolyte powders (they’re fine but overpriced)
  • Special “keto electrolyte” formulas
  • Trace mineral drops (unless you have a specific deficiency)

The one exception: if you exercise heavily or live in a hot climate, you lose more electrolytes through sweat. An electrolyte powder can be convenient for those situations.

Key Takeaway

Fix your electrolytes first. 80% of “keto flu” is electrolyte deficiency, not the diet itself. Get 3,000-5,000mg sodium, 1,000-3,500mg potassium, and 300-400mg magnesium every day, and most side effects vanish.

For making electrolyte-rich bone broth at home, a good stockpot or Instant Pot is key. Check out our guides on KetoCookware for the best kitchen tools for keto cooking.

Published July 19, 2026. Content reviewed and maintained for accuracy.

Quick Answers

The most common questions about this topic

How much sodium do you need on keto?

Most people need 3,000-5,000mg of sodium per day on keto. Without carbs to hold water and sodium in your body, you lose it fast — which causes headaches, fatigue, and keto flu.

What are the signs of low electrolytes on keto?

Headaches, fatigue, muscle cramps, brain fog, dizziness, heart palpitations, and constipation are all common signs of electrolyte imbalance on keto.

What electrolytes should I supplement on keto?

Sodium (via salted food or broth), potassium (from food like avocado and spinach), and magnesium (200-400mg supplement). Most people don't need a fancy electrolyte powder — just salt and food.

Found this helpful?

Share it with someone who might benefit

Continue Reading

Related Articles

Keto Simplified - Keto Expert

About the Author

Keto Simplified, Certified Nutritionist & Keto Expert

With over 4 years of personal keto experience and extensive research in nutritional science, our team provides evidence-based guidance to help you succeed on your keto journey. All content is reviewed for accuracy and updated regularly.

✓ Certified Nutrition Expert ✓ 4+ Years Keto Experience ✓ Evidence-Based Research
Published: July 19, 2026 Fresh Content
Fact-Checked
Evidence-Based
Medically Reviewed Content
Trusted by Our Community
Regularly Updated
4+ Years Experience

Ready to Start Your Keto Journey?

Get our complete starter guide with meal plans and shopping lists.

Start Free