foods with magnesium
1 / 16

What Is It?

Magnesium is a mineral your body needs to work right. It helps with hundreds of important body processes, including those that control how your muscles and nerves work. It helps to keep your bones strong, heart healthy, and blood sugar normal. It also plays a role in your energy level. You can get magnesium in many foods and drinks. But if your doctor thinks you need more, they may suggest that you add supplements.

Swipe to advance
family at doctors
2 / 16

How Much Do You Need?

An adult woman needs about 310 milligrams of magnesium a day, and 320 milligrams after age 30. Pregnant women need an extra 40 milligrams. Adult men under 31 need 400 milligrams and 420 milligrams if they’re older. Kids need anywhere from 30 to 410 milligrams, depending on their age and gender. Talk with your pediatrician about how much magnesium your child needs.

Swipe to advance
blood pressure cuff
3 / 16

Are You Getting Enough?

Almost half of Americans don’t get enough magnesium from their diet. Over time, low levels of the mineral may set the stage for a variety of health issues, including type 2 diabetes, high blood pressure, and migraines. Older adults, alcoholics, and those with type 2 diabetes or digestive issues are more likely to lack it, either because their bodies get rid of too much magnesium or they don’t take in enough in the first place.

Swipe to advance
4 / 16

Can You Get Too Much?

If you’re healthy, your kidneys flush out the extra magnesium you get from foods. Still, too much of it can bring on cramps or nausea. The same is true if you use laxatives or antacids that have magnesium. At really high doses, the mineral can make you very sick.

Talk to your doctor about magnesium pills, because some conditions, such as myasthenia gravis, can get worse if you take them.

Swipe to advance
broken bone
5 / 16

Benefit: Strengthens Bones

Your body uses magnesium to build new bone cells. Research suggests that it may also protect against bone loss, broken bones, and the bone disease osteoporosis. Studies show that women with osteoporosis tend to have lower levels of magnesium than those who don’t.

Swipe to advance
sore hand
6 / 16

Benefit: Fights Inflammation

Inflammation is your immune system’s reaction to potential harm. In the short term, it helps your body fight off viruses and heal wounds. But if you have inflammation all the time, it can lead to health problems such as heart disease, arthritis, and diabetes. Magnesium can help keep that from happening.

Swipe to advance
cholesterol test
7 / 16

Benefit: Protects the Heart

Magnesium helps your heart pump blood. Right levels of the mineral can lower your chances of an irregular heartbeat, heart disease, or a heart attack. Magnesium relaxes the walls of your blood vessels, and that can help keep your blood pressure down. It also may help boost your HDL, or “good,” cholesterol levels.

Swipe to advance
man with headache
8 / 16

Benefit: Prevents Migraines

Experts think magnesium helps to block or lower pain chemicals in your brain and keeps your blood vessels from tightening. You’re more likely to get migraines if you don’t get enough. A supplement may help keep these headaches away.

Swipe to advance
insulin shot
9 / 16

Benefit: Lowers Odds of Diabetes

Magnesium helps a hormone called insulin work right. Insulin helps keep your blood sugar levels steady. In one study, people who got the most magnesium in their diet were less likely to get the disease than those who got the least.

Swipe to advance
mixed nuts
10 / 16

Source: Nuts and Seeds

Snack on an ounce of almonds or cashews, and you’ll get about 80 milligrams of magnesium. Other good choices include pumpkin seeds, pecans, sunflower seeds, peanuts, and flax. Sprinkle them on a salad or toss them into a trail mix. You’ll also get heart-healthy fats, fiber, and antioxidants.

Swipe to advance
whole grain bread
11 / 16

Source: Whole Grains

When it comes to nutrition, whole grains beat out white bread and other highly processed foods. Not only do they have lots of fiber, but they’re also high in magnesium. Two slices of whole wheat bread pack 45 milligrams of the mineral, a half-cup of brown rice has about 40 milligrams, and a half-cup of cooked oatmeal gives you 30 milligrams.

Swipe to advance
12 / 16

