Supplements

What is magnesium good for?

Magnesium helps muscles and nerves work and helps the body control blood sugar. [1] Nuts, seeds, beans and spinach all contain magnesium. [1]

Curated from published research by the Longevello editorial team

Published Updated Checked How we check

Part of the Longevello Supplements topic.

On this page
  1. In brief
  2. What does magnesium do in the body?
  3. Where is magnesium found?
  4. What happens when magnesium is lacking?
  5. What have trials found about muscle cramps?
  6. Can too much magnesium cause harm?
  7. Sources

In brief

  • The body needs this mineral for muscles, nerves, bones and blood sugar control. [1]
  • Nuts, seeds, beans, whole grains, milk and green leaves such as spinach all contain it. [1]
  • A lasting lack can lead to weakness and other health problems. [1]
  • High intakes from supplements or medicines can cause harm, including diarrhoea and stomach cramps. [1]

What does magnesium do in the body?

This mineral has a part in many of the body's normal tasks. [1] It helps control blood pressure and blood sugar, as well as supporting muscles and nerves. [1] The body also needs it to make protein and bone. [1]

It helps the heart work properly and supports the body's defences. [3] It also helps produce energy. [2] About half or more of the body's magnesium is held in bones. [2]

These are roles for magnesium within the body, rather than proof that extra magnesium from supplements improves health. [1] [2]

Where is magnesium found?

Many foods contain this mineral. [1] Examples include:

Some foods have more of this mineral added; these are called fortified foods. [1] Some drugs for heartburn contain it too, as do some drugs that help people pass stools. [1]

What happens when magnesium is lacking?

A long period of low intake can cause a shortage, called magnesium deficiency. [1] A brief period of low intake does not cause clear symptoms. [1] In healthy people, the kidneys keep more of it in the body by cutting the amount lost in urine. [1]

A shortage can cause loss of appetite, feeling sick, being sick, tiredness and weakness. [1] A severe shortage can cause cramps, fits and changes in heart rhythm. [1]

Older people and people with some gut diseases are more likely to get too little magnesium. [1] Some health conditions and medicines reduce how much the body takes in or increase how much it loses. [1]

What have trials found about muscle cramps?

For older adults with muscle cramps, magnesium supplements are unlikely to make a real difference. [4] A review published in 2020 looked at 11 trials across several groups. [4] In total, the trials included 735 people. [4]

The conclusion for older adults concerned cramps such as night-time leg cramps. [4] The review found no trials that tested magnesium for cramps linked to exercise. [4] It also found gut problems, such as loose stools, in people taking it by mouth. [4]

Can too much magnesium cause harm?

Excess magnesium from supplements and medicines can harm health. [1] High intakes can cause loose stools, feeling sick and stomach cramps. [1] Extremely high intakes can disturb the heartbeat or cause the heart to stop. [1]

The risk of harm rises when the kidneys cannot remove extra magnesium well. [2] The mineral found in food and drink does not carry the same concern in healthy people. [1] Their kidneys can remove the excess in urine. [1]

Sources

  1. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers. Updated 22 March 2021. https://ods.od.nih.gov/factsheets/Magnesium-Consumer/ (accessed 23 November 2026).
  2. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. Updated 6 January 2026. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/ (accessed 23 November 2026).
  3. MedlinePlus, US National Library of Medicine. Magnesium Blood Test. Medical Test. Last updated 19 November 2026. https://medlineplus.gov/lab-tests/magnesium-blood-test/ (accessed 23 November 2026).
  4. Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, Dugré N. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;9(9):CD009402. https://pubmed.ncbi.nlm.nih.gov/32956536/ DOI: 10.1002/14651858.CD009402.pub3. Abstract only (accessed 23 November 2026).

Report a correction

This article provides information only. It does not give medical advice and does not replace your own doctor.

NecessaryAlways on

Remembers your cookie choice. It is stored in your browser and is not shared.

Shows us which pages are read, from roughly which country and city, on what device, and how people found the site. Run by Google LLC. Cookies: _ga and _ga_*, kept for up to 2 years. Google keeps the data for 2 months.

Privacy