Magnesium and sleep: what the evidence says

Magnesium and sleep: what the evidence says

Magnesium has become one of the most talked about supplements for sleep, helped along by a great deal of social media attention. It is worth understanding why. Magnesium is an essential mineral with a genuine, well established role in how the body produces energy, supports the muscles and keeps the nervous system working normally. Whether it helps you sleep is a more open question, and the honest answer is that the evidence is still developing. This article sets out what magnesium reliably does, what the sleep research actually shows, and how to get the most from it in everyday life.

Does magnesium help you sleep?

Magnesium is plausibly linked to sleep through its role in the nervous system, and there are some encouraging early signals, but the proof that supplementing improves sleep across the general population is still limited. The clearest benefits appear in two groups: older adults, and people whose magnesium intake is low to begin with. If you already have healthy magnesium levels, the measurable effect on sleep tends to be small.

None of this means magnesium is not worth taking. It means sleep is one promising area of ongoing research rather than the main reason the mineral matters, and the reasons it does matter are worth setting out first.

Where magnesium genuinely earns its place

While the sleep evidence continues to build, magnesium has a set of benefits that are firmly established and recognised by regulators. These are the reasons it is considered a foundational mineral for everyday wellbeing.

Energy through a busy day. Magnesium contributes to normal energy-yielding metabolism and to a reduction of tiredness and fatigue. For anyone balancing work, family and training, that is a meaningful, evidence-backed role.

Muscles and movement. Magnesium contributes to normal muscle function, which matters whether you exercise regularly or simply stay active. It also contributes to electrolyte balance, part of how the body manages hydration around physical activity.

A steady mind. Magnesium contributes to normal psychological function and to the normal functioning of the nervous system, both central to feeling balanced and able to meet the demands of daily life.

Long-term structure. Magnesium contributes to the maintenance of normal bones and teeth, and has a role in normal protein synthesis and cell division, the everyday processes of repair and renewal.

These are not tentative or emerging claims. They are authorised health claims, which means the evidence behind them has been formally assessed. Sleep may yet join the list as research matures, but magnesium already earns its place for everything above.

Why magnesium and sleep get linked

Magnesium acts as a cofactor in more than 300 enzymatic reactions, including processes in the nervous system that influence how we relax and wind down. It plays a part in the signalling pathways that help quieten neural activity and in normal muscle function, which is why it is often associated with relaxation.

These mechanisms are real, and they make magnesium a reasonable candidate to study. But a plausible mechanism is not the same as a proven result. Plenty of compounds look promising in the laboratory and then show little effect when tested properly in people. So the question is not whether magnesium could help, but whether the trials show that it does.

What the clinical trials show

The picture is mixed, and being clear about that is more useful than overstating it.

A 2021 systematic review and meta-analysis by Mah and Pitre pooled three randomised controlled trials in 151 older adults with insomnia. On average, people taking magnesium fell asleep around 17 minutes faster than those taking a placebo. That sounds encouraging, but the authors themselves rated the certainty of the evidence as low, because the trials were small and carried a meaningful risk of bias.

A 2023 systematic review took a wider view and found a recurring split. Observational studies, which track people over time, suggested an association between lower magnesium status and poorer sleep, while the controlled trials produced inconsistent results. In other words, people with low magnesium tend to sleep less well, but giving magnesium does not reliably fix the problem in everyone.

The most rigorous recent trial, published by Schuster and colleagues in 2025, gave around 155 adults with self-reported poor sleep either magnesium bisglycinate or a placebo each night for four weeks. The magnesium group showed a small but statistically significant improvement on the Insomnia Severity Index. Two caveats matter. The formula also contained glycine, a compound with its own sleep research, so the effect cannot be attributed to magnesium alone. And both groups improved, which is common in sleep studies and a reminder of how powerful routine and expectation can be.

There is also early work on magnesium L-threonate, a form marketed for its effects on the brain, with a 2024 trial reporting improvements in self-reported sleep and daytime functioning. The sample was small and the findings need replication before much weight can be placed on them.

One point ties the research together. The benefit appears to be concentrated in people with low baseline magnesium. Those who already have normal levels tend to see little measurable change. This fits the wider pattern across nutrition science, where correcting a shortfall helps and topping up an adequate level usually does not.

Where the evidence is weak

It is worth being clear about the limitations, because they explain why no health authority currently endorses magnesium as a sleep treatment.

The trials are small, often involving a few dozen to a couple of hundred people. They tend to be short, usually four to eight weeks, so we know little about longer term effects. Most rely on self-reported sleep rather than objective measures such as sleep laboratory recordings. And the studies that show benefit often involve people who were low in magnesium to start with, which makes it hard to generalise to the wider population.

This is why clinical guidelines for chronic insomnia, such as those from the American Academy of Sleep Medicine, do not recommend magnesium in any form. The first-line recommendation is cognitive behavioural therapy for insomnia, a structured talking therapy with a far stronger evidence base than any supplement.

Does the form of magnesium matter?

Magnesium comes in many forms, and they are not interchangeable. The form affects both how well the body absorbs the mineral and how gentle it is on the digestive system.

