Skip to content
Nutrition19 min read

MAGNESIUM FOR CYCLISTS: THE DEFICIENCY YOU ARE PROBABLY IGNORING

By anthony-walsh

WHO THIS IS FOR

IS THIS YOU?

  • Cyclists experiencing unexplained fatigue, muscle twitching, poor sleep, or sluggish recovery who have not checked their magnesium levels
  • Riders already supplementing magnesium who want to know whether they are taking the right form, the right dose, and at the right time
  • Masters cyclists whose recovery has slowed and who have blamed age or overtraining without considering a mineral deficiency
  • Anyone who has been told by their doctor that their magnesium is normal based on a serum blood test — which measures the wrong thing

THE ROADMAN VIEW

The Roadman View

  • I see this pattern all the time — riders come to me with poor sleep, twitchy muscles, sluggish recovery, and they blame age or overtraining. Here's the thing: the standard blood test doesn't even measure magnesium properly, so the real problem sits there undetected. Once I explain the RBC test to riders, the fix is usually surprisingly simple.
  • I always tell riders to be sceptical of the cramp-magnesium link. When I've had sports scientists on the podcast, the consensus is clear — most exercise cramps are neuromuscular, not mineral deficiency. But if you're chronically low on magnesium, it lowers the threshold at which cramps kick in, so the honest answer is: get tested first.
  • I recommend magnesium glycinate before bed to almost every cyclist I work with. High bioavailability, no gut issues, and the glycine helps with sleep. That dual benefit — meeting your daily requirement and improving recovery sleep — is why I think evening dosing is the obvious call.

You are tracking your macros. You are timing your carbs. You know your sweat rate, your protein targets, maybe even your ferritin levels. And yet there is a mineral sitting at the centre of over 300 enzymatic reactions in your body — muscle contraction, energy production, protein synthesis, bone formation, nervous system regulation — that you have almost certainly never tested.

Magnesium. The fourth most abundant mineral in the human body and the one most endurance athletes are quietly, chronically short on.

Here's the thing nobody tells you about magnesium deficiency: it doesn't show up as a single dramatic symptom. It leaks. Small little leaks that add up. Your sleep gets a bit worse. Recovery takes a bit longer. Muscles twitch for no reason. Resting heart rate drifts up a couple of beats. You feel flat on the bike but you can't pin it on anything specific. You blame overtraining, stress, age — and the real problem sits there undetected because the standard blood test your doctor runs doesn't even measure it properly.

This is fixable. And once you understand why it matters, how to test for it correctly, and which form to take, you will wonder why nobody told you sooner.

Why magnesium matters for cyclists

Magnesium is not a niche micronutrient. It is a structural requirement for the basic machinery of athletic performance. If you stripped out every reaction that depends on magnesium, the human body would shut down within minutes. For a cyclist specifically, three functions matter most.

Muscle contraction and relaxation. Every time a muscle fibre contracts, calcium flows in and magnesium facilitates the relaxation phase that follows. Without adequate magnesium, the calcium-magnesium balance tips — muscles contract harder than they should, relax slower than they should, and the whole neuromuscular system runs rough. That persistent tightness in your calves after a long ride? That twitch in your quad at three in the morning? Often not fatigue. Often not dehydration. Often magnesium.

Energy metabolism. Magnesium is a cofactor for ATP production — adenosine triphosphate, the molecule that fuels literally every muscular effort you make on the bike. ATP doesn't actually work as ATP. It works as Mg-ATP, a magnesium-bound complex. Lukaski's research at the USDA Human Nutrition Research Centre demonstrated that even marginal magnesium depletion increased oxygen consumption during submaximal exercise — riders needed more energy to produce the same power output. Less efficient. More costly. The engine burning hotter for the same speed.

Bone density. Around 60% of the body's magnesium is stored in bone. For masters cyclists — a population already at elevated risk of low bone density because cycling is non-weight-bearing — magnesium status is not optional information. It's a structural concern. Magnesium influences osteoblast and osteoclast activity, the cells responsible for building and breaking down bone tissue. Low magnesium over years compounds the bone density problem that cycling already creates. If you're 40-plus and you ride six days a week, this should be on your radar.

