Magnesium

70 studies read · 14 answers · 5 sources

Magnesium has a proven but unnoticeable effect on nighttime cramp disruption, while broader benefits across the outcomes reviewed remain promising or unsettled.

What it does

Modest benefits

  • Better sleep quality · Probably helps a little

    Restful sleep includes feeling refreshed, while insomnia involves ongoing trouble falling or staying asleep.

    7 trials · 680 people · noticed in 3–12 weeks

Early findings (11)
  • Less constipation · May help

    2 trials · 168 people · 1 review · noticed in 4–12 weeks

  • Falling asleep sooner · May help a lot

    1 review of 2 trials · 55 people · noticed in 5–8 weeks

  • Less bloating and gut upset · May help

    1 review of 2 trials · 93 people · noticed in 4 weeks

  • Clearer, quicker thinking · Unclear if it helps

    2 trials · 151 people · noticed in 6–12 weeks

  • Stronger memory · Unclear if it helps

    2 trials · 173 people · 1 review · noticed in 6–12 weeks

  • Fewer night leg cramps · Unclear if it helps

    2 trials · 267 people · noticed in 2–9 weeks

  • Fewer anxiety symptoms · Unclear if it helps

    2 trials · 265 people · noticed in 4–12 weeks

  • Feel less daily stress · Unclear if it helps

    2 trials · 228 people · noticed in 4 weeks

  • Staying asleep through the night · Unclear if it helps

    1 trial · at least 46 people · 1 review · noticed in 8 weeks

  • Less period pain · Unclear if it helps

    2 trials · 101 people

  • Milder PMS symptoms · Unclear if it helps

    2 trials · 75 people

Doesn't appear to help

  • More hours of sleep · May not help

    More time asleep can leave a larger part of the night for rest.

    1 review of 2 trials · 55 people · noticed in 5–8 weeks

  • Feel awake and stay alert · May not help

    Feeling awake and keeping attention steady through the day.

    1 trial · 153 people · noticed in 4 weeks

How to take it

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

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

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

Which form

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.

The dose that worked, by measure (12)
Sleep more soundly
1,113 mg4–12 weeks
Make bowel movements easier
1,500 mg4–12 weeks
Reduce nighttime cramp intensity
300 mg4–9 weeks
Sleep more easily through the night
375 mg3–8 weeks
Reduce constipation's daily burden
1,500 mg4 weeks
Support overnight physical recovery
1,000 mg3 weeks
Recall information across tasks
520 mg6–8 weeks
Handle daily demands with less stress
100 mg4 weeks
Stay asleep through the night
512.25 mg8 weeks
Fall asleep sooner
512.25 mg5–8 weeks
Spend more time asleep
500 mg5–8 weeks
Handle daily tasks with steadier thinking
2,000 mg6 weeks

Who should be careful

Medicines it can clash with

  • esomeprazole major
  • tetracycline major
  • new quinolones major
  • bisphosphonates major
  • clopidogrel major
  • semaglutide major
  • phenytoin moderate
  • carbamazepine moderate

Reported side effects

  • 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

Bottles worth buying

Dosed where the research is, in a clean formula, from audited brands. Not sponsored.

How it works

Magnesium gets sold as a sleep cure-all. The more useful truth is narrower: it has a small track record for nighttime cramps, while constipation and sleep onset remain promising but unsettled.23

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

Studied alongside

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

  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)