Keto Electrolytes Calculator

Your daily sodium, potassium, and magnesium targets on keto — plus the fastest fix for keto-flu headaches, fatigue, and cramps.

On keto, aim for ~3,000–5,000 mg sodium, 3,000–4,700 mg potassium, and 300–500 mg magnesium per day. Keto flu is almost always electrolyte loss — and sodium is the fastest fix. Check your symptoms below.
Your Keto Electrolytes Calculator
Body weight
lbs
How much do you sweat?
Where are you on keto?
Na
Sodium
4,100–5,600 mg
The #1 keto-flu fix
K
Potassium
3,200–4,700 mg
Cramps & fatigue
Mg
Magnesium
350–500 mg
Sleep & headaches

Personalized for your weight, sweat level, and adaptation stage.

🗓️ Your daily replacement plan
🧂
~2.1 tsp of salt through the day
On food, in water, or as broth — this covers most of your sodium target.
🍲
3 cups of bone broth
≈500 mg sodium each, plus minerals. The fastest keto-flu relief there is.
🥑
1 avocado + a big handful of spinach
≈1,200 mg potassium between them — whole foods beat pills here.
🎃
1 oz pumpkin seeds (or a Mg supplement)
≈150 mg magnesium; glycinate or citrate forms absorb well at night.
🤒 Feeling the keto flu? Tap what you have

Keto flu is usually electrolytes, not carb withdrawal — replacing sodium is the fastest fix.

Make low-carb easy to stick to

CarbMeNot tracks your food from a photo so keto feels effortless — free on iOS & Android.

Download on the App StoreGet it on Google Play

Best keto electrolyte foods

Whole foods (plus a little extra salt) cover most people's needs:

FoodElectrolyteAmount
Bone broth1 cup~500 mg sodium
Pickle juice¼ cup~900 mg sodium
Avocado1 fruit~700 mg potassium
Spinach (cooked)1 cup~840 mg potassium
Salmon6 oz~700 mg potassium
Pumpkin seeds1 oz~150 mg magnesium
Almonds1 oz~80 mg magnesium
Dark chocolate (85%)1 oz~65 mg magnesium

Keto flu timeline: what to expect

  • Days 1–3: As carbs drop, insulin falls and your kidneys dump sodium and water. This is when headaches, fatigue, and brain fog usually hit.
  • Days 3–5: Symptoms peak, then ease quickly once you replace sodium and fluids. Most people turn the corner here.
  • Week 2+: Your body adapts to burning fat for fuel; energy and focus typically return and often improve.

Do you need electrolyte supplements?

Not necessarily. Extra salt plus the foods above covers most people. A sugar-free electrolyte powder or a magnesium supplement can help if you train hard, sweat a lot, or still feel off after a few days. Skip products with added sugar, and if you have kidney, heart, or blood-pressure conditions, check with your doctor before loading sodium.

Sources

Methodology & sources

Targets reflect commonly cited low-carb electrolyte ranges: sodium 3–5 g, potassium near the ~4,700 mg adequate intake, magnesium 300–500 mg. Needs rise on keto because low insulin increases renal sodium excretion.

Educational only — if you have kidney, heart, or blood-pressure conditions, check with your doctor before increasing sodium or supplementing.

Frequently asked questions

How many electrolytes do you need on keto?
Aim for roughly 3,000–5,000 mg of sodium, 3,000–4,700 mg of potassium, and 300–500 mg of magnesium per day on keto — higher than usual because low insulin makes your kidneys flush more sodium (and potassium and magnesium follow it out).
What is the keto flu and how do I fix it?
The keto flu — headache, fatigue, brain fog, cramps, and irritability in the first days of keto — is almost always electrolyte loss, not carb withdrawal. The fastest fix is sodium: add 1–2 teaspoons of salt or 2–3 cups of broth a day, drink water, and eat potassium- and magnesium-rich foods.
Why do you need more salt on keto?
Cutting carbs lowers insulin, and low insulin signals the kidneys to excrete sodium instead of holding it. That's why low-carb dieters often need noticeably more salt than the standard advice — and why under-salting causes most keto-flu symptoms.
What are the best keto electrolyte foods?
Sodium: salt, broth, pickles, olives. Potassium: avocado, spinach, salmon, mushrooms. Magnesium: pumpkin seeds, spinach, dark chocolate, and supplements if needed. Whole foods plus a little extra salt covers most people.
How long does the keto flu last?
Usually a few days to a week. Replacing electrolytes — especially sodium — often relieves symptoms within a day or two. If it drags on, check that you're getting enough salt, water, potassium, and magnesium.

Related tools

CarbMeNot app icon
4.7 · 273 ratings

Make low-carb easy to stick to

CarbMeNot tracks your food from a photo so keto feels effortless — free on iOS and Android.

Download on the App StoreGet it on Google Play

Free to download · iOS & Android · No signup required