Electrolytes Explained: Sodium, Potassium, Magnesium, Calcium
Electrolytes are the unsung heroes of hydration. While water gets all the attention, electrolytes are the minerals that actually move water where it needs to go in the body. Without them, water would simply pass through without hydrating your cells. This guide explains what electrolytes are, what each one does, where to get them, and why balance matters.
What Are Electrolytes and Why Do They Matter?
Electrolytes are minerals that carry an electrical charge when dissolved in water. The main electrolytes in the human body are sodium, potassium, calcium, magnesium, chloride, phosphate, and bicarbonate. These charged particles are essential for nerve signaling, muscle contraction, fluid balance, pH regulation, and numerous other physiological processes. Without electrolytes, your heart could not beat, your muscles could not contract, and your brain could not send signals.
Electrolytes work through a principle called osmosis. Water moves across cell membranes from areas of low electrolyte concentration to areas of high electrolyte concentration. By controlling the concentration of electrolytes inside and outside cells, the body controls where water goes. This is why drinking plain water without electrolytes is not always the best hydration strategy — particularly during prolonged exercise or illness when electrolytes are lost through sweat, urine, vomit, or diarrhea.
The balance between electrolytes is just as important as their absolute amounts. Sodium and potassium work in opposition to regulate fluid balance — sodium is the primary electrolyte outside cells, while potassium is the primary electrolyte inside cells. Calcium and magnesium have opposing effects on muscle contraction. Disrupting these balances — through excessive sweating, illness, medication, or extreme dietary changes — can cause serious symptoms.
Sodium: The Most Important Hydration Electrolyte
Sodium is the most abundant electrolyte in the extracellular fluid and the one most relevant to hydration. It regulates blood volume, blood pressure, and fluid balance, and it is essential for nerve signaling and muscle contraction. The body tightly controls sodium concentration through the kidneys, which can excrete excess sodium in urine or conserve sodium when intake is low.
The recommended daily sodium intake is controversial. The American Heart Association recommends no more than 2,300 mg per day, with an ideal limit of 1,500 mg for most adults, particularly those with high blood pressure. However, some researchers argue that very low sodium intake may be harmful, particularly for athletes and people in hot climates who lose significant sodium through sweat. The truth is likely that optimal sodium intake depends on individual factors — activity level, climate, health status, and genetics all play a role.
For hydration purposes, sodium is the key electrolyte to replace during and after prolonged sweating. Sweat contains roughly 0.5 to 1.5 grams of sodium per liter, and athletes exercising in heat can lose 2 to 4 grams of sodium per hour. Sports drinks typically contain 0.4 to 1.0 grams of sodium per liter, which is appropriate for exercise lasting more than 60 minutes. For shorter exercise, plain water is fine, and a normal diet easily replaces the small sodium losses.
Dietary sources of sodium include table salt, processed foods (which contain most of the sodium in the typical Western diet), bread, cheese, canned soups, pickled foods, and condiments like soy sauce. For most people, getting enough sodium is not a concern — the bigger challenge is avoiding excessive sodium from processed foods. For athletes and people in hot climates, adding a pinch of salt to water or consuming salty snacks along with water can help replace sweat losses.
Potassium: The Cellular Counterbalance
Potassium is the primary electrolyte inside cells and is essential for nerve signaling, muscle contraction (especially heart muscle), and fluid balance. The body tightly controls potassium concentration in the blood, and even small deviations can be life-threatening — too much potassium (hyperkalemia) can cause cardiac arrest, while too little (hypokalemia) can cause weakness, arrhythmias, and paralysis.
The recommended daily potassium intake is 3,400 mg for adult men and 2,600 mg for adult women, though some experts recommend higher intakes (4,700 mg per day) based on evidence that higher potassium intake lowers blood pressure. Most people in Western countries consume far less than recommended, primarily because the typical diet is low in fruits and vegetables (the best potassium sources) and high in processed foods (which are high in sodium and low in potassium).
Excellent dietary sources of potassium include bananas (often cited but actually moderate), potatoes (especially with skin), sweet potatoes, avocados, spinach, white beans, yogurt, salmon, and coconut water. A single baked potato with skin contains about 900 mg of potassium, while a medium banana contains about 420 mg. Eating a varied diet rich in fruits, vegetables, legumes, and dairy easily meets potassium needs without supplementation for most people.
Magnesium: The Relaxation Mineral
Magnesium is involved in over 300 enzymatic reactions in the body, including energy production, muscle and nerve function, blood glucose control, blood pressure regulation, and protein synthesis. It works in opposition to calcium — calcium stimulates muscle contraction, while magnesium promotes relaxation. Magnesium deficiency can cause muscle cramps, fatigue, weakness, and irritability, though true deficiency is uncommon in healthy people with adequate diets.
The recommended daily magnesium intake is 400 to 420 mg for adult men and 310 to 320 mg for adult women. Surveys suggest that a significant proportion of adults do not meet these recommendations, primarily because the typical Western diet is low in magnesium-rich foods like leafy greens, nuts, seeds, and whole grains. Good dietary sources include pumpkin seeds (one of the best sources), almonds, spinach, cashews, black beans, avocado, dark chocolate, and whole grains.
Magnesium supplements are widely marketed for muscle recovery, sleep, and stress relief, and there is some evidence supporting these uses. Magnesium glycinate and magnesium citrate are well-absorbed forms, while magnesium oxide (the form often sold cheaply) is poorly absorbed. For most people, getting magnesium from food is preferable to supplements. Excessive magnesium from supplements can cause diarrhea and, in extreme cases, magnesium toxicity.
Calcium: Beyond Bones
Calcium is best known for its role in bone health, but it is also a critical electrolyte. It is essential for muscle contraction (including heart muscle), nerve signaling, blood clotting, and enzyme function. The body maintains tight control over blood calcium levels, drawing on bone calcium if dietary intake is inadequate. Over time, this can lead to osteoporosis if calcium intake remains low.
The recommended daily calcium intake is 1,000 mg for most adults, increasing to 1,200 mg for women over 50 and men over 70. Good dietary sources include dairy products (milk, yogurt, cheese), leafy greens (kale, collard greens, bok choy — though spinach is high in oxalates that reduce calcium absorption), sardines and canned salmon with bones, fortified plant milks, and tofu made with calcium sulfate. Most people can meet calcium needs through diet, though supplements may be recommended for those with low intake or absorption issues.
Maintaining Electrolyte Balance
For most people eating a balanced diet, electrolyte balance is automatically maintained by the kidneys, which excrete excess electrolytes and conserve those in short supply. The main situations that disrupt electrolyte balance are prolonged sweating (especially in heat), illness (vomiting, diarrhea, fever), certain medications (diuretics, lithium, some blood pressure drugs), and extreme dietary changes (very low carb diets can cause sodium losses in the first few weeks, often called the "keto flu").
For everyday hydration, plain water plus a normal diet is sufficient. For exercise lasting more than 60 minutes, particularly in heat, a sports drink or electrolyte tablet can help replace sweat losses. For illness with vomiting or diarrhea, oral rehydration solutions (like Pedialyte or WHO oral rehydration salts) are the best choice — they contain precise ratios of sodium, potassium, and glucose that maximize absorption. Avoid sports drinks for illness, as they are too dilute in electrolytes and too concentrated in sugar for effective rehydration.
If you experience persistent muscle cramps, weakness, irregular heartbeat, confusion, or extreme fatigue, consult a healthcare provider — these can be signs of electrolyte imbalance that requires medical evaluation. For everyday hydration guidance, calculate your daily water target with our Daily Water Intake Calculator and pair it with a balanced diet rich in fruits, vegetables, nuts, seeds, and lean protein. For exercise-specific hydration, see our complete hydration and exercise guide.