And those are just the headlines. Magnesium is also involved in protein synthesis, nerve signal transmission, blood glucose regulation, and blood pressure regulation. If there's a biological process you care about as a cyclist, magnesium is probably involved.

The deficiency problem — bigger than you think

Here's where it gets really interesting. The general population is already falling short. Newhouse and Finstad's review of magnesium status in athletes found that dietary intake among Western populations has dropped steadily over the past century, driven by soil depletion, food processing, and the shift away from whole foods. Their analysis — which specifically examined endurance athletes — concluded that subclinical magnesium deficiency is widespread and underdiagnosed.

Now layer the endurance athlete problem on top of that.

You lose magnesium in sweat. The rate varies, but research consistently places it at 3-5mg per litre of sweat. A cyclist producing 1-1.5 litres of sweat per hour on a summer ride is losing 3-7.5mg of magnesium per hour through the skin alone. A four-hour ride in warm conditions could cost you 20-30mg through sweat — not catastrophic in isolation, but it adds up across a training week of 10-12 hours.

You use more magnesium during exercise. The metabolic demand for Mg-ATP goes up when you're producing power. Lukaski's controlled depletion studies showed that athletes operating at reduced magnesium status had measurably higher heart rates and oxygen consumption at the same workload. The body compensates, but the compensation costs energy you'd rather be putting through the pedals.

You absorb less than you think. Even when dietary intake looks adequate on paper, absorption efficiency for magnesium from food sits around 30-40%. Processing, cooking methods, and the presence of phytates in grains and legumes can push that lower. So the 400mg you calculated from your food diary might deliver 120-160mg to the bloodstream.

The RDA for magnesium in adult males is 400-420mg per day. That is a population-level recommendation for sedentary adults. It is not calibrated for somebody producing 800 watts in a sprint, sweating through two bidons per hour, and asking their muscles to contract thousands of times per ride. Most sports nutrition researchers — Newhouse and Finstad included — argue that endurance athletes need 400-600mg of absorbed magnesium daily. From food and supplementation combined, that means a total intake target closer to 500-700mg to account for absorption losses.

Count up what you ate yesterday. I suspect you are not close.

The blood test lie — why your doctor says you're fine

This is the part that frustrates me most, because it means people who are measurably deficient walk around thinking they're not.

Standard blood work measures serum magnesium — the magnesium circulating in your blood plasma. The problem is brutal in its simplicity: only 1% of the body's total magnesium is in the blood. The body defends serum magnesium aggressively, pulling from bone and muscle stores to keep the blood level stable. You can be significantly depleted in the tissues that actually matter — muscle, bone, mitochondria — and still show a perfectly normal serum reading.

Let me be really clear about this. A normal serum magnesium result does not mean your magnesium status is adequate. It means your blood level is adequate. Those are not the same thing.

The better test is red blood cell (RBC) magnesium, sometimes called erythrocyte magnesium. This measures the magnesium inside your red blood cells rather than the plasma around them, which gives a more accurate picture of intracellular status. It's not perfect — no single test is — but it is significantly more informative than serum alone. Ask for it specifically when you get blood work done. Most labs can run it. Most doctors won't think to order it unless you ask.

Optimal RBC magnesium for an endurance athlete sits around 6.0-6.5 mg/dL. If yours comes back below 5.5, that's a flag worth acting on even if your serum result looks textbook.

If you can't get the RBC test, symptom profiling becomes your fallback. Muscle twitching or cramping at rest. Poor sleep quality despite good sleep hygiene. Fatigue that seems disproportionate to your training load. Elevated resting heart rate without an obvious cause. Increased anxiety or irritability. These are not diagnostic on their own, but cluster three or four of them together in a cyclist training 8-12 hours a week, and the probability of suboptimal magnesium status is high.

The cramp myth — what the science actually says

This is the section where I'm going to annoy the supplement industry. Because the relationship between magnesium and muscle cramps is far more complicated than the back of your electrolyte sachet wants you to believe.

