Skip to content
Nutrition15 min read

MAGNESIUM FOR CYCLING: PERFORMANCE, RECOVERY, AND WHAT MOST RIDERS GET WRONG

By anthony-walsh

WHO THIS IS FOR

IS THIS YOU?

  • Cyclists with poor sleep quality who have tried everything except checking their mineral status
  • Riders who experience lingering muscle tension and heaviness days after moderate efforts
  • Masters athletes supplementing protein and iron but neglecting the mineral that supports over 300 enzymatic reactions
  • Anyone taking magnesium oxide and wondering why it is not making any difference

THE ROADMAN VIEW

The Roadman View

  • Here's the thing about magnesium — it doesn't crash your performance the way bonking does. It just makes everything a bit worse. Sleep, recovery, muscle tension, all slightly off. And because it's a bit of everything, you blame training load or age. I did exactly that for months before someone pointed me in the right direction.
  • Magnesium glycinate, 200-400mg, 30-60 minutes before bed. I started taking it after we had a sports nutritionist on the podcast who mentioned it almost as an aside, and the sleep improvement alone was noticeable within a week.
  • Let me be really clear on this — standard blood tests measure serum magnesium, which only shows about 1% of your total stores. Ask your GP specifically for red blood cell magnesium if you want a number that actually means something.

You track your carbs. You track your protein. If you have read anything on this site about iron and ferritin, you are probably tracking that too. But the mineral involved in over 300 enzymatic reactions in your body — including every single muscle contraction that turns the pedals — is the one most cyclists never think about.

Magnesium. Not sexy. Not new. Not trending on any cycling forum. And that is precisely why so many riders are walking around mildly deficient without knowing it, wondering why their sleep is poor, their recovery is slow, and their legs feel heavy three days after a ride that should not have buried them.

Here is the thing nobody tells you. Magnesium deficiency does not announce itself. It does not crash your performance the way bonking does or blow up your blood work the way low iron does. It operates in the background — quietly making everything a bit worse. A bit more fatigue. A bit less sleep quality. A bit more residual muscle tension. And because it is a bit of everything, you blame training load, or age, or just having a bad week. Most cycling nutrition discussions centre on carbohydrates and protein, but magnesium underpins both energy production and recovery.

What Magnesium Actually Does in Your Body

Let me break this down, because once you see how many systems magnesium touches, the performance implications become obvious.

ATP Production

Every watt you produce on the bike comes from ATP — adenosine triphosphate. Here is the part most people miss: ATP does not work alone. It needs to bind to magnesium to become biologically active. The functional unit is actually Mg-ATP. Without adequate magnesium, you are limiting the rate at which your muscles can access energy. Not the amount available — the rate at which it is delivered. For an endurance cyclist, that is the difference between holding 250 watts and fading to 230.

Muscle Contraction and Relaxation

Calcium triggers muscle contraction. Magnesium enables relaxation. They work as a pair. When magnesium is low, the relaxation phase is impaired — muscles stay in a semi-contracted state for longer. That translates to increased resting tension, slower recovery between efforts, and that persistent tightness in your quads and calves that foam rolling never quite shifts. If the mineral balance is off, the muscle physically cannot release properly.

Nerve Function

Every neural signal that tells a muscle fibre to fire depends on magnesium for regulation. Low magnesium means overexcitable nerves — muscle twitching, restless legs, and a nervous system that runs too hot at rest. If you have ever noticed your eyelid twitching after a hard training week, or your calves firing involuntarily as you fall asleep — that is a magnesium signal.

Protein Synthesis and Bone Health

Magnesium is a cofactor in protein synthesis. Every adaptation from training — stronger muscle fibres, more mitochondria, repaired tissue — requires building new proteins. If magnesium is low, the adaptation rate slows. You are doing the work. Your body is not fully converting it into fitness.

On the bone side, roughly 60 per cent of your body's magnesium is stored in bone. It regulates calcium metabolism and vitamin D activation. For masters cyclists who do little weight-bearing exercise outside of riding, this matters. Cycling alone does nothing for bone density. A mineral deficiency on top of that amplifies the risk.

Why Cyclists Are Specifically Prone to Deficiency

This is not just a general population problem. Cyclists face compounding factors that make deficiency more likely than in the average person.

Sweat Losses

Magnesium is lost in sweat. Not as aggressively as sodium, but consistently. Studies measuring sweat composition show losses of approximately 3-15mg per litre. On a four-hour summer ride producing 2-3 litres of sweat, that is 10-45mg gone through your skin alone — on top of normal urinary losses. Do that five or six days a week across a season and the cumulative deficit adds up.

Increased Metabolic Demand

More ATP turnover means more magnesium consumed in the process. Forrest Nielsen's research at the USDA Human Nutrition Research Centre showed that exercise increased magnesium requirements beyond what sedentary population studies estimated. The RDAs were not built for people burning 3,000-4,000 calories a day on a bike.

Dietary Gaps

Modern food supply is working against you. Soil depletion over the past 50 years has reduced magnesium content in produce. Food processing strips more. Refined grains lose up to 80 per cent of their magnesium compared to whole grains. The typical Western diet delivers roughly 250mg per day — well below the 400-420mg RDA for men and 310-320mg for women, and nowhere near the 500-600mg that endurance athletes likely need.

Studies suggest 50-80 per cent of the general population is below optimal intake. Stack sweat losses and metabolic demand on top of that, and the probability that you are sufficient without actively managing it is low.

The Deficiency Symptoms Cyclists Miss

Most cyclists attribute these to training fatigue. Sometimes correctly. But if they persist across recovery weeks and deload periods, magnesium is worth investigating.

Persistent cramps at rest. Not the cramps at kilometre 120 of a hot sportive — the ones that wake you at 2am with your calf locked solid, or hit your arch when you point your toes in bed.

Poor sleep quality. Waking at 3am and struggling to get back under. Or sleeping eight hours and waking feeling like you did five. Light, fragmented, unrestorative.

Elevated resting heart rate. A few beats above your normal baseline, consistently, without obvious cause.

Unexplained fatigue. Not the earned tiredness of a hard block. A flat, heavy tiredness that sits underneath everything — legs like wet sand before you have clipped in.

Muscle twitching. Eyelids, calves, or feet. Involuntary fasciculations that come and go, often worse after training days.

Three or more of those at the same time, not resolving with a recovery week? The mineral cupboard deserves a look.

The Cramp Myth: Let Me Be Really Clear About This

The association is so deeply embedded in cycling culture that it is practically reflex — you cramp, someone says "take magnesium". The evidence does not support that as a blanket statement.

Exercise-induced muscle cramps — the ones that hit during a race or in the final hour of a hard ride — are primarily neuromuscular events. Research led by Martin Schwellnus points to altered neuromuscular control at the spinal level. Fatigue, pacing errors, insufficient fuelling, and dehydration are the drivers. Not magnesium deficiency. Multiple randomised controlled trials have failed to show that magnesium supplementation prevents exercise-associated cramps.

What magnesium does help with is the other kind. Night cramps. Resting cramps. When intracellular magnesium is low, the threshold for nerve excitability drops — nerves fire more easily, muscles contract with less provocation. Correcting a deficit can reduce these, and that matches the clinical experience of most sports medicine practitioners.

Cramps on the bike during hard efforts? Look at pacing, fuelling, and hydration. Cramps at night or at rest? Look at magnesium.

Types of Magnesium: What to Buy and What to Avoid

Not all magnesium is created equal. The element itself is always magnesium — the difference is what it is bonded to, and that determines how well your body absorbs it.

Magnesium Glycinate (Bisglycinate)

The one I recommend for most cyclists. Magnesium bonded to glycine, an amino acid. Bioavailability is high, it does not cause digestive disruption, and the glycine component is itself calming — making this form particularly effective before bed. If you are buying one type of magnesium, this is the one.

Magnesium Citrate

Well absorbed, widely available, cheaper than glycinate. The trade-off is a laxative effect at higher doses. Take 400mg of citrate before bed and there is a reasonable chance you will know about it in the morning. At 200mg or under, most people tolerate it fine. A decent second choice, but glycinate is gentler.

Magnesium Oxide

Cheap. Everywhere. Mostly a waste of money. Bioavailability is approximately 4-5 per cent. You take a 500mg tablet and absorb maybe 20-25mg. The rest passes straight through. If this is what is in your current supplement, check the label and switch.

Magnesium Threonate (Magnesium L-Threonate)

Crosses the blood-brain barrier, which most other forms do not do efficiently. Andrew Huberman has discussed this in the context of cognitive function and sleep architecture. Interesting if your concern is brain fog or sleep quality more than muscular recovery. The downsides are cost and a smaller research base than glycinate.

Magnesium Malate

Magnesium bonded to malic acid, which is involved in the Krebs cycle. The theoretical case for endurance athletes is compelling. The practical evidence is thinner — less studied than glycinate and citrate. Not a bad choice, but not the first recommendation.

Dosing: How Much You Actually Need

The RDA is 400-420mg per day for adult men and 310-320mg per day for adult women. These numbers are set for the general sedentary population. They are a floor, not a ceiling, and they were not designed for someone riding 10-15 hours a week in the summer heat.

For endurance athletes, the working recommendation from most sports nutrition researchers is 400-600mg of elemental magnesium per day from all sources — food and supplements combined.

Here is the practical maths. If your diet is reasonable — leafy greens a few times a week, some nuts, whole grains — you are probably getting 200-300mg from food. A supplement of 200-400mg fills the gap. If your diet is heavy on processed food or you are restricting calories, you need the higher end of supplementation.

One critical distinction: when a supplement label says "magnesium glycinate 1,000mg", that does not mean you are getting 1,000mg of magnesium. The 1,000mg includes the glycine molecule. The actual elemental magnesium content is typically 100-140mg per 1,000mg of magnesium glycinate. Read the label for elemental magnesium — that is the number that matters.

Stacy Sims has made the point repeatedly that female athletes may need to pay particular attention to magnesium, especially around the luteal phase of the menstrual cycle when magnesium demands increase. If you are a female cyclist, 400mg of elemental magnesium daily is a reasonable baseline, with consideration for increasing to the higher end pre-menstrually.

Food Sources First

I will always say this. Supplements fill gaps. Food lays the foundation. Here are the richest dietary sources with actual numbers:

  • Pumpkin seeds (pepitas): 150mg per 30g serving. The single densest food source. Throw them on porridge, on salads, eat them as a snack. Non-negotiable if you are serious about this.
  • Almonds: 80mg per 30g serving. A handful with an afternoon coffee gives you a meaningful dose.
  • Spinach (cooked): 78mg per 100g. Cooking concentrates it. Raw spinach is fine but less dense per volume.
  • Dark chocolate (70 per cent cocoa or higher): 65mg per 30g. A legitimate recovery food. The good stuff, not the sugar-loaded milk chocolate.
  • Avocado: 58mg per whole avocado. Add the fats, the potassium, and the fibre, and this is one of the most nutrient-dense foods available.
  • Black beans: 60mg per 100g cooked. A staple if your diet includes legumes.
  • Bananas: 32mg per medium banana. Decent but not the powerhouse people think — pumpkin seeds have nearly five times the magnesium per serving.

A breakfast of porridge with a handful of pumpkin seeds and a sliced banana puts you at roughly 200mg before you have left the house. That is half the RDA from one meal. This is not complicated. It just requires intention.

The Pre-Sleep Protocol

Here is where it gets really interesting, and where most cyclists report the most noticeable benefit.

Take 200-400mg of elemental magnesium glycinate 30-60 minutes before bed. Do this consistently for 10 days before judging whether it works. This is not a sleeping pill. It works through a different pathway.

Magnesium regulates GABA receptors — the neurotransmitter system responsible for calming neural activity. When GABA binds to its receptors, neuronal excitability drops and the brain quiets down. Low magnesium means GABA works less efficiently. That racing-mind feeling at bedtime, the 3am wake-up with thoughts spinning — partly a neurotransmitter regulation issue, and magnesium is part of the regulation system.

The glycine in magnesium glycinate adds to this. Glycine lowers core body temperature slightly and promotes sleep onset. Double benefit from one supplement.

I started this protocol myself after hearing Huberman discuss magnesium threonate for sleep. I switched to glycinate after comparing cost per milligram, and the effect on sleep quality was noticeable within a week. Not dramatic. But the difference between waking up 70 per cent recovered and 85 per cent recovered. Over a training block, that compounds.

For a masters cyclist, sleep quality is probably the single most underrated recovery variable. If a cheap mineral supplement moves that needle by even 10 per cent, the return on investment is extraordinary.

Interactions With Other Supplements

Magnesium does not exist in isolation.

Calcium and magnesium compete for absorption. If you take calcium, separate it from your magnesium by at least 2 hours. In practice — calcium with a meal earlier in the day, magnesium before bed.

ZMA (zinc, magnesium, vitamin B6) is popular but the original study behind it had significant methodological concerns. Both zinc and magnesium are commonly deficient in athletes, so supplementing both is reasonable — just do not expect the testosterone boost the marketing suggests. If you use ZMA, check that the magnesium form is glycinate or citrate, not oxide.

Vitamin D and magnesium are co-dependent. Magnesium is required for converting vitamin D into its active form. If you are supplementing vitamin D but your magnesium is low, you are limiting how much of that vitamin D your body can use. Fix one without the other and you get a partial result. If you are supplementing vitamin D — and as a cyclist in the UK or Ireland, you probably should be from October to March — make sure your magnesium status is sorted first.

What the Research Actually Shows

Let me be honest about the evidence, because I do not want to oversell this.

Nielsen's 2006 work at the USDA Grand Forks Human Nutrition Research Centre demonstrated that magnesium depletion increased the oxygen cost of exercise. Subjects on a low-magnesium diet required more oxygen to perform the same submaximal work — their efficiency dropped. The effect reversed with repletion.

The Newhouse and Finstad 2000 meta-analysis found that supplementation improved performance in individuals who were deficient, but showed no meaningful benefit in those already replete. This is the critical point. Magnesium is not an ergogenic aid. It is a correction for a deficit. If you are already sufficient, taking more will not make you faster.

The challenge is measurement. Serum magnesium — the test your GP orders — reflects only about 1 per cent of total body magnesium. You can be deficient at the cellular level with a normal serum reading.

Red blood cell (RBC) magnesium is a better marker. It reflects intracellular stores over the preceding 120 days. Ask your doctor specifically for it. The optimal range is approximately 4.2-6.8 mg/dL. Below 4.2 and you are almost certainly underperforming relative to your training.

The Practical Protocol

I am going to keep this simple, because the implementation should be.

Food first. Pumpkin seeds on porridge. Almonds as a snack. Dark leafy greens with dinner. Dark chocolate as your post-ride treat. Not restrictive — just intentional.

Supplement the gap. Buy a quality magnesium glycinate. Check the label for elemental magnesium content — you want 200-400mg per dose. Take it 30-60 minutes before bed. Start at the lower end. If glycinate is unavailable, citrate at a lower dose is the next best option.

Test if you want data. Ask your doctor for an RBC magnesium test — not serum magnesium. Retest in 3-4 months to see if your protocol is working.

Be patient. Tissue stores take weeks to rebuild. Sleep improvements appear within 7-14 days. Muscle tension and recovery take longer — give it 4-6 weeks of consistent supplementation before judging.

Maintain. This is not a loading phase. Magnesium is consumed daily and lost through sweat. If you train consistently, you replenish consistently. Think of it like chain lube — you do not apply it once and forget about it.

The Bottom Line

Magnesium is not exciting. There is no dramatic before-and-after story. What there is, is a quiet, cumulative improvement in the systems that underpin everything else — energy production, muscle function, nerve regulation, sleep quality, recovery.

For a cyclist over 35 training seriously, the probability that you are operating at suboptimal magnesium is high. The cost of correcting it is negligible. The downside risk is essentially zero. And the benefit — better sleep, faster recovery, fewer night cramps, more efficient energy production — is worth far more than the price of a bag of pumpkin seeds and a bottle of glycinate.

Here is the good news. This is fixable. Completely, measurably fixable. No complexity. Just consistency.

If you want to compare notes with other riders who are dialling in their mineral status, recovery protocols, and training nutrition, the Roadman Cycling community on Skool is where those conversations happen daily. Real riders, real data, no gatekeeping. Come in and ask your questions.

FAQ

FREQUENTLY ASKED QUESTIONS

What is the best type of magnesium for cyclists?
Magnesium glycinate (also called bisglycinate) is the best choice for most cyclists. It has high bioavailability, does not cause digestive issues, and the glycine component supports sleep quality. Magnesium citrate is a reasonable alternative but can have a laxative effect at higher doses. Avoid magnesium oxide — it is cheap but only 4-5 per cent is absorbed.
How much magnesium should a cyclist take daily?
The recommended intake for endurance athletes is 400-600mg of elemental magnesium per day from food and supplements combined. If your diet includes leafy greens, nuts, and seeds regularly, a supplement of 200-400mg per day fills the gap. If your diet is low in these foods, aim for the higher end of supplementation.
Does magnesium prevent muscle cramps during cycling?
Exercise-induced cramps during a ride are primarily neuromuscular — caused by fatigue, dehydration, or pacing errors, not magnesium deficiency. However, chronic magnesium deficiency can contribute to night cramps, muscle twitching at rest, and a general increase in muscle tension. Correcting a deficiency may reduce these non-exercise cramps.
When is the best time to take magnesium?
Thirty to sixty minutes before bed. Magnesium supports GABA receptor activity, which promotes relaxation and sleep onset. Most cyclists report improved sleep quality within 7-10 days of consistent evening supplementation. If you prefer to split the dose, take half with dinner and half before bed.
Can I get enough magnesium from food alone?
It is possible but difficult. Modern farming practices have reduced soil magnesium content, and food processing strips more. A cyclist eating a varied diet with leafy greens, nuts, seeds, and whole grains can approach the RDA, but the increased losses from sweat and higher metabolic demand of training make supplementation practical insurance for most endurance athletes.

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