Skip to content
Back to Guides

What is magnesium? A plain-English guide

Magnesium is a mineral the body uses in hundreds of chemical reactions. In trials against a dummy pill, sleep results were small or did not agree. The clearest signals came from older adults with a clinical sleep problem and adults who slept poorly. Evidence on stress is weak. Too much from supplements can cause diarrhea.

By the NootropicsWork Editorial Team. A plain-English guide, 5 minute read.

Last reviewed Added to the site 6 studies citedEditorial review: NootropicsWork Editorial TeamEducational, not medical advice

Bottom line

Magnesium is a mineral the body uses in hundreds of chemical reactions. In trials against a dummy pill, sleep results were small or did not agree. The clearest signals came from older adults with a clinical sleep problem and adults who slept poorly. Evidence on stress is weak. Too much from supplements can cause diarrhea.

  • In a trial of 155 adults who slept poorly, magnesium lowered a sleep-problem score a little more than a dummy pill by week 4 [4].
  • A 2026 review of 12 trials found mixed sleep results and rated the evidence low to very low [3].
  • The US upper limit for supplement magnesium in adolescents and adults is 350 mg a day; too much first shows as diarrhea [6].

For every study, dose and grade, read our full research summary on Magnesium.

What is magnesium?

Magnesium is a mineral found in food and in the human body [1][6]. The body uses it in hundreds of chemical reactions, many of them linked to making energy [1].

Green leafy vegetables, unpolished grains and nuts are rich in magnesium [6].

In the US, adults need 310 to 420 mg a day, depending on age, sex and life stage [10]. In the UK, the NHS says adults aged 19 to 64 need 270 to 300 mg a day [7].

What do people use magnesium for?

Researchers have studied magnesium for sleep [2][3] and for stress and anxiety [5].

Magnesium is also sold for muscle cramps [8]. But a review of 11 trials with 735 people found magnesium was unlikely to meaningfully reduce cramps in older adults who get them [8]. Results in pregnancy were mixed, and no trial tested cramps from exercise [8].

What does the research show?

Many studies compared magnesium with a placebo, a dummy pill with no magnesium in it.

Does magnesium help people sleep better?

Evidence grade for sleep quality: C, limited. Why this grade

The evidence is mixed, and effects were small [3][4]. A 2026 systematic review (a study that gathers and judges the trials on a question) looked at 12 randomized trials of magnesium alone in adults [3].

Results did not agree across sleep questionnaires, brain-wave recordings, movement trackers and wearable devices [3]. The reviewers rated the certainty of the evidence low to very low [3]. They concluded that magnesium may give modest benefits on some self-rated sleep measures in some adults [3]. But they found that current evidence does not support it as a routine approach for people with insomnia [3].

A 2025 trial paid for by a university enrolled 155 healthy adults aged 18 to 65 who said they slept poorly [4]. Chance decided who took 250 mg of magnesium a day, as magnesium bisglycinate, and who took a placebo [4]. By week 4, a sleep-problem score fell a little more in the magnesium group [4]. The authors called the effect small, and other mental health questionnaires showed no clear differences [4].

Does magnesium help people fall asleep faster?

Evidence grade for sleep latency: C, limited. Why this grade

A 2021 meta-analysis (a study that combines the results of several trials into one answer) pooled 3 placebo-controlled trials in 151 older adults with insomnia [2]. People given magnesium fell asleep 17.36 minutes sooner than people given a placebo [2].

Total sleep time rose by 16.06 minutes, but this may have been chance [2]. All 3 trials had a moderate to high risk of bias, meaning flaws in how they were run could have skewed the results [2]. The authors rated the evidence low to very low in quality [2]. A larger 2026 review found that sleep results across trials did not agree [3]. Results may not apply to healthy adults.

Does magnesium help with stress?

Evidence grade for perceived stress: C, limited. Why this grade

The evidence is weak and comes from groups already prone to anxiety [5]. A 2017 systematic review found 18 studies, all in groups such as mildly anxious adults and people with premenstrual syndrome [5]. Four of 8 studies in anxious groups reported a positive effect on self-rated anxiety [5].

No study used a tested, reliable measure of stress, and the authors judged the evidence poor [5]. One of the review's authors sat on an advisory board for Sanofi's consumer health business [5].

Read how we grade evidence to see what each grade means.

How much did studies use?

Doses below are elemental magnesium: the amount of magnesium itself, not the weight of the whole compound [2][4].

Table: Doses used in studies (not a recommendation)

What was studiedDoses used in studiesSource
Sleep, older adults with insomnia (3 trials pooled)320-729 mg elemental magnesium a day, as oxide or citrate, for 20 days to 8 weeks[2]
Sleep, healthy adults who said they slept poorly250 mg elemental magnesium a day, as magnesium bisglycinate[4]

Some of these study doses were above the upper limits described in the next section [2][6]. These are research amounts, not advice, so talk to a clinician before trying magnesium.