The conventional story goes like this: you cramp because you're depleted in electrolytes — sodium, potassium, magnesium — and if you top them up, the cramps stop. It's clean. It's simple. It sells products. And it's mostly wrong.

Martin Schwellnus at the University of Cape Town has spent decades studying exercise-associated muscle cramps, and his systematic reviews have consistently reached the same conclusion: the primary mechanism behind cramping during exercise is not electrolyte depletion. It's altered neuromuscular control. When muscles fatigue, the balance between excitatory signals from muscle spindles and inhibitory signals from Golgi tendon organs shifts. The muscle gets stuck in a contractile state — not because it lacks minerals, but because the neural feedback loop that normally prevents over-contraction breaks down under fatigue.

Schwellnus's work showed that dehydration status and electrolyte levels were not significantly different between crampers and non-crampers in the same event. The strongest predictors of cramping were pace relative to ability (going too hard too early), prior history of cramping, and inadequate conditioning for the effort.

So does magnesium have nothing to do with cramps? Not quite. Here's the nuance.

Chronic magnesium deficiency does affect the calcium-magnesium balance in muscle cells. It does alter the resting membrane potential of muscle fibres. And it can lower the threshold at which the neuromuscular system tips into cramping under fatigue. Think of it as a predisposing factor rather than a direct cause. If your magnesium status is actually low, you are more susceptible to cramps — but the cramp itself is still triggered by neuromuscular fatigue, pacing errors, and conditioning gaps.

The practical implication: if you cramp in races or on long rides, taking magnesium won't fix it on its own. You need to address pacing, conditioning, and progressive overload first. But if your magnesium status is low, fixing that removes one layer of vulnerability. It raises the bar at which cramps become likely. That matters — especially on a five-hour sportive in 30-degree heat where everything else is already under strain.

Don't buy a magnesium supplement because the marketing tells you it prevents cramps. Do buy one because it addresses a probable deficiency that has a dozen other consequences for your riding — cramp threshold being one small part of the picture.

Forms of magnesium — this is where most people waste their money

Walk into a pharmacy and pick up the cheapest magnesium supplement on the shelf. Turn it over. Read the label. Nine times out of ten, you're holding magnesium oxide.

Magnesium oxide is cheap to produce, cheap to sell, and almost useless. Absorption rates in the published literature range from 4% to 20% depending on the study. That 500mg tablet is delivering somewhere between 20mg and 100mg of actual magnesium to your bloodstream. The rest passes straight through your gut — which is why magnesium oxide's most reliable effect is as a laxative, not a mineral supplement.

Here's the good news. Better forms exist. The difference between them is the compound magnesium is bonded to, and that bond determines how well your gut absorbs it and what side effects come along for the ride.

Magnesium glycinate. This is the form I recommend for most cyclists. The magnesium is bonded to glycine, an amino acid. Bioavailability is high — substantially better than oxide — and the glycine component has its own calming properties. It's gentle on the stomach, doesn't cause the laxative effect, and the calming action makes it particularly well-suited to evening dosing when you want the sleep benefit alongside the mineral repletion. The downside is cost — glycinate is more expensive per dose than oxide or citrate. Worth every penny.

Magnesium citrate. A solid second choice. Bioavailability is good, though not quite as high as glycinate in most comparative studies. The citrate salt can have a mild laxative effect at higher doses — 400mg or above — which some cyclists find uncomfortable, particularly before morning rides. If glycinate is unavailable or prohibitively expensive in your area, citrate is a reasonable alternative. Just be aware of the GI sensitivity and adjust timing accordingly.

Magnesium threonate. Crosses the blood-brain barrier more effectively than other forms, which makes it interesting for cognitive function. The research is still young and the elemental magnesium per dose is low — you need more capsules to hit the same target. Promising, but not the first choice for whole-body repletion.

Magnesium taurate. Bonded to taurine. Some early evidence for cardiovascular benefit. A defensible choice if heart health is a particular concern, but not enough data to displace glycinate as the default.

