18 Magnesium-Rich Foods for Optimal Health and Energy

Discover delicious, everyday foods that can boost your magnesium, support heart and bone health, and power your daily energy.

By Sneha Tete, Integrated MA, Certified Relationship Coach
Created on

Magnesium is a vital mineral your body needs for hundreds of processes, yet many people fall short of this essential nutrient in their daily diets. From supporting muscle and nerve function to powering your heart, magnesium plays a critical role in maintaining overall health. Whether you’re aiming to boost your energy, strengthen your bones, or simply improve your nutrition, including foods high in magnesium can make a big difference.

Why Magnesium Matters

Magnesium is involved in over 300 enzymatic reactions throughout the body. It helps regulate muscle and nerve function, blood pressure, blood sugar control, and protein synthesis. This mineral is also crucial for your heart rhythm, bone density, and keeping inflammation in check.

  • Energy production: Transforms food into energy at the cellular level.
  • Muscle support: Prevents cramping and supports relaxation after exercise.
  • Bone health: Alongside calcium and vitamin D, magnesium helps build and maintain bone density.
  • Mood & brain function: May stabilize mood, support cognition, and improve sleep quality.

How Much Magnesium Do You Need?

The Recommended Dietary Allowance (RDA) for magnesium depends on your age, sex, and life stage.

Age & SexRDA (mg/day)
Women 19-30 years310 mg
Women 31+ years320 mg
Pregnant Women350–360 mg
Men 19-30 years400 mg
Men 31+ years420 mg

Most people can meet these goals through a balanced, varied diet rich in unprocessed plant foods and certain seafood and dairy.

Signs of Magnesium Deficiency

Mild magnesium deficiency often goes unnoticed. However, chronic low magnesium has been linked to several health issues, including:

  • Muscle cramps or spasms
  • Fatigue and low energy
  • Mood changes, irritability, or anxiety
  • Irregular heartbeat
  • Nausea or loss of appetite
  • Osteoporosis over time

If you suspect a severe deficiency, a healthcare provider can confirm with a blood test and recommend treatment.

The Best Foods High in Magnesium

The best way to increase your magnesium intake is by eating a wide variety of whole foods, with an emphasis on plants, nuts, seeds, legumes, and certain fish. Below is a breakdown of 18 top magnesium-rich foods, helping you to build balanced, delicious meals.

1. Pumpkin Seeds

Pumpkin seeds (pepitas) top the magnesium charts, packing in about 159 mg per 30 grams (roughly 1 ounce), which is nearly 40% of your daily needs. Sprinkle them over salads, yogurt, or oatmeal for a crunchy boost.

2. Chia Seeds

Just 30 grams of chia seeds provide around 114 mg of magnesium, plus a healthy dose of omega-3s and fiber. These tiny seeds absorb liquid, making them perfect for overnight puddings or smoothies.

3. Almonds

A serving (30 grams, or about 23 whole nuts) contains 80 mg of magnesium. Almonds are also rich in vitamin E, healthy fats, and protein. Grab a handful as a snack or add to homemade granola.

4. Cashews

30 grams of cashews offer approximately 75 mg of magnesium. Use as a creamy base for dairy-free sauces or to upgrade your trail mix.

5. Black Beans

With around 60 mg of magnesium per ½ cup (cooked), black beans are a powerhouse for both plant-based eaters and omnivores. They’re also versatile in salads, tacos, or stews.

6. Spinach

Cooked spinach (half a cup) packs in 57 mg of magnesium alongside generous amounts of iron and vitamin K. Add to pasta, omelets, or blend into smoothies.

7. Edamame

One cup of shelled, cooked edamame beans yields about 99 mg of magnesium as well as protein, fiber, and folate. Serve as a side or toss into stir-fries.

8. Avocado

Half an avocado contains 20 mg of magnesium, in addition to heart-healthy fats, potassium, and B vitamins. Layer slices atop toast or incorporate into salads for creamy richness.

9. Brown Rice

A half-cup of cooked brown rice delivers 72 mg of magnesium, making it a nutritious whole-grain alternative to white rice. Build balanced grain bowls or use as a base for veggies and protein.

10. Peanuts

With 48 mg of magnesium per 30 grams, peanuts are affordable and accessible. Try unsalted varieties or smooth peanut butter on whole grain bread.

11. Whole Wheat Bread

Each slice of whole wheat bread delivers about 25 mg of magnesium. Swap in for white bread to increase fiber and mineral content.

12. Salmon

Cooked wild salmon (100 grams, about 3.5 ounces) provides 30 mg of magnesium, plus protein, healthy omega-3 fats, and vitamin D. Bake, grill, or flake into salads.

13. Bananas

One large banana offers 37 mg of magnesium—as well as potassium, vitamin C, and fiber. Enjoy as a snack or blend into smoothies for a creamy texture.

14. Dark Chocolate

Quality dark chocolate (at least 70% cacao) delivers about 64 mg of magnesium per ounce (28 grams). It’s also packed with antioxidants. Savor a square or add cocoa nibs to oatmeal.

