Last Updated: September 7, 2026
Topic: What Foods Have Magnesium
Reading Time: About 15 minutes
Written and Source Checked by: Adel Galal, Founder and Lead Writer at NextFitLife
Review Status: This article is for education and general information. It has not been medically reviewed by a doctor or registered dietitian.
Magnesium is easier to find in food than many people think.
Seeds are especially rich.
Nuts are good sources too.
Beans, leafy greens, whole grains, soy foods, yogurt, potatoes, and even bananas can add more across the day.
Quick answer: If you are asking what foods have magnesium, start with pumpkin seeds, chia seeds, almonds, spinach, cashews, peanuts, whole grain cereal, soy milk, black beans, edamame, peanut butter, potatoes, brown rice, and yogurt. A varied diet can provide magnesium without making one food do all the work.
For more vitamin and mineral guides, visit the NextFitLife Nutrition and Vitamins Hub.
You can also explore the NextFitLife Foods and Nutrition Hub.
What does magnesium do in your body?
Magnesium is an essential mineral.
Your body needs it every day.
It helps hundreds of enzyme systems work.
Magnesium supports normal muscle function.
It supports nerve signals.
It helps regulate blood glucose.
It is involved in blood pressure control.
Your body also uses it to make protein, bone, and DNA.
This is why dietary magnesium matters.
But do not turn magnesium into a cure all nutrient.
Getting enough supports normal body function.
Taking more than you need does not guarantee better sleep, more energy, fewer cramps, or better health.
How much magnesium do adults need?
Needs change with age and sex.
| Group | Recommended magnesium |
|---|---|
| Men age 19 to 30 | 400 mg per day |
| Men age 31 and older | 420 mg per day |
| Women age 19 to 30 | 310 mg per day |
| Women age 31 and older | 320 mg per day |
| Pregnant women age 19 to 30 | 350 mg per day |
| Pregnant women age 31 to 50 | 360 mg per day |
| Breastfeeding women age 19 to 30 | 310 mg per day |
| Breastfeeding women age 31 to 50 | 320 mg per day |
These are U.S. Recommended Dietary Allowances from the NIH Office of Dietary Supplements.
The Daily Value used on U.S. food labels is 420 mg for adults and children age 4 and older.
Your personal needs can differ if you have a medical condition or take medicine that affects magnesium.
14 magnesium-rich foods at a glance
| Food | Serving | Magnesium |
|---|---|---|
| 1. Pumpkin seeds | 1 ounce | 156 mg |
| 2. Chia seeds | 1 ounce | 111 mg |
| 3. Almonds | 1 ounce | 80 mg |
| 4. Cooked spinach | Half cup | 78 mg |
| 5. Cashews | 1 ounce | 74 mg |
| 6. Peanuts | Quarter cup | 63 mg |
| 7. Shredded wheat cereal | 2 large biscuits | 61 mg |
| 8. Soy milk | 1 cup | 61 mg |
| 9. Black beans | Half cup | 60 mg |
| 10. Edamame | Half cup | 50 mg |
| 11. Peanut butter | 2 tablespoons | 49 mg |
| 12. Baked potato with skin | 3.5 ounces | 43 mg |
| 13. Brown rice | Half cup cooked | 42 mg |
| 14. Plain low-fat yogurt | 8 ounces | 42 mg |
These values come from the current NIH selected food table.
Actual values can change with brand, serving size, variety, and preparation.
1. Pumpkin seeds are the strongest food on this list
One ounce of roasted pumpkin seeds provides 156 mg of magnesium.
That is 37 percent of the Daily Value.
This makes pumpkin seeds one of the easiest magnesium-rich foods to add to normal meals.
Try them on:
- Oatmeal
- Yogurt
- Salads
- Soup
- Whole grain bowls
You do not need a large amount.
One normal serving already provides a useful amount.
2. Chia seeds pack a lot into a small serving
One ounce of chia seeds provides 111 mg of magnesium.
That is about 26 percent of the Daily Value.
Chia also provides fiber and fat.
Add it to:
- Yogurt
- Oats
- Smoothies
- Chia pudding
If you do not eat much fibre now, increase high-fibre foods slowly.
Large changes can cause gas or bloating in some people.
3. Almonds are an easy magnesium snack
One ounce of dry roasted almonds provides 80 mg.
That is about 19 percent of the Daily Value.
Almonds are simple.
You can eat them alone.
Or add them to breakfast.
Try a small serving with fruit or yogurt.
People with a tree nut allergy should avoid almonds.
4. Cooked spinach is one of the strongest vegetables
Half a cup of boiled spinach provides 78 mg of magnesium.
This is about 19 percent of the Daily Value.
Spinach is a useful example of why dark green vegetables matter.
Magnesium is part of chlorophyll.
That is one reason green leafy vegetables are often useful sources.
Add cooked spinach to:
- Eggs
- Beans
- Rice
- Soup
- Pasta
Do not depend on spinach alone.
Use variety.
5. Cashews give you magnesium in a small portion
One ounce of dry roasted cashews provides 74 mg.
That is about 18 percent of the Daily Value.
Cashews work well in snacks and meals.
They can also be blended into sauces.
This gives you another easy way to add plant based magnesium.
6. Peanuts are affordable and useful
A quarter cup of oil roasted peanuts provides 63 mg of magnesium.
That is about 15 percent of the Daily Value.
Peanuts are legumes, not tree nuts.
They are easy to use.
Add them to:
- Oats
- Salads
- Rice dishes
- Snacks
People with peanut allergy should avoid them.
7. Shredded wheat gives magnesium from whole grain
Two large biscuits of shredded wheat provide about 61 mg.
That is around 15 percent of the Daily Value.
Whole grains usually keep more of the magnesium-rich germ and bran.
Refining grains removes some of these parts.
This is one reason whole grains can provide more magnesium than refined grains.
Choose a cereal that fits your sugar and sodium needs.
8. Soy milk can add magnesium without much effort
One cup of plain or vanilla soy milk provides about 61 mg of magnesium.
That is about 15 percent of the Daily Value.
Soy drinks vary.
Check the label.
You may also want to compare:
- Protein
- Calcium
- Vitamin D
- Vitamin B12
- Added sugar
Fortified soy drinks can be useful for people who do not drink dairy milk.
9. Black beans give you magnesium plus fiber
Half a cup of cooked black beans provides 60 mg of magnesium.
That is about 14 percent of the Daily Value.
Beans also give you fiber and protein.
Use them in:
- Rice bowls
- Soup
- Salads
- Tacos
- Bean spreads
This is a simple way to build a magnesium rich diet without supplements.
10. Edamame is another strong soy food
Half a cup of cooked shelled edamame provides about 50 mg.
That is about 12 percent of the Daily Value.
Edamame also provides protein.
Add it to a rice bowl.
Mix it into salad.
Or eat it as a side dish.
11. Peanut butter makes magnesium easy to add
Two tablespoons of smooth peanut butter provide about 49 mg.
That is around 12 percent of the Daily Value.
Try peanut butter with:
- Whole grain toast
- Banana
- Oatmeal
- Apple slices
Check the label if you want to limit added sugar or sodium.
12. A baked potato contributes more than many people expect
A 3.5 ounce baked potato with its skin provides about 43 mg of magnesium.
That is around 10 percent of the Daily Value.
Potatoes are not only starch.
They also provide potassium and other nutrients.
Keep the skin when you enjoy it.
That helps retain more nutrients and fiber.
13. Brown rice adds magnesium to a normal meal
Half a cup of cooked brown rice provides about 42 mg.
That is around 10 percent of the Daily Value.
White rice in the same NIH table provides much less magnesium.
This shows how grain processing can change mineral content.
Brown rice works well with:
- Black beans
- Edamame
- Tofu
- Vegetables
- Fish
14. Yogurt adds magnesium plus other nutrients
Eight ounces of plain low-fat yogurt provide about 42 mg of magnesium.
That is around 10 percent of the Daily Value.
Yogurt also provides protein and calcium.
Try it with pumpkin seeds, chia seeds, almonds, or fruit.
That turns one moderate magnesium food into a much stronger breakfast or snack.
What other foods contain magnesium?
The list does not stop at 14 foods.
Other foods in the NIH table include:
- Instant oatmeal
- Kidney beans
- Bananas
- Milk
- Salmon
- Halibut
- Raisins
- Whole wheat bread
- Avocado
- Chicken
- Beef
- Broccoli
These foods contain different amounts.
Some are modest sources.
That is still useful.
Your daily magnesium intake comes from everything you eat throughout the day.
Can you get enough magnesium from food?
Many people can.
Magnesium is spread across many common foods.
A food-first pattern can include:
- Seeds
- Nuts
- Beans
- Whole grains
- Leafy greens
- Soy foods
- Dairy
- Fish
You do not need all of them at every meal.
Use several across the week.
The current Dietary Guidelines for Americans also emphasize whole nutrient-dense foods such as vegetables, fruits, protein foods, dairy, healthy fats, and whole grains.
What is a simple magnesium-rich breakfast?
Try this:
Oatmeal.
Add chia seeds.
Add almonds.
Add a banana.
Or use yogurt.
Add pumpkin seeds and fruit.
You do not need to calculate every milligram.
You are simply combining several magnesium food sources.
What is a simple magnesium-rich lunch?
Start with black beans or edamame.
Add brown rice.
Add spinach or another vegetable.
Add a protein food that fits your diet.
This is easier than looking for one so called superfood.
What is a simple magnesium rich dinner?
Try:
Salmon with brown rice and spinach.
Or tofu with black beans and vegetables.
Or a baked potato with beans and a side of greens.
The meal can be simple.
Can vegans get enough magnesium?
Yes.
Many of the strongest magnesium foods are plants.
Useful vegan choices include:
- Pumpkin seeds
- Chia seeds
- Almonds
- Cashews
- Peanuts
- Spinach
- Black beans
- Edamame
- Soy milk
- Brown rice
- Potatoes
- Whole grains
This makes plant-based magnesium fairly easy to find.
A vegan diet still needs attention to other nutrients such as vitamin B12.
What foods have the most magnesium per serving?
From the current NIH-selected food table, the top five on this page are:
- Pumpkin seeds at 156 mg per ounce
- Chia seeds at 111 mg per ounce
- Almonds at 80 mg per ounce
- Cooked spinach at 78 mg per half cup
- Cashews at 74 mg per ounce
That makes seeds and nuts especially useful when you want more magnesium in a small amount of food.
Does food processing change magnesium levels?
Yes.
Refining grains can remove the germ and bran.
Those parts contain magnesium.
This is why refined grains can have much less magnesium than whole grain versions.
The NIH specifically notes this effect.
Choose whole grain foods when they fit your diet and digestion.
How much magnesium from food does the body absorb?
Not every milligram you eat reaches your bloodstream.
The NIH estimates that the body normally absorbs about 30 to 40 percent of magnesium from food and drinks.
This is normal.
You do not need to multiply every food value by an absorption formula.
Your body regulates magnesium absorption and magnesium loss.
A varied diet is the practical goal.
Does water contain magnesium?
It can.
Tap water, mineral water, and bottled water may contain magnesium.
The amount varies a lot by source and brand.
The NIH notes that water can range from very little magnesium to more than 120 mg per liter in some sources.
Check the mineral label if you want to know what is in bottled water.
What are signs of magnesium deficiency?
True symptomatic magnesium deficiency from diet alone is uncommon in otherwise healthy people.
Your kidneys help conserve magnesium when intake is low.
Deficiency can still occur.
Early signs can include:
- Loss of appetite
- Nausea
- Vomiting
- Fatigue
- Weakness
More severe deficiency can cause:
- Numbness
- Tingling
- Muscle contractions
- Cramps
- Seizures
- Abnormal heart rhythms
Do not diagnose magnesium deficiency from symptoms alone.
These symptoms can have many causes.
Do muscle cramps mean you need magnesium?
No.
Cramps can happen for many reasons.
Exercise.
Muscle fatigue.
Fluid loss.
Medicine.
Nerve problems.
Circulation problems.
Low magnesium is only one cause.
Do not start high-dose magnesium supplements just because your leg cramped once.
For related food guidance, visit the NextFitLife Bone and Joint Health Hub.
Who is more likely to have low magnesium?
Some groups deserve more attention.
These include people with:
- Some digestive diseases
- Long-term diarrhea or poor absorption
- Type 2 diabetes
- Long term heavy alcohol use
- Older age
- Certain medicine use
People with Crohn disease, celiac disease, or other conditions that affect absorption may lose more magnesium or absorb less.
Type 2 diabetes can also increase urinary magnesium losses in some people.
This is a medical issue.
Food lists alone may not solve it.
Can medicines affect magnesium?
Yes.
Some medicines can change magnesium levels.
Long term use of some proton pump inhibitors has been linked with low magnesium.
Some diuretics can increase magnesium loss.
Others can reduce magnesium loss.
Do not stop a medicine because of this article.
If you take medicine every day and are worried about magnesium, ask your doctor or pharmacist.
Do you need a magnesium supplement?
Not automatically.
Food is a good starting point for many people.
A supplement can make sense when there is an obvious reason.
Examples can include a confirmed deficiency or another need identified by a healthcare professional.
But supplements are not the same as food.
The adult upper limit for magnesium from supplements and magnesium-containing medicines is 350 mg per day.
This limit does not include magnesium naturally present in food and drinks.
That is an important difference.
Can you get too much magnesium from food?
For healthy people, too much magnesium from normal food is not usually the main concern.
The kidneys remove excess magnesium.
High supplemental amounts are more likely to cause problems.
Too much supplemental magnesium can cause diarrhea, nausea, and stomach cramps.
Very large amounts can become dangerous.
Why does kidney disease change magnesium safety?
Your kidneys help remove extra magnesium.
If kidney function is severely reduced, magnesium can build up.
The NIH notes that the risk of magnesium toxicity rises with impaired kidney function or kidney failure.
People with kidney disease should not start large magnesium supplements without professional advice.
A general food guide cannot replace a kidney specific diet plan.
Can magnesium supplements interact with medicine?
Yes.
This is another reason not to treat supplements like food.
Magnesium can affect the absorption of some medicines.
Examples include some antibiotics and medicines used for osteoporosis.
NIH guidance says some tetracycline and quinolone antibiotics need to be separated from magnesium supplements.
Magnesium supplements can also interfere with some oral bisphosphonate.
Ask a pharmacist about timing.
Do not guess.
Is magnesium citrate better than food?
No.
It is different.
Magnesium citrate is a supplement form.
Food gives you magnesium along with other nutrients.
A supplement can provide a measured amount when it is needed.
Neither one is automatically better for every person.
The right choice depends on why you are taking it.
For more detail about magnesium and zinc supplements, read the NextFitLife Zinc and Magnesium Guide.
Do you need magnesium for better sleep?
Magnesium is involved in normal nerve and muscle function.
That does not mean every sleep problem comes from low magnesium.
Sleep problems have many causes.
A supplement should not replace a proper look at sleep habits, medicines, stress, sleep apnea, pain, or another health problem.
If poor sleep lasts, discuss it with a qualified healthcare professional.
Does magnesium give you more energy?
Magnesium is involved in normal energy metabolism.
But eating pumpkin seeds does not act like an energy drink.
If you are tired every day, do not assume magnesium is the answer.
Fatigue can come from sleep problems, anemia, thyroid problems, medicines, infection, stress, depression, diabetes, and many other causes.
Persistent fatigue deserves proper assessment.
What mistakes should you avoid?
Thinking one food must meet the whole target
No.
Foods add up across the day.
Thinking bananas are the best magnesium food
Bananas contain magnesium.
A medium banana has about 32 mg.
Seeds, nuts, spinach, and beans contain much more per listed serving.
Thinking salmon is very high in magnesium
Salmon provides magnesium.
But the NIH table lists only about 26 mg in 3 ounces.
That is around 6 percent of the Daily Value.
Taking a supplement because of one muscle cramp
Cramps have many causes.
Using supplement limits as food limits
The 350 mg adult upper limit applies to supplemental and medicinal magnesium.
It does not apply to magnesium naturally present in food.
Ignoring medicine interactions
Some medicines need space from magnesium supplements.
Taking large doses with kidney disease
This can be unsafe.
A simple food-first magnesium day
You do not need to count everything.
This example shows how foods can add up.
Breakfast
Oatmeal with chia seeds, almonds, and banana.
Lunch
Black beans with brown rice and spinach.
Snack
Yogurt with pumpkin seeds.
Dinner
Salmon with a baked potato and vegetables.
This is only an example.
It is not a personal meal prescription.
Conclusion
If you are still asking what foods have magnesium, start with the foods that give you the most for a normal serving.
Pumpkin seeds lead the NIH list.
Chia seeds, almonds, spinach, cashews, beans, soy foods, whole grains, potatoes, and yogurt also help.
Mix several sources throughout the day.
Your next step: Choose one seed or nut and one bean, whole grain, or leafy green from this guide. Add them to meals you already eat before deciding you need a supplement.
References and Sources
These sources are open and available to the public.
- National Institutes of Health Office of Dietary SupplementsPage: Magnesium Fact Sheet for Health ProfessionalsUpdated: January 6, 2026
Use: Magnesium functions, recommended intakes, food values, absorption, deficiency, supplement limits, kidney safety, and medicine interactions.
Website: ODS.NIH.gov
URL: https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
- National Institutes of Health Office of Dietary SupplementsPage: Magnesium Fact Sheet for ConsumersUse: Plain language guidance on magnesium needs, foods, supplements, deficiency, safety, and medicine interactions.
Website: ODS.NIH.gov
- United States Department of Agriculture Page: FoodData CentralUse: Public food composition data for magnesium and other nutrients.
Website: FDC.NAL.USDA.gov
- United States Department of Health and Human Services and United States Department of Agriculture Page: Dietary Guidelines for Americans 2025 to 2030Use: Current healthy eating guidance and nutrient-dense food patterns.
Website: Health.gov
- MedlinePlusPage: Magnesium in DietUse: Magnesium food sources, normal functions, deficiency risk, and general dietary guidance.
Website: MedlinePlus.gov
Related NextFitLife Guides and Hubs
- NextFitLife Foods and Nutrition Hub
- Nutrition and Vitamins Hub
- Bone and Joint Health Hub
- Zinc and Magnesium Guide
- Iron and Calcium Foods Guide
- Iron and Zinc Foods Guide
Author Bio
Adel Galal is the founder and lead writer of NextFitLife.
He has maintained a personal interest in health, fitness, nutrition, sleep, wellness, and healthy aging for more than 30 years.
His health and wellness writing experience spans more than 15 years.
His role is to research topics, compare reputable sources, organize evidence, identify important limits, and explain health and nutrition information in clear language.
NextFitLife aims to separate established guidance from marketing claims, avoid miracle cures, explain safety limits, and make clear when professional care is needed.
I am not a dermatologist or A doctor, and this content does not replace professional medical advice. What I share comes from real-life experience, extensive research, and consultation with healthcare providers. Always consult qualified medical professionals for diagnosis and treatment of any health condition.
For this topic, Adel Galal is also not a physician, registered dietitian, pharmacist, nephrologist, endocrinologist, or licensed nutrition professional.
Magnesium needs and supplement safety can change with kidney disease, diabetes, digestive disease, pregnancy, medicine use, age, and diagnosed mineral problems.
Learn more about NextFitLife, Adel Galal, sourcing standards, and the editorial process on the About Us page.
Frequently Asked Questions
What foods have magnesium?
Top choices include pumpkin seeds, chia seeds, almonds, spinach, cashews, peanuts, whole grain cereal, soy milk, black beans, edamame, peanut butter, potatoes, brown rice, and yogurt.
What food has the most magnesium?
In the current NIH-selected food table, roasted pumpkin seeds are the richest listed source at 156 mg per ounce.
Which fruit has magnesium?
Bananas and avocados provide magnesium. A medium banana has about 32 mg, while half a cup of cubed avocado has about 22 mg in the NIH table.
Are bananas high in magnesium?
Bananas contain magnesium, but they are not among the richest sources. One medium banana provides about 32 mg.
Are almonds high in magnesium?
Yes. One ounce of dry roasted almonds provides about 80 mg of magnesium, around 19 percent of the Daily Value.
Are pumpkin seeds high in magnesium?
Yes. One ounce of roasted pumpkin seeds provides about 156 mg, making them one of the richest foods in the NIH-selected table.
Can I get enough magnesium without supplements?
Many people can get enough from food by eating seeds, nuts, beans, whole grains, leafy greens, soy foods, dairy, and other varied foods.
Do muscle cramps mean I need magnesium?
No. Low magnesium can cause cramps in severe deficiency, but cramps have many possible causes. Do not diagnose a deficiency from cramps alone.
How much magnesium do adults need?
Adult men generally need 400 to 420 mg per day. Adult women generally need 310 to 320 mg. Pregnancy raises the recommended amount to 350 to 360 mg for adult women.
Is 350 mg the maximum amount of magnesium I can eat?
No. The 350 mg adult upper limit applies to magnesium from supplements and magnesium-containing medicines. It does not include magnesium naturally present in food or drinks.
Can magnesium supplements interact with medicine?
Yes. Magnesium supplements can affect some antibiotics and oral osteoporosis medicines. Some diuretics and long-term proton pump inhibitor use can also affect magnesium status. Ask a doctor or pharmacist about your medicines.
Is magnesium safe if I have kidney disease?
Extra magnesium can become dangerous when kidney function is severely reduced because the body may not remove it well. Ask your kidney care team before using magnesium supplements.

Health & wellness writer with 30+ years of experience in nutrition, fitness, and healthy aging. Founder of NextFitLife.com โ evidence-based health guidance.



