Magnesium for Runners: Cramps, Energy, and Recovery
Written by Smart Supplements Editorial Team
Key takeaways
- Magnesium is involved in 300+ enzymatic reactions including ATP energy production, muscle contraction/relaxation, and nerve signalling — all critical for running performance.
- An estimated 60% of adults in Europe don't meet the RDA for magnesium, and runners lose additional magnesium through sweat during training.
- The link between magnesium and cramps is more complex than "take magnesium, stop cramping" — but correcting a genuine deficiency does appear to help.
- Magnesium glycinate (200–400mg elemental) taken in the evening supports both recovery and sleep quality after training.
- Food sources (pumpkin seeds, dark chocolate, spinach, almonds) should form the base, with supplementation filling the gap.
Table of contents
- If Your Legs Cramp and Your Sleep Is Wrecked, Read This
- Why Magnesium Matters for Runners
- Are You Deficient? Probably.
- Magnesium and Cramps — The Evidence
- Magnesium and Sleep — The Recovery Angle
- How Much and Which Form?
- Timing Your Magnesium
- Magnesium and the Runner's Supplement Stack
- Product Comparison: Magnesium Supplements for Runners
- Where to Buy
- Frequently Asked Questions
- The Bottom Line
- Related Articles
If Your Legs Cramp and Your Sleep Is Wrecked, Read This
You finished a hard 16K tempo run. Legs feel decent. You shower, eat, stretch. Then at 2am, your calf seizes into a rock-hard knot that jolts you awake. Or maybe you don't cramp — but you lie in bed for an hour after evening runs, wired and restless despite being physically exhausted. Or your easy pace has drifted 15 seconds slower per kilometre over the past month and you can't figure out why.
These problems have multiple causes. But there's one mineral involved in all three — muscle contraction, energy production, and sleep regulation — and most runners don't get enough of it.
That mineral is magnesium.
This isn't a "magnesium cures everything" article. The evidence is more nuanced than supplement companies suggest. But the case for runners paying attention to their magnesium status is genuinely strong, and correcting a deficiency is one of the cheapest, simplest performance interventions available.
Key Takeaways
- Magnesium is involved in 300+ enzymatic reactions including ATP energy production, muscle contraction/relaxation, and nerve signalling — all critical for running performance.
- An estimated 60% of adults in Europe don't meet the RDA for magnesium, and runners lose additional magnesium through sweat during training.
- The link between magnesium and cramps is more complex than "take magnesium, stop cramping" — but correcting a genuine deficiency does appear to help.
- Magnesium glycinate (200–400mg elemental) taken in the evening supports both recovery and sleep quality after training.
- Food sources (pumpkin seeds, dark chocolate, spinach, almonds) should form the base, with supplementation filling the gap.
Why Magnesium Matters for Runners
Magnesium is the fourth most abundant mineral in your body and a cofactor in over 300 enzymatic reactions (de Baaij et al., 2015). For runners specifically, three functions stand out:
ATP Production
Every stride you take is powered by adenosine triphosphate (ATP). What most runners don't realise is that ATP doesn't actually function in isolation — it must bind to magnesium to become biologically active. The functional molecule is technically Mg-ATP, not ATP alone. Without adequate magnesium, your cells literally cannot produce and utilise energy efficiently (Pilchova et al., 2017).
This matters more during exercise. Your ATP turnover increases roughly 20-fold during intense running. If magnesium is even mildly insufficient, the bottleneck affects energy output before you'd notice it on a blood test.
Muscle Contraction and Relaxation
Calcium triggers muscle contraction. Magnesium enables relaxation. They work as a pair. When magnesium is low relative to calcium, muscles tend toward sustained contraction rather than smooth contract-relax cycling. This doesn't always manifest as full cramps — it can show up as persistent tightness, delayed recovery from hard sessions, or a feeling that your legs just won't "let go."
Nerve Signalling
Magnesium regulates neuromuscular transmission by modulating ion channels and neurotransmitter release at the neuromuscular junction (Bhatt et al., 2023). In practical terms: when magnesium is low, nerve excitability increases, which can contribute to muscle twitching, cramps, and that "restless legs" sensation many runners experience after evening training.

