Magnesium: 10 Benefits, Food Sources, and Side Effects

Magnesium does much more than support healthy muscles. This essential mineral is involved in more than 300 enzyme systems in the body, helping produce energy, maintain strong bones, regulate blood sugar, and support normal nerve and heart function.

Despite its importance, some people may not get enough magnesium through their daily diet. Adults generally need 310–420 mg per day, depending on age and sex, while pregnancy increases these needs.

Getting enough magnesium is essential for normal body functions, and researchers are also exploring its potential role in sleep quality and other aspects of health.

From supporting energy production and bone health to its potential effects on sleep, magnesium offers several important benefits. Let’s take a closer look at how this essential mineral supports your overall health.

1. Supports Healthy Muscle and Nerve Function

Magnesium plays an important role in muscle contraction and relaxation. It works alongside calcium and potassium, which help regulate muscle activity and nerve signals.

Calcium helps trigger muscle contraction, while magnesium helps regulate this process by supporting the movement of calcium and potassium across cell membranes. Maintaining an appropriate balance of these minerals is important for healthy muscle and nerve function.

Low magnesium levels can contribute to muscle cramps, spasms, and weakness. However, not all cramps are caused by magnesim deficiency, and supplements may not help people who already get enough magnesium.

Eating magnesium-rich foods can help maintain healthy magnesium levels and support normal muscle function.

2. May Help Your Body Produce Energy

If you often feel tired, your body needs several nutrients to support normal energy production, including magnesium.

Magnesium is involved in the production and use of adenosine triphosphate (ATP), the primary molecule cells use to store and transfer energy.

Low magnesium levels can contribute to fatigue and weakness.

However, tiredness can have many causes, including poor sleep, iron deficiency, and thyroid problems. Magnesium supplements may not help if you already get enough.

3. Why Magnesium Matters for Strong Bones

Calcium often gets the spotlight when it comes to strong bones, but magnesium deserves attention too. This essential mineral contributes to bone structure, and about 50%-60% of the body’s magnesium is stored in the bones.

Magnesium also helps regulate parathyroid hormone and active vitamin D, both of which play important roles in bone health.

Research in older adults suggests that higher magnesium intake may be associated with greater bone mineral density, particularly at the hip.

A review of four studies involving 119,755 participants found that lower blood magnesium levels were associated with a 58% higher risk of fractures.

However, this association does not prove that magnesium prevents fractures, and more research is needed to determine whether magnesium supplements can help protect against fractures or osteoporosis.

4. May Help Maintain Healthy Blood Sugar Levels

Magnesium plays an important role in carbohydrate metabolism and insulin function. Insulin is the hormone that helps move glucose from your bloodstream into cells, where it can be used for energy.

A meta-analysis of 13 studies involving 536,318 participants noted that every additional 100 mg of magnesium consumed daily was associated with a 14% lower risk of type 2 diabetes. However, this association does not prove that magnesium alone prevents diabetes.

Some clinical trials have also showed that magnesium supplements may help lower fasting blood glucose in people with diabetes, although results vary, and improvements in long-term blood sugar control remain uncertain.

5. Can Magnesium Help Manage High Blood Pressure?

Magnesium helps regulate normal muscle and nerve function, including processes involved in blood vessel activity and blood pressure control.

A 2025 review found that magnesium supplementation reduced systolic blood pressure by an average of 2.81 mmHg and diastolic blood pressure by 2.05 mmHg. The effects were greater in people with hypertension or low magnesium levels.

However, the benefits are generally small, and results vary between studies. Magnesium supplements should not replace prescribed blood pressure medication.

6. May Promote Cardiovascular Health

Your heart depends on precise electrical signals to beat regularly. Magnesium works alongside potassium, calcium, and sodium to help maintain the electrical activity needed for a normal heartbeat.

Severe magnesium deficiency can contribute to abnormal heart rhythms, known as arrhythmias, and may also cause low potassium levels, which can further disrupt normal heart function.

Magnesium may also support cholesterol balance and heart health by influencing inflammation and blood clotting. A 12-week study in people with diabetes found that 600 mg of magnesium daily reduced total cholesterol and LDL cholesterol while increasing HDL cholesterol.

7. May Support Better Sleep

A good night’s sleep depends on several factors, including your nervous system and overall health. Magnesium plays a role in normal nervous system function, which is one reason researchers are exploring its potential benefits for sleep.

Studies show that magnesium supplements may help people fall asleep faster, particularly older adults with insomnia. However, research remains limited, and findings on sleep quality and total sleep time are inconsistent

Getting enough magnesium is important for your health, but taking extra supplements does not guarantee better sleep, especially if your usual intake is already adequate.

Learn more: 12 Foods that may promote better sleep

8. May Help Reduce Migraine Frequency

Magnesium may play a role in migraine prevention because it is involved in nerve signaling and processes associated with migraine attacks. Low magnesium levels have also been linked to migraine headaches.

