Magnesium is a mineral your body uses in more than 300 enzyme reactions — including making energy, building protein and bone, and keeping nerves and muscles firing properly. Most adults need roughly 310–420 mg a day, and surveys consistently find many people fall short of that.
What magnesium does
- Energy production: every molecule of ATP (your cells' energy currency) has to be bound to magnesium to work.
- Muscles and nerves: magnesium balances calcium's "contract" signal, helping muscles relax and nerve signals stay steady. This is why severe deficiency can cause cramps, tremors and abnormal heart rhythms.
- Bone: about 50–60% of your body's magnesium sits in bone.
- Blood sugar and blood pressure: magnesium is involved in insulin signalling and blood vessel tone. Observational studies link higher intakes with lower risk of type 2 diabetes and high blood pressure, and trials show a small blood-pressure-lowering effect (roughly 2 mmHg) — real, but modest.
- Sleep, mood and migraine: evidence here is weaker and mixed. Magnesium is reasonably well supported as a migraine preventive, less so for sleep or anxiety.
How much you need
Recommended Dietary Allowances (US Institute of Medicine):
| Group | Per day |
|---|---|
| Men 19–30 | 400 mg |
| Men 31+ | 420 mg |
| Women 19–30 | 310 mg |
| Women 31+ | 320 mg |
| Pregnancy | 350–400 mg |
| Children 4–8 | 130 mg |
There's no upper limit set for magnesium from food — your kidneys clear the excess. The 350 mg/day upper limit you may see applies only to supplements and medicines, because large doses taken at once pull water into the gut and cause diarrhoea.
Good food sources
Magnesium clusters in seeds, nuts, beans, whole grains and leafy greens (it sits at the centre of the chlorophyll molecule, which is why green leaves contain it).
Per 100 g, USDA figures:
| Food | Magnesium |
|---|---|
| Pumpkin seed kernels, dried | 592 mg |
| Almonds | 270 mg |
| Black beans, boiled | 70 mg |
| Spinach, raw | 79 mg |
Realistic portions matter more than per-100 g figures:
- 1 oz almonds (28 g): about 76 mg — roughly a fifth of a man's RDA.
- 1 cup cooked black beans (172 g): about 120 mg.
- 1 cup raw spinach (30 g): only about 24 mg, though cooked spinach wilts down so a cup of cooked greens delivers far more.
- Pumpkin seeds: a 1 cup serving (129 g) would supply about 764 mg, but that's also 721 calories — a 2-tablespoon sprinkle (around 16 g, ~95 mg) is more typical.
Who's at higher risk of running low
True deficiency is uncommon in healthy people, but intakes below the RDA are widespread. Risk rises with:
- Long-term use of proton pump inhibitors (acid reflux drugs), certain diuretics, or some chemotherapy drugs
- Type 2 diabetes, Crohn's disease, coeliac disease or chronic diarrhoea
- Heavy alcohol use
- Older age (absorption falls, kidney losses rise)
Blood tests aren't very reliable, since less than 1% of body magnesium is in blood. If you think you're low — or you're pregnant, on regular medication, or have kidney disease, where magnesium supplements can build up dangerously — talk to a doctor or registered dietitian before starting a supplement. For most people, adding a handful of nuts, seeds, beans or greens most days closes the gap without pills.