Scroll through any wellness feed at the moment and you will see someone swearing by magnesium for sleep. A tub of powder stirred into warm water, a capsule with dinner, a "sleepy girl" mocktail. It sounds simple, cheap and gentle, which is exactly why it is so tempting when you are lying awake at 2am.

So does it actually work? The honest answer is: maybe a little, for some people, and the research is thinner than the marketing suggests. Magnesium is not a proven treatment for insomnia, and it will not undo a chaotic sleep routine.

This guide walks through what is really known, how the different types compare, how much is sensible, who should check with a doctor first, and what to try before you spend money on a supplement.

What Does Magnesium Actually Do in the Body?

Magnesium is a mineral involved in hundreds of processes: muscle and nerve function, energy production, blood pressure and bone health. It also plays a part in how nerve cells signal to each other, which is why people link it to calm and relaxation.

That link is reasonable in theory. But "involved in relaxation" is a long way from "makes you sleep better when you take extra". Most healthy adults who eat a varied diet already get enough, and the body is good at holding on to what it needs.

Adults need roughly 300 mg a day for men and 270 mg a day for women (ages 19 to 64). You can usually reach that from food.

Does Magnesium for Sleep Work? What We Know

Here is the part the social media videos tend to skip. The research on magnesium and sleep is small and mixed.

  • A handful of small trials. Only a few small trials have looked at magnesium for insomnia, and the quality is low.

  • Mostly older adults. Many of the studies involve older people, who are more likely to have low magnesium intake. Results may not apply to a 30-year-old with a stressful job.

  • Modest effects. Where benefits showed up, they were small, such as falling asleep a little faster or rating sleep slightly better. Not everyone responded.

  • Placebo is powerful. Sleep is highly suggestible. A bedtime ritual you believe in can help on its own, which makes it hard to separate the mineral from the routine.

So the fair summary is this: if your intake is low, getting more may help your sleep a bit. If your intake is already fine, there is little reason to expect much. Treat any benefit as a bonus, not a cure.

Start With Food, Not a Tub of Powder

Food comes first for good reasons. You get magnesium alongside fibre, protein and other minerals, and you are very unlikely to overdo it. Spinach, nuts and wholemeal bread are among the good sources.

Food

Typical portion

Approximate magnesium

Pumpkin seeds, roasted

1 oz (about 28 g)

150 mg

Almonds

1 oz (about 23 nuts)

80 mg

Spinach, boiled

Half a cup

75 mg

Black beans, cooked

Half a cup

60 mg

Dark chocolate (70 to 85%)

1 oz (about 28 g)

65 mg

Wholemeal bread

1 slice

25 mg

All figures are approximate and vary by brand and how food is prepared.

A small handful of pumpkin seeds on your porridge, a bean-based lunch and a square or two of dark chocolate in the evening gets you a long way. If you want more ideas, our guide to high-fibre foods that also contain magnesium covers plenty of beans, seeds and whole grains that suit this approach.

One note on timing: chocolate and sleep do not always get along. Dark chocolate contains some caffeine, so keep it to the afternoon or early evening if you are sensitive.

Which Type of Magnesium Is Best for Sleep?

Walk down a supplement aisle and you will find a dozen forms. They differ in how well your body absorbs them and how likely they are to upset your stomach. No form has been proven best for sleep, so the choice mostly comes down to tolerance.

Type

How it is used

What to know

Glycinate (bisglycinate)

Capsules, tablets, powder

Magnesium bound to the amino acid glycine. Popular for evening use and usually gentle on the stomach. Little direct sleep research on this form.

Citrate

Capsules, powders, drinks

Absorbed fairly well, but pulls water into the bowel, so loose stools are common at higher doses.

Oxide

Cheap tablets and capsules

High in elemental magnesium but absorbed poorly. Often causes diarrhoea. Better known as a laxative than a sleep aid.

L-threonate

Capsules

Marketed for brain health and sleep. Early research is limited, and it is expensive.

Sulphate (Epsom salts)

Added to a bath

Used for soaking. It is doubtful that much magnesium is absorbed through the skin.

Glycinate: the usual starting point

If you decide to try a supplement, glycinate is the form most people reach for. It tends to be easier on the gut, and some people find the evening routine relaxing in itself. Be aware that the label should state the elemental magnesium per dose, not just the weight of the compound.

Citrate and oxide: watch your stomach

These are cheaper and widely available, but the main side effect is diarrhoea. If you are already prone to loose stools, they are probably not the right choice.

Threonate and Epsom baths

Threonate is newer and the claims run ahead of the research. Epsom salt baths are a different story: a warm bath before bed can genuinely help you wind down, but that is likely down to the heat and the slowing-down ritual, not magnesium soaking through your skin.

