Sodium gets the spotlight. Potassium gets the bananas. But the electrolyte that quietly props up nearly every endurance performance — and the one most athletes are running short on — is magnesium. It’s involved in more than 300 enzymatic reactions in the body, including muscle contraction, nerve signaling, energy production, and recovery. And yet, the National Institutes of Health estimates that nearly half of U.S. adults don’t meet the daily recommended intake. Among endurance athletes, who lose magnesium through sweat and burn through it faster during hard training, the gap is even wider.
If you’ve been chasing better hydration with sodium-heavy mixes alone, you may be solving the wrong half of the problem. Here’s why magnesium deserves a spot at the front of your electrolyte strategy — and how to actually get enough of it.
What Magnesium Actually Does for Endurance Athletes
Most people think of magnesium as a “calm down” mineral — useful for sleep and stress. That’s accurate, but it undersells what magnesium does during training. Inside the muscle cell, magnesium helps regulate calcium flow, which controls the contract-and-release cycle that lets your legs turn over mile after mile. Without enough magnesium, calcium can stay bound to the contraction proteins longer than it should, which is one mechanism behind exercise-associated muscle cramps.
Magnesium is also a co-factor in ATP production — the energy currency your mitochondria spend during every stride, pedal stroke, and pull. Studies in The Journal of the International Society of Sports Nutrition have linked low magnesium status to higher oxygen consumption at the same workload, meaning depleted athletes essentially have to work harder for the same pace. For runners chasing PRs and cyclists trying to hold a wattage target on long climbs, that’s a meaningful tax.
Why Endurance Athletes Run Short
Three things conspire against magnesium status in heavy training blocks. First, sweat. While sodium losses dominate the conversation, magnesium also exits through sweat, with concentrations averaging around 0.6 to 1.5 mmol/L depending on the athlete. Add up a few hours of hard summer training and the cumulative loss adds up.
Second, the modern Western diet is genuinely magnesium-poor. Refined grains lose much of the magnesium found in whole-grain versions, and high-output athletes who lean on simple carbs and processed snacks for fast fuel often skimp on the leafy greens, nuts, seeds, and legumes that deliver it.
Third, training itself increases urinary magnesium losses. The harder the session, the more your kidneys excrete in the hours after. So the athletes who need it most are also the ones losing it fastest.
Signs You Might Be Low
Magnesium deficiency rarely shows up as one dramatic symptom. It usually announces itself as a cluster: late-race calf cramps that don’t respond to sodium, eyelid twitches the day after a hard workout, restless legs at night, sleep that feels shallow, slower-than-expected recovery between intervals, and a vague sense of edginess or anxiety in heavy training weeks. None of these prove a deficiency on their own — but if several stack up during a build phase, it’s worth paying attention.
How Much Do You Actually Need?
The RDA sits at 400-420 mg for adult men and 310-320 mg for adult women. Most sports nutrition researchers, including those cited in position stands from the International Society of Sports Nutrition, suggest active adults aim for the upper end of that range or slightly above — closer to 500-600 mg in heavy training blocks. The good news: you don’t need to hit that number from supplements alone, and you probably shouldn’t try.
Getting Magnesium From Food First
Food sources are the foundation. A single cup of cooked spinach delivers around 157 mg. An ounce of pumpkin seeds packs about 168 mg. A square of dark chocolate (the good stuff, 70%+) gives you 65 mg or so. Black beans, almonds, cashews, edamame, avocado, and quinoa all carry meaningful amounts. Build a couple of those into your daily rotation and you’re already most of the way there before any electrolyte mix enters the picture.
Where Sports Drinks Fit In
Most legacy sports drinks like Gatorade and Powerade contain little to no magnesium — they were designed around the sodium-and-carb-replacement model that dominated 1990s sports science. The newer wave of electrolyte products has been catching up. LMNT packs about 60 mg of magnesium per stick. Nuun Sport tablets deliver around 25 mg. Skratch Labs Sport Hydration includes roughly 39 mg per serving. Liquid I.V. Hydration Multiplier offers around 40 mg in its core mix. Ultima Replenisher has 100 mg per serving — one of the higher counts in the category.
For a different angle, fermented sources like Fast Pickle juice deliver naturally occurring magnesium alongside sodium, potassium, and the acetic acid that some research suggests can help cut cramping through a neurological reflex (rather than a strict electrolyte replacement). It’s not a one-to-one swap for a magnesium supplement, but it’s a useful tool in the cramp-prevention toolkit, especially mid-race when you don’t want to mix another bottle.
If You Decide to Supplement
Not all magnesium supplements are created equal, and the form matters more than the milligram count on the label. Magnesium glycinate is the gentlest on the gut and tends to be the easiest to absorb — a solid all-purpose pick for evening recovery dosing. Magnesium citrate absorbs well but can have a laxative effect at higher doses, so it’s better in moderate amounts. Magnesium malate is favored by some endurance athletes because malic acid is part of the cellular energy cycle. Magnesium oxide, the cheapest form and the one packed into most drugstore multivitamins, is poorly absorbed — skip it.
Brands like Thorne, Pure Encapsulations, Klean Athlete, and Momentous all sell well-formulated single-mineral products that endurance athletes tend to trust. Start with 200-300 mg in the evening if you’re new to it, and titrate up based on how your gut tolerates it.
A Practical Magnesium Day
Here’s what a sensible setup might look like for someone in a real training block: a breakfast that includes oatmeal with pumpkin seeds and a banana (~120 mg), an electrolyte mix during your afternoon ride or run that contains 50-100 mg, a dinner with leafy greens and beans or a piece of dark chocolate after (~150 mg), and an optional 200 mg glycinate dose with your last sip of water before bed if recovery has been feeling sluggish. That puts you comfortably in the 500-600 mg zone without doing anything exotic.
The Bottom Line
Sodium will always be the headline electrolyte in endurance sports — it’s lost in the largest quantities and it’s the most performance-limiting in the short term. But magnesium is the slow-burning deficit that costs you over weeks and months: worse cramps, worse sleep, slower recovery, and a higher perceived effort at the same pace. Eat the greens, pick an electrolyte product that includes meaningful magnesium, and consider a glycinate supplement during heavy training blocks. Your legs at mile 20 will thank you.