Magnesium

Magnesium

Best for

Relieve constipation

Promising early signal 4–12 weeks 2 meta-analyses, n=202 #5 of 12 studied

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
Full protocol, 15 outcomes

Risk, worst reported severity

  • hypermagnesemia severe
  • hypomagnesemia severe
  • esomeprazole major
  • tetracycline major
All 18 events and interactions

What magnesium actually does

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.
trivial
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.
moderate
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.
moderate
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.
small
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.
small
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.
small
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.
small
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.
small
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.
trivial
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.
trivial
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.
trivial
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.
trivial
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.

Protocol

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

hypermagnesemia severe
hypomagnesemia severe
tetany (carpopedal spasm) severe
gastroenteritis severe
Alanine aminotransferase (ALT) and aspartate aminotransferase (AST) elevation severe
stroke severe
metabolic encephalopathy (altered mental status) severe
hypotension severe

Drug interactions

esomeprazole major decreases concentration
tetracycline major decreases effect
new quinolones major decreases effect
bisphosphonates major decreases effect
clopidogrel major decreases concentration
other major increases toxicity
semaglutide major decreases concentration
other major decreases concentration
phenytoin moderate increases effect
carbamazepine moderate increases effect
Buy well

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.

In context

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

Frequently asked

Common questions

What form of magnesium is best for sleep?

Sleep trials use several magnesium preparations, so no single form has clearly won. Choose a product that clearly lists elemental magnesium, use it consistently, and judge the result after several weeks rather than one night.2

Does magnesium stop nighttime leg cramps?

Magnesium produces, at most, a small reduction in nighttime cramp disruption for most adults. It is not a reliable quick fix, and the overall cramp evidence does not show a large everyday difference.3

How long does magnesium take to work for constipation?

Constipation studies commonly assess magnesium over about four weeks. Magnesium pulls water into the bowel, so stool changes can happen sooner, but ongoing constipation deserves medical advice rather than endless dose increases.14

Sources

Sources

  1. 1. Magnesium Fact Sheet for Health Professionals
  2. 2. Oral magnesium supplementation for insomnia in elderly patients: A randomized double-blind placebo-controlled clinical trial (2012)
  3. 3. Magnesium for skeletal muscle cramps (2012)
  4. 4. Magnesium oxide improves chronic constipation (2015)
  5. 5. The effect of magnesium supplementation on subjective anxiety and stress: A systematic review (2017)

Generated August 27, 2026