Fasting Electrolyte Calculator

Calculate your daily sodium, potassium, and magnesium needs during extended fasts (24h to 5+ days). Get a personalized dosing schedule based on your weight, fast length, activity level, climate, and keto-adaptation status.

Climate / Environment

Keto-Adapted?

Ketogenic diets increase renal sodium excretion, raising electrolyte needs.

Track your nutrition and fasting with BiteKit

Log meals, track macros, and monitor your fasting windows — all in one place. BiteKit's AI handles the nutritional math so you can focus on your goals.

Download on the
App Store

Why Electrolytes Are Critical During Fasting

When you fast, insulin levels drop significantly. Under normal eating conditions, insulin signals the kidneys to retain sodium. Without that signal, the kidneys begin excreting sodium at a much higher rate — and potassium and magnesium follow. This is why many people experience the so-called “fasting flu” or “keto flu”: headaches, muscle cramps, fatigue, heart palpitations, and irritability are all classic signs of electrolyte depletion, not hunger or metabolic distress.

For keto-adapted individuals, these losses are even more pronounced. Ketone bodies in the urine carry sodium with them as they are excreted, compounding the effect. Research by Phinney and Volek has quantified these needs for low-carbohydrate dieters, and Dr. Jason Fung's fasting protocols have popularized electrolyte supplementation as a core strategy for making extended fasting sustainable and safe.

The Three Key Fasting Electrolytes

Sodium (2000–4000 mg/day)

Sodium is the most important electrolyte to supplement during fasting and typically the first to become deficient. The simplest approach is to dissolve 1/4 to 1/2 teaspoon of table salt in water or add it to bone broth throughout the day. Table salt provides approximately 575 mg of sodium per 1/4 teaspoon. Himalayan pink salt is slightly lower at around 480 mg per 1/4 teaspoon. Sodium bicarbonate (baking soda) is another option that may also help buffer the slight acidity of ketosis.

Potassium (1500–3500 mg/day)

Potassium is essential for muscle function and heart rhythm. Adequate potassium prevents the muscle cramps and heart palpitations that some fasters experience. The practical challenge is that most potassium supplements are limited to 99 mg per tablet by FDA guidelines — far below what is needed. The most effective approach is using potassium chloride salt substitutes such as No Salt or Nu-Salt, which provide approximately 650 mg per 1/4 teaspoon. Electrolyte tablets and powders formulated for fasting (such as LMNT, Re-Lyte, or Keto Chow electrolytes) often contain meaningful potassium amounts.

Magnesium (300–500 mg/day)

Magnesium is often the most overlooked electrolyte during fasting, yet it plays a central role in over 300 enzymatic reactions in the body and is critical for sleep quality, muscle recovery, and insulin sensitivity. Magnesium glycinate is the preferred form due to its high bioavailability and minimal laxative effect. Magnesium citrate (Natural Vitality Calm) is a popular powder form that dissolves in warm water. Avoid magnesium oxide — it has poor absorption rates (around 4%) and is better suited as a laxative than an electrolyte supplement. Taking your evening magnesium dose at bedtime can meaningfully improve sleep depth during fasting.

Electrolyte Sources: Concentrations at a Glance

SourceElectrolyteAmount (per 1/4 tsp or serving)Notes
Table saltSodium~575 mgMost concentrated sodium source
Himalayan pink saltSodium~480 mgTrace minerals; slightly lower sodium
Baking sodaSodium~315 mgAlso buffers ketosis acidity
Bone broth (1 cup)Sodium500–900 mgVaries by brand; also has collagen
No Salt / Nu-SaltPotassium~650 mgBest practical potassium source
Magnesium glycinate (2 caps)Magnesium200 mgHighest bioavailability form
Magnesium citrate (Calm, 1 tsp)Magnesium~80 mgDissolves in warm water

Electrolyte Needs by Fast Length

24–36 Hour Fasts

