Magnesium: Potential Benefits, Known Risks, and More

Note: The U.S. Food and Drug Administration (FDA) does not approve supplements for safety or effectiveness. Talk to a healthcare professional about whether a supplement is the right fit for your individual health, and about any potential drug interactions or safety concerns.
Here’s what to know about how much magnesium you need every day, where to get it, and when you should think about taking magnesium supplements.
Potential Health Benefits of Magnesium
Research on magnesium’s health benefits is robust overall, says Ashley Koff, RD, founder of The Better Nutrition Program. That said, studies can sometimes focus on specific forms of magnesium that companies choose to fund, meaning the evidence can be skewed depending on who’s backing the study and which formulation is being tested. With that in mind, here are the science-backed benefits of magnesium.
It May Support Heart Health
It May Help Prevent or Manage Type 2 Diabetes
It Might Strengthen Bones
It Could Ease Migraine Symptoms
It Could Boost Mood
Some early studies suggest that higher magnesium levels are associated with improved mood and energy levels, though this research is still evolving, says Dasgupta.
It Could Improve Sleep Quality
Some evidence suggests that magnesium supplementation can help promote better sleep, says Dasgupta. But while some trials have linked higher magnesium levels to faster sleep onset, longer sleep duration, and less snoring, the conclusions have been inconsistent across studies with different designs.
Weight Loss Effect of Magnesium
Magnesium isn’t a weight loss supplement, but it can support weight management.
Potential Risks and Side Effects of Magnesium
Overall, magnesium supplements are safe, as long as you’re following the label or a doctor’s recommendations and not consuming excessive amounts, says Foroutan. However, it’s important to understand potential risks and side effects, especially because supplements aren’t regulated by the U.S. Food and Drug Administration in the same way as conventional medication. Here’s what to keep in mind.
Risks
- Bisphosphonates
- Certain antibiotics
- Diuretics
- Proton pump inhibitors
If you take any of these medications or have kidney issues, consult your doctor before starting a magnesium supplement to ensure it’s safe for you.
Side Effects
- Diarrhea
- Nausea
- Abdominal cramping
In rare cases of very high doses (usually more than 5,000 milligrams per day), serious issues such as irregular heartbeat, difficulty breathing, extreme low blood pressure, and heart attack may occur.
Forms of Magnesium
If you decide to take a magnesium supplement, you’ll need to decide which type to take. Different types of magnesium vary in price, how well your body can absorb them, and potential side effects.
Magnesium threonate, another form of magnesium, may pass into the brain more efficiently than others. That’s why Foroutan uses it when addressing mood, sleep, and cognition issues.
Food Sources of Magnesium
- Pumpkin seeds, roasted: 156 miligrams (mg) per 1 ounce (oz)
- Chia seeds: 111 mg per 1 oz
- Spinach, boiled: 78 mg per ½ cup
- Cashews, roasted: 74 mg per 1 oz
- Black beans, cooked: 60 mg per ½ cup
- Edamame, cooked and shelled: 50 mg per ½ cup
- Peanut butter: 49 mg per 2 tablespoons
- Potato, baked with skin: 43 mg in 3.5 oz
- Yogurt, plain, low-fat: 42 mg per 8 oz
- Bananas: 32 mg in one medium banana
- Milk: 24 to 27 mg in 1 cup
- Salmon, Atlantic, farm-raised: 26 mg per 3 oz cooked
How to Select Magnesium
“But be careful — too many extras can mess with absorption or cause stomach issues,” says Dasgupta. “Keep it simple unless you have a specific reason for the combo.”
What’s most important is that you pick a safe, quality product with supervision from your healthcare team. To choose a quality supplement, check the label for U.S. Pharmacopeia (USP), NSF, or ConsumerLab.com. This means that the product has undergone third-party testing for quality and purity.
Again, talk to your doctor before starting any supplement, especially if you have any underlying health conditions.
Dosage of Magnesium
Recommended Amount for Women
- Ages 14 to 18: 360 mg per day
- Ages 19 and older: 310 to 320 mg per day
- Pregnant teens: 400 mg per day
- Pregnant women: 350 to 360 mg per day
- Breastfeeding teens: 360 mg per day
- Breastfeeding women: 310 to 320 mg per day
Recommended Amount for Men
- Ages 14 to 18: 410 mg per day
- Ages 19 and older: 400 to 420 mg per day
Recommended Amount for Infants
- Up to 6 months old: 30 mg per day
- 7 to 12 months: 75 mg per day
Recommended Amount for Children
- Ages 1 to 3: 80 mg per day
- Ages 4 to 8: 130 mg per day
- Ages 9 to 13: 240 mg per day
Magnesium is essential for over 300 biochemical reactions in your body, supporting muscle function, heart health, blood sugar control, and more. Explore our recommendations for the best magnesium supplements to ensure that you're meeting your daily needs, especially if your diet doesn't provide enough of this crucial mineral.
The Takeaway
- Magnesium plays a key role in muscle, nerve, bone, heart, and metabolic health, and most people don’t get enough from diet alone.
- Magnesium supplements can help, but not all forms are equal. Chelated types like magnesium glycinate, malate, and threonate are the easiest to absorb and are gentler on digestion.
- Talk to your doctor before trying a supplement, especially if you have kidney issues or take medications that may interact with magnesium.
FAQ
Additional reporting by Jessica Migala and Kathleen Ferraro.
- Magnesium. National Institutes of Health Office of Dietary Supplements. June 2, 2022.
- Fritzen R et al. Magnesium Deficiency and Cardiometabolic Disease. Nutrients. May 17, 2023.
- Soriano-Pérez L et al. Magnesium and type 2 diabetes mellitus: Clinical and molecular mechanisms. Health Sciences Review. September 2022.
- Xu L et al. Effects of Magnesium Supplementation on Improving Hyperglycemia, Hypercholesterolemia, and Hypertension in Type 2 Diabetes: A Pooled Analysis of 24 Randomized Controlled Trials. Frontiers in Nutrition. January 18, 2023.
- Rondanelli M et al. An update on magnesium and bone health. Biometals. May 6, 2021.
- February 18, 2025. Magnesium and Migraine. Nutrients. Dominguez LJ et al.
- Zhao W et al. Magnesium depletion score and depression: a positive correlation among US adults. Frontiers in Public Health. November 5, 2024.
- Arab A et al. The Role of Magnesium in Sleep Health: a Systematic Review of Available Literature. Biological Trace Element Research. January 2023.
- Magnesium. National Institutes of Health Office of Dietary Supplements. June 2, 2022.
- FDA 101: Dietary Supplements. U.S. Food and Drug Administration. June 2, 2022.
- Should You Take Gummy Vitamins? UCLA Health. December 12, 2022.
- Fouhy LE et al. Association between a Calcium-to-Magnesium Ratio and Osteoporosis among Puerto Rican Adults. The Journal of Nutrition. September 2023.

