Locations:
Search IconSearch

25 Magnesium-Rich Foods You Should Be Eating

A healthy diet can easily meet your body’s important demands for magnesium

White bowls full of pumpkin seeds, dark chocolate and various kinds of nuts

More than 300 essential processes within your body rely on magnesium. It’s a heavy-hitter list that includes heart rhythm, muscle contractions, blood pressure control, bone health and creating energy.

Advertisement

Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy

So, are you doing enough to feed your body’s need for magnesium? Probably not, judging by typical eating habits in the United States and around the world.

But fixing that situation isn’t as complicated as you might think. Tossing a few key foods into your grocery basket can easily take you from magnesium deficient to magnesium sufficient. So, let’s build a magnesium-rich shopping list with registered dietitian Anna Taylor, RD, LD.

Foods high in magnesium

Magnesium is a mineral naturally present in many foods. That’s a good thing, too, because you really need it in your diet. Experts recommend that you consume between 310 and 420 milligrams (mg) of magnesium per day (depending on age and sex).

But before you pull out a calculator and start poring over nutrition labels, Taylor has some advice.

“I rarely recommend people tally up magnesium or other vital nutrients,” she says. “It’s tedious, difficult and ungainly. Instead, make sure to include a variety of fiber-rich plant foods in your diet every day and you’ll get where you need to be.”

Here are Taylor’s top picks (arranged by food type) to keep your magnesium levels in the optimal range:

Nuts and seeds

Nuts and seeds may be small in size, but they pack a nutritional punch with gobs of protein, fiber, healthy fats and minerals such as magnesium, says Taylor. Here are five options with their stellar magnesium resumes:

Advertisement

  • Almonds (roasted): 1 ounce (oz) = 80 mg of magnesium.
  • Cashews (roasted): 1 oz = 72 mg of magnesium.
  • Flaxseed (whole): 1 tablespoon = 40 mg of magnesium.
  • Peanuts (dry roasted): 1 oz = 49 mg of magnesium.
  • Pumpkin seeds (hulled, roasted): 1 oz = 150 mg of magnesium.
  • Chia seeds: 1 oz = 111 mg of magnesium.

Legumes

Biologically speaking, a legume is a plant from the Fabaceae family. Nutritionally speaking, they’re a powerhouse on multiple levels — including magnesium content. Here are three to consider:

  • Black beans (boiled): 1/2 cup = 60 mg of magnesium.
  • Edamame (cooked, prepared): 1/2 cup = 50 mg of magnesium.
  • Lima beans (cooked): 1/2 cup = 40 mg of magnesium.

Fiber-rich whole grains

Magnesium content is yet another reason to add whole grains to your diet.

  • Quinoa (cooked): 1/2 cup = 60 mg of magnesium.
  • Shredded wheat (plain, unfrosted): 1 cup = 56 mg of magnesium.

Low-fat dairy products

Dairy products get a lot of attention for calcium content, but they also can be a good source of magnesium, notes Taylor. Consider it a two-for-one deal!

  • Milk (nonfat): 1 cup = 24 to 27 mg of magnesium.
  • Yogurt (plain, low fat): 8 oz = 42 mg of magnesium.

Greens

Dark and leafy greens qualify as a superfood, with magnesium content being just one of their many superpowers.

  • Spinach (cooked): 1/2 cup = 78 mg of magnesium.
  • Swiss chard (cooked): 1/2 cup = 75 mg of magnesium.
  • Collard greens: 1/2 cup = 25 mg of magnesium.

Fruit

It’s recommended that you eat two servings of fruit per day as part of a healthy diet. Consider these to check that box plus the one for magnesium:

  • Avocados: One whole avocado = 58 mg of magnesium.
  • Bananas: One medium banana = 32 mg of magnesium.
  • Papaya: One small papaya = 33 mg of magnesium.
  • Blackberries: 1 cup = 29 mg of magnesium.

Vegetables

“Eat your veggies” has long been good advice. These three will help you meet your magnesium goals:

  • Green peas: 1/2 cup = 31 mg of magnesium.
  • Sweet corn: 1/2 cup = 27 mg of magnesium.
  • Potatoes: One medium potato with skin = 48 mg of magnesium.

Chocolate