Magnesium oxide is cheap and contains a lot of magnesium by weight, but it is poorly absorbed and more likely to have a laxative effect. Magnesium citrate is better absorbed and widely used. Magnesium bisglycinate, often labelled glycinate, is generally well tolerated and easy on the gut, which is part of why it is a common choice for evening use. 

One practical point to remember is that the large milligram figure on the front of a pack does not necessarily represent the amount of magnesium you are getting. For example, a capsule labelled as containing 1,000 mg of magnesium glycinate will provide only a proportion of that weight as elemental magnesium, with the remainder being the glycine it is bound to. Always check the label for the amount of elemental magnesium rather than the total weight of the compound.

How much magnesium, and when

Across the clinical trials reporting improvements in sleep, supplemental doses have typically ranged from 200 to 400 mg of elemental magnesium, usually taken in the evening. However, these doses were used for research purposes and do not necessarily represent a recommended intake for everyone.

In the UK, the NHS recommends a daily magnesium intake of 300 mg for men and 270 mg for women aged 19 to 64, which is usually achievable through a balanced diet rich in foods such as leafy green vegetables, nuts, seeds, pulses and wholegrains.

The NHS also advises that taking more than 400 mg of magnesium from supplements for a short time can cause diarrhoea, while 400 mg or less a day from supplements is unlikely to cause any harm in healthy adults. Loose stools are the most common sign of taking more than your body can comfortably tolerate.

A reasonable approach is to stay within the dose stated on the product label, take it consistently for a couple of weeks before judging whether it helps, and treat good sleep as something built on routine and environment as much as on anything you take before bed.

Topping up from food

For most people, food is the foundation. A varied, balanced diet will usually provide all the magnesium you need, and some of the richest sources are everyday store-cupboard foods. If you are looking to increase your intake naturally, these are among the best sources to include.

Food

Approximate magnesium content

Pumpkin seeds (30 g)

~150 mg

Chia seeds (30 g)

~95 mg

Almonds (30 g)

~80 mg

Cooked spinach (100 g)

~80 mg

Cashews (30 g)

~75 mg

Black beans (100 g, cooked)

~70 mg

Dark chocolate (30 g, 70-85% cocoa)

~65 mg

Oats (40 g)

~55 mg

Tofu (100 g)

~50 mg

Brown rice (100 g, cooked)

~45 mg

Values are approximate and vary by product and portion.

A supplement can help where intake from food is hard to reach, for example during busy periods, with a restricted diet, or simply to top up a shortfall. A well-absorbed, gentle form taken consistently is a sensible way to do that.

Safety and when to see your GP

Magnesium is well tolerated by most people at sensible doses. The main side effect is digestive, usually loose stools, which is a signal to reduce the amount. People with reduced kidney function should not supplement without medical advice, because the kidneys regulate how magnesium is cleared from the body. Magnesium can also interact with certain medicines, including some antibiotics, so it is worth checking if you take regular prescriptions.

If poor sleep is persistent, disrupts your day, or has come on alongside other symptoms, speak to your GP rather than working through supplements on your own. Ongoing insomnia can have causes that a supplement will not address.

A sensible way to think about it

Magnesium is not a sleeping pill, and the evidence does not support treating it as one. What it is, instead, is a genuinely useful mineral with a broad set of established benefits for energy, muscle function, the nervous system and everyday resilience. People who are low in magnesium, including many older adults, may also find their sleep improves a little once that shortfall is corrected.

Start with food, top up sensibly where you need to, choose a well-absorbed form, and give it time. Set your expectations in line with the evidence, and let magnesium do the things it reliably does well.

Frequently asked questions

What does magnesium do in the body?

Magnesium is an essential mineral involved in more than 300 enzymatic reactions. It contributes to normal energy-yielding metabolism, the reduction of tiredness and fatigue, normal muscle function, the normal functioning of the nervous system, normal psychological function, electrolyte balance, and the maintenance of normal bones and teeth.

Does magnesium help you sleep?

The evidence is mixed. Some small trials suggest magnesium can help people fall asleep a little faster, particularly older adults and those with low magnesium levels, but the studies are small and the certainty of the evidence is low. Magnesium is not a proven treatment for insomnia.

Which form of magnesium is best for sleep?

There is no clearly superior form for sleep. Magnesium bisglycinate, often labelled glycinate, is a common choice because it is well absorbed and gentle on the stomach. Magnesium citrate is also well absorbed. Magnesium oxide is poorly absorbed and more likely to loosen the bowels.

How much magnesium should I take?

The NHS recommends a daily intake of 300 mg for men and 270 mg for women aged 19 to 64, usually achievable through diet. If you supplement, follow the dose on the product label and check the elemental magnesium content rather than the total weight of the compound.

When should I take magnesium?

In studies looking at sleep, magnesium is usually taken in the evening. The most important factor is taking it consistently rather than the exact timing.

Can magnesium cause side effects?

The most common side effect is digestive, usually loose stools, especially at higher doses. People with kidney problems should seek medical advice before supplementing, and magnesium can interact with some medicines.

Is magnesium safe to take every day?

For most healthy adults, the NHS advises that taking 400 mg or less of magnesium from supplements each day is unlikely to cause any harm. If you have a health condition or take regular medication, check with a healthcare professional first.

Back to blog