A meta-analysis suggests that magnesium supplementation may help reduce migraine frequency in certain people. However, the evidence remains limited, and more high-quality research is needed to confirm its effectiveness.

The dose used for migraine prevention may exceed the usual recommended upper limit for magnesium from supplements. High supplemental doses can cause diarrhea and other digestive side effects.

If you experience frequent migraines, consult a healthcare professional before starting magnesium supplements.

9. May Help With Premenstrual Syndrome (PMS) Symptoms

The days before your period can bring more than cramps. Bloating, breast tenderness, headaches, and mood changes can make everyday activities feel more challenging.

Magnesium has attracted attention as a possible way to ease some of these symptoms.

A few small studies have reported improvements in bloating and mood-related discomfort among women taking magnesium supplements. However, findings are inconsistent, and the available evidence remains limited.

Getting enough magnesium is important for overall health, but supplements are not a guaranteed solution for PMS. If your symptoms regularly disrupt your daily life, talk with a healthcare professional about treatments that may help.

10. May Support Mental Well-Being

Magnesium plays an important role in normal nervous system function, prompting researchers to explore its potential effects on anxiety and depression.

In a 2017 study, adults who took 248 mg of magnesium daily for six weeks experienced improvements in depression and anxiety scores, with benefits appearing within two weeks. The supplements were generally well tolerated, although the study did not include a placebo control group.

Similarly, a 2023 meta-analysis found that magnesium supplementation significantly reduced depression scores. However, larger, higher-quality studies are needed to confirm these potential benefits.

Best Food Sources of Magnesium

You can get magnesium from a variety of plant-based and animal-based foods. Nuts, seeds, legumes, whole grains, and leafy green vegetables are particularly useful sources.

Here are some magnesium-rich foods to include in your diet.

  • Spinach
  • Almonds
  • Cashews
  • Pumpkin seeds
  • Dark chocolate
  • Legumes
  • Amaranth
  • Fatty fish
  • Soy milk
  • Edamame

You do not need to eat all these foods every day. Instead, include a variety of nuts, seeds, legumes, whole grains, and vegetables throughout the week to help meet your magnesium needs.

Should You Take Magnesium Supplements?

Most people can meet their magnesium needs through a varied, balanced diet. However, supplements may be useful when dietary intake is inadequate, a deficiency is confirmed, or a healthcare professional recommends them for a specific reason.

Magnesium supplements are available in several forms, including magnesium citrate, magnesium chloride, magnesium oxide, and magnesium glycinate.

These forms differ in how well they are absorbed and how they affect digestion. For example, magnesium citrate can have a laxative effect, while magnesium oxide is also used in some products for constipation or indigestion.

Magnesium glycinate is another popular option, but claims that it consistently improves sleep or causes fewer digestive side effects than every other form are not firmly established by high-quality comparative research.

What Is the Safe Upper Limit for Magnesium Supplements?

For healthy people, magnesium naturally found in food does not pose a health risk. However, excessive magnesium from supplements and medications can cause side effects.

For adults in the United States, the tolerable upper intake level (UL) for magnesium from supplements and medications is 350 mg per day. This is a safety limit, not a recommended supplement dose. Healthcare professionals may recommend different amounts for specific medical purposes.

Common side effects of excessive supplemental magnesium include:

  • Diarrhea
  • Nausea
  • Abdominal cramping

Very high doses can cause magnesium toxicity, leading to low blood pressure, facial flushing, difficulty breathing, and irregular heart rhythms. The risk is greater in people with impaired kidney function because their bodies may have difficulty removing excess magnesium.

Magnesium can also interact with certain medications. It may reduce the absorption of some antibiotics and oral bisphosphonates, which are used to treat osteoporosis. Some diuretics can increase or decrease magnesium loss through urine, while long-term use of proton pump inhibitors may contribute to low magnesium levels.

If you take prescription medications or have kidney problems, consult a healthcare professional or pharmacist before taking magnesium supplements. They can advise you on appropriate dosing, timing, and possible interactions.you take medication.

Final Thoughts

Magnesium supports essential functions, including energy production, muscle movement, bone health, and normal heart rhythm. Eating magnesium-rich foods such as nuts, seeds, beans, whole grains, and leafy greens can help you meet your daily needs.

