Free tool
Electrolyte calculator
The reference intakes assume a standard, carb-containing diet. Cut carbs, fast, or sweat hard and your sodium needs move - this estimates sodium, potassium, and magnesium for where you actually are.
Daily sodium target
3.5-6 g
about 8.8-15 g of table salt per day
- Sodium
- 3.5-6 g
- Potassium
- 3.4 g
- Magnesium
- 420-441 mg
- Salt equivalent (Na)
- 8.8-15 g
Why these numbers
Keto: very low insulin drives heavy sodium excretion. 3-5 g/day is the range most keto practitioners use to head off the “keto flu.”
Light training (~0.5-1 L sweat) at ~1 g sodium/L adds about 0.5-1 g.
Potassium tracks the AI - cutting fruit and starchy veg makes it easy to fall short, so aim to hit it. Magnesium leans high because carb restriction and fasting increase what the kidneys excrete.
Not medical advice. These are population estimates for healthy adults. Kidney disease, heart failure, high blood pressure, and medications such as diuretics, ACE inhibitors, or potassium-sparing drugs all change electrolyte targets - sometimes in the opposite direction. Check with your clinician before adding sodium, potassium, or magnesium if any of those apply.
Formula & assumptions
The baselines. These come from the NASEM (formerly IOM) Dietary Reference Intakes - the Adequate Intake (AI) and, for sodium, the Chronic Disease Risk Reduction (CDRR) limit:
Sodium AI Sodium CDRR limit Potassium AI Magnesium RDA Men ~1.5 g/day 2.3 g/day 3.4 g/day 400-420 mg/day Women ~1.5 g/day 2.3 g/day 2.6 g/day 310-320 mg/day
Why low-carb and fasting change sodium. Carbohydrate drives insulin, and insulin tells the kidneys to hold onto sodium. Cut carbs (low-carb, keto) or stop eating (fasting) and insulin falls, so the kidneys flush sodium and water - the classic first-week "keto flu" of headaches, cramps, and fatigue is largely sodium loss. Most low-carb and keto practitioners target roughly 3-5 g of sodium per day (about 7.5-12.5 g of salt) to offset it, well above the 1.5 g AI. Fasting removes dietary intake entirely, so deliberate supplementation matters even more.
Sweat losses. Sweat sodium concentration averages around 1 g of sodium per litre (roughly 40 mmol/L, though individuals range from ~0.5 to ~2 g/L). Light training that adds ~0.5-1 L of sweat a day costs on the order of 0.5-1 g of sodium; heavy or hot-weather training producing 2-3 L can cost 2-3 g or more. The calculator adds an estimate on top of your dietary baseline.
Potassium and magnesium. Potassium tracks the AI (3.4 g men, 2.6 g women) and most people fall short of it regardless of diet - cutting fruit and starchy veg on keto makes that worse, so the emphasis is on hitting the AI, not exceeding it. Magnesium follows the RDA (400-420 mg men, 310-320 mg women); low-carb and fasting states raise renal magnesium excretion, so we nudge the target toward the top of the range.
These are population estimates for healthy adults, not prescriptions. Sweat rate, climate, kidney function, and medications all shift the real numbers.
References
National Academies of Sciences, Engineering, and Medicine (2019). Dietary Reference Intakes for Sodium and Potassium. Washington, DC: The National Academies Press.
Institute of Medicine (1997). Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride. Washington, DC: The National Academies Press.
Sawka, M. N. et al. (2007). American College of Sports Medicine position stand: Exercise and fluid replacement. Medicine & Science in Sports & Exercise, 39(2), 377-390. (Sweat sodium ~20-80 mmol/L, averaging near 1 g/L.)
DiNicolantonio, J. J., Lavie, C. J., & O'Keefe, J. H. (2014). The evidence for saltiness: sodium and low-carbohydrate diets. (Context for the higher sodium needs of carbohydrate-restricted and ketogenic diets.)