Magnesium
Essential mineral for 300+ enzymatic reactions, sleep quality, muscle function, and stress resilience
Bottom Line
Magnesium is one of the most important and commonly deficient minerals. Up to 50% of Americans don't get enough from diet alone. Supplementation reliably improves sleep quality, reduces muscle cramps, supports recovery, and may help with anxiety and stress.
One of the safest, most well-researched supplements. If you're not optimizing your diet for magnesium, supplementation is a smart baseline intervention.
Science
Mechanisms:
- Cofactor in 300+ enzymatic reactions
- Regulates GABA receptors (calming neurotransmitter)
- Essential for ATP production and energy metabolism
- Modulates NMDA receptors (neuroprotection)
- Required for muscle contraction and relaxation
- Supports healthy blood pressure regulation
Key studies:
- Abbasi et al. (2012): 500mg magnesium improved sleep quality, sleep time, and melatonin in elderly
- Boyle et al. (2017): Systematic review supporting magnesium for subjective anxiety
- Li et al. (2017): Higher magnesium intake associated with lower depression risk
Effect sizes:
- Sleep quality: Moderate (especially if deficient)
- Anxiety reduction: Small to moderate
- Muscle cramps: Moderate to large
- Exercise recovery: Small to moderate
Limitations:
- Effects most pronounced in those who are deficient
- Different forms have different bioavailability
- Takes 1-4 weeks for full effect
Supporting Studies
9 peer-reviewed studies
View all studies & compare research →Practical Protocol
General supplementation:
- Dose: 200-400mg elemental magnesium daily
- Timing: Evening for sleep benefits, or split AM/PM
- Take with food to improve absorption and reduce GI upset
For sleep:
- 200-400mg magnesium glycinate or threonate
- Take 30-60 minutes before bed
- Combine with glycine for enhanced effect
For exercise/recovery:
- 200-400mg after training
- Magnesium citrate or malate preferred
- Can stack with creatine and electrolytes
For anxiety/stress:
- 200-400mg magnesium glycinate
- Split into 2 doses (morning and evening)
- Magnesium L-threonate may have additional cognitive benefits
Form selection:
| Form | Best For | Notes |
|---|---|---|
| Glycinate | Sleep, anxiety | Highly bioavailable, gentle on stomach |
| L-Threonate | Cognition, brain | Crosses blood-brain barrier |
| Citrate | General, constipation | Good absorption, mild laxative |
| Malate | Energy, muscle | May support ATP production |
| Taurate | Heart health | Combines with taurine |
| Oxide | Budget | Poor absorption, mostly laxative |
Common mistakes:
- Taking too much at once (causes GI issues)
- Using oxide form expecting absorption
- Not accounting for dietary magnesium
Risks & Side Effects
Known risks:
- GI upset (especially citrate at high doses)
- Diarrhea if dose too high
- Drowsiness (when used for sleep)
Contraindications:
- Kidney disease (impaired clearance)
- Heart block
- Myasthenia gravis
- Taking certain antibiotics (separate by 2+ hours)
Interactions:
- May enhance sedative effects of sleep aids
- Separate from bisphosphonates and certain antibiotics
- Can affect absorption of some medications
Upper limit:
- 350mg/day supplemental (IOM recommendation)
- Higher doses may be fine short-term but monitor for loose stools
Who It's For
Ideal for:
- Those with poor sleep quality
- People with muscle cramps or tension
- Athletes and active individuals
- Anyone under chronic stress
- Those with low dietary magnesium intake
- Coffee and alcohol consumers (depletes magnesium)
Should be careful:
- Kidney disease patients (consult doctor)
- Those on medications that interact
- People with low blood pressure
Signs you may be deficient:
- Muscle cramps or twitches
- Poor sleep quality
- Anxiety or irritability
- Fatigue
- Headaches
How to Track Results
What to measure:
- Sleep quality (subjective 1-10 scale)
- Time to fall asleep
- Muscle cramps frequency
- Stress/anxiety levels
- Energy levels
Blood testing:
- Serum magnesium (limited value - most is intracellular)
- RBC magnesium (better indicator)
- Most accurate: symptom improvement
Timeline:
- Sleep effects: 1-2 weeks
- Muscle cramp reduction: 1-2 weeks
- Full tissue saturation: 4-6 weeks
Signs it's working:
- Falling asleep faster
- Fewer nighttime awakenings
- Reduced muscle tension
- Better stress resilience
- Fewer cramps during exercise
Top Products
Top recommendations:
- Thorne Magnesium Bisglycinate - Excellent quality glycinate
- Life Extension Magnesium L-Threonate - Best for cognitive benefits
- Pure Encapsulations Magnesium Glycinate - Clean formulation
- NOW Magnesium Citrate - Good budget option
For sleep specifically:
- Magtein (Magnesium L-Threonate)
- Natural Vitality Calm - Popular powder form
What to look for:
- Third-party tested (NSF, USP, Informed Sport)
- Chelated forms (glycinate, citrate, malate)
- Elemental magnesium content listed
- No unnecessary fillers
What to avoid:
- Magnesium oxide (poor absorption)
- Proprietary blends without amounts
- Products with artificial colors
Cost Breakdown
Budget ($10-15/month):
- NOW Magnesium Citrate: ~$10/month
- Generic magnesium glycinate: ~$12/month
Mid-range ($15-30/month):
- Thorne Magnesium Bisglycinate: ~$20/month
- Pure Encapsulations: ~$25/month
Premium ($30-50/month):
- Life Extension Neuro-Mag (L-Threonate): ~$40/month
- Stacking multiple forms: ~$35-50/month
Cost-per-benefit assessment:
Excellent value. Even premium forms are affordable relative to benefits. Glycinate offers best balance of quality and cost.
Recommended Reading
Podcasts
Sleep Toolkit - Tools for Optimizing Sleep & Sleep-Wake Timing
Get morning sunlight within 30-60 minutes of waking, keep your bedroom at 65-68F, and maintain a...
Essentials: Micronutrients for Health & Longevity | Dr. Rhonda Patrick
Four micronutrients move the needle most for longevity: sulforaphane (from broccoli sprouts or...
Essentials: Breathing for Mental & Physical Health & Performance | Dr. Jack Feldman
Slow, controlled breathing directly reduces anxiety by activating specific neural pathways -...
Protect & Improve Your Hearing & Brain Health | Dr. Konstantina Stankovic
Hearing loss significantly increases dementia risk, but simple protocols can protect you. Take...
Discussed in Podcasts
Magnesium Discussion
That's why you have to make sure you put a check in front of all these underlying conditions. I'd like to take a quick break and acknowledge one of our sponsors, Element.
Magnesium: Benefits
Welcome to Huberman Lab Essentials, where we revisit past episodes for the most potent and actionable science-based tools for mental health, physical health, and performance.
Magnesium Discussion
There's always a temptation as one learns about the symptomology of a given disorder, it doesn't really matter what the disorder is, to ask the question, well, do I have that?
Magnesium supplementation at night for ultra-endurance athletes
Glaze takes magnesium at night as part of his supplement stack, along with D3, K2, zinc, and algae-based omega-3s for his ultra-endurance training.
Magnesium needed for 300+ reactions yet half of Americans are deficient
The triage theory of aging suggests suboptimal magnesium intake forces the body to sacrifice long-term health for short-term survival, accelerating.
Magnesium deficiency blocks vitamin D activation and impairs hundreds of enzymes
Magnesium is essential for converting vitamin D into its active hormone form. Being deficient in magnesium can prevent vitamin D from working even if levels look adequate, and it is involved in hundreds of enzymatic processes.
Who to Follow
Researchers:
- Carolyn Dean, MD - Author of "The Magnesium Miracle"
- Rhonda Patrick, PhD - Discusses magnesium extensively
Practitioners:
- Andrew Huberman, PhD - Recommends magnesium for sleep
Synergies & Conflicts
Pairs well with:
- Glycine - Enhanced sleep stack
- Vitamin D - Magnesium required for D metabolism
- Zinc - Often deficient together (ZMA stacks)
- Creatine - Both support muscle function
Sleep stack:
- 200-400mg magnesium glycinate
- 3g glycine
- 30-60 minutes before bed
Recovery stack:
- Magnesium + electrolytes post-workout
- Supports muscle relaxation and sleep
Avoid combining:
- Separate from calcium by 2+ hours (competition for absorption)
- Don't take with certain antibiotics
What People Say
Why it's popular:
Common positive reports:
Common complaints: