← All articles Magnesium · The essentials

The best magnesium-rich foods

Reading time ~6 min · Filed under Magnesium
A spread of pecans, hazelnuts and cacao nibs on a pale wooden surface
Nuts, seeds and cacao are among the densest everyday magnesium sources.

Magnesium is a quiet workhorse. It plays a part in hundreds of processes in the body — helping muscles and nerves work, steadying energy production, supporting bone. It rarely gets the attention that vitamin D or iron do, yet it's a mineral plenty of people drift a little low on, mostly because the modern plate leans heavily on refined foods where magnesium has been stripped away. The reassuring part is that it's abundant in ordinary whole foods, and eating more of it is genuinely pleasant: we're talking nuts, seeds, beans, whole grains, leafy greens and a bit of dark chocolate. Here's where the magnesium actually lives, roughly in order of how much it delivers, and how to fold more into a normal week.

Nuts and seeds lead the list

For sheer density, it's hard to beat nuts and seeds. Pumpkin seeds are a standout, and almonds, cashews, chia and flax all bring a solid amount along with healthy fats. Because they're concentrated, a modest handful does real work — you don't need a bowlful. Scatter seeds over porridge or yogurt, keep a small jar of mixed nuts around, or stir a spoonful of pumpkin seeds through a salad. It's one of the easiest magnesium upgrades there is.

Beans, lentils and whole grains

Legumes are a steady, everyday source that also brings fibre and plant protein along for the ride. Black beans, chickpeas, lentils and edamame all contribute. Whole grains matter here for the same reason they do with fibre: the magnesium sits in the bran and germ, exactly the parts that refining removes. Oats, brown rice, quinoa, buckwheat and whole-wheat bread keep it; their white, refined versions don't. Choosing whole over refined is one change that quietly lifts several nutrients at once.

Where the losses happen: refining grains strips out much of their magnesium. Swapping white bread, white rice and regular pasta for whole-grain versions is a simple way to eat more without adding a single new food.

Dark leafy greens

Magnesium sits at the centre of the chlorophyll molecule that makes leaves green, so it's no surprise dark greens carry it. Spinach, chard and kale all contribute, cooked or raw. Greens aren't as dense per gram as seeds, but they're easy to eat in quantity, and they bring a long list of other nutrients with them. A generous pile of cooked spinach alongside dinner is a reliable, low-effort addition.

And yes, dark chocolate

Dark chocolate and cocoa are a genuinely good source, which is a pleasant footnote to end on. The higher the cocoa content, the more magnesium — and the less sugar, which is a fair reason to lean toward the darker bars anyway. A couple of squares of good dark chocolate is a small, real contribution, not just a treat you're justifying after the fact.

Reach for these first

Building a magnesium-friendly day

You don't need every food on this list — just a few, most days. Oats with seeds at breakfast, a bean-based lunch, greens with dinner around a whole grain, and a square of dark chocolate afterward, and you're comfortably there without measuring a thing. The broader lesson repeats one you'll hear across this site: the more whole and less refined your food, the more of its magnesium survives to your plate. Before reaching for a magnesium supplement, it's worth seeing how far a slightly less processed week gets you first.