Is magnesium safe?

Magnesium from food has not been shown to cause harm, so the limits below cover supplements and medicines [6]. The US National Academies set an upper limit of 350 mg a day from supplements for adolescents and adults, including in pregnancy [6] and breastfeeding [10]. They based it on 360 mg a day, the lowest amount at which harmful effects were seen [6].

In Europe, food safety experts set a lower limit of 250 mg a day [1]. It covers magnesium salts such as magnesium chloride and sulfate, and magnesium oxide, when they are added to supplements, water or food [1]. The NHS says up to 400 mg a day from supplements is unlikely to cause harm [7]. Long-term effects of high doses are not known [7].

Diarrhea is the first sign of too much magnesium from supplements, sometimes with nausea and belly cramps [6]. In the muscle cramp trials, 11% to 37% of people on magnesium had side effects, mostly gut problems such as diarrhea [8]. On placebo, it was 10% to 14% [8]. Serious side effects, and dropouts due to side effects, did not differ clearly from placebo [8].

A review of magnesium and drugs reports that magnesium can make it harder for the gut to absorb tetracycline antibiotics [9]. The NIH Office of Dietary Supplements says this also applies to quinolone antibiotics, such as ciprofloxacin, and bone medicines called oral bisphosphonates, such as alendronate [10]. Some water pills (diuretics) and stomach-acid medicines (proton pump inhibitors) can make the body lose magnesium [9][10]. For proton pump inhibitors, this usually takes more than a year [10].

If you take any of these medicines, talk to your doctor or pharmacist before combining them with magnesium.

Who should be careful with magnesium?

  • People with kidney problems. US experts name poor kidney function as a risk for too much magnesium in the blood [6]. European experts name severely reduced kidney function [1]. In the US report, this was mostly with large amounts of non-food magnesium, such as antacids [6].
  • Children. US upper limits for supplements are lower for children [6]. They are 65 mg a day at ages 1 to 3 and 110 mg a day at ages 4 to 8 [6].
  • People taking certain medicines. See the medicines named in the safety section above [9][10].
  • Anyone taking more than the upper limits. Diarrhea becomes more likely above them [6][7].

Want the full picture?

For every study, plus forms and legal status in four countries, read Magnesium: full research summary.

Grades for the outcomes on this page, from the Magnesium research summary. They update when the evidence does.

OutcomeGradeBasisModifiersRationale
Sleep quality, Benefit foundEvidence maturity: EmergingC: small or short trials with inconsistent results; a university-funded RCT (n = 155) showed a small, borderline effect, and a 2026 systematic review of 12 RCTs rated certainty low to very lowSubjective outcome onlyShort-term onlyWhy C grade for Sleep quality: explainedApproved of the Sleep quality grade
Sleep latency, Benefit foundEvidence maturity: EmergingC: results only in older or clinical populations (older adults with insomnia), extrapolated to healthy adultsShort-term onlyWhy C grade for Sleep latency: explainedApproved of the Sleep latency grade
Perceived stress, No effect foundEvidence maturity: Early signalC: no placebo-controlled trial with a validated stress measure; a 2018 stress trial compared two magnesium products without placebo; anxiety-vulnerable populationsSubjective outcome onlyWhy C grade for Perceived stress: explainedApproved of the Perceived stress grade

References

  1. European Food Safety Authority (Scientific Committee on Food). Tolerable Upper Intake Levels for Vitamins and Minerals: Opinion on the Tolerable Upper Intake Level of Magnesium (expressed September 26, 2001). 2006-02.SourceTier 1
  2. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021.PMID 33865376DOI 10.1186/s12906-021-03297-zTier 1, meta-analysis
  3. Lopresti AL, Smith SJ, Drummond PD. Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials. J Diet Suppl. 2026.PMID 42661485DOI 10.1080/19390211.2026.2719670Tier 1, systematic review
  4. Schuster J, Cycelskij I, Lopresti A, et al. Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial. Nat Sci Sleep. 2025.PMID 40918053DOI 10.2147/NSS.S524348Tier 1, controlled trial
  5. Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017.PMID 28445426DOI 10.3390/nu9050429Tier 1, systematic review
  6. Institute of Medicine (National Academies). Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride, chapter 6: Magnesium (1997), doi:10.17226/5776. 1997.SourceTier 1
  7. NHS. Vitamins and minerals: Others. Updated August 3, 2020.SourceTier 2
  8. Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020.PMID 32956536DOI 10.1002/14651858.CD009402.pub3Tier 1, meta-analysis
  9. Gröber U. Magnesium and Drugs. Int J Mol Sci. 2019.PMID 31035385DOI 10.3390/ijms20092094Tier 1, narrative review
  10. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals (as archived). Updated January 6, 2026.SourceTier 2
Reviewed by NootropicsWork Editorial Team, editorial team. Checklist logged . Next review due . Report an error