Magnesium oxide. Already covered. Cheapest, most common, worst choice. Put it back on the shelf.

Epsom salt baths. Transdermal magnesium absorption through the skin is poorly evidenced. A hot Epsom salt bath feels good after a hard ride — the heat and relaxation have recovery value of their own — but don't count on it to raise your magnesium levels. Not a substitute for oral supplementation.

The form matters more than the headline dose. 200mg of magnesium glycinate will deliver more usable magnesium than 500mg of magnesium oxide. Read the label. Check what form you're buying. The price per unit of absorbed magnesium is the metric that actually counts.

Dosage, timing, and the practical protocol

The effective range for most cyclists is 200-400mg of elemental magnesium per day, on top of what you're getting from food. Important distinction: elemental magnesium is the actual mineral content, not the weight of the compound. A 1,000mg magnesium glycinate capsule might contain only 200mg of elemental magnesium. The number you care about on the label is "elemental magnesium" or "magnesium (as glycinate)."

For riders training 8-12 hours a week, 300-400mg supplemental glycinate per day is the sweet spot. Diet rich in greens, nuts, and seeds? Lower end. Typical Western diet with heavy coffee consumption (caffeine increases urinary magnesium excretion)? Upper end.

Timing. 30-60 minutes before bed. Evening dosing serves two purposes: mineral repletion during the overnight recovery window and improved sleep quality through GABA receptor support. Two for one. If you take more than 400mg, split the dose — half with your evening meal, half before bed.

Absorption conflicts. Don't take magnesium alongside calcium or iron supplements. They compete for the same absorption pathways. If you're supplementing iron (based on blood work — see the iron deficiency guide), take it in the morning and save magnesium for the evening.

Loading phase? Not necessary. Start at 200mg for the first week to gauge GI tolerance, then move to your target dose. Full tissue repletion takes 4-8 weeks. Be patient.

Food first — the sources that actually move the needle

A supplement fills the gap. It doesn't replace the foundation. Food delivers magnesium alongside cofactors — B6, vitamin D, potassium — that support absorption. A capsule is useful. Food is better.

The sources that matter most, by magnesium density per realistic serving:

Pumpkin seeds (pepitas). 156mg per 30g. The densest food source you can eat. Sprinkle them on a salad, mix into yoghurt, or eat a handful as a snack. One change to make after reading this article.

Almonds. 80mg per 30g. Easy, portable. A handful with your afternoon coffee gets you nearly a quarter of the way to target.

Spinach (cooked). 78mg per 100g. Cooking increases density because the leaves wilt down. A big portion alongside dinner is a reliable daily contribution.

Dark chocolate (70%+). 65mg per 30g. The high-cacao dark chocolate you're allowing yourself after dinner is doing useful nutritional work.

Cashews. 74mg per 30g. Good as a snack, in stir-fries, blended into sauces.

Black beans. 60mg per 100g (cooked). Black beans with rice after a long ride covers carbs, protein, and a meaningful hit of magnesium.

Whole grains — brown rice, quinoa, oats. 40-65mg per cooked serving. The daily porridge habit is pulling its weight.

The practical target: build a daily baseline of 200-300mg of magnesium from food, then supplement 200-400mg of glycinate on top. That combination should put most cyclists in the 500-700mg total intake range where the evidence suggests endurance athletes need to be. Use the Fuel Planner to cross-check your in-ride nutrition is dialled in alongside this.

The sleep connection — where magnesium earns its real reputation

Sleep is the single most powerful recovery tool you have. Growth hormone, muscle protein synthesis, immune rebuilding, motor pattern consolidation — all peak during sleep. Poor sleep undermines every other recovery strategy you employ. Nail your nutrition, your compression, your foam rolling — if your sleep is broken, you're recovering at 60% efficiency.

Magnesium's role in sleep is not speculative. It regulates GABA (gamma-aminobutyric acid) receptors in the brain — GABA being the primary inhibitory neurotransmitter responsible for calming neural activity. More GABA activity means a quieter brain. Easier transition into sleep. Fewer night-time awakenings. Magnesium also influences melatonin production and helps regulate the circadian rhythm.

The research backs this up. Abbasi and colleagues published a randomised double-blind placebo-controlled trial — the gold standard of study design — showing that 500mg of magnesium supplementation over 8 weeks significantly improved subjective sleep quality, sleep time, sleep onset latency (how long it takes to fall asleep), and serum melatonin levels in elderly subjects. The magnesium group also showed reduced cortisol — the stress hormone that, when chronically elevated, eats into recovery and adaptation.

Now apply that to a cyclist. You train hard. You have a demanding job. Your sympathetic nervous system — the fight-or-flight side — runs hot. You get into bed wired. You sleep lightly. You wake up at 3am with your mind racing. Sound familiar?

Magnesium glycinate before bed addresses this directly. The magnesium calms the nervous system through GABA regulation. The glycine independently promotes sleep quality by lowering core body temperature and modulating serotonin receptors. The combination is effective for the exact type of stressed, under-recovered cyclist who reads this site.

The most consistent piece of feedback I hear from riders who start supplementing magnesium glycinate in the evening is: "I'm sleeping better." Not dramatically, not like a sedative. Just deeper. More continuous. Waking up feeling like the sleep actually did something. For a cyclist training 10 hours a week, that improvement in sleep quality has a larger downstream effect than almost any other single intervention.

For more on the sleep-performance connection, the sleep and cycling performance guide covers the architecture in detail.

Bone density — the silent cycling problem magnesium protects against

Cycling is non-weight-bearing. Your skeleton doesn't get the impact stimulus that running or resistance training provides. Studies on professional road cyclists have found bone density comparable to sedentary individuals despite extraordinary fitness levels. The bike protects your joints. It doesn't protect your bones.

Magnesium is directly involved in bone metabolism. It influences osteoblast activity, parathyroid hormone function, and vitamin D metabolism — all critical regulators of calcium absorption into bone. Roughly 60% of the body's magnesium is stored in the skeleton. Chronic deficiency accelerates the bone density decline that cycling already predisposes you to.

If you're over 40 and you ride six days a week without any weight-bearing activity, the combination of non-impact exercise and suboptimal magnesium status is compounding a risk you cannot feel until it becomes a fracture. Add some resistance training, keep your vitamin D checked, and make sure magnesium intake is where it needs to be. The recovery screening tool can flag whether you're covering the basics.

Putting it all together — the magnesium protocol for cyclists

No ambiguity. No hedging. Here's what to do:

Step 1 — Test properly. Ask for RBC magnesium, not just serum magnesium, when you next get blood work done. Optimal range: 6.0-6.5 mg/dL. Below 5.5 is a clear flag. Combine this with your ferritin, vitamin D, and full blood count — get them all on the same panel.

Step 2 — Build the dietary foundation. Add pumpkin seeds (30g daily), increase your dark leafy green intake, keep nuts in rotation. Target 200-300mg from food. This is not difficult — it just requires awareness.

Step 3 — Supplement with the right form. Magnesium glycinate, 200-400mg elemental magnesium per day. Start at 200mg for the first week, increase to your target dose. Evening timing, 30-60 minutes before bed.

Step 4 — Be patient. Full tissue repletion takes 4-8 weeks. You'll likely notice sleep improvements within the first week or two. Muscle twitching and resting heart rate changes take longer. Don't expect overnight transformation — expect a gradual return to how your body should feel when it has the raw materials it needs.

Step 5 — Retest at 12 weeks. Track the trend, not individual readings. If your RBC magnesium has improved and symptoms have resolved, you've found your maintenance dose. If it's still low, check absorption — gut health, coffee intake timing, calcium and iron co-supplementation errors can all interfere.

Step 6 — Maintain year-round. Magnesium isn't a course of treatment you stop when levels normalise. The same forces that depleted you — training load, sweat losses, dietary gaps — are still operating. Most serious cyclists should consider 200-300mg of supplemental magnesium glycinate as a permanent fixture.

Where this fits in the bigger nutrition picture

