Skip to content
Male Optimal
Male Optimal
🩸 Test Your Levels
Evidence-based men's health.
Evidence-based men's health, updated regularlyAlways consult a healthcare professional before changing your supplementationEvery article is reviewed against peer-reviewed researchMedical disclaimer: content is informational only, not medical adviceMale Optimal: no bro science, no sponsored biasTestosterone levels vary by individual. Get tested before you supplementAll affiliate links are disclosed. We never recommend what we would not useEvidence-based men's health, updated regularlyAlways consult a healthcare professional before changing your supplementationEvery article is reviewed against peer-reviewed researchMedical disclaimer: content is informational only, not medical adviceMale Optimal: no bro science, no sponsored biasTestosterone levels vary by individual. Get tested before you supplementAll affiliate links are disclosed. We never recommend what we would not use
supplements

Magnesium, Sleep, and Testosterone: Why This Mineral Does Three Jobs at Once

Marcus
Marcus
·Last reviewed 1 May 2026·9 min
Magnesium, Sleep, and Testosterone: Why This Mineral Does Three Jobs at Once
M
Marcus · 1 May 2026 · 9 min
Evidence-basedAffiliate links

Some links on this site are affiliate links. If you purchase through them, we may earn a small commission at no extra cost to you. We only recommend products we believe in.

Magnesium is a cofactor in over 300 enzymatic reactions. It's essential for muscle relaxation, nervous system regulation, testosterone synthesis, and sleep quality. Yet 60% of UK men are deficient.

The result: poor sleep, elevated cortisol, lower testosterone, poor recovery.

Here's why magnesium matters and how to supplement correctly.

Magnesium's Role in Testosterone and Sleep

Sleep quality: Magnesium regulates GABA (the neurotransmitter promoting sleep) and manages circadian rhythm. Low magnesium = hyperactive nervous system = poor sleep.

Poor sleep suppresses testosterone by 25-30%. So magnesium's effect on sleep is testosterone's primary mechanism.

Cortisol regulation: Magnesium is a cofactor in enzymes that clear cortisol. Low magnesium = slow cortisol clearance = elevated cortisol even at rest = testosterone suppression.

SHBG regulation: Magnesium helps regulate SHBG (sex hormone-binding globulin). High SHBG binds testosterone, making it unavailable. Magnesium lowers SHBG, supporting free testosterone.

Direct testosterone synthesis: Magnesium is a cofactor in steroidogenic enzyme 17-beta-hydroxysteroid dehydrogenase, the final enzyme in testosterone synthesis.

The cumulative effect: magnesium deficiency affects testosterone through 4 pathways simultaneously.

Seb
Seb's Take

Magnesium is the supplement I recommend most often and most enthusiastically to UK men, because the evidence for sleep depth and recovery is strong, and the population deficiency is real. The testosterone effect is downstream of better sleep.

Study

Men with magnesium below 0.85 mmol/L had significantly lower total testosterone and free testosterone, plus elevated SHBG. Supplementing magnesium (400mg daily for 8 weeks) increased testosterone by 15-25% and decreased SHBG by 10-15%.

Why UK Men Are Deficient

Poor soil quality: UK soils are magnesium-depleted due to intensive agriculture. Vegetables and grains grown in UK soils have 20-30% lower magnesium than 50 years ago.

Processed foods: Refining removes magnesium. White bread has 80% less magnesium than whole grain. Processed foods are magnesium-poor.

Alcohol and caffeine: Both increase magnesium excretion in urine. Most UK men exceed safe limits of both.

Stress and training: Cortisol and intense exercise increase magnesium requirements and depletion.

Age: Magnesium absorption declines with age. Men over 40 absorb magnesium less efficiently.

Result: even men eating reasonable diets are often magnesium-deficient.

Study

Magnesium supplementation at 10 mg/kg raised free and total testosterone in sedentary and active men over four weeks.

Food Sources of Magnesium

Best sources:

  • Dark leafy greens (spinach, kale): 80-150mg per 100g
  • Nuts and seeds (almonds, pumpkin seeds): 100-150mg per 100g
  • Whole grains: 100-150mg per 100g
  • Legumes: 60-100mg per 100g
  • Fish (mackerel, halibut): 30-80mg per 100g

A man eating 100g spinach, 30g almonds, and whole grain bread daily gets roughly 300-400mg magnesium.

Most men eating processed foods get 150-250mg daily. Recommended daily intake is 300-400mg.

Supplementation bridges the gap.

Supplementation: Form and Dosing

Forms:

  • Magnesium glycinate (magnesium + glycine): Excellent bioavailability (30-40%), gentle on stomach, increases glycine (supports sleep)
  • Magnesium threonate: Crosses blood-brain barrier, potentially better for cognition, more expensive
  • Magnesium malate: Involved in energy production, useful if fatigue is primary issue
  • Magnesium oxide: Poor bioavailability (5-10%), often used as laxative, not ideal for supplementation
  • Magnesium citrate: Moderate bioavailability (20-30%), can have mild laxative effect

Best for sleep and testosterone: magnesium glycinate. Cheap, effective, no GI side effects.

