Magnesium has become one of the most talked-about minerals, linked to everything from sleep to stress to muscle recovery. Behind the hype, it genuinely is essential, involved in hundreds of processes in the body. Here is what it actually does, how much you need, and the easiest foods to get it from.
What magnesium does
Magnesium is a workhorse mineral, involved in more than 300 reactions in the body. The main roles include muscle and nerve function, energy production, blood sugar and blood pressure regulation, and building protein and bone. It also supports the nervous system, which is part of why it is associated with relaxation and sleep.
Because it does so much, falling short can show up in vague ways, like tiredness, cramps or poor sleep. That also makes it hard to pin down, so it is worth focusing on a magnesium-rich diet rather than self-diagnosing a deficiency.
How much do you need?
| Group | Magnesium per day |
|---|---|
| Adult men | ~400 to 420 mg |
| Adult women | ~310 to 320 mg |
| Pregnancy | ~350 to 360 mg |
Most people can reach these targets through food. Our TDEE calculator helps with your overall energy needs, and a varied wholefood diet usually covers magnesium alongside other minerals.
Best magnesium-rich foods
Seeds and nuts lead the way, followed by legumes, wholegrains and greens.
- Pumpkin seeds and chia seeds, among the richest sources
- Almonds, cashews and Brazil nuts
- Dark chocolate (a genuinely good source)
- Black beans, soybeans and lentils
- Wholegrains like oats and wholemeal bread
- Dark leafy greens like spinach and Swiss chard
For the full ranking, see our high-magnesium foods list. A daily handful of seeds or nuts, plus some beans and greens, makes hitting your target easy.
Seeds are the easy win. Just two tablespoons of pumpkin seeds provide a large share of your daily magnesium. Sprinkle them on yogurt, salads or oats for an effortless boost.
Magnesium and sleep
Magnesium’s role in the nervous system is why it is so often linked to sleep and relaxation. Some people find it helpful, though the research is mixed and benefits are clearest in those who were low to begin with. Getting enough through food is a sensible, low-risk first step before considering supplements.
Should you supplement?
For most people, food is enough and is the best place to start. Supplements can help some, but high doses may cause digestive upset and can interact with certain medications. If you are considering one, particularly for sleep or cramps, talk to a healthcare professional first rather than guessing at a dose.
The bottom line
Magnesium is genuinely important, and most people can get plenty from food without any supplements. Build a habit around seeds, nuts, legumes, wholegrains and leafy greens, and you cover magnesium along with a range of other nutrients. Start with our high-magnesium foods list, and pair it with our guide to gut health foods for an all-round wholefood approach.
This article is for general information and is not medical advice. Speak to a qualified professional before starting supplements or if you have health concerns.