15. Tofu

Half a cup of firm tofu provides 37 mg of magnesium. This plant-based staple is perfect for stir-fries, scrambles, or salads.

16. Lentils

A half-cup of cooked lentils supplies 35 mg of magnesium with fiber, plant protein, and key minerals. Simmer into soups or stews for a filling, nutrient-rich meal.

17. Quinoa

This gluten-free, protein-rich pseudo-grain offers about 59 mg of magnesium per cup, cooked. It’s great as a base for vegetable pilafs, grain salads, or as an oatmeal substitute at breakfast.

18. Milk and Dairy

One cup of low-fat milk contains 28 mg of magnesium. Dairy products also offer calcium, vitamin D, and protein for total bone support. Choose yogurt or cheese for variety.

Other Good Sources of Magnesium

  • Sunflower seeds
  • Oats
  • Trail mix with chocolate chips, nuts, and seeds
  • Lean meats (chicken, beef)
  • Potatoes with skin

Magnesium in Animal vs. Plant Foods

While magnesium is present in some meats and seafood, plant-based sources—especially seeds, nuts, legumes, and green leafy vegetables—are generally richer sources. Even minor swaps, like opting for whole grains instead of refined, can raise your intake significantly.

Practical Tips to Get More Magnesium

  • Add a spoonful of pumpkin or chia seeds to yogurt, salad, or cereal.
  • Choose whole grains such as brown rice, oatmeal, or whole wheat bread.
  • Snack on a mix of nuts: keep almonds, cashews, and peanuts handy.
  • Include beans or lentils in soups, salads, or as side dishes several times per week.
  • Swap white potatoes for sweet potatoes with the skin for more fiber and minerals.
  • Enjoy a square of dark chocolate for dessert.
  • Layer spinach into omelets, sandwiches, or grain bowls.

Magnesium Absorption and Health Factors

Several factors can affect how well your body absorbs magnesium from food, including:

  • High intakes of calcium or zinc (may compete with magnesium for absorption)
  • Very low vitamin D status
  • Chronic digestive disorders (like Crohn’s or celiac disease)
  • Excess alcohol or caffeine intake
  • Older age or certain medications (such as diuretics or proton pump inhibitors)

If you have trouble meeting your magnesium needs or have a condition that increases risk of deficiency, speak with your healthcare provider. They may recommend a magnesium supplement, but food sources are preferred since they also provide other beneficial nutrients.

Frequently Asked Questions (FAQs)

What are the top dietary sources of magnesium?

Seeds (especially pumpkin and chia), nuts, legumes, whole grains, green leafy vegetables (like spinach), and certain fish (like salmon) rank highest for magnesium content per serving.

What are the symptoms of too little magnesium?

Common symptoms include muscle cramps or spasms, chronic fatigue, changes in mood, irregular heartbeat, and sometimes nausea or weakness. Persistent low magnesium may increase risk for heart and bone problems.

Should I take a magnesium supplement?

Most healthy adults can get adequate magnesium from a varied diet. Supplements may be useful for those with diagnosed deficiency or certain health conditions, but consult a healthcare provider before starting.

Does cooking lower magnesium content?

Some magnesium is lost in water during boiling or steaming, but most cooking methods preserve the majority of magnesium in foods. Using cooking liquid in soups or sauces helps retain nutrients.

Can you have too much magnesium?

It is rare to get too much magnesium from food, as kidneys eliminate the excess. However, overdose from supplements can cause diarrhea, nausea, and in severe cases, heart rhythm issues.

Summary Table: Magnesium Content of Common Foods

FoodServing SizeMagnesium (mg)
Pumpkin seeds30g (1 oz)159
Chia seeds30g114
Almonds30g80
Cashews30g75
Black beans½ cup, cooked60
Spinach½ cup, cooked57
Edamame1 cup, cooked99
Brown rice½ cup, cooked72
Avocado75g (½ fruit)20
Peanuts30g48
Salmon100g, cooked30
Banana1 large37
Dark chocolate28g (1 oz)64
Tofu½ cup37
Lentils½ cup, cooked35
Quinoa1 cup, cooked59
Milk, low-fat1 cup28
Whole wheat bread1 slice25

Key Takeaways

  • Magnesium is essential for muscle, nerve, heart, and bone health.
  • Seeds, nuts, legumes, whole grains, leafy greens, avocados, bananas, and fish are among the best food sources.
  • A varied, whole-foods diet is the most effective way to meet magnesium needs.
  • Look out for symptoms of deficiency if you’re in a high-risk group or have underlying conditions affecting absorption.
  • Talk to a nutrition professional before starting supplements or making significant dietary changes.
Sneha Tete
Sneha TeteBeauty & Lifestyle Writer
Sneha is a relationships and lifestyle writer with a strong foundation in applied linguistics and certified training in relationship coaching. She brings over five years of writing experience to thebridalbox, crafting thoughtful, research-driven content that empowers readers to build healthier relationships, boost emotional well-being, and embrace holistic living.

Read full bio of Sneha Tete