A single day or overnight fast is the most common approach. Electrolyte needs are moderate — sodium supplementation is the most important priority. If you are already on a standard carbohydrate diet and are not exercising, you may be able to rely on sodium in your last meal and a pinch of salt in water throughout the fast. Keto-adapted individuals should prioritize sodium actively even for shorter fasts.

48–72 Hour Fasts

Multi-day fasts require active and consistent electrolyte management. Potassium needs increase substantially — aim for 2000–2500 mg/day using No Salt / Nu-Salt spread across morning and evening doses. Continue sodium at 2500–3500 mg/day and magnesium at 300–400 mg/day. Most people find these fasts significantly more comfortable with a structured dosing routine versus ad-hoc supplementation.

5+ Day Extended Fasts

Extended fasts beyond 72 hours require medical supervision and blood work. The primary additional concern is phosphate — unlike sodium, potassium, and magnesium, the body does not deplete phosphate during fasting itself, but upon refeeding, phosphate rapidly shifts into cells and serum levels can crash (refeeding syndrome). Monitoring serum phosphate, potassium, and magnesium before and after refeeding is essential for fasts of this length. These are not protocols for self-management without medical guidance.

Practical Tips for Electrolyte Success While Fasting

  • Use bone broth as your primary sodium delivery vehicle. Bone broth provides sodium in a palatable liquid form with added benefits of collagen and trace minerals. Many fasters find it far easier to consume than plain salt water.
  • Never take all your potassium at once. Large single doses of potassium can cause gastrointestinal upset and, in extreme cases, cardiac effects. Always split your daily potassium across at least 2–3 doses.
  • Take evening magnesium for sleep benefits. Many fasters report disrupted sleep, especially beyond 48 hours. A dose of magnesium glycinate in the evening (30–60 minutes before bed) can significantly improve sleep quality.
  • Hydration and electrolytes work together. Drinking large amounts of plain water without electrolytes dilutes serum sodium (dilutional hyponatremia). Always pair water intake with sodium supplementation during extended fasting.
  • Exercise increases losses significantly. Sweat contains sodium, potassium, and magnesium. If you train during a fast, supplement immediately after your session — do not wait until your scheduled dose time.

Frequently Asked Questions

Why do electrolytes drop during fasting?

During fasting, insulin levels fall sharply. Insulin normally signals the kidneys to retain sodium; without it, the kidneys excrete far more sodium in urine. Potassium and magnesium follow. Keto-adapted fasters have even higher losses because ketone excretion also carries sodium out in urine.

How much sodium should I take during a fast?

The standard recommendation is 2000–3000 mg/day of sodium during fasting. This increases to 3000–4000 mg/day if you are keto-adapted, in a hot climate, or exercising. Table salt (575 mg per 1/4 tsp) dissolved in water or bone broth is the simplest approach.

What is the best potassium source for fasting?

No Salt or Nu-Salt (potassium chloride) provides 650 mg of potassium per 1/4 teaspoon and is the most practical option. Most over-the-counter potassium supplements are limited to 99 mg per tablet, making it nearly impossible to reach fasting targets with pills alone.

Which magnesium form is best during fasting?

Magnesium glycinate is preferred — it has the highest bioavailability, is gentle on the digestive tract, and does not cause loose stools at typical doses. Magnesium citrate is a solid second choice. Avoid magnesium oxide, which has very poor absorption.

What is refeeding syndrome and when does it apply?

Refeeding syndrome is a dangerous electrolyte shift — particularly phosphate — that can occur when food is reintroduced after prolonged fasting (5+ days) or severe caloric restriction. It can cause cardiac arrhythmias and neurological complications. Anyone undertaking a fast of 5 or more days should have medical supervision and electrolyte monitoring.

Do I need electrolytes during a 16:8 fast?

Generally, no. A 16:8 or 18:6 intermittent fast is short enough that healthy individuals maintain adequate electrolyte levels, especially if eating sufficient sodium in their feeding window. Supplementation becomes important for 24-hour and longer fasts, particularly for keto-adapted individuals.

Related Tools

Download on the
App Store