Magnesium Rich Foods: 15 Top Sources Ranked by mg per Serving, Plus a Sample Day

Quick answer: Pumpkin seeds are the richest common source of magnesium, with about 156 mg in one ounce, followed by chia seeds (111 mg), almonds (80 mg), boiled spinach (78 mg per half cup) and cashews (74 mg). Adults need roughly 310 to 420 mg a day depending on age and sex, and a few ordinary meals can get you there without a supplement.

By Dr. Nada Ahmed El Gazaar, BPharm. Last reviewed November 22, 2026.

Magnesium takes part in hundreds of reactions in the body, including muscle and nerve function and blood sugar control. Most people get it from seeds, nuts, beans, whole grains and leafy greens. Below are the best sources with the amount per serving from the NIH Office of Dietary Supplements, a sample day, and the medicine interactions most articles leave out.

How much magnesium do you need?

GroupRecommended daily amount (mg)
Children 4 to 8 years130
Children 9 to 13 years240
Teen boys 14 to 18410
Teen girls 14 to 18360
Men 19 to 30400
Men 31 and over420
Women 19 to 30310
Women 31 and over320
Pregnancy, 19 to 30 / 31 to 50350 / 360
Source: NIH Office of Dietary Supplements, magnesium fact sheet (Recommended Dietary Allowances).

15 magnesium rich foods ranked

RankFoodServingMagnesium (mg)
1Pumpkin seeds, roasted1 oz156
2Chia seeds1 oz111
3Almonds, dry roasted1 oz80
4Spinach, boiled1/2 cup78
5Cashews, dry roasted1 oz74
6Peanuts, oil roasted1/4 cup63
7Soy milk, plain1 cup61
8Black beans, cooked1/2 cup60
9Edamame, shelled, cooked1/2 cup50
10Peanut butter, smooth2 tbsp49
11Baked potato with skin3.5 oz43
12Brown rice, cooked1/2 cup42
13Plain low fat yoghurt8 oz42
14Banana1 medium32
15Salmon, Atlantic, farmed, cooked3 oz26
Source: NIH Office of Dietary Supplements, magnesium fact sheet. Values are per serving as listed.

Easy swaps that add magnesium

Instead ofTryExtra magnesium (mg)
White rice, 1/2 cupBrown rice, 1/2 cupAdds the 42 mg listed above
A snack of crackers1 oz pumpkin seeds156
Breakfast cereal aloneYoghurt with 1 oz chiaAbout 153 with the yoghurt
Side of lettuce1/2 cup boiled spinach78
Calculated from the NIH values in the table above.

A sample day: 434 mg

MealFoodsMagnesium (mg)
Breakfast8 oz plain yoghurt, 1 oz chia, 1 banana185
Lunch1/2 cup black beans, 1/2 cup brown rice, 1/2 cup boiled spinach180
Dinner3 oz salmon, 1 baked potato with skin69
Total434
Adds up the NIH values from the ranked table. Individual foods vary.

Magnesium for women, kids and sleep

Women need less than men in the NIH tables, 310 to 320 mg for most adults, and 350 to 360 mg in pregnancy. Children need far less, from 130 mg at ages 4 to 8, so a small handful of seeds on yoghurt goes a long way for them.

Magnesium is often marketed for sleep. A 2021 systematic review and meta analysis by Mah and Pitre in BMC Complementary Medicine and Therapies looked at magnesium supplements for insomnia in older adults and found the evidence to be low quality, so food is a safe way to meet your needs but not a proven sleep treatment.

What the evidence cannot tell you

  • Food amounts vary with soil, variety and cooking, so every number above is an approximation.
  • Boiling vegetables can lose some magnesium into the water.
  • Blood tests measure only a small fraction of the body’s magnesium, so a normal result does not rule out a low intake.
  • Supplements are not the same as food, and the NIH upper limit of 350 mg a day applies to supplements and medicines, not to food.

The pharmacist check: medicines and magnesium

MedicineWhat happensWhat to do
Bisphosphonates (alendronate, risedronate)Magnesium rich foods and supplements can reduce absorption.Follow the leaflet and keep the gap the NIH recommends, at least 2 hours.
Tetracycline and quinolone antibioticsMagnesium binds the antibiotic and lowers its effect.Take the antibiotic well before or after magnesium; ask your pharmacist for the exact timing.
Loop and thiazide diureticsIncrease magnesium loss in urine.Mention fatigue, cramps or palpitations to your doctor.
Potassium sparing diuretics (spironolactone, amiloride)Reduce magnesium loss.Do not add magnesium supplements without advice.
Proton pump inhibitors, long termThe NIH notes prolonged use may cause low magnesium.Ask whether your levels need checking.
Source: NIH Office of Dietary Supplements, magnesium fact sheet. I could not open the FDA notice on PPIs, so I rely on the NIH statement.

When to see a doctor

See a doctor for muscle cramps that will not settle, an irregular heartbeat, severe diarrhea, or kidney disease, since people with kidney problems can build up magnesium.

Frequently asked questions

What food is highest in magnesium?

Roasted pumpkin seeds, with about 156 mg per ounce, are the highest among common foods in the NIH table.

How much magnesium do I need a day?

The NIH recommends 400 mg for men aged 19 to 30, 420 mg for men 31 and over, 310 mg for women 19 to 30 and 320 mg for women 31 and over.

Can I get enough magnesium from food?

Most people can, using seeds, nuts, beans, whole grains and leafy greens. A sample day in this article reaches 434 mg.

Does magnesium help sleep?

A 2021 meta analysis of supplements in older adults rated the evidence as low quality, so it is not a proven sleep aid.

Do magnesium foods interact with medicines?

Supplements matter more than food, but bisphosphonates and some antibiotics need spacing from magnesium.

Is it possible to have too much magnesium from food?

Food is rarely the problem. The 350 mg upper limit refers to supplements and medicines, and kidney disease raises the risk.

Sources

Related reading: vegan protein sources, high fiber breakfast foods, bedtime snacks for blood sugar and the most nutrient dense foods.

Dr. Nada Ahmed El Gazaar, BPharm
Dr. Nada Ahmed El Gazaar, BPharm

Nada Ahmed El Gazaar is a pharmacist (BPharm, Cairo University) and holds certifications in Nutrition Science from Zewail International Academy and in Obesity Management from EPSN Academy. She works one-to-one with nutrition clients online and is the founder of What Diet Is It, where she writes evidence-informed, realistic guidance for women navigating diet and hormonal health.

Her pharmacy training shapes how she approaches nutrition, particularly where food, medication and conditions interact, as with GLP-1 medications, gut health and inflammation. She also draws on her own experience of how anti-inflammatory dietary changes affected her well-being.

Nada is the founder of NutriScope PRO, a clinical nutrition decision-support platform for dietitians and healthcare institutions.

Training: BPharm, Cairo University | Nutrition Science, Zewail International Academy | Obesity Management, EPSN Academy

Articles: 342

Leave a Reply

Your email address will not be published. Required fields are marked *