Skip to content

Magnesium-rich foods: the list, and what supplements can and cannot do

Magnesium rich foods ranked: one ounce of pumpkin seeds has about 155 mg, 37% of the 420 mg Daily Value. Plus glycinate vs citrate, sleep and cramp evidence, and the 350 mg limit.

November 11, 2026 · 6 min read

Photograph by Alberta Studios on Pexels

Magnesium is involved in hundreds of enzyme reactions, from energy production to muscle contraction to the rhythm of the heart, and surveys consistently find that a large share of American adults eat less than the recommended amount. That combination has made it one of the most heavily marketed supplements on the shelf, sold for sleep, cramps, anxiety and stress.

The food side of the story is straightforward and well supported. The supplement side is mostly weaker than the marketing, with a few real exceptions. Both are below, with amounts rounded from USDA FoodData Central and the NIH magnesium fact sheet.

How much magnesium you need

The Daily Value on US labels is 420 mg. The RDA depends on age and sex:

  • Women: 310 mg a day from 19 to 30, and 320 mg from 31 on. Pregnancy raises it to 350 to 360 mg.
  • Men: 400 mg a day from 19 to 30, and 420 mg from 31 on.

The body holds most of its magnesium in bone and inside cells, and only about 1% circulates in the blood, so a normal blood test does not rule out low body stores. Frank deficiency is uncommon in healthy people because the kidneys conserve magnesium when intake drops. The people more likely to run low are those with type 2 diabetes, gastrointestinal conditions such as Crohn's or celiac disease, heavy alcohol use, older adults, and people on long-term proton pump inhibitors or some diuretics.

Pumpkin seeds are the densest everyday source: one ounce covers more than a third of the Daily Value. Photograph by Engin Akyurt on Pexels

Foods high in magnesium

FoodServingMagnesium% DV
Hemp seeds, hulled3 tbsp (30 g)about 210 mg50%
Pumpkin seeds, roasted1 ozabout 155 mg37%
Spinach, cooked1 cupabout 155 mg37%
Swiss chard, cooked1 cupabout 150 mg36%
Black beans, cooked1 cupabout 120 mg29%
Quinoa, cooked1 cupabout 120 mg28%
Edamame, shelled1 cupabout 100 mg24%
Chia seeds1 oz (about 2 tbsp)about 95 mg23%
Almonds, dry roasted1 ozabout 80 mg19%
Cashews, dry roasted1 ozabout 75 mg18%
Dark chocolate, 70 to 85% cocoa1 ozabout 65 mg15%
Peanuts, roasted1/4 cupabout 63 mg15%
Soy milk1 cupabout 60 mg15%
Peanut butter2 tbspabout 50 mg12%
Potato, baked with skin3.5 ozabout 45 mg10%
Brown rice, cooked1/2 cupabout 40 mg10%
Plain low-fat yogurt8 ozabout 40 mg10%
Banana1 mediumabout 30 mg8%
Salmon, cooked3 ozabout 25 mg6%

Pumpkin seeds and magnesium

Pumpkin seeds (pepitas) are the easiest high-magnesium food to eat every day: a small handful on oatmeal, salad or soup covers more than a third of the Daily Value. Hemp seeds are denser still per spoonful. Both bring protein and some iron, and both are calorie-dense, so an ounce is a serving, not a bag.

Greens, beans and whole grains

Magnesium sits at the center of the chlorophyll molecule, which is why dark leafy greens are good sources. Spinach is also high in oxalate, which reduces how much of its magnesium is absorbed, much as it does with iron, but it still contributes. Beans, lentils and edamame are the steadier sources, and they overlap heavily with the potassium-rich and high-fiber lists.

Whole grains matter because refining strips most of the magnesium out with the bran and germ. White flour and white rice keep a fraction of what the whole grain had, and enrichment adds back iron and B vitamins but not magnesium. A quinoa salad with chickpeas, or a bowl of three-bean chili, is a good magnesium meal.

Nuts, seeds and dark chocolate

Almonds and cashews are solid sources at around a fifth of the Daily Value an ounce. Chia seeds are not far behind pumpkin seeds; a chocolate chia pudding pairs them with cocoa, another good source. Dark chocolate genuinely counts at 70% cocoa and above, though a 1-ounce square is the serving the numbers apply to.

Black beans, almonds and dark leafy greens cover most of a day's magnesium between them. Photograph by Imoflow on Pixabay

Magnesium supplements: what the forms mean

Supplements come bound to different compounds, and the form changes both how well it is absorbed and how hard it is on the gut.

  • Magnesium oxide has a high magnesium content per tablet but is poorly absorbed. It is cheap, common, and works well as a laxative and antacid for exactly that reason.
  • Magnesium citrate is better absorbed than oxide and is also an effective osmotic laxative at higher doses. It is the form most often used for constipation.
  • Magnesium glycinate (bisglycinate) is magnesium bound to the amino acid glycine. It is generally gentler on the gut, which is its real advantage. The claim that glycinate specifically calms or improves sleep better than other forms is not supported by good trials.
  • Chloride, lactate and aspartate are also well absorbed. Magnesium sulfate is Epsom salt; there is no good evidence that a bath delivers meaningful magnesium through the skin.

Does magnesium help with sleep, cramps or migraine?

Sleep. A handful of small trials, mostly in older adults, have found modest improvements in sleep measures with magnesium. Systematic reviews rate that evidence as low quality, and it is not clear whether the benefit applies to anyone who is not already low. It is a reasonable, low-risk thing to try for someone whose diet is short on magnesium. It is not a sleeping pill.

Muscle cramps. A Cochrane review concluded that magnesium is unlikely to prevent ordinary leg cramps in older adults. The evidence for cramps in pregnancy is mixed and does not clearly show a benefit either.

Migraine. This is where the evidence is strongest. Magnesium is listed in US headache guidelines as probably effective for preventing migraine, usually at doses of around 400 to 600 mg a day, which is above the supplement upper limit and should be done with a doctor.

Constipation. Magnesium works reliably here, as an osmotic laxative, which is a drug effect rather than a nutritional one.

A square of dark chocolate counts as a genuine source, at 70% cocoa and above. Photograph by Vie Studio on Pexels

The upper limit, and who should not take magnesium supplements

The tolerable upper limit for adults is 350 mg a day from supplements and medications. It does not apply to magnesium in food, which the kidneys handle without trouble. Above that, the common effects are diarrhea, nausea and cramping, which is the same laxative effect described above.

  • Kidney disease is the important exception. The kidneys are how the body gets rid of excess magnesium, and with reduced kidney function it can build up to toxic levels, causing low blood pressure, weakness, confusion and heart rhythm problems. People with chronic kidney disease should not take magnesium supplements, or magnesium-containing laxatives and antacids, without their doctor's approval.
  • Medicine interactions. Magnesium binds to some antibiotics (tetracyclines and fluoroquinolones such as ciprofloxacin) and to osteoporosis drugs called bisphosphonates, reducing their absorption. Take these at least two hours apart, and check timing with a pharmacist.
  • Some medicines lower magnesium. Long-term proton pump inhibitors and loop and thiazide diuretics can deplete it. If you take these, it is a reasonable thing to ask your doctor to check.

For most people, a food-first approach does the job: a handful of pumpkin seeds or almonds a day, beans a few times a week, whole grains instead of refined ones, and greens. That combination covers the RDA without reaching for a bottle, and brings the fiber and potassium that magnesium supplements do not.