Are You Deficient? Probably.
Here's the uncomfortable truth about magnesium status in Europe:
The population data is not encouraging. A 2017 cross-sectional analysis across European countries found that 60–70% of adults fail to meet the recommended dietary allowance of 300–400mg/day (Rosanoff et al., 2012). The situation has likely worsened since then — soil depletion, increased processed food consumption, and declining mineral content in crops all trend in the wrong direction.
Runners lose extra magnesium. Sweat contains 3–15mg of magnesium per litre (Stofan et al., 2005). A runner producing 1–2 litres of sweat per hour during summer training loses meaningful amounts over a 60–90 minute session. The urinary excretion of magnesium also increases with exercise intensity. Combined with the higher metabolic demand for Mg-ATP during training, runners face a triple drain.
Blood tests are almost useless. Only about 1% of total body magnesium circulates in blood serum. Your body aggressively defends serum levels by pulling magnesium from bones and soft tissue. By the time serum magnesium drops below reference range, intracellular stores have been depleted for months (Costello et al., 2016). A "normal" blood test does not mean your magnesium status is adequate — it means your body hasn't yet exhausted its reserves.
The more reliable (but less commonly ordered) test is red blood cell (RBC) magnesium, which better reflects intracellular stores. If you're curious about your actual status, ask for this specifically.
| Test | What It Measures | Reliability for Runners |
|---|---|---|
| Serum magnesium | Blood plasma levels (1% of total body Mg) | Poor — stays normal until severe depletion |
| RBC magnesium | Intracellular magnesium in red blood cells | Better — reflects 4–6 month average |
| 24-hour urine Mg | Renal magnesium excretion | Moderate — affected by recent intake and exercise |
Risk Factors for Runner-Specific Deficiency
You're at higher risk if you tick multiple boxes:
- Training 5+ hours per week (increased losses via sweat and metabolism)
- Training in hot climates or summer conditions (higher sweat rates)
- Following a restricted diet (low-calorie, low-carb, or avoiding whole grains)
- Consuming alcohol regularly (promotes renal magnesium wasting)
- Under chronic stress (cortisol increases magnesium excretion)
- Taking proton pump inhibitors or diuretics (medication-induced depletion)
Magnesium and Cramps — The Evidence
Let's address the elephant in the room. "Take magnesium for cramps" is one of the most common pieces of running advice. But what does the evidence actually say?
It's Complicated
A 2020 Cochrane review of magnesium supplementation for muscle cramps found that evidence for a benefit in the general population is "unlikely" and "low quality" (Garrison et al., 2020). This review is frequently cited by sceptics. However, several important caveats apply:
-
Most studies used participants who weren't deficient. If you give magnesium to someone with adequate stores, you wouldn't expect it to prevent cramps — just as giving iron to someone with normal ferritin won't improve their running.
-
Exercise-associated muscle cramps (EAMC) are multifactorial. Cramps during running involve neuromuscular fatigue, electrolyte imbalance (sodium is often more important than magnesium), dehydration, pacing beyond fitness, and possibly altered spinal reflex activity. Magnesium deficiency is one piece of a larger puzzle.
-
Correcting a genuine deficiency does appear to help. A 2017 randomised controlled trial in pregnant women with leg cramps (a population with known higher magnesium demand) found that magnesium supplementation significantly reduced cramp frequency and intensity (Supakatisant & Phupong, 2015).
The Pragmatic Position for Runners
If you cramp frequently and you're already managing hydration, sodium, pacing, and training load — and especially if you fit the deficiency risk profile above — supplementing magnesium (200–400mg elemental, preferably glycinate or citrate) for 4–6 weeks is a reasonable, low-risk trial. It won't help everyone. But for those with subclinical deficiency contributing to cramps, it can make a meaningful difference.
The cost is under €15/month. The side-effect profile is excellent (loose stools at high doses is essentially the only concern). The potential upside justifies the experiment.
| Factor | Role in Exercise-Associated Cramps |
|---|---|
| Neuromuscular fatigue | Primary driver — overloaded motor neurons fire involuntarily |
| Sodium depletion | Major — especially in salty sweaters and long efforts |
| Dehydration | Contributing — reduces plasma volume and electrolyte concentration |
| Magnesium deficiency | Contributing — increases nerve excitability and impairs relaxation |
| Potassium depletion | Minor in most cases — rarely the primary cause |
| Pacing / fitness mismatch | Major — running beyond current capacity triggers fatigue-related cramps |