How Much Is Too Much?

More is not better here. Taking 400 mg or less a day of magnesium from supplements is unlikely to cause harm for most adults, and higher short-term doses can cause diarrhoea. Not enough is known about taking large amounts for a long time. Some guidelines set the upper level for supplements a little lower, at 350 mg a day. That limit applies to supplements, not to magnesium in food.

Practical tips:

1. Start low. Many people begin with a small dose and see how their body responds.

2. Check the label. Look for elemental magnesium per serving, and add up any other supplements or magnesium-containing antacids and laxatives.

3. Follow the packet unless a doctor or pharmacist tells you otherwise.

4. Pause if your stomach rebels. Cramps and loose stools are your cue to cut back or stop.

When to Take It

There is no proven best time. Most people who try magnesium for sleep take it with an evening meal or an hour or two before bed. Taking it with food can ease stomach upset. Give it a fair trial of a couple of weeks, but do not expect an overnight change. If you notice nothing, that is useful information too.

Who Should Ask a Doctor First?

Supplements are not harmless just because they are sold on the high street. Speak to a doctor or pharmacist before taking magnesium if any of these apply:

  • Kidney disease. Healthy kidneys clear extra magnesium. Reduced kidney function makes a build-up more likely, and that can be serious.

  • You take certain medicines. Magnesium can reduce the absorption of some antibiotics (such as tetracyclines and quinolones) and bisphosphonates used for bone health. Timing gaps are usually needed. Diuretics and acid-reducing medicines can also affect magnesium levels.

  • You are pregnant or breastfeeding. Ask before adding any new supplement.

  • You have a heart condition or take heart medicines.

  • You are giving it to a child or an older relative.

Sleep Basics to Try First

Honestly, the habits below do more for most people than any capsule. They are free, and they carry far less risk.

  • Keep a steady wake-up time. If yours is all over the place, our guide on how to fix your sleep schedule walks you through it step by step. You can also use the free sleep calculator to work out bedtimes that fit your wake-up time.

  • Wind down properly. Dim the lights, put your phone away and try slow breathing. A comparison of breathing exercises before bed can help you pick one that feels natural.

  • Watch caffeine and alcohol. Caffeine can linger for hours, and alcohol fragments sleep even if it makes you drowsy at first.

  • Keep the bedroom cool, dark and quiet.

  • Get daylight and movement earlier in the day.

If your mind is the problem rather than your body, magnesium will not fix it. Worry that spikes at night has its own toolkit, and our piece on anxiety at night is a good place to start. If it is more a loop of thoughts, these tips for racing thoughts may help.

When to See a Doctor

Trouble sleeping now and then is common. See a doctor if:

  • poor sleep has lasted more than a few weeks and affects your days

  • you snore loudly, gasp or stop breathing in your sleep (possible sleep apnoea)

  • you have restless legs, or an urge to move your legs at night

  • low mood, anxiety or pain is keeping you awake

  • you rely on supplements, alcohol or sleeping pills to get through the week

Cognitive behavioural therapy for insomnia (CBT-I) is a structured talking therapy for sleep problems, and many people find it helps more in the long run than pills.

Frequently Asked Questions

Does magnesium really help you sleep?

It might, modestly, especially if you do not get enough from food. The research is limited and the effects are small. It is not a proven insomnia treatment.

Which magnesium is best for sleep?

No type has been proven best. Glycinate is a popular choice because it is usually gentle on the stomach. Citrate and oxide are more likely to cause diarrhoea.

How much magnesium should I take for sleep?

Keep supplements within the limit on the product label. Around 400 mg a day or less from supplements is unlikely to cause harm for most adults. Food counts separately. Ask a pharmacist if you are unsure.

Can I take magnesium every night?

Many healthy adults do at normal doses, but long-term high doses are not well studied. If you have kidney problems or take regular medicines, check with a doctor first.

Do Epsom salt baths help with sleep?

A warm bath can help you relax and cool down afterwards, which may make sleep easier. It is unclear whether magnesium absorbed through the skin plays any role.

Can magnesium make you feel worse?

Yes, in some people. Diarrhoea, nausea and stomach cramps are the most common complaints, particularly with citrate and oxide or higher doses.


Magnesium for sleep is one of those ideas that is plausible, popular and not very well proven. If your diet is low in it, more may help a little. If not, you may simply be paying for an expensive habit.

Start with food: seeds, nuts, beans, greens and whole grains. Build solid sleep habits. Then, if you still want to try a supplement, choose a gentle form, keep to a sensible dose, and check with a doctor or pharmacist if you have any health conditions or take regular medicines.

This article is general information, not medical advice. If you have a health condition, take medicines, are pregnant, or struggle with persistent sleep problems, please speak to a doctor or pharmacist.