Magnesium deficiency is one of those problems that hides inside other problems. The cyclist who can't sleep blames stress. The cyclist with persistent muscle tightness blames training load. The cyclist whose resting heart rate crept up assumes they're overtraining. Sometimes they're right. And sometimes a 50p capsule of magnesium glycinate taken before bed would have resolved it weeks ago.

This is why I keep coming back to the same point in every cycling nutrition conversation: before you change your training, make sure the foundation is solid. Macros, hydration, in-ride fuelling, iron status, vitamin D, magnesium. These are not glamorous topics. They don't generate the same excitement as a new interval protocol or a lighter set of wheels. But they are the substrate everything else is built on. Get them wrong and the best training plan in the world won't deliver what it should.

The supplements guide covers the full hierarchy — what works, what doesn't, what's dangerous. Magnesium sits firmly in the "works" category, with the caveat that it's a deficit corrector rather than a performance enhancer. It brings you back to baseline. But for most cyclists, baseline is significantly above where they're currently operating.

If you want to talk through this stuff with other serious riders who are actually tracking it, the Roadman community is where those conversations happen. Real people, real numbers, no fluff.

Get the blood test. Buy the glycinate. Take it before bed. It's one of the simplest, cheapest, most impactful things you can do for your riding — and the one most cyclists have never thought to try.

FAQ

FREQUENTLY ASKED QUESTIONS

Can magnesium supplements prevent cycling cramps?
The evidence is mixed. Schwellnus's systematic reviews consistently show that exercise-associated muscle cramps are primarily neuromuscular in origin — caused by altered neuromuscular control during fatigue, not electrolyte depletion. However, chronic magnesium deficiency can lower the threshold at which cramps occur by affecting calcium handling in muscle cells. If your magnesium levels are measurably low, supplementation may reduce cramp frequency. If your levels are adequate, adding more magnesium will not prevent cramps.
What is the best form of magnesium for cyclists?
Magnesium glycinate for most cyclists. It has high bioavailability, does not cause the laxative effect common with citrate and oxide, and the glycine component has its own calming properties that support sleep. Magnesium citrate is a reasonable second choice if glycinate is unavailable. Avoid magnesium oxide — it is the cheapest form and the one you will find in most supermarket supplements, but absorption rates are as low as 4%, making it a poor investment.
When should I take magnesium?
30-60 minutes before bed is the most practical timing for most cyclists. Magnesium supports sleep quality through GABA receptor regulation, so evening dosing gives you the dual benefit of meeting your daily requirement and improving recovery sleep. If you take more than 400mg, splitting the dose — half with your evening meal, half before bed — reduces the chance of GI discomfort. Avoid taking magnesium at the same time as calcium or iron supplements, as they compete for absorption.
How do I know if I am magnesium deficient?
Standard serum magnesium blood tests are unreliable because only 1% of total body magnesium circulates in the blood. A red blood cell (RBC) magnesium test is more informative. Symptoms of deficiency include muscle twitching, poor sleep quality, fatigue disproportionate to training load, increased anxiety, and elevated resting heart rate. If you are eating a typical Western diet and training 8-12 hours per week, there is a reasonable probability you are not meeting requirements through food alone.
Can I get enough magnesium from food alone?
It is possible but increasingly difficult. Modern soil depletion has reduced magnesium content in food over the past 50 years, and food processing strips much of what remains. A cyclist training 10+ hours per week needs roughly 400-600mg daily. You would need to eat 200g of spinach, 60g of pumpkin seeds, and 80g of almonds every day to approach that from food alone. Most endurance athletes benefit from supplementing 200-400mg of magnesium glycinate on top of a diet rich in whole foods.

KEEP READING — THE SATURDAY SPIN

The week's training takeaways, pro insights, and what to do about them. 30,000+ serious cyclists open it every Saturday.

FUELLING

FUEL YOUR NEXT BIG RIDE PROPERLY

Use the calculator for your next session — or get the full fuelling guide emailed over: dual-source carbs, gut training protocol, race-day script.

AW

ANTHONY WALSH

Host of the Roadman Cycling Podcast