Electrolytes Explained: Sodium, Potassium, and Magnesium for Performance and Health
Understand the science behind electrolytes, their roles in performance and health, recommended intakes, and how to track and optimize your sodium, potassium, and magnesium levels.
Electrolytes are among the most misunderstood nutrients in popular health and fitness culture. Marketing has turned them into something you buy in a neon-colored bottle after a workout. Science tells a more nuanced story. Sodium, potassium, and magnesium are charged minerals that regulate fluid balance, nerve signaling, muscle contraction, and pH balance in every cell of your body. Getting them right affects everything from your exercise performance to your blood pressure, sleep quality, and cognitive function.
This article cuts through the marketing noise to explain what electrolytes actually do, how much you need, what happens when you get too little or too much, and how tracking your intake can help you find the optimal balance for your body and activity level.
What Are Electrolytes and Why Do They Matter?
Electrolytes are minerals that carry an electrical charge when dissolved in water. In the human body, they exist in blood, urine, tissues, and other body fluids. The major electrolytes are sodium, potassium, magnesium, calcium, chloride, phosphate, and bicarbonate.
The three most commonly discussed in the context of nutrition and performance are sodium, potassium, and magnesium. They matter because they control several fundamental physiological processes:
Fluid balance: Sodium and potassium work together to regulate how much water your cells retain and how much circulates in your blood. This directly affects blood volume, blood pressure, and cellular hydration.
Nerve signaling: Every nerve impulse in your body, from the signal that tells your heart to beat to the thought you are having right now, depends on the movement of sodium and potassium ions across cell membranes.
Muscle contraction: Calcium triggers muscle contraction, but sodium, potassium, and magnesium are all involved in the signaling cascade that coordinates this process. Imbalances in any of these can lead to cramps, weakness, or irregular heartbeat.
pH regulation: Electrolytes help maintain blood pH within the narrow range (7.35 to 7.45) necessary for survival. Even small deviations outside this range impair enzyme function and can be life-threatening.
Sodium: The Most Controversial Electrolyte
Sodium has a reputation problem. Decades of public health messaging have framed sodium as a villain, responsible for hypertension and cardiovascular disease. The reality is more complex: sodium is essential for life, and both too little and too much can cause problems.
What Sodium Does
Sodium is the primary electrolyte in extracellular fluid (the fluid outside your cells). It regulates blood volume and blood pressure, enables nerve impulse transmission, supports nutrient absorption in the gut (glucose and amino acids are co-transported with sodium), and maintains fluid balance between the inside and outside of cells.
How Much Do You Need?
The recommended adequate intake (AI) for sodium is 1,500 mg per day for adults, with an upper limit of 2,300 mg per day. However, these recommendations are based on sedentary populations and do not account for the significant sodium losses that occur through sweat during exercise.
| Activity Level | Estimated Daily Sodium Need |
|---|---|
| Sedentary, no sweating | 1,500-2,300 mg |
| Moderate exercise (30-60 min) | 2,000-3,000 mg |
| Heavy exercise (60-120 min) | 3,000-5,000 mg |
| Extreme exercise (2+ hours, hot climate) | 5,000-7,000+ mg |
Sweat sodium concentration varies significantly between individuals, ranging from about 200 to 2,000 mg per liter. A heavy sweater exercising for two hours in heat can lose 3,000 mg or more of sodium in a single session.
The Sodium-Blood Pressure Nuance
The relationship between sodium intake and blood pressure is real but not universal. Research has identified that approximately 25 to 50 percent of people with hypertension and a smaller percentage of people with normal blood pressure are "salt-sensitive," meaning their blood pressure rises and falls significantly with sodium intake.
For salt-sensitive individuals, reducing sodium intake is an effective strategy for managing blood pressure. For the majority of people with normal blood pressure and no salt sensitivity, moderate sodium intake within the range of 2,300 to 4,600 mg per day appears to be the range associated with the lowest cardiovascular risk, according to large observational studies including the PURE study.
Signs of Sodium Imbalance
Too little (hyponatremia): Headache, nausea, confusion, muscle cramps, fatigue, and in severe cases, seizures. Exercise-associated hyponatremia is a real risk for endurance athletes who drink excessive water without replacing sodium.
Too much (acute): Thirst, swelling, temporary blood pressure elevation. The body is generally effective at excreting excess sodium through the kidneys in healthy individuals.
Potassium: The Underconsumed Essential
If sodium is overcovered in health media, potassium is undercovered. It is arguably the electrolyte with the most significant gap between recommended intake and actual consumption in most populations.
What Potassium Does
Potassium is the primary electrolyte inside your cells (intracellular fluid). It works in concert with sodium to maintain fluid balance across cell membranes. Its specific functions include regulating heartbeat and preventing arrhythmias, counteracting the effects of sodium on blood pressure, supporting muscle contraction and preventing cramps, maintaining cellular hydration, and supporting kidney function.
How Much Do You Need?
The adequate intake for potassium is 2,600 mg per day for women and 3,400 mg per day for men. Despite being found in a wide variety of foods, less than 2 percent of Americans meet this target.
The shortfall is largely due to the displacement of potassium-rich whole foods (fruits, vegetables, legumes, and dairy) by processed foods, which are typically low in potassium and high in sodium. This creates a double problem: too much sodium and not enough potassium, the exact combination associated with the highest cardiovascular risk.
The Sodium-to-Potassium Ratio
Emerging research suggests that the ratio of sodium to potassium intake may be more important for health outcomes than either mineral in isolation. A sodium-to-potassium ratio below 1.0 (meaning you consume more potassium than sodium) is associated with the lowest risk of hypertension and cardiovascular events.
Most Western diets have this ratio inverted, with sodium intake exceeding potassium intake, sometimes by a factor of 2 or more.
Best Food Sources of Potassium
| Food | Serving Size | Potassium (mg) | % AI (3,400 mg) |
|---|---|---|---|
| Beet greens, cooked | 1 cup | 1,309 | 38% |
| White beans, canned | 1 cup | 1,189 | 35% |
| Baked potato with skin | 1 medium | 926 | 27% |
| Spinach, cooked | 1 cup | 839 | 25% |
| Salmon | 85 g (3 oz) | 534 | 16% |
| Sweet potato | 1 medium | 541 | 16% |
| Banana | 1 medium | 422 | 12% |
| Avocado | 1/2 medium | 487 | 14% |
| Yogurt, plain | 1 cup | 573 | 17% |
| Lentils, cooked | 1 cup | 731 | 21% |
Notice that bananas, the food most commonly associated with potassium, are actually a relatively modest source. Potatoes, beans, greens, and fish all provide significantly more potassium per serving.
Magnesium: The Recovery Mineral
Magnesium is involved in over 600 enzymatic reactions in the body, more than any other mineral. It is essential for energy production, protein synthesis, muscle and nerve function, blood glucose control, and blood pressure regulation. It is also one of the most commonly deficient minerals in developed countries.
What Magnesium Does
Energy production: Magnesium is required for ATP (adenosine triphosphate) to function. Since ATP is the primary energy currency of cells, magnesium is literally necessary for every energy-requiring process in your body.
Muscle function: Magnesium acts as a natural calcium channel blocker in muscles. It helps muscles relax after contraction. Without adequate magnesium, muscles can cramp, twitch, or remain in a state of excessive tension.
Nervous system regulation: Magnesium modulates NMDA receptors in the brain, which are involved in learning, memory, and neural excitability. It has a calming effect on the nervous system and is sometimes called "nature's relaxation mineral."
Sleep quality: Research has shown that magnesium supplementation improves sleep quality in people with low magnesium status. It does this partly by regulating melatonin production and partly by activating the parasympathetic nervous system.
Bone health: About 60 percent of the body's magnesium is stored in bones. It is necessary for vitamin D metabolism and calcium regulation, making it indirectly essential for bone density.
How Much Do You Need?
The RDA for magnesium is 310 to 320 mg per day for women and 400 to 420 mg per day for men. Athletes and physically active people may need more due to increased losses through sweat and increased metabolic demand.
Survey data consistently shows that 50 percent or more of the population consumes less than the estimated average requirement for magnesium. This widespread insufficiency is driven by the decline in magnesium content of foods over the past century (due to soil depletion and food processing) and the shift away from magnesium-rich foods like nuts, seeds, whole grains, and leafy greens.
Forms of Magnesium in Supplements
Not all magnesium supplements are equal. Different forms have different absorption rates and effects:
| Form | Absorption | Best For |
|---|---|---|
| Magnesium citrate | High | General supplementation, constipation |
| Magnesium glycinate | High | Sleep, anxiety, general supplementation (less GI distress) |
| Magnesium threonate | Moderate | Cognitive function (crosses blood-brain barrier) |
| Magnesium malate | High | Energy, muscle pain |
| Magnesium oxide | Low (4%) | Heartburn, migraine prevention (high dose per pill) |
| Magnesium taurate | Moderate | Cardiovascular health |
Best Food Sources of Magnesium
| Food | Serving Size | Magnesium (mg) | % RDA (420 mg) |
|---|---|---|---|
| Pumpkin seeds | 28 g (1 oz) | 156 | 37% |
| Chia seeds | 28 g (1 oz) | 111 | 26% |
| Almonds | 28 g (1 oz) | 80 | 19% |
| Spinach, cooked | 1 cup | 157 | 37% |
| Cashews | 28 g (1 oz) | 74 | 18% |
| Black beans, cooked | 1 cup | 120 | 29% |
| Edamame | 1 cup | 100 | 24% |
| Dark chocolate (70-85%) | 28 g (1 oz) | 65 | 15% |
| Avocado | 1 medium | 58 | 14% |
| Brown rice, cooked | 1 cup | 84 | 20% |
Electrolytes and Exercise Performance
The relationship between electrolytes and exercise performance is direct and measurable. Electrolyte imbalances during exercise can reduce performance by 5 to 20 percent and, in extreme cases, create dangerous medical situations.
What Happens During Exercise
When you exercise, you sweat. Sweat contains sodium (the dominant electrolyte in sweat), potassium, magnesium, and calcium in smaller amounts. The rate of electrolyte loss depends on exercise intensity and duration, ambient temperature and humidity, individual sweat rate and sweat composition, fitness level (fitter individuals often sweat more but with lower sodium concentration), and acclimatization to heat.
Pre-Exercise Electrolyte Strategy
Ensuring adequate electrolyte status before exercise is more effective than trying to replace losses during exercise. For workouts under 60 minutes, a normal diet with adequate sodium, potassium, and magnesium is usually sufficient. For longer sessions or sessions in heat, pre-loading with 300 to 600 mg of sodium in the hour before exercise can improve fluid retention and performance.
During Exercise
For exercise lasting more than 60 minutes, aim for 300 to 600 mg of sodium per hour through a sports drink, electrolyte tablet, or salted snack. Potassium and magnesium losses during exercise are generally smaller and can be replaced through post-exercise food choices.
Post-Exercise Recovery
Post-exercise electrolyte replacement should focus on sodium and potassium. Foods like bananas, potatoes, yogurt, and salted nuts provide both along with carbohydrates and protein for recovery. Magnesium-rich foods like dark chocolate, pumpkin seeds, or a magnesium supplement before bed can support muscle recovery and sleep quality after hard training.
Tracking Electrolytes with Nutrition Apps
Electrolytes are among the most difficult nutrients to track accurately because sodium content varies enormously depending on preparation method (salted vs. unsalted), brand, and recipe. A "chicken breast" can contain 60 mg or 600 mg of sodium depending on whether it was brined, seasoned, or plain.
What to Look for in Electrolyte Tracking
Effective electrolyte tracking requires a nutrition app with a comprehensive database that includes sodium, potassium, and magnesium values, the ability to account for added salt and seasonings, and visibility into daily and weekly trends.
Nutrola's database of more than 1.3 million foods includes detailed electrolyte data. When you log meals using Snap & Track, the system estimates not just calories and macros but also sodium, potassium, and magnesium content. Over time, this data reveals patterns: Are you consistently low on potassium? Is your sodium-to-potassium ratio inverted? Are you getting enough magnesium to support your training?
Practical Tracking Tips
- Log added salt. This is the most commonly missed source of sodium. If you salt your food at the table or during cooking, add it to your log.
- Check brand-specific data. Sodium content varies enormously between brands of the same food. Use barcode scanning when available for packaged foods.
- Pay attention to ratios. The absolute numbers matter less than the balance between sodium and potassium. Aim for a sodium-to-potassium ratio at or below 1.0.
- Adjust for activity. On heavy training days, your electrolyte needs increase significantly. Track more carefully on these days to ensure adequate replacement.
- Review weekly, not daily. Daily electrolyte intake can swing wildly. Weekly averages provide a more meaningful picture of your electrolyte status.
Common Electrolyte Myths Debunked
Myth: You Need Electrolyte Drinks for Every Workout
For workouts under 60 minutes at moderate intensity, water is sufficient for most people. Electrolyte drinks add sugar and sodium that are not needed for short, moderate exercise. Save electrolyte supplementation for sessions longer than 60 minutes, high-intensity sessions, or exercise in heat.
Myth: Salt Is Always Bad for You
Sodium is essential for life. The "salt is bad" message was an oversimplification based on research in salt-sensitive hypertensive populations. For healthy, active people, moderate sodium intake within the range of 2,300 to 4,600 mg per day is generally associated with optimal health outcomes. Very low sodium intake (below 1,500 mg) may actually increase cardiovascular risk in some populations.
Myth: Bananas Are the Best Source of Potassium
Bananas are a decent source of potassium (422 mg per medium banana) but far from the best. Beet greens, white beans, potatoes, and spinach all provide substantially more potassium per serving. The banana-potassium association is a triumph of marketing over nutritional fact.
Myth: Magnesium Supplements Are All the Same
Different forms of magnesium have vastly different absorption rates and effects. Magnesium oxide, the most common form in cheap supplements, has an absorption rate of only about 4 percent. Magnesium glycinate and citrate are absorbed much more effectively and cause fewer gastrointestinal side effects.
FAQ
How do I know if I am dehydrated or electrolyte-depleted?
Dehydration and electrolyte depletion often occur together but can also occur independently. Dehydration (fluid loss) causes thirst, dark urine, and dry mouth. Electrolyte depletion (mineral loss without adequate fluid loss) can cause muscle cramps, fatigue, dizziness, and headaches even when you are drinking enough water. If you are drinking plenty of water but still experiencing cramps or fatigue during exercise, electrolyte depletion may be the issue rather than dehydration.
Should I take electrolyte supplements daily or only around exercise?
For most people, a diet rich in whole foods provides adequate daily electrolytes without supplementation. Supplementation is most valuable around exercise (before, during, and after sessions longer than 60 minutes), in hot weather, and for people on very low-carb or ketogenic diets (which increase electrolyte excretion). If tracking reveals a consistent dietary gap in potassium or magnesium, a targeted daily supplement may be appropriate.
How does a low-carb or ketogenic diet affect electrolyte needs?
Low-carb and ketogenic diets significantly increase electrolyte requirements because lower insulin levels cause the kidneys to excrete more sodium. This sodium loss also pulls potassium and magnesium with it. People on ketogenic diets often need to supplement with 3,000 to 5,000 mg of sodium, 3,000 to 4,000 mg of potassium, and 400 mg of magnesium daily to avoid the fatigue, headaches, and cramps often called "keto flu."
Can you overdose on electrolytes?
Yes, though it is rare from food alone. Supplemental sodium in excess can raise blood pressure in salt-sensitive individuals. Supplemental potassium in excess can cause dangerous hyperkalemia (high blood potassium), which can affect heart rhythm. Magnesium supplements in excess typically cause diarrhea before reaching dangerous levels. The upper tolerable limit for supplemental magnesium is 350 mg per day (this does not include magnesium from food).
How do electrolyte needs change with age?
Older adults are at increased risk of electrolyte imbalances due to reduced kidney function, medications (diuretics, ACE inhibitors), decreased thirst sensation, and lower dietary intake. Potassium and magnesium insufficiency are particularly common in older populations. Sodium needs generally do not decrease with age, but salt sensitivity tends to increase, making the balance more delicate.
Does Nutrola track all three major electrolytes?
Yes. Nutrola tracks sodium, potassium, and magnesium as part of its comprehensive micronutrient analysis. When you log meals using Snap & Track or the AI Diet Assistant, the system calculates your electrolyte intake alongside calories, macros, and other micronutrients. The dashboard displays your daily and weekly averages, making it easy to identify patterns and gaps in your electrolyte intake.
Ready to Transform Your Nutrition Tracking?
Join thousands who have transformed their health journey with Nutrola!