← All nutrients

Magnesium

mag-NEE-zee-um

Mineral

A mineral involved in hundreds of body processes — from energy production to keeping your heart rhythm steady and muscles relaxed.

Magnesium is like the oil in an engine — it does not provide the fuel, but without it, hundreds of moving parts seize up and nothing works properly.

What it does in the body

  • Cofactor for 300+ enzymes (ATP-dependent reactions)
  • Neuromuscular excitability regulation
  • Cardiac rhythm stability
  • Blood pressure regulation (vasodilation)
  • Insulin sensitivity and glucose metabolism

How much you need (Daily Value)

GroupRecommendedSource
Adult male400-420 mgNIH/IOM
Adult female310-320 mgNIH/IOM
Pregnancy350-400 mgWHO
Children80 mg (1-3y), 130 mg (4-8y), 240-410 mg (9-18y)NIH/IOM
Older adults420 mg (men), 320 mg (women)NIH/IOM

Richest food sources

FoodAmountWhere
Pumpkin seeds550 mg per 100gAmericas
Dark chocolate (70-85%)228 mg per 100gglobal
Almonds270 mg per 100gMiddle East/California
Spinach (cooked)87 mg per 100gglobal
Black beans (cooked)70 mg per 100gAmericas
Avocado29 mg per 100gAmericas
Cashews292 mg per 100gSouth Asia/Africa
Quinoa (cooked)64 mg per 100gSouth America

If you don't get enough

Mild: Muscle cramps, fatigue, irritability, poor appetite, insomnia

Moderate: Tremor, muscle fasciculations, personality changes, nausea, refractory hypokalemia and hypocalcemia

Severe: Cardiac arrhythmias (torsades de pointes), seizures, coronary artery vasospasm, tetany

Time to onset: Weeks to months for dietary deficiency. Can present acutely with GI losses or renal wasting.

Too much

Upper limit: 350 mg/day from supplements only (no UL for dietary magnesium)

Diarrhea (most common from supplements), nausea, abdominal cramping. Severe hypermagnesemia (usually iatrogenic IV): hypotension, bradycardia, respiratory depression, cardiac arrest

How well you absorb it

30-40% from diet; inversely proportional to intake amount

Helped by: Vitamin D, Protein, Fructose (moderate amounts), Fermentable fibers (gut microbiome)

Hindered by: Phytate, Oxalate, High-dose zinc supplements, Excess calcium, Proton pump inhibitors (chronic use)

Cooking & storage

Magnesium is heat-stable but water-soluble. Boiling vegetables can leach 20-30% of magnesium into cooking water. Steaming and stir-frying preserve more. Refined grain processing removes up to 80% of magnesium.

Did you know. An estimated 50-60% of Americans do not meet the RDA for magnesium. Globally, soil magnesium depletion from modern agriculture has reduced magnesium content in crops by 20-30% since 1950.

Educational reference only. Nutrient needs vary with age, sex, health, and medication. Not medical or dietary advice. See our full disclaimer.
Track your Magnesium — and 74 other nutrients — in the app.

Nutrisize Health totals every nutrient from what you actually eat, against targets set for your age and sex, and flags what's short — across 4,995 foods, on your device.

Download on the App Store Get it on Google Play

Evidence grades: A — meta-analyses / large trials; B — cohort studies & guidelines; C — expert consensus. Links open in a new tab.

AMagnesium Fact Sheet for Health Professionals — NIH Office of Dietary Supplements, 2024
AVitamin and Mineral Requirements in Human Nutrition — WHO/FAO, 2004
AMagnesium and Cardiovascular Disease — American Heart Association, 2022