Dark chocolate is a decadent treat that can treat your body right when it comes to magnesium.

  • Dark chocolate (70%-85% cocoa): 1 oz = 64 milligrams of magnesium.

Water

Tap, mineral and bottled waters can be magnesium sources — but it’s difficult to know how much magnesium they contain because it depends on the water source. “It can be anywhere from 1 mg per liter to 120 mg per liter,” notes Taylor.

So, if you drink the recommended 2 liters of water per day, that could be up to 240 mg of magnesium.

Advertisement

What about a magnesium supplement?

Magnesium supplements can be helpful if a doctor determines you have a magnesium deficiency. But if you have no major health problems, try to get magnesium from what’s on your plate.

“’Food first’ is my mantra,” states Taylor. “If you take a dietary supplement for magnesium and take too much, you may experience uncomfortable side effects such as cramping, diarrhea and nausea.”

Tips to get enough magnesium in your diet

To get the recommended amount of magnesium your body requires, Taylor recommends eating:

  • Five servings of fruits and vegetables per day.
  • At least three servings of whole grains per day.
  • One ounce or 1/4 cup of nuts or seeds per day.
  • One serving (about 1/2 cup cooked) of legumes most days of the week.

Meals featuring the magnesium-rich foods noted above are just plain good for you, too. The benefits of these foods often go far beyond just magnesium. Consider them a foundation for a healthy diet.

“You’re not just getting magnesium from these foods,” says Taylor. “You’re also getting so many fantastic nutrients, such as vitamins, other minerals and phytonutrients that can benefit your body in so many different ways.”

Advertisement

Cleveland Clinic icon
Health Essentials logo
Subscription icon

Better health starts here

Sign up for our Health Essentials emails for expert guidance on nutrition, fitness, sleep, skin care and more.

Learn more about our editorial process.

Related Articles

Person sitting on edge of bed taking medications
March 27, 2025/Nutrition

What Can Magnesium Do for Your Body?

Magnesium is a powerhouse that helps with everything from muscle function to mental health

variety of food groups containing manganese and magnesium
November 30, 2023/Nutrition

Manganese vs. Magnesium: Two Important Minerals With Key Differences

They’re both essential minerals but do different jobs in your body

Magnesium rich foods including bananas, nuts, avocados and chocolate
October 25, 2022/Nutrition

Signs You May Have a Magnesium Deficiency

Early warning signs include fatigue and stiffness

Spinach salad with avocado, blueberries, broccoli, cranberries and seared salmon
April 14, 2026/Nutrition

The Best Brain Foods for Better Memory and Function

Turn to foods that are high in polyphenols, antioxidants and omega-3 fatty acids

Bowl full of fresh whole strawberries
April 13, 2026/Nutrition

6 Health Benefits of Strawberries

These sweet red berries benefit your memory, boost your immune system and keep your heart healthy

Couple in kitchen, with one holding prepped veggies in dishes
April 6, 2026/Nutrition

How To Stop Sugar Cravings: 8 Tips To Help You Resist

Don’t skip meals or go ‘cold turkey’ — eat a balanced diet and talk to a healthcare provider instead

Heart-healthy foods, including salmon, nuts, greens and fruits, and oil in a heart shaped dish
March 10, 2026/Nutrition

Heart-Healthy Foods To Add to Your Grocery List

Eating more natural, whole foods can help lower your risk of heart and cardiovascular diseases

Person slicing raw chicken on cutting board, with oil and spices
February 16, 2026/Diabetes & Endocrinology

Is a Ketogenic Diet Good for Type 2 Diabetes?

Keto can reduce blood sugar, but that doesn’t mean it’s right for everyone

Trending Topics

Person walking outdoors, looking at smartphone

What Does It Mean To Be ‘California Sober’?

This ‘harm reduction’ approach to sobriety involves subbing one substance for another — a method that isn’t backed by research

Caregiver applying makeup to smiling teen

Is It OK for Your Kid To Wear Makeup? 5 Things To Consider

Educate your child about body image, expectations and skin care first

Person in long-sleeve swimwear, scratching at their itchy wrist

Is That a Chlorine Rash? What Your Skin Is Telling You

A true chlorine allergy is extremely rare — it’s far more likely that you have a damaged skin barrier

Ad