Lynn Grieger, RDN, CDCES
Medical Reviewer
Lynn Grieger is a registered dietitian-nutritionist, certified diabetes care and education specialist, certified personal trainer, and certified health and wellness coach. She completed requirements to become a registered dietitian at Valparaiso University in 1987 and completed a dietetic internship at Ingalls Memorial Hospital in Harvey, Illinois, in 1988.
Lynn brings her expertise in nutrition, exercise, and behavior change to her work in helping people reach their individual health and fitness goals. In addition to writing for Everyday Health, she has also written for websites and publications like Food and Health Communications, Today's Dietitian, iVillage.com, and Rodale Press. She has a passion for healthy, nutrient-dense, great-tasting food and for being outdoors as much as possible — she can often be found running or hiking, and has completed a marathon in every state.

Julie Lichty Balay, RD, CSSD
Author
Julie Balay, MS RD CSSD, earned a master’s degree in Clinical Nutrition from New York University and is also a registered dietitian and board-certified sports dietitian. Prior to diving into nutrition she was a certified personal trainer for 15 years. She has worked in journalism, motivational speaking, one–on–one and group counseling, and higher education. As a public speaker and nutrition educator she has inspired and taught thousands of people in the New York City vicinity on a broad spectrum of wellness and nutrition topics. She has served as a nutrition consultant for organizations including the New York City Department of Health, Colgate–Palmolive, and JP Morgan Chase. She has been a faculty member at New York University and Montclair State for ten years. And Balay concurrently runs a private practice in Bergen County, New Jersey. Her passion lies in fostering permanent behavior change and balancing real life with healthy living. Her clients span all ages and include competitive athletes and people with eating disorders, obesity, diabetes, cancer, irritable bowel syndrome, celiac disease and gluten sensitivity, and plain old picky eaters. Her ideology about diet is that all foods should be “allowed” in some amount, unless medically contraindicated; supplements may be necessary and can be helpful when carefully prescribed, but should be used with caution; and nutrition education is key to eating well in our complicated food environment. In her past life she was a competitive marathoner and Ironman triathlete. She qualified and competed in the Boston Marathon and she has completed four Ironman triathlons. She has since retired from road events and her athletic pursuits now focus on long distance mountain bike racing and other off–road activities. She loves to cook and eat delicious, fresh food with her friends and family, especially her two active boys who keep her moving. As a working mom she understands the challenges of juggling self-employment, self–care, and quality family time, but she wouldn’t have it any other way!