Orangefit Magnesium
Plant-based magnesium supplement supporting muscle function, energy production, and recovery.
- • Supports muscle function
- • Aids energy production
- • Plant-based formula
Magnesium and Sleep — The Recovery Angle
Sleep is where runners actually recover. Growth hormone release, muscle protein synthesis, glycogen restorage, neural adaptation — it all happens during deep sleep. And this is where magnesium's story gets genuinely compelling.
The Mechanism
Magnesium activates the parasympathetic nervous system (the "rest and digest" branch) through several pathways:
- GABA modulation: Magnesium binds to GABA-B receptors, enhancing the activity of this inhibitory neurotransmitter (Möykkynen et al., 2001). GABA is the brain's primary "calm down" signal.
- NMDA receptor regulation: Magnesium blocks NMDA receptors at resting potential, reducing excitatory glutamate signalling. When magnesium is low, these receptors become overactive, contributing to restlessness and anxiety.
- Melatonin synthesis: Magnesium is a cofactor in the conversion of tryptophan to serotonin to melatonin — the entire sleep-onset pathway.
The Evidence in Runners and Athletes
A 2012 double-blind RCT in elderly subjects found that 500mg magnesium supplementation for 8 weeks significantly improved sleep time, sleep efficiency, melatonin levels, and reduced cortisol compared to placebo (Abbasi et al., 2012). While this specific trial wasn't in athletes, the pathways are the same.
A 2019 systematic review of magnesium and sleep found that supplementation was associated with improved subjective sleep quality, particularly in those with low dietary magnesium intake (Mah & Bhagwat, 2019).
For runners who train in the evening and then struggle to wind down — the magnesium-sleep connection may be the single most valuable reason to supplement.
The Glycinate Advantage
Magnesium glycinate is the preferred form for sleep because you get a two-for-one effect: the magnesium itself plus glycine (the amino acid it's bound to). Glycine independently improves sleep quality by lowering core body temperature and modulating NMDA receptors (Bannai & Kawai, 2012). The combination of elemental magnesium and glycine makes this form particularly effective as a pre-bed supplement for athletes.
For a deeper dive into the sleep-supplement connection, see our guide on sleep supplements: melatonin, magnesium, and glycine.
How Much and Which Form?
Not all magnesium supplements are the same. The form determines how well it's absorbed, what it's best used for, and what side effects you might experience.
Recommended Intake for Runners
The EU recommended daily intake for magnesium is 375mg. For runners training 5+ hours per week, a total intake (food + supplements) of 400–500mg is a reasonable target. Most people get 200–250mg from diet, leaving a supplemental gap of 150–300mg elemental magnesium.
Important: supplement labels can be confusing. "400mg magnesium citrate" might contain only 60–80mg of elemental magnesium (the rest is citrate). Always check the elemental magnesium content, not the total compound weight.
Form Comparison
| Form | Elemental Mg per Dose | Absorption | Best For | GI Tolerance | Price Range |
|---|---|---|---|---|---|
| Magnesium glycinate | ~18% elemental | High | Sleep, recovery, anxiety | Excellent | €12–20/month |
| Magnesium citrate | ~16% elemental | High | General use, constipation relief | Good (loose stools at high doses) | €8–14/month |
| Magnesium oxide | ~60% elemental | Low (~4%) | Budget option (but poor absorption) | Poor (laxative effect) | €5–8/month |
| Magnesium L-threonate | ~8% elemental | Moderate | Cognitive function (crosses BBB) | Good | €25–40/month |
| Magnesium malate | ~15% elemental | High | Energy, muscle pain | Good | €10–18/month |
| Magnesium taurate | ~9% elemental | High | Cardiovascular, blood pressure | Excellent | €15–25/month |
Food Sources
Supplements should complement, not replace, dietary magnesium. The best food sources for runners:
| Food | Magnesium per Serving |
|---|---|
| Pumpkin seeds (30g) | 156mg |
| Dark chocolate (70%+, 40g) | 64mg |
| Almonds (30g) | 80mg |
| Spinach (100g cooked) | 87mg |
| Black beans (100g cooked) | 70mg |
| Avocado (1 medium) | 58mg |
| Banana (1 large) | 37mg |
| Oats (40g dry) | 44mg |
A handful of pumpkin seeds and 30g of dark chocolate after a run gives you nearly 220mg of magnesium from food alone — plus it tastes significantly better than a capsule.
For a comprehensive breakdown of all magnesium forms and their applications, see our magnesium types guide.

Timing Your Magnesium
When you take magnesium matters almost as much as which form you choose.
The Case for Evening Dosing
For most runners, evening is the optimal time:
- Sleep support: The GABA-enhancing and glycine-mediated calming effects peak 30–60 minutes after ingestion. Taking magnesium 1 hour before bed creates a natural wind-down window.
- Recovery timing: Post-training magnesium supports muscle relaxation during the critical overnight recovery period.
- Avoids mineral competition: Calcium and magnesium compete for absorption via the same intestinal transporters. Most people consume calcium-rich foods (dairy, fortified alternatives) at breakfast and lunch. Evening magnesium avoids this competition.
Practical Timing Protocol for Runners
| Scenario | When to Take | Form | Notes |
|---|---|---|---|
| Morning runner | Evening (before bed) | Glycinate | Separate from breakfast calcium |
| Evening runner | 30–60 min after training, before bed | Glycinate or citrate | Helps transition from training to recovery |
| Race day | Evening before race + morning with breakfast | Citrate | Small dose AM to top up; main dose PM |
| Rest day | Evening | Glycinate | Maintain consistency |
What NOT to Do
- Don't take magnesium with a calcium supplement or calcium-fortified meal. Separate by at least 2 hours.
- Don't take magnesium oxide expecting good absorption. Despite high elemental content, bioavailability is roughly 4% — you're mostly paying for a laxative effect.
- Don't mega-dose. More than 400mg elemental in a single sitting commonly causes GI discomfort. If you need higher doses, split into two servings.
- Don't forget consistency. Magnesium stores build over weeks. The benefits of supplementation typically become noticeable at 2–4 weeks, with full effect at 6–8 weeks.
For a complete guide on timing all your supplements optimally, see our supplement timing guide.
Magnesium and the Runner's Supplement Stack
Magnesium doesn't exist in isolation. For runners building a complete supplement strategy, it fits into a broader stack:
The Runner's Foundation Stack
| Supplement | Why Runners Need It | Timing |
|---|---|---|
| Magnesium (300–400mg) | ATP production, muscle recovery, sleep | Evening |
| Vitamin D3 + K2 (1000–2000 IU) | Bone density, immune function, muscle strength | Morning with fat |
| Omega-3 (1000mg EPA+DHA) | Anti-inflammatory, joint protection | With lunch |
| Iron (if deficient) | Oxygen transport — check ferritin first | Morning, away from calcium/coffee |
| Electrolytes (during runs >60min) | Sodium, potassium, magnesium replacement | During training |
Magnesium interacts well with most other running supplements. The main consideration is avoiding simultaneous intake with calcium, iron, or zinc, which can reduce absorption of all minerals involved.
For the complete runner's supplement strategy, see our guide on building a supplement stack for runners.

Magnesium (algen)
Magnesium supplement for an active lifestyle, derived from marine algae.
- • Supports normal muscle function and energy metabolism
- • Plant-based source, gentle on stomach
- • Designed for active lifestyles and recovery
Product Comparison: Magnesium Supplements for Runners
We've evaluated three magnesium supplements available through our European partner network. Each serves a slightly different purpose.
| Feature | Orangefit Magnesium | PLNKTN Magnesium | Zamnesia Magnesium Citrate |
|---|---|---|---|
| Form | Magnesium bisglycinate | Marine algae-derived magnesium | Magnesium citrate |
| Elemental Mg per serving | 300mg | 300mg | 200mg |
| Source | Chelated bisglycinate | Ocean-derived (Aquamin) | Citrate salt |
| Best for | Sleep + recovery | Whole-food approach, vegan | Budget, general use |
| GI tolerance | Excellent | Excellent | Good (mild laxative at high doses) |
| Additional ingredients | None | Trace minerals from algae | None |
| Vegan | Yes | Yes | Yes |
| Price | ~€19.90 | ~€18.95 | ~€9.95 |
| Best for runners who... | Want the sleep + recovery combo | Prefer natural/whole-food sourced | Want affordable daily magnesium |
Our Take
For evening recovery and sleep: Orangefit Magnesium (bisglycinate) is our top pick. The glycinate form provides the dual benefit of elemental magnesium plus glycine for sleep support. At 300mg elemental per serving, one dose covers the supplemental gap for most runners.
For the whole-food purist: PLNKTN's algae-derived magnesium offers a natural matrix of trace minerals alongside magnesium, mimicking the mineral profile of whole foods. Some runners prefer this approach philosophically, and the trace mineral cofactors may support absorption.
For the budget-conscious runner: Zamnesia Magnesium Citrate at under €10/month is hard to beat for value. Citrate is well-absorbed and effective for general magnesium support, though it lacks the specific sleep benefits of glycinate.

Where to Buy
Affiliate disclosure: Smart Supplements earns a commission on purchases made through partner links. This doesn't affect our editorial content or recommendations.
Orangefit Magnesium
Plant-based magnesium supplement supporting muscle function, energy production, and recovery.
- • Supports muscle function
- • Aids energy production
- • Plant-based formula
Magnesium Citrate
Zamnesia Magnesium Citrate — 100% natural magnesium supplement providing 200mg magnesium per tablet (53% reference intake). Supports muscle and nerve function, reduces fatigue, contributes to normal psychological functioning and bone health. 100 tablets per bottle.
- • 200mg magnesium citrate per tablet — 53% reference intake
- • Reduces fatigue and supports normal energy metabolism
- • Supports muscle function, nerve function, and bone health
Frequently Asked Questions
Can you take too much magnesium?
The tolerable upper intake from supplements is 350mg elemental per day (this doesn't include food sources). Exceeding this typically causes loose stools or diarrhoea — your body's way of eliminating excess. It's very rare to reach toxic levels from oral supplementation because the kidneys efficiently excrete surplus magnesium. However, people with kidney disease should consult their doctor before supplementing, as impaired renal function reduces this safety mechanism.
Does magnesium help with muscle soreness after running?
Magnesium won't eliminate delayed onset muscle soreness (DOMS) — that's primarily an inflammatory response to muscle damage. However, adequate magnesium supports the recovery process by enabling muscle relaxation, supporting protein synthesis, and improving sleep quality (where most recovery occurs). Think of it as creating optimal conditions for recovery rather than directly treating soreness.
Is magnesium spray (transdermal) effective?
The evidence for transdermal magnesium absorption is weak. A 2017 systematic review found insufficient evidence that magnesium applied to the skin meaningfully raises intracellular magnesium levels (Gröber et al., 2017). Some runners report subjective relief from magnesium spray on cramping muscles, which may be related to the cooling/massage effect rather than mineral absorption. For reliable magnesium status improvement, oral supplementation remains the evidence-based choice.
When is the best time to take magnesium for runners?
Evening, approximately 1 hour before bed. This optimises the sleep-promoting effects while supporting overnight muscle recovery. If you train in the evening, take magnesium 30–60 minutes after your post-run meal. Morning dosing is fine if sleep isn't a priority — magnesium malate or citrate may be preferable for daytime use as they're less sedating than glycinate.
Should I take magnesium on rest days?
Yes. Magnesium stores build gradually over weeks, and the benefits depend on consistent intake. Skipping rest days creates an inconsistent mineral supply. Your body is recovering and adapting on rest days — it still needs magnesium for ATP production, protein synthesis, and sleep quality.
Can I get enough magnesium from food alone?
Theoretically, yes. A diet rich in pumpkin seeds, dark leafy greens, nuts, whole grains, and dark chocolate can supply 400mg+ daily. Practically, most Europeans don't achieve this — food diaries consistently show average intakes of 200–280mg/day. If you track your food and consistently hit 350mg+ from diet, supplementation may be unnecessary. For most runners, a combination of magnesium-rich foods plus 150–200mg supplemental magnesium is the most realistic approach.
The Bottom Line
Magnesium isn't a magic bullet for running performance. No supplement is. But given that the majority of European adults are likely suboptimal, that runners face additional losses through sweat and increased metabolic demand, and that magnesium touches everything from ATP production to muscle function to sleep quality — it's arguably the most important mineral for runners to get right.
The protocol is simple: eat magnesium-rich foods daily, supplement 200–400mg elemental magnesium (glycinate for sleep, citrate for general use) in the evening, and give it 4–6 weeks to assess the effect on your sleep, recovery, and overall running feel.
At under €15/month, it's one of the cheapest experiments in your running toolkit. And if you're one of the 60% who aren't getting enough, the difference can be quietly transformative.
Related Articles
- Magnesium Types Explained: Glycinate, Threonate, Taurate & Which to Choose
- Supplement Timing: When to Take Vitamins and Supplements for Maximum Effect
- The Daily Wellness Stack: Morning, Afternoon & Evening Supplements
- Supplements for Running: A Complete Evidence-Based Guide
- Electrolytes for Runners: Sodium, Potassium & What You Actually Lose
- The Runner's Supplement Stack: What to Take and When
- Creatine for Runners: Endurance, Power & Recovery
- Protein for Runners: How Much You Need and the Best Sources
This article is for informational purposes only and is not intended as medical advice. Always consult a healthcare professional before starting any new supplement, especially if you take prescription medication.
Last updated: April 2026 Written by the Smart Supplements editorial team
Related topics
Where to buy
Affiliate linksUpfront Creatine
Straightforward creatine monohydrate at an unbeatable price. Clean formula, no nonsense.
- • Pure creatine monohydrate
- • Best price in NL (€8)
- • No fillers
Orangefit Protein
Plant-based protein shake made from yellow split peas. Complete amino acid profile, easy to digest, no artificial sweeteners. Available in multiple flavours.
- • 100% plant-based (yellow split peas)
- • Complete amino acid profile
- • No artificial sweeteners
Orangefit Protein Blend
Triple-source plant protein: yellow split peas, fava beans, and pumpkin. 24g protein + 5g BCAAs per shake, with turmeric and bioperine.
- • 24g protein per serving
- • 5g BCAAs included
- • Triple protein source
Upfront Crea PRO
Premium creatine formula with enhanced absorption. For athletes who want more from their creatine.
- • Enhanced absorption formula
- • Premium creatine
- • For serious athletes
Disclosure: We may earn a commission if you purchase via these links.
Related articles
Electrolytes for Runners: When You Need Them and When You Don't
Most runs don't require electrolyte supplementation — but when they do, getting the timing and dose right can mean the difference between a strong finish and a DNF. Here's the evidence-based framework.
Best Supplements for Muscle Soreness and Recovery: What the Science Says
A science-backed guide to supplements that actually help with muscle soreness and recovery — including protein, omega-3, magnesium, and collagen — with dosing protocols, evidence ratings, and a practical recovery stack.
Magnesium Types Explained: Glycinate, Threonate, Taurate & Which to Choose
A comprehensive guide to the 8+ forms of magnesium supplements — glycinate, L-threonate, taurate, citrate, oxide, malate, orotate and chloride — covering absorption rates, best uses, dosing, and how to choose the right form for your goals.