Electrolyte Calculator

Calculate your sodium, potassium, and magnesium needs during exercise based on body weight, workout duration, sweat rate, and temperature.

Results

Visualization

How It Works

Sweat composition: sodium 460-1,840 mg/L (median ~1,000 mg/L), chloride parallel to sodium, potassium 130-260 mg/L, magnesium 8-30 mg/L, calcium 25-130 mg/L (Baker 2017 Sports Med review of 200+ athlete sweat tests). Resting daily AI: sodium 1,500 mg, potassium 3,400 mg men/2,600 mg women, magnesium 400-420 mg men/310-320 mg women. Sweat losses scale with body mass, exercise intensity, ambient WBGT, fitness level (heat acclimation reduces sodium losses by 30-50% over 10-14 days), and individual genotype (CFTR variants influence chloride/sodium sweat concentration). Failing to replace fluid + sodium during exercise over 90 minutes risks hyponatremia (serum Na under 135 mEq/L), the leading cause of exercise-associated medical emergencies in endurance events (Hew-Butler 2015 consensus statement).

The Formula

Sweat Loss (L) = Weight x 0.012 x Hours x Sweat Multiplier x Temp Multiplier; Sodium = Sweat x 1,000 mg/L; Potassium = Sweat x 200 mg/L; Magnesium = Sweat x 25 mg/L

Variables

  • Weight — Body mass in kg — primary determinant of sweat rate via heat-storage capacity
  • 0.012 — Base coefficient: L sweat per kg per hour at moderate intensity, derived from ACSM 2007 fluid-replacement position stand
  • Sweat Multiplier — Light 0.6, Moderate 1.0, Heavy 1.5 based on observed perspiration intensity and clothing saturation
  • Temp Multiplier — Cool 0.8, Warm 1.0, Hot 1.3 — adjusts for evaporative-cooling demand at higher ambient WBGT

Worked Example

Profile: 70 kg cyclist, 90-minute moderate-intensity ride, warm conditions, self-reports moderate sweat with no white salt residue. Sweat = 70 x 0.012 x 1.5 x 1.0 x 1.0 = 1.26 L. Sodium replacement target = 1,260 mg, potassium 252 mg, magnesium 32 mg. Practical: 24-32 oz of a 750 mg-sodium-per-liter sports drink covers ~80% of sodium loss; the rest comes from post-ride meal. Validate by weighing nude before and after the session — every 0.5 kg lost = ~500 mL fluid deficit, ~500 mg sodium deficit at average concentration. If post-exercise weight drops more than 2% of body mass, increase pre-ride and during-ride intake. If urine remains dark amber 4+ hours post, supplement another 500-750 mL with electrolytes.

Practical Tips

  • Sessions under 60 minutes at moderate intensity in temperate weather rarely require electrolyte replacement — water alone is fine. Threshold for adding sodium: 60-90 minutes, hot/humid conditions, or salty-sweater phenotype.
  • Pre-weigh nude before and after exercise. Each kg lost = ~1 L sweat. Replace 125-150% of fluid deficit over the next 4-6 hours to account for ongoing urinary losses (Shirreffs 1996).
  • Salty-sweater clue: persistent white residue on dark workout shirts and gritty taste on lips. These athletes lose 1,500-2,000 mg sodium per liter of sweat (~2x average) and benefit most from concentrated electrolyte tablets (LMNT, SaltStick).
  • Hyponatremia results from drinking pure water faster than sweat losses. Clinical trigger: weight gain during a marathon. If a runner finishes heavier than the start, they over-drank — water-loading without sodium puts serum sodium at risk.
  • Heat acclimation over 10-14 days reduces sodium concentration in sweat by 30-50% (Buono 2007 J Appl Physiol). After two weeks of heat exposure, electrolyte needs may drop substantially even if total sweat volume stays high.
  • Caffeine over 250 mg pre-exercise modestly increases urinary sodium and potassium losses. Not enough to require special replacement in most cases but worth noting for ultraendurance athletes.
  • Practical electrolyte ratios: 18-46 mEq/L (~500-1,000 mg/L) sodium per ACSM/NATA guidelines — most commercial sports drinks deliver 110-440 mg/L, so heavy salt sweaters need to supplement with electrolyte tablets or pretzels.

