Hydration

Electrolytes: What They Are and Why You Need Them

Reviewed by Sarah Mitchell, BSc Nutrition  ·  Updated June 2026  ·  8 min read

Electrolytes are minerals that carry an electrical charge and are essential for virtually every function in the human body — from muscle contraction to nerve signalling to maintaining fluid balance. When electrolyte balance is disrupted, performance drops, symptoms appear, and in extreme cases, serious health consequences can follow.

Key electrolytes: Sodium, potassium, magnesium, calcium, chloride, and phosphate. Each plays distinct roles, and most people get adequate amounts from a varied diet — though specific situations (intense exercise, illness, low-carb diets) increase requirements.

The Main Electrolytes and Their Roles

ElectrolytePrimary FunctionsDeficiency SymptomsBest Sources
SodiumFluid balance, blood pressure, nerve signalsHeadache, fatigue, confusionSalt, processed foods, pickles
PotassiumMuscle function, heart rhythm, blood pressureMuscle cramps, fatigue, constipationBananas, sweet potato, beans
Magnesium300+ enzyme reactions, muscle relaxation, sleepMuscle cramps, insomnia, anxietyNuts, seeds, dark leafy greens
CalciumBone structure, muscle contraction, blood clottingMuscle spasms, numbnessDairy, fortified plant milks, broccoli
ChlorideFluid balance, stomach acid productionRare in normal dietsSalt, most foods

Key electrolytes — daily needs and best food sources

Sodium Potassium Magnesium Calcium 1,500–2,300 mg/day Salt, bread processed foods Fluid balance 3,500–4,700 mg/day Banana, potato leafy greens Heart rhythm 310–420 mg/day Nuts, seeds dark chocolate Muscle/nerve 1,000–1,200 mg/day Dairy, tofu leafy greens Bone density

When You Need More Electrolytes

During intense exercise

Sweat contains significant sodium (approximately 900mg/L) and smaller amounts of potassium and magnesium. During exercise lasting over 60–90 minutes, particularly in heat, electrolyte replacement — not just water — is important for maintaining performance and preventing hyponatraemia (dangerously low sodium from drinking large volumes of plain water).

On a low-carbohydrate or ketogenic diet

Carbohydrate restriction causes the kidneys to excrete more sodium and consequently more potassium and magnesium. The "keto flu" — fatigue, headache, cramping — in the first 1–2 weeks of a low-carb diet is largely an electrolyte deficit, not a true flu. Supplementing sodium (broth, salty foods), potassium, and magnesium significantly reduces these symptoms.

During illness with vomiting or diarrhoea

Rapid fluid loss from gastrointestinal illness depletes electrolytes quickly. Oral rehydration solutions (ORS) containing sodium, potassium, and glucose are significantly more effective than plain water for rehydration during illness.

In hot weather

Passive sweat in hot climates increases sodium loss even without exercise. People who work outdoors or live in tropical climates need to be mindful of sodium intake, particularly if also restricting salt for blood pressure management.

Do You Need Electrolyte Supplements?

For most people eating a varied diet, electrolyte supplements are unnecessary. The exception is during prolonged exercise (>90 minutes), illness with significant fluid loss, or the adaptation phase of a ketogenic diet.

Sports drinks provide electrolytes but also significant calories from sugar — for exercise under 60 minutes, water is sufficient. Electrolyte tablets or powders without sugar are a better option for longer sessions. Coconut water provides natural electrolytes but is lower in sodium than most sports drinks.

Signs Your Electrolytes Are Off Balance

Electrolyte imbalances range from subtle to serious. Knowing the early signs allows you to correct them before they become problematic:

  • Low sodium (hyponatraemia): Headache, nausea, confusion, and in severe cases seizures. Most common in endurance athletes who drink large amounts of plain water without replacing sodium. Also seen in hot climates with heavy sweating and low salt intake.
  • Low potassium (hypokalaemia): Muscle weakness, cramps, constipation, heart palpitations. Common in people taking diuretics, those with low fruit and vegetable intake, or after prolonged vomiting or diarrhoea.
  • Low magnesium (hypomagnesaemia): Muscle cramps (particularly calf cramps at night), eye twitches, difficulty sleeping, anxiety, and irregular heartbeat. Magnesium deficiency is widespread — studies suggest 50–60% of adults consume less than the recommended amount.
  • Low calcium: Muscle spasms, tingling in fingers and toes, weak bones. More common in older adults and those avoiding dairy without adequate replacement from plant sources.

