Magnesium
Best for
Relieve constipation
Promising early signal 4–12 weeks 2 meta-analyses, n=202 #5 of 12 studied
- 70 papers
- 13 of 136 outcomes
- 7 positive
- 8 severe, 8 major interactions
Magnesium has a proven but unnoticeable effect on nighttime cramp disruption, while broader benefits across the outcomes reviewed remain promising or unsettled.
Median effective dose, most-studied outcomes
- Sleep more soundly 1,113 mg 4–12 wk
- Make bowel movements easier 1,500 mg 4–12 wk
- Reduce nighttime cramp intensity 300 mg 4–9 wk
Risk, worst reported severity
- hypermagnesemia severe
- hypomagnesemia severe
- esomeprazole major
- tetracycline major
What magnesium actually does
Daily stress is the sense that life's demands are stretching beyond what you can handle. 35631229 · 40918053
Memory helps you hold onto information and bring it back when you need it. 39009081 · 41601871
Overall thinking brings together the mental abilities you use throughout the day. 41601871
Deep sleep is a stage of sleep linked with physical restoration. 33865376 · 39252819
More time asleep can help you meet the amount of sleep you need. 23853635 · 33865376
Sleep quality reflects whether the night leaves you feeling well rested. 33865376 · 34719399 · 36620514 +3
Less severe insomnia can mean fewer nights spent struggling with sleep. 23853635 · 33865376 · 39252819 +1
Anxiety can bring persistent worry, unease, and physical tension into ordinary moments. 36703238 · 37520407 · 40918053
Problem solving helps you work through challenges and choose a way forward. 41601871
| Outcome | Effect | Evidence | Dose | Time | Rank |
|---|---|---|---|---|---|
| Modest benefits 1 | |||||
| Ease leg cramps at night Proven but unnoticeable Leg cramps are sudden, painful muscle contractions that can interrupt sleep. | | 2 meta-analyses 5 papers · n=698 | 226–300 mg | 4–9 wk | #1 /2 |
| Worth watching 2 | |||||
| Relieve constipation Promising early signal Constipation can mean infrequent, hard, or difficult bowel movements. | | 2 meta-analyses 5 papers · n=202 | — | 4–12 wk | #5 /12 |
| Fall asleep sooner Promising early signal A shorter wait for sleep can make bedtime feel less frustrating. | | 1 meta-analysis 2 papers · n=55 | 320–729 mg | 5–8 wk | #6 /20 |
| Early research 10 | |||||
| Feel less stressed day to day Not enough research Daily stress is the sense that life's demands are stretching beyond what you can handle. | | 1 RCT 2 papers · n=229 | 100–250 mg | 4 wk | — |
| Remember more Faint early signal Memory helps you hold onto information and bring it back when you need it. | | 1 meta-analysis 2 papers · n=100 | 520–2000 mg | 6–8 wk | — |
| Improve overall thinking Faint early signal Overall thinking brings together the mental abilities you use throughout the day. | | 1 study 1 papers · n=100 | 2000 mg | 6 wk | #10 /20 |
| Spend more time in deep sleep Faint early signal Deep sleep is a stage of sleep linked with physical restoration. | | 1 meta-analysis 2 papers · n=76 | 729–1000 mg | 3–3 wk | #2 /6 |
| Get more sleep each night Not enough research More time asleep can help you meet the amount of sleep you need. | | 1 meta-analysis 2 papers · n=55 | 320–729 mg | 5–8 wk | — |
| Sleep that feels more restorative Not enough research Sleep quality reflects whether the night leaves you feeling well rested. | | 1 meta-analysis 6 papers · n=317 | 226–2000 mg | 4–12 wk | — |
| Reduce insomnia symptoms Barely detectable Less severe insomnia can mean fewer nights spent struggling with sleep. | | 1 meta-analysis 4 papers · n=229 | 250–1000 mg | 3–8 wk | #7 /13 |
| Feel less anxious Not enough research Anxiety can bring persistent worry, unease, and physical tension into ordinary moments. | | 2 RCTs 3 papers · n=153 | 250–2000 mg | 4–12 wk | — |
| Solve problems better Not enough research Problem solving helps you work through challenges and choose a way forward. | | 1 study 1 papers · n=100 | 2000 mg | 6 wk | — |
| Stay asleep through the night Not enough research Uninterrupted sleep helps the night feel more settled and restorative. | | 1 meta-analysis 2 papers · n=— | 320–729 mg | 8 wk | — |
Effect tiers come from native-unit MCID where available, Cohen's d otherwise.
Dose, timing & forms
How much
For nighttime leg cramps, trials most often use 226 to 300 mg daily for roughly four to eight weeks. The benefit is real but tiny, so do not expect dramatic cramp relief.3 Constipation protocols use much larger amounts, often 1,500 to 2,000 mg daily, and are usually assessed over about four weeks. Those doses work through an osmotic laxative effect, not through a general wellness effect.14 Sleep and anxiety research spans a wide range, and the small, inconsistent results do not establish one reliable target dose.25
When and how long
Take magnesium consistently, not only on a rough night. Sleep studies generally use a daily routine over several weeks, so evening use is practical if your goal is sleep, but the research does not show that one exact clock time wins.2 For forms used for constipation, follow the product and clinician directions closely, since the dose that changes stool can also cause urgent diarrhea or cramping.14
Forms & standardisation
The label should state elemental magnesium, which is the amount of magnesium itself, not just the larger weight of the whole compound. Magnesium oxide and hydroxide have direct constipation trial coverage, while sleep research uses varied preparations, so claims that one form is definitively best for sleep run ahead of the evidence.24 Different forms can feel very different in the gut, and a gentler-feeling form is not automatically a better-studied form.
Studied range, by outcome
| Outcome | Studied range | Median effective | Duration | Evidence |
|---|---|---|---|---|
| Sleep more soundly | 226–2,000 mg | 1,113 mg | 4–12 wk | 6 papers 2 sig. endpoints |
| Make bowel movements easier | 1,500–2,000 mg | 1,500 mg | 4–12 wk | 5 papers 10 sig. endpoints |
| Reduce nighttime cramp intensity | 226–300 mg | 300 mg | 4–9 wk | 5 papers 7 sig. endpoints |
| Sleep more easily through the night | 250–1,000 mg | 375 mg | 3–8 wk | 4 papers 2 sig. endpoints |
| Ease anxiety symptoms | 250–2,000 mg | — | 4–12 wk | 3 papers |
| Reduce constipation's daily burden | 1,500 mg | 1,500 mg | 4 wk | 2 papers 3 sig. endpoints |
| Support overnight physical recovery | 729–1,000 mg | 1,000 mg | 3 wk | 2 papers 1 sig. endpoint |
| Recall information across tasks | 520–2,000 mg | 520 mg | 6–8 wk | 2 papers 1 sig. endpoint |
| Handle daily demands with less stress | 100–250 mg | 100 mg | 4 wk | 2 papers 1 sig. endpoint |
| Stay asleep through the night | 320–729 mg | 512.25 mg | 8 wk | 2 papers 2 sig. endpoints |
| Fall asleep sooner | 320–729 mg | 512.25 mg | 5–8 wk | 2 papers 2 sig. endpoints |
| Spend more time asleep | 320–729 mg | 500 mg | 5–8 wk | 2 papers 1 sig. endpoint |
| Handle daily tasks with steadier thinking | 2,000 mg | 2,000 mg | 6 wk | 1 paper 2 sig. endpoints |
| Ease the overall PMS burden | 250 mg | — | 8 wk | 1 paper |
| Solve problems with clearer reasoning | 2,000 mg | — | 6 wk | 1 paper |
Adverse events and drug interactions
Safety events
Drug interactions
Recommended Magnesium products
Real products that dose Magnesium where the research does, in a clean formulation, from brands we've audited. We only list ones we'd stand behind.
-
Life Extension
Magnesium (Citrate) 100 mg
Well dosed 300 mg/day A formulaBrand audit 90/100
-
NutraBio
Magnesium 200 mg
Well dosed 400 mg/day A formulaBrand audit 90/100
-
NOW
Magnesium Citrate Pure Powder
Well dosed 450 mg/day A formulaBrand audit 87/100
-
NOW
Magnesium Bisglycinate Powder
Well dosed 500 mg/day A formulaBrand audit 87/100
-
Nootropics Depot
Micromag Powder
Well dosed 400 mg/day A formulaBrand audit 87/100
-
Nootropics Depot
Magnesium Glycinate
Well dosed 200 mg/day A formulaBrand audit 87/100
Chosen for adequate Magnesium dosing vs. the studied range, a clean formulation (grade A–C), and independent brand-quality audits. Not sponsored.
What this is and how it works
- Across 5 studies (n=698), magnesium reduced nighttime cramp disruption, with an average effect too small to notice.3
- The reviewed evidence spans 70 papers and 136 outcomes, including cramps, constipation, sleep, anxiety, and stress.
- Evidence for constipation and sleep benefits remains promising but unsettled, rather than established.
Magnesium is a mineral your body uses every day to run nerves, muscles, and hundreds of enzyme-driven jobs. Food supplies it through foods such as nuts, beans, whole grains, and leafy greens, while supplements deliver concentrated forms such as oxide, citrate, glycinate, or hydroxide.1
Magnesium acts like the adjustable brake on excitable cells: it helps control the flow of charged particles that tell nerves to fire and muscles to tighten. In the gut, unabsorbed magnesium draws water into the intestine, which explains why some forms soften stool and also why too much often causes diarrhea.14
Bottom line
Magnesium makes the most sense if nighttime cramps are disrupting sleep or if a clinician recommends it for constipation. Set modest expectations for cramps and sleep, because the average effects are small or still uncertain.23 Skip self-directed high doses if you have kidney problems, and ask a pharmacist about spacing it from medicines, especially certain antibiotics and bone drugs.1
Co-studied with
Common questions
What form of magnesium is best for sleep?
Does magnesium stop nighttime leg cramps?
How long does magnesium take to work for constipation?
Sources
Sources
- 1. Magnesium Fact Sheet for Health Professionals
- 2. Oral magnesium supplementation for insomnia in elderly patients: A randomized double-blind placebo-controlled clinical trial (2012) ↑
- 3. Magnesium for skeletal muscle cramps (2012) ↑
- 4. Magnesium oxide improves chronic constipation (2015) ↑
- 5. The effect of magnesium supplementation on subjective anxiety and stress: A systematic review (2017) ↑
Generated August 27, 2026
Related
More evidence for Magnesium
Evidence guide
Magnesium
NewFrom Bitter Springs to ICU Drips: The Quiet Power of Magnesium
Evidence guide
May 1, 2026
Ranking
Deep, Restful Sleep
NewBest Supplements for Deep, Restful Sleep (2026)
Evidence ranking
Mar 29, 2026
Ranking
Low Testosterone
NewBest Supplements for Testosterone, Ranked by Evidence
Evidence ranking
Apr 4, 2026
Ranking
Depression
NewBest Supplements for Depression, Ranked by Clinical Evidence
Evidence ranking
Apr 4, 2026
Ranking
Trouble Falling Asleep
NewBest Supplements to Fall Asleep Faster, Ranked by Clinical Evidence
Evidence ranking
May 27, 2026
Ranking
Sleep Quality
NewBest Supplements to Increase Deep, Restorative Sleep (2026)
Evidence ranking
May 16, 2026