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

Electrolytes — sodium, potassium, and magnesium — are minerals that carry electrical charges and regulate fluid balance, muscle contraction, and nerve impulses. During exercise, these minerals are lost through sweat, with sodium being the primary electrolyte lost. Failure to replace electrolytes during prolonged exercise can cause cramping, fatigue, hyponatremia (dangerously low sodium), and in severe cases, cardiac issues.

The Formula

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

Variables

  • Weight — Body weight in kg — heavier individuals produce more sweat
  • 0.012 — Base sweat coefficient (liters per kg per hour at moderate intensity)
  • Sweat Multiplier — Light=0.6, Moderate=1.0, Heavy=1.5 based on individual sweat rate
  • Temp Multiplier — Cool=0.8, Warm=1.0, Hot=1.3 accounting for environmental heat

Worked Example

A 70 kg person exercising 90 minutes with moderate sweat in warm conditions: Sweat = 70 x 0.012 x 1.5 x 1.0 x 1.0 = 1.26 L. Sodium = 1260 mg, Potassium = 252 mg, Magnesium = 32 mg needed to replace exercise losses.

Practical Tips

  • For workouts under 60 minutes in mild conditions, water alone is usually sufficient for hydration.
  • Salty sweaters (white residue on clothing) lose more sodium and benefit most from electrolyte drinks.
  • Weigh yourself before and after exercise — each pound lost equals about 16 oz of fluid to replace.
  • Avoid overhydrating with plain water during long exercise, as it can dilute sodium and cause hyponatremia.
  • Natural electrolyte sources include bananas (potassium), pickles/olives (sodium), and pumpkin seeds (magnesium).

Frequently Asked Questions

Do I need electrolytes for every workout?

For workouts under 60 minutes at moderate intensity, most people get adequate electrolytes from their normal diet. Electrolyte supplementation becomes important for sessions longer than 60-90 minutes, high-intensity training, or exercise in hot and humid conditions.

What are signs of electrolyte imbalance?

Common symptoms include muscle cramps, dizziness, nausea, headache, fatigue, and dark urine. Severe imbalance can cause confusion, irregular heartbeat, and seizures. If symptoms persist after rehydrating, seek medical attention.

Are sports drinks better than water?

For exercise over 60 minutes, sports drinks provide electrolytes and carbohydrates that water alone does not. However, many commercial sports drinks contain excessive sugar. Look for low-sugar options or make your own with water, salt, and citrus juice.

How much sodium do I lose in sweat?

Average sweat contains 800-1400 mg sodium per liter, but individual variation is huge. Some people lose as little as 200 mg/L while heavy salt sweaters lose over 2000 mg/L. A sweat composition test can give you your exact numbers.

Can I get too much sodium from electrolyte supplements?

The tolerable upper limit for sodium is 2300 mg/day for most adults at rest. During heavy exercise, needs can exceed this significantly. Most healthy kidneys handle temporary sodium spikes well, but those with hypertension should consult their doctor.

Last updated: March 20, 2026 · Reviewed by the NutritionCalcs Editorial Team