Nutrition
Magnesium: Benefits, Food Sources, and Deficiency Signs You Should Know
Magnesium | Category: Nutrition
Magnesium is one of those nutrients nobody thinks about until they’re reading a label and realise it’s in about fifteen things they’ve eaten this week. It has no Instagram presence, it isn’t a trending supplement, and there isn’t a dramatic deficiency disease that makes the news.
Which is a shame, because magnesium is involved in more than 600 enzymatic reactions in the human body, and a surprising number of everyday complaints trace back to not getting enough of it.
This is a guide to what magnesium actually does, where to get it from food, how to recognise a shortfall, and — importantly — what the supplement aisle will try to sell you that you don’t need.

What magnesium does in your body
The list is long. Rather than dumping it, let’s group it by what you’d notice.
Bone. Magnesium sits alongside calcium and vitamin D in bone mineralisation. About 60% of the body’s magnesium is in bone and teeth. It’s structurally part of the crystal lattice, and it also helps regulate vitamin D activation, which is why the three nutrients are usually discussed together. Getting enough magnesium matters more for bone health than most people realise, and it’s a common blind spot when someone is chasing a calcium or vitamin D problem.
Muscle and nerve function. Magnesium sits in the cell membrane and acts as a natural calcium antagonist — it helps muscles relax rather than contract. This is the physiology behind the association between magnesium and muscle cramps, twitches, and that vague restlessness many people feel at night. The evidence for supplementation helping cramps specifically is genuinely mixed, which we’ll get to, because that’s a claim the supplement industry has run with for decades.
Heart rhythm. Magnesium is critical to electrical conduction in the heart. Severe deficiency causes abnormal heart rhythms, and this is one area where the stakes are serious enough that supplementation is standard care in the hospital setting.
Blood sugar. Magnesium is involved in insulin secretion and glucose uptake. Low magnesium status is common in people with type 2 diabetes, and the relationship appears to run both ways. Magnesium deficiency and insulin resistance reinforce each other.
Blood pressure. The effect is modest but measurable in trials, and it’s the reason magnesium appears in most reviews of dietary approaches to hypertension.
Energy production. Magnesium is a cofactor in ATP generation. When people describe magnesium-rich foods as “energising,” that’s the actual mechanism, not a metaphor.
Protein and DNA synthesis. Without adequate magnesium, protein synthesis stalls. It’s involved in turning over cells, which is the maintenance work that keeps recovery from exercise happening properly.
Sleep. There’s a well-known association between magnesium status and sleep quality, and it’s probably mediated through the muscle relaxation and nervous system effects above. Trials of magnesium supplementation for insomnia show small but real improvements in subjective sleep quality.
And the one that sounds too good to be true but isn’t: constipation. Magnesium is an osmotic laxative, which is why magnesium citrate and magnesium oxide feature in so many over-the-counter laxatives.

