Magnesium: Benefits, How Much You Need, and Best Foods

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.

The short answerAdults need around 300 to 420 mg of magnesium a day. Seeds, nuts, legumes, wholegrains and dark leafy greens are the richest sources, so a daily handful of pumpkin seeds or almonds goes a long way.

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?

GroupMagnesium 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.

Frequently asked questions

What does magnesium do for the body?

Magnesium is involved in more than 300 processes in the body, including muscle and nerve function, energy production, blood sugar control, blood pressure, and making protein and DNA. It also supports bone health and is linked to sleep quality and relaxation.

How much magnesium do I need a day?

General guidance is around 300 to 420 mg a day for adults, with men needing slightly more than women. Needs rise a little during pregnancy. Most people can reach this through a diet rich in seeds, nuts, legumes, wholegrains and leafy greens.

What are the signs of low magnesium?

Early signs can include tiredness, muscle cramps or twitches, poor sleep and low mood. Since these are common to many things, low magnesium is hard to self-diagnose. If you are concerned, ask your doctor rather than assuming, as blood tests do not always reflect body stores.

What foods are highest in magnesium?

Pumpkin seeds and chia seeds are among the richest, followed by nuts like almonds and cashews, dark chocolate, legumes such as black beans and soybeans, wholegrains, and dark leafy greens like spinach.

Does magnesium help with sleep?

Magnesium plays a role in relaxation and nervous system function, and many people find it helpful for sleep, though the evidence is mixed. Getting enough through food is a sensible first step. Speak to a professional before taking high-dose supplements.

Should I take a magnesium supplement?

Most people can meet their needs through food, which is the best place to start. Supplements may help some people, but high doses can cause digestive upset and interact with certain medications. Check with a healthcare professional before supplementing.

Which magnesium-rich foods are best for vegetarians?

Pumpkin and chia seeds, almonds, cashews, black beans, soybeans, tofu, wholegrains and dark leafy greens are all excellent plant sources. A daily handful of seeds or nuts makes a noticeable contribution on its own.

welanutria provides general information and estimates only, and is not medical or dietary advice. Speak with a qualified professional before making significant changes to your diet, exercise or health routine.