Source: Avocado

Any way you slice, dice, or mash it, this is a great source of magnesium. One cup of the diced fruit holds 44 milligrams. It also serves up heart-healthy fats, fiber, and folate. Try adding avocado to your sandwich, salad, or taco.

Swipe to advance
leafy greens
13 / 16

Source: Dark Leafy Greens

Here’s yet another reason to eat your veggies. You’ll get about 150 milligrams from a cup of cooked spinach or Swiss chard. Besides those two standouts, other good magnesium sources are dark leafy greens such as collard greens and kale. Bonus: They’re also loaded with calcium, potassium, iron, and vitamins A, C, and K. The vegetables don’t all have to be leafy. Okra, for example, is magnesium-rich.

Swipe to advance
tofu in soup
14 / 16

Source: Soy Products

Soy is a staple among vegetarians for its plant-based protein. But it’s no slouch in the magnesium department, either. A cup of soy milk rings up 60 milligrams, while a half-cup of firm tofu packs about 50 milligrams. Also check out tempeh, made with fermented soy, edamame, and soy yogurt.

Swipe to advance
bean soup
15 / 16

Source: Beans

On a given day, only 8% of Americans eat a serving of beans. That means most people are missing out on a healthy magnesium source. A half-cup of black beans has 60 milligrams and kidney beans has 35 milligrams. Other magnesium-rich legumes include chickpeas, white beans, and lentils. From stews to salads, you can add beans to nearly any dish. You’ll get an extra dose of fiber, protein, iron, and zinc.

Swipe to advance
doctor patient consultation
16 / 16

Interactions With Medicines

Talk to your doctor before you take a magnesium supplement. And make sure they know everything else you take. Some drugs can make it harder for your body to absorb magnesium. And magnesium supplements can make some antibiotics and osteoporosis meds not work as well as they should.

Swipe to advance

Up Next

Next Slideshow Title

Sources | Medically Reviewed on 12/13/2019 Reviewed by Christine Mikstas, RD, LD on December 13, 2019


1) Thinkstock

2) Thinkstock

3) Thinkstock

4) Thinkstock

5) Science Source

6) Thinkstock

7) Thinkstock

8) Thinkstock

9) Thinkstock

10) Thinkstock

11) Thinkstock

12) Thinkstock

13) Thinkstock

14) Thinkstock

15) Thinkstock

16) Thinkstock


National Institutes of Health Office of Dietary Supplements: “Magnesium.”

Academy of Nutrition and Dietetics: “What Is Magnesium?”

Nutrition Reviews: “Suboptimal Magnesium Status in the United States: Are the Health Consequences Underestimated?”

European Journal of Epidemiology: “Low serum magnesium levels are associated with increased risk of fractures: a long-term prospective cohort study.”

Journal of Research in Medical Sciences: “Effects of oral magnesium supplementation on inflammatory markers in middle-aged overweight women.”

Clinical Calcium: “Magnesium and Hypertension.”

American Headache Association: “Magnesium.”

World Journal of Diabetes: “Magnesium and Type 2 Diabetes.”

Nutrients: “The Effects of Magnesium Supplementation on Subjective Anxiety and Stress—A Systematic Review.”

U.S. Department of Agriculture Nutrient Database.

Academy of Nutrition and Dietetics: “In a Nutshell.”

Clinical Diabetes: “Legumes: Health Benefits and Culinary Approaches to Increase Intake.”

Dieticians of Canada: “Food Sources of Magnesium.”

Reviewed by Christine Mikstas, RD, LD on December 13, 2019

This tool does not provide medical advice. See additional information.

THIS TOOL DOES NOT PROVIDE MEDICAL ADVICE. It is intended for general informational purposes only and does not address individual circumstances. It is not a substitute for professional medical advice, diagnosis or treatment and should not be relied on to make decisions about your health. Never ignore professional medical advice in seeking treatment because of something you have read on the WebMD Site. If you think you may have a medical emergency, immediately call your doctor or dial 911.