Frequently Asked Questions

When does electrolyte replacement actually matter?

Three thresholds: (1) duration over 60-90 minutes, (2) WBGT above 27 C / 80 F, (3) intensity sustained at over 70% VO2max. Below all three, water plus a normal post-exercise meal restores balance. Above any one, add 500-1,000 mg sodium per liter of fluid. The IRONMAN consensus advises 500-1,000 mg/hour sodium for events over 4 hours.

How do I know if I am a salty sweater?

Visual clue: white crystalline residue on dark exercise clothing or visor, gritty mouth feel, salt taste in eyes during a long workout. Quantitative confirmation: a sweat patch test (Precision Hydration, Levelen, Gatorade Sports Science) measures sodium concentration directly — typical range 460-1,840 mg/L, salty sweaters above 1,200 mg/L. The phenotype is partially genetic (CFTR, SCNN1) and stable across seasons after heat acclimation.

Are sports drinks worth it or marketing?

For training under 60 minutes — marketing. The 6-8% carbohydrate plus 110-200 mg sodium per 8 oz adds calories you do not need. For exercise over 90 minutes, the carbohydrate (60-90 g/hour optimum per Jeukendrup) plus sodium supports performance and reduces hyponatremia risk. DIY: 1 L water + 1/4 tsp salt + 4 tbsp maple syrup or honey + lemon juice approximates a 6% solution at ~600 mg sodium/L.

Why do I get muscle cramps even when I drink electrolytes?

Exercise-associated muscle cramps correlate weakly with electrolyte status. The current mechanistic model (Schwellnus 2009 Br J Sports Med) emphasizes neuromuscular fatigue and altered alpha-motor neuron control rather than dehydration. Pickle juice (Miller 2010 MSSE) reduces cramps within 1-2 minutes via TRPV1/TRPA1 oropharyngeal reflexes, faster than electrolytes could be absorbed — supports the neural-drive theory.

What is hyponatremia and how do I avoid it?

Serum sodium under 135 mEq/L from water excess relative to sodium. Causes: drinking past thirst during long exercise, low-sodium sports drinks at high volumes, NSAIDs (impair free-water excretion), small body size, slow finish times. Prevention: drink to thirst, not on a schedule; choose sodium-containing fluids over plain water for sessions over 2 hours; limit fluid intake to ~400-800 mL/hour. Hew-Butler 2015 consensus statement is the operating guideline.

How much potassium and magnesium do I lose compared to sodium?

Per liter of sweat: potassium 130-260 mg (~10-20% of sodium loss); magnesium 8-30 mg; calcium 25-130 mg. Daily food intake easily replaces these in most diets — a banana plus a cup of yogurt covers a 3-hour ride's potassium and calcium loss. Magnesium gets disproportionate marketing attention; sweat losses rarely exceed 50-100 mg/day even in heavy training.

Can I exceed sodium UL safely during heavy training?

The 2,300 mg/day UL applies to sedentary adults to limit hypertension risk. Endurance athletes routinely consume 4,000-6,000 mg/day across food and replacement drinks during heavy training blocks without adverse blood pressure effects, because they are excreting and sweating sodium rapidly. Hypertensive athletes should consult their physician — DASH-style diets target the same UL regardless of activity.

Are coconut water and tablets equivalent for hydration?

Coconut water averages 600 mg potassium and 250 mg sodium per cup (~250 mL) — high in potassium, low in sodium. For most exercise scenarios sodium is the limiting electrolyte, so coconut water alone under-replaces. Pairing 8-12 oz coconut water with a 1/8-1/4 tsp salt addition or alongside a salty snack creates a more balanced replacement. Electrolyte tablets (Nuun, LMNT, SaltStick) target the sodium gap directly.

Last updated: May 04, 2026 · Last reviewed: May 2026 — NutritionCalcs Editorial Team · About our methodology