Electrolytes and Low-Carbohydrate Diets

People following very low carbohydrate or ketogenic diets have significantly elevated electrolyte needs during the first 2–4 weeks. When carbohydrate intake drops below approximately 50g/day, the kidneys excrete more sodium (because insulin levels drop and insulin normally promotes sodium reabsorption). Sodium loss takes potassium and magnesium with it.

The classic "keto flu" symptoms — headaches, fatigue, brain fog, muscle cramps, heart palpitations — are largely caused by electrolyte depletion, not carbohydrate restriction itself. Supplementing with 2,000–3,000mg sodium, 1,000mg potassium, and 300–500mg magnesium daily during the adaptation phase typically resolves these symptoms within 24–48 hours.

Natural Electrolyte Sources for Tropical Climates

In hot and humid climates like Malaysia and Singapore, where sweat losses are higher year-round, a food-first approach to electrolytes is both effective and affordable:

  • Coconut water (250ml): 600mg potassium, 250mg sodium, 60mg magnesium — one of the most balanced natural electrolyte sources
  • Banana (medium): 422mg potassium — convenient post-exercise recovery food
  • A pinch of salt in water: The simplest sodium replacement after heavy sweating — 1/4 teaspoon table salt provides approximately 575mg sodium
  • Watermelon: 170mg potassium plus 92% water content — dual hydration and electrolyte benefit
💡 When to use commercial electrolyte products: For sessions under 60 minutes in moderate heat, food and water are sufficient. Commercial electrolyte drinks or tablets add value for prolonged exercise (>90 min), very hot weather, or when recovering from illness with fluid losses. Check labels — many commercial options contain more sugar than electrolytes.
References
Maughan RJ, Shirreffs SM. Development of hydration strategies to optimise performance for athletes in high-intensity sports. Scand J Med Sci Sports. 2010;20(Suppl 2):59–69.
Volek JS et al. Nutritional aspects of women in combat sports. J Sports Sci. 2015;33(Suppl 1):S35–S46.

Frequently Asked Questions

Electrolytes are minerals that carry an electrical charge when dissolved in body fluids — sodium, potassium, magnesium, calcium, chloride, and phosphate. They regulate fluid balance, nerve signalling, muscle contraction, and pH. Imbalances from sweating, illness, or poor diet can cause muscle cramps, fatigue, and impaired performance.
For most recreational exercisers doing under 60–90 minutes of moderate activity, a balanced diet provides sufficient electrolytes without supplementation. Electrolyte supplements become valuable for high-intensity exercise over 90 minutes, training in heat, or endurance events where significant sweat loss occurs.
Yes — a varied diet rich in whole foods provides adequate electrolytes for most people. Key sources: sodium from food and small amounts of salt; potassium from bananas, potatoes, leafy greens; magnesium from nuts, seeds, legumes; calcium from dairy, fortified plant milks, leafy greens.
Muscle cramps (particularly leg cramps) often indicate low magnesium or potassium. Extreme fatigue, confusion, or irregular heartbeat can suggest more serious sodium or potassium imbalance. Headaches and nausea after prolonged exercise may indicate hyponatraemia (low sodium from over-hydrating with plain water).
For sessions under 60 minutes at moderate intensity, water is sufficient. Sports drinks become beneficial for prolonged high-intensity exercise (>60–90 minutes) or in hot and humid conditions where significant sweat loss occurs. However, many commercial sports drinks contain substantial sugar — coconut water or homemade electrolyte solutions are lower-sugar alternatives.

Next step

Use our free calculators

Get personalised results — instant, no sign-up required.

💧 Water Intake Calculator → 🚰 Signs of Dehydration →
📚 Sources & Editorial Standards Content is for informational purposes only and does not constitute medical advice.