Magnesium: Richest Sources — and the Hidden Sources That Matter
By Dr. Mohamed Ibrahim, MD, PhD — Assistant Professor of Medicine, Transplant Nephrology, University of Maryland School of Medicine
✓ Medically reviewed by Mohamed Magdy Ibrahim, MD, PhD — Assistant Professor of Medicine, Transplant Nephrology, University of Maryland School of Medicine · Board certified in Internal Medicine (ABIM) · Last reviewed: November 2026
Magnesium works differently from the other nutrients on this site. Healthy kidneys clear any extra, so magnesium from food alone rarely causes a problem — and most people do not need to limit magnesium-rich foods. The risk appears in kidney failure, and it usually comes not from food but from medicines and supplements that hide magnesium. This list shows both.
⚠ Hidden sources — check these first
The real risk in kidney failure: medicines and supplements
Medicines and supplements
- Magnesium-containing antacids (such as Maalox and Mylanta)
- Milk of magnesia and other magnesium laxatives
- Epsom salts (magnesium sulfate) — in baths and remedies
- Magnesium supplements and many multivitamins
- Some bowel preparations used before colonoscopy — tell your team about your kidneys
Richest food sources
- Pumpkin seeds, almonds, cashews and other nuts and seeds
- Beans, lentils and soy foods
- Whole grains and bran cereals
- Dark chocolate
- Cooked spinach and other leafy greens
- Avocado and bananas
✓ Lower in magnesium — everyday staples
Most ordinary foods are modest in magnesium
Everyday foods
- White rice, white bread and refined pasta
- Most fresh fruits — apples, berries, grapes, peaches
- Eggs
- Meat, poultry and fish in ordinary portions
- Most vegetables in ordinary portions
Safer swaps for symptoms
- For heartburn or constipation, ask your clinician or pharmacist for a magnesium-free option — several exist
- Read the “active ingredients” on any over-the-counter product before you buy it
Good to know
- Food is rarely the problem. High magnesium in kidney failure almost always traces to a supplement, antacid, or laxative — bring every bottle you use to your appointments.
- “Natural” products count too. Herbal and wellness products can contain magnesium; check labels the same way.
- Signs of high magnesium — unusual sleepiness, weakness, slow heartbeat, low blood pressure — need prompt medical attention in someone with kidney failure.
- Do not cut out nuts, beans, and greens just for magnesium unless your care team tells you to — they may matter for other reasons, and your team can see your blood level.
Educational only — these lists do not replace advice from your own care team or dietitian. Your personal target for any nutrient depends on your blood tests, your stage of kidney disease, and whether you are on dialysis.
medicalvideos.com/food-lists/magnesium.html
Common questions
Can eating magnesium-rich food raise my magnesium too high?
With kidneys that work, essentially no — they clear the extra. Even in kidney disease, food alone is an uncommon cause. Supplements, antacids, and laxatives are the sources clinicians worry about.
Which everyday medicines contain magnesium?
Many antacids (such as Maalox and Mylanta), milk of magnesia, some laxatives, and Epsom salts. The active-ingredients panel on the label will say “magnesium” — check it, or ask the pharmacist.
Should I stop eating nuts and beans?
Not for magnesium alone, in most cases. If your blood magnesium is high, your team will usually look at medicines and supplements first. Nuts and beans may still need limits for potassium or phosphorus — see those lists.
Keep exploring
More lists in this section:
PotassiumPhosphorusSodiumCalciumProtein
See also: Magnesium blood test — what the blood test means and its usual ranges.
Eating with kidney disease day to day: Kidney Diet · Kidney and Transplant hub · Drug guide — check a medicine's kidney note