Supplements may be helpful in certain situations, but more magnesium does not necessarily mean greater benefits. Focus on a balanced diet and seek professional advice if you suspect a deficiency or are considering supplements.

  1. National Institutes of Health (NIH). Office of Dietary Supplements (ODS). Magnesium. Fact Sheet for Health Professionals
  2. Institute of Medicine (US) Standing Committee on the Scientific Evaluation of Dietary Reference Intakes. Dietary Reference Intakes for Calcium, Phosphorus, Magnesium, Vitamin D, and Fluoride. Washington (DC): National Academies Press (US); 1997. 6, Magnesium.
  3. Groenendijk I, van Delft M, Versloot P, van Loon LJC, de Groot LCPGM. Impact of magnesium on bone health in older adults: A systematic review and meta-analysis. Bone. 2022 Jan;154:116233. doi: 10.1016/j.bone.2021.116233. Epub 2021 Oct 16. PMID: 34666201.
  4. Dominguez LJ, Veronese N, Ciriminna S, Pérez-Albela JL, Vásquez-López VF, Rodas-Regalado S, Di Bella G, Parisi A, Tagliaferri F, Barbagallo M. Association between Serum Magnesium and Fractures: A Systematic Review and Meta-Analysis of Observational Studies. Nutrients. 2023 Mar 7;15(6):1304. doi: 10.3390/nu15061304. PMID: 36986033; PMCID: PMC10053795.
  5. Dong JY, Xun P, He K, Qin LQ. Magnesium intake and risk of type 2 diabetes: meta-analysis of prospective cohort studies. Diabetes Care. 2011 Sep;34(9):2116-22. doi: 10.2337/dc11-0518. PMID: 21868780; PMCID: PMC3161260.
  6. Maqrashi NA, Busaidi SA, Al-Rasbi S, Alawi AMA, Al-Maqbali JS. Effect of Magnesium Supplements on Improving Glucose Control, Blood Pressure and Lipid Profile in Patients With Type 2 Diabetes Mellitus: A systematic review and meta-analysis. Sultan Qaboos Univ Med J. 2025 May 2;25(1):382-394. doi: 10.18295/2075-0528.2848. PMID: 40641714; PMCID: PMC12244252.
  7. Argeros Z, Xu X, Bhandari B, Harris K, Touyz RM, Schutte AE. Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Hypertension. 2025 Nov;82(11):1844-1856. doi: 10.1161/HYPERTENSIONAHA.125.25129. Epub 2025 Sep 26. PMID: 41000008; PMCID: PMC12529988.
  8. Schwalfenberg GK, Genuis SJ. The Importance of Magnesium in Clinical Healthcare. Scientifica (Cairo). 2017;2017:4179326. doi: 10.1155/2017/4179326. Epub 2017 Sep 28. PMID: 29093983; PMCID: PMC5637834.
  9. Lal J, Vasudev K, Kela AK, Jain SK. Effect of oral magnesium supplementation on the lipid profile and blood glucose of patients with type 2 diabetes mellitus. J Assoc Physicians India. 2003 Jan;51:37-42. PMID: 12693452.
  10. Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complement Med Ther. 2021 Apr 17;21(1):125. doi: 10.1186/s12906-021-03297-z. Erratum in: BMC Complement Med Ther. 2024 Dec 19;24(1):418. doi: 10.1186/s12906-024-04721-w. PMID: 33865376; PMCID: PMC8053283.
  11. Arab A, Rafie N, Amani R, Shirani F. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. Biol Trace Elem Res. 2023 Jan;201(1):121-128. doi: 10.1007/s12011-022-03162-1. Epub 2022 Feb 19. PMID: 35184264.
  12. National Center for Complementary and Integrative Health (NCCIH). Sleep Disorders and Complementary Health Approaches.
  13. Chiu HY, Yeh TH, Huang YC, Chen PY. Effects of Intravenous and Oral Magnesium on Reducing Migraine: A Meta-analysis of Randomized Controlled Trials. Pain Physician. 2016 Jan;19(1):E97-112. PMID: 26752497.
  14. National Center for Complementary and Integrative Health (NCCIH). Headaches: What You Need To Know
  15. Robinson J, Ferreira A, Iacovou M, Kellow NJ. Effect of nutritional interventions on the psychological symptoms of premenstrual syndrome in women of reproductive age: a systematic review of randomized controlled trials. Nutr Rev. 2025 Feb 1;83(2):280-306. doi: 10.1093/nutrit/nuae043. PMID: 38684926; PMCID: PMC11723155.
  16. Facchinetti F, Borella P, Sances G, Fioroni L, Nappi RE, Genazzani AR. Oral magnesium successfully relieves premenstrual mood changes. Obstet Gynecol. 1991 Aug;78(2):177-81. PMID: 2067759.
  17. Tarleton EK, Littenberg B, MacLean CD, Kennedy AG, Daley C. Role of magnesium supplementation in the treatment of depression: A randomized clinical trial. PLoS One. 2017 Jun 27;12(6):e0180067. doi: 10.1371/journal.pone.0180067. PMID: 28654669; PMCID: PMC5487054.
  18. Moabedi M, Aliakbari M, Erfanian S, Milajerdi A. Magnesium supplementation beneficially affects depression in adults with depressive disorder: a systematic review and meta-analysis of randomized clinical trials. Front Psychiatry. 2023 Dec 22;14:1333261. doi: 10.3389/fpsyt.2023.1333261. PMID: 38213402; PMCID: PMC10783196.