Dosing:

  • For deficiency and sleep: 300-400mg elemental magnesium daily before bed
  • For maintenance: 200-300mg daily
  • Upper limit: 400mg daily from supplements (food can provide additional)

Note: "magnesium" refers to the elemental mineral. Product labels state the form (e.g., "magnesium glycinate") and total weight, but the elemental magnesium is less. For magnesium glycinate, roughly 15-20% of the weight is elemental magnesium. Read labels carefully.

BioOptimal Magnesium Glycinate

BioOptimal Magnesium Glycinate

200mg elemental magnesium per capsule. Take 1-2 capsules before bed. £12-14 per month.

Seb recommends this partner · affiliate link · commission earned at no cost to you

Timing: 30-60 minutes before bed. Magnesium works best when taken consistently, ideally with dinner or before sleep.

Magnesium and Sleep Protocol

For men with poor sleep:

  1. Baseline magnesium supplementation: 300mg glycinate before bed
  2. Dark room: 16-18°C, pitch black (melatonin is suppressed by light)
  3. No screens 30 minutes before bed: Blue light suppresses melatonin
  4. Consistent bedtime: Within 30 minutes each night
  5. No caffeine after 1pm: Caffeine half-life is 5-6 hours; afternoon coffee disrupts magnesium-supported sleep

Most men see sleep quality improvement within 3-5 days of magnesium + routine changes. Deep sleep duration increases, and morning cortisol drops.

Testing Magnesium Status

Serum magnesium is the standard test, but it's not sensitive (serum is tightly regulated; intracellular magnesium drops before serum does).

Serum magnesium:

  • Below 0.75 mmol/L: Clinically deficient
  • 0.75-0.85 mmol/L: Functional deficiency, often symptomatic
  • 0.85-1.05 mmol/L: Adequate
  • Above 1.05 mmol/L: High (rare unless supplementing excessively)

Practical approach: If you have poor sleep, low energy, or muscle cramps, supplement magnesium for 2 weeks. If sleep improves dramatically, you were deficient.

Forth Advanced Health Check

Forth Advanced Health Check

Includes magnesium, though not as sensitive as RBC magnesium. Also includes cortisol, testosterone. £199.

Seb recommends this partner · affiliate link · commission earned at no cost to you

Magnesium and Training Recovery

Training depletes magnesium. Hard training sessions cause 10-15% depletion. If training daily without adequate magnesium, chronic depletion results.

This manifests as:

  • Poor recovery despite adequate protein
  • Persistent muscle soreness
  • Elevated resting cortisol
  • Lower testosterone
  • Compromised sleep

Training men should supplement 300-400mg magnesium daily, not just occasionally.

See recovery and sleep for athletes for full recovery protocol.

The Practical Protocol

  1. Assess: Do you have poor sleep, low energy, muscle cramps, or poor recovery despite training hard?

  2. Supplement: 300mg magnesium glycinate before bed

  3. Lifestyle adjustments: Dark room, 16-18°C, no screens before bed, no caffeine after 1pm

  4. Duration: Magnesium accumulates in tissues. Keep supplementing 200-300mg daily long-term.

  5. Assess: After 2-3 weeks, sleep should be noticeably better. If not, underlying sleep issues may need additional addressing.

Most men see dramatic sleep improvement within a week of magnesium + routine changes. Sleep drives testosterone recovery more than anything else.

The Honest Message

Magnesium isn't a magic testosterone booster. But it's foundational. Poor sleep suppresses testosterone by 25-30%. Magnesium fixes sleep. Better sleep = better testosterone, better recovery, better health.

For £12 per month and 30 seconds of effort, this is a must for men over 40.

See sleep and testosterone and recovery and sleep for complete sleep protocol.

Key Takeaway

Related: Sleep and Testosterone, Recovery and Sleep for Athletes, How to Boost Testosterone Naturally

Affiliate disclosure: This article contains affiliate links. If you purchase through these links, Male Optimal earns a small commission at no extra cost to you. This does not affect recommendations.

supplementsmagnesiumsleeptestosteroneover-40cortisol

Related Articles

Weekly from Seb

Get the evidence, not the noise.

Weekly men's health insights from Seb — studies, protocols, and what actually works. No spam, no bro science.

No spam. Unsubscribe any time. Affiliate disclosure: some links earn commission.

Marcus
Marcus

Personal trainer who got deep into the science and never fully came back. Covers gym equipment, training protocols, and why the basics still beat everything.

Gym EquipmentTrainingStrengthRecovery

Affiliate disclosure: This article contains affiliate links. If you purchase through these links, Seb may earn a small commission at no extra cost to you. Seb only recommends products he would genuinely use himself.

Medical disclaimer: Content on this site is for informational purposes only and does not constitute medical advice. Always consult a qualified healthcare professional before making changes to your health, medications, or supplementation.

Free resource

The UK Male Optimisation Bloodwork Checklist

Know exactly what to test, what the numbers mean, and where to get it done privately in the UK.

No spam. Unsubscribe any time.

Seb
OAI

Powered by Claude

What do you want to know?

Evidence-based answers · 10 free questions per day

Or type your own question below

AI responses are informational only · not medical advice