How much magnesium do you need?
These numbers come from the NIH Office of Dietary Supplements, which is the reference we trust for this.
| Life stage | Recommended amount |
| Infants 7–12 months | 75 mg |
| Children 1–3 years | 80 mg |
| Children 4–8 years | 130 mg |
| Children 9–13 years | 240 mg |
| Teen boys 14–18 years | 410 mg |
| Teen girls 14–18 years | 360 mg |
| Adult men | 400–420 mg |
| Adult women | 310–320 mg |
| Pregnant women | 350–360 mg |
| Breastfeeding women | 310–320 mg |
The gap between men and women is worth a note. It largely reflects differences in body size, and men generally have higher requirements. If you’re a woman, 310 to 320 mg is your number. If you’re a man, 400 to 420 mg.
The upper limit — and why it confuses people
The Tolerable Upper Intake Level for magnesium from supplements and medications is 350 mg per day for adults. The Harvard Nutrition Source on magnesium makes the same point: magnesium from food doesn’t count toward this limit, and food magnesium is not considered harmful.
This is the part that trips people up, so let’s be clear about it. Your kidneys clear excess magnesium from food into urine efficiently. High food intakes aren’t a concern — no study has shown harm from magnesium-rich diets. But supplements bypass that, and high doses from supplements cause diarrhoea, nausea, and abdominal cramping. That’s the laxative effect everyone has heard of, and it’s the reason the limit exists.
So the limit is a supplement limit, not a food limit. It looks strange that the UL (350 mg) is lower than the RDA for men (400–420 mg), but that’s because the RDA includes magnesium from all sources while the UL only counts supplements and medications. Nobody has ever told you to eat less food magnesium because of the UL.
The best food sources of magnesium
This is the part where the good news lives: you can realistically hit your target from food, if you eat a reasonably varied diet. The best sources are seeds, nuts, legumes, whole grains, and green vegetables.
Pumpkin seeds — the standout. One ounce (about 28 g) delivers roughly 535 mg of magnesium. A single ounce, more than an entire day’s RDA for a woman. They’re also cheap, shelf-stable, and snackable. This is the single most efficient food source on the list, and if you change one thing about your diet, it should probably be this.
Almonds. About 80 mg per ounce, plus vitamin E and fibre and a genuinely useful protein content.
Cashews. Around 45 mg per ounce. Also high in copper and zinc.
Black beans and chickpeas. Roughly 40 to 45 mg per half cup of cooked beans. Lentils are around 35 mg per half cup.
Oats. About 140 mg per cup of dry rolled oats. Breakfast is genuinely one of the easier places to add magnesium, which is a nice argument for the high-protein overnight oats recipe we publish.
Spinach. 24 mg per cooked half cup. Here’s the catch, and it’s a real one: spinach magnesium is only partially bioavailable because the same oxalates that make spinach troublesome for kidney stones also bind magnesium. Cooked spinach is better than raw, and it’s still worth eating, just don’t count on it as your primary source.
Avocado. Around 30 mg per fruit, plus potassium and monounsaturated fat.
Whole grains. Brown rice, barley, quinoa, and whole wheat bread all contribute. Refined white bread contributes almost nothing — the milling process strips out most of the mineral content.
Dark chocolate. Around 70 mg per ounce, and one of the few genuinely pleasant sources. We mention this with a straight face.
Fatty fish. Salmon and mackerel come in around 30 mg per serving. Worth eating for a dozen other reasons.
Dark leafy greens generally. Bok choy, Swiss chard, and kale. Kale is modest compared to seeds but still a contributor.
One practical pattern we’ve noticed: the highest-magnesium diets tend to be the highest-fibre diets, and they overlap heavily with vegetarian and Mediterranean patterns. That’s reassuring, because those patterns are well studied and consistently good for you. If your diet is heavy in refined grains and processed food, magnesium is probably one of several things you’re short on.
Signs of magnesium deficiency
Here’s the honest complication: short-term low intake doesn’t produce obvious symptoms. The NIH is explicit about this. When healthy people eat less magnesium, their kidneys respond by holding onto more of it, and the gut absorbs more efficiently. The body is good at defending against small shortfalls, which is a genuinely good design if your diet is bad for a decade and then suddenly isn’t.
Prolonged low intake, on the other hand, does eventually lead to deficiency. And certain conditions and medications interfere with absorption or increase losses, which is where the more noticeable symptoms come from.
The NIH symptom list runs from mild to severe:
Early signs: loss of appetite, nausea, vomiting, fatigue, weakness. These are non-specific — they overlap with a dozen other things, which is exactly why deficiency is hard to catch early.
Moderate deficiency: numbness or tingling, muscle contractions and cramps, seizures, personality changes, abnormal heart rhythms.
Severe deficiency: low blood calcium, low blood potassium.
Other signs people commonly report, with the honest caveat that they’re not diagnostic:
- Eye twitching, particularly around the eyelid. Low specificity, but frequent enough that many people notice a change.
- That mid-afternoon slump that a coffee seems to half-fix.
- Difficulty falling asleep, or waking in the small hours.
- Headaches, particularly tension-type.
- Irritability and a shortened fuse.
- Heart palpitations or a fluttering feeling. This one needs a doctor’s attention rather than a magnesium tablet. Palpitations have many causes and some of them matter.
- Menstrual cramps.
Who is most likely to be deficient?
This is where the picture gets clearer, because the list is long and specific.
People with gastrointestinal diseases. Crohn’s disease, celiac disease, and ulcerative colitis damage the gut lining. If you can’t absorb it, you’ll be short no matter how much you eat. Interestingly, the small intestine is where most magnesium absorption happens, so damage anywhere along the gut matters.
People who have had bariatric surgery. This is a big one. Both gastric bypass and sleeve gastrectomy reduce the absorptive surface. Some clinical guidelines put post-surgical patients on lifelong supplementation.
Older adults. Absorption efficiency declines with age, intake often drops, and medications pile up.
People with type 2 diabetes. Higher requirements, higher losses, and the insulin resistance relationship feeding back.
Heavy alcohol use. Alcohol increases urinary magnesium excretion substantially.
People on certain medications. This is the one most people don’t know:
- Tetracycline and quinolone antibiotics (doxycycline, ciprofloxacin) bind magnesium in the gut and reduce absorption of both. Separate them by 2 to 4 hours.
- Bisphosphonates (alendronate, risedronate) for osteoporosis — same binding effect.
- Proton pump inhibitors (omeprazole, pantoprazole) reduce acid-mediated absorption when taken long-term.
- Diuretics work in opposite directions depending on type. Loop diuretics (furosemide) increase magnesium loss. Potassium-sparing diuretics can raise it.
If you’re on any of these, ask your pharmacist or prescriber about timing before you start a supplement. This is a case where a two-hour gap is the whole ballgame.
People who eat a highly processed diet. No magnesium fortification in most packaged food, and refining strips it out of grains.
Should you supplement?
Maybe. The evidence is stronger for correcting a genuine shortfall than for improving on top of an adequate intake.
If your diet is varied and includes seeds, legumes, whole grains, and leafy greens, you probably don’t need a supplement. A tablespoon of pumpkin seeds on most days covers a lot of ground.
If you’re eating a restrictive diet, over 60, or have a GI condition, supplementation is reasonable. Magnesium glycinate (often listed as bisglycinate) is generally well tolerated and absorbed. It’s the form most nutritionists default to.
Magnesium citrate also absorbs well and is mildly laxative at higher doses — sometimes useful, sometimes not.
Magnesium oxide is cheap and it’s in a lot of supplements, but it’s poorly absorbed. This is worth flagging because it’s frequently the form in high-dose, high-price tablets. A large oxide tablet that produces a satisfyingly large bowel movement isn’t evidence of a large mineral delivery. It’s a large laxative effect.
Magnesium threonate crosses the blood-brain barrier more readily and is the form used in cognitive research. Evidence for meaningful cognitive benefit in healthy people is still thin. It’s expensive. Your call.
Magnesium taurate is marketed for cardiovascular reasons. The trials are small and the marketing outruns them.
Timing note: magnesium can interfere with absorption of some antibiotics and some thyroid medication, so as above — separate them.
And if you take a nightly magnesium supplement to help you sleep, that’s one of the more defensible supplement uses. The trials are small but consistent, and the safety profile at standard doses is excellent.
Magnesium and other nutrients
Two quick notes, because these come up constantly.
Magnesium and vitamin D work together. Magnesium is required for vitamin D to be converted into its active form. If you’re supplementing vitamin D and finding your blood levels stubbornly low, magnesium status is a reasonable thing to investigate with your doctor. The vitamin B12 guide covers a similar dynamic, where correcting one deficiency reveals another.
Magnesium and sleep quality. If you’re lying awake at 1am, exhausted but awake, this is one of the more straightforward wins available. It’s also a symptom that shows up in a long list of possible causes, so it’s worth not treating it as a diagnosis.
Who should be cautious with magnesium supplements?
- People with kidney disease. Damaged kidneys can’t clear excess magnesium. This is a genuine contraindication, not a soft warning.
- People with heart block. Excess magnesium can affect cardiac conduction.
- Pregnant and breastfeeding women should check with a doctor before supplementing beyond food amounts.
- People with myasthenia gravis, because magnesium can worsen muscle weakness.
- Anyone on blood pressure medication, since magnesium can add to its effect.
If you have any chronic condition and are on medication, the honest answer to “should I take magnesium?” is a conversation with your doctor, not an article on the internet. Including this one.
The bottom line
Magnesium is boring, essential, and cheap to fix. The RDA is achievable from food if you eat seeds, legumes, whole grains, and greens. Pumpkin seeds are absurdly efficient and almost nobody eats them daily.
The deficiency symptoms are real but vague, and the group at genuine risk of being low is larger than most people assume — anyone over 60, anyone with a gut condition, anyone on a restricted diet, and anyone on a few common medications.
If you eat a varied diet, add a handful of seeds and skip the supplement. If you’re in one of those higher-risk groups, magnesium glycinate at a sensible dose, checked against your medications, is a low-risk and reasonable move.