The short answer
Magnesium supports normal muscle and nerve function, and in trials it supported falling asleep about 17 minutes faster [1] and modestly better insomnia scores in adults sleeping poorly. [2] Adults need 310 to 420 mg a day from all sources, and the safe upper limit from supplements is 350 mg a day. [3] Take it in the evening as part of a regular wind-down routine: our pick is Sanderson Magnesium FX.
Not sure which product suits you? Try our Supplement Finder.
In this article
Magnesium is one of the first supplements people reach for when sleep isn't great. Maybe you're training more and your legs feel tight at night. Maybe you don't train at all, but your head is busy at bedtime and you want something simple to add to your evening. Either way, there are no silly questions here.
This guide covers what magnesium supports, who it suits best, which form to choose, how much to take and when, the foods that give you the most, and our picks.
What does magnesium do for sleep?
Magnesium is a mineral your body uses in more than 300 enzyme systems. It supports normal muscle and nerve function, energy production and a normal heart rhythm. [4] Those are the same systems that need to settle down when you're trying to switch off.
Here's what the research shows:
- Falling asleep faster. Across three trials in 151 older adults, people taking magnesium fell asleep about 17 minutes faster than those on placebo. [1]
- Less insomnia. In a 2025 trial of 155 adults aged 18 to 65 who were sleeping poorly, 250 mg a day of magnesium (as bisglycinate) supported a bigger drop in insomnia scores over 4 weeks than placebo. [2]
- Better sleep efficiency. In an 8-week trial in 46 older adults with insomnia, magnesium supported better sleep efficiency, faster sleep onset and higher melatonin levels compared with placebo. [5]
Who it suits best
The people who seemed to get the most from it in the 2025 trial were those who ate the least magnesium to begin with. [2] That makes magnesium a good fit if:
Your diet is light on nuts, seeds, legumes and wholegrains
These are the main food sources. [4]
You train hard
Strenuous exercise appears to increase magnesium losses through sweat and urine, and may raise your needs by 10 to 20%. [6]
You're getting older
Older adults tend to eat less magnesium, absorb less of it and lose more through the kidneys. [4]
You want a simple addition to your night
One tablet or drink at the same time each evening is easy to build into a routine.
The honest limits
Magnesium isn't a sleeping pill. The trials so far are small, and the effects are modest. [1] [2] It works best as one part of a routine that includes a regular bedtime, caffeine earlier in the day and a dark, quiet room. Our sleep for recovery and performance guide covers those habits.
Which form of magnesium is best?
Magnesium always comes bound to something else, and that changes how well it dissolves and how your gut handles it. Forms that dissolve well in liquid are generally absorbed better. In small studies, aspartate, citrate, lactate and chloride were absorbed better than oxide and sulfate. [4]
| Form | Absorption | Gut comfort | Worth knowing |
|---|---|---|---|
| Glycinate (bisglycinate) | Popular for everyday use | Usually gentle | Bound to glycine, an amino acid also studied for sleep [7]. Used in the 2025 sleep trial [2] |
| Citrate | Absorbed better than oxide [4] | Can loosen stools at higher doses | Dissolves well |
| Aspartate | Absorbed better than oxide [4] | Usually fine | Often found in blends |
| Oxide | Absorbed less well [4] | Most likely to cause diarrhoea [4] | More magnesium per tablet, so tablets can be smaller |
Check the elemental amount
Labels can show the weight of the whole compound or the elemental magnesium. The elemental figure is the magnesium you actually get, and it's the number to compare. [4] "Magnesium glycinate 1,000 mg" gives you far less than 1,000 mg of magnesium.
Want to compare glycinate and oxide side by side? Read magnesium glycinate vs oxide.
How much magnesium should I take?
Adults need 310 to 420 mg a day from food and supplements combined, and magnesium from supplements should stay at or under 350 mg a day. [3]
Daily need vs the supplement limit
Magnesium needs and the supplement limit
Daily need, food and supplements combined [3]
- Women 19 to 30: 310 mg
- Women 31 and over: 320 mg
- Men 19 to 30: 400 mg
- Men 31 and over: 420 mg
Our magnesium products, one serve
Switch Nutrition Sleep+: 320 mgper 8 g serve
Switch Nutrition Adrenal Switch: 300 mgper 5 g serve
Sanderson Magnesium FX: 160 mgper tablet
Combining any two of Sleep+, Adrenal Switch and Magnesium FX on the same day would take you past the 350 mg upper limit [3]. Count every supplement with magnesium: a standalone tablet, a sleep drink, a multivitamin, some pre-workouts and some antacids.
The 350 mg upper limit applies to supplements only, not the magnesium in your food. Magnesium from food hasn't been shown to cause problems. [3]
Count everything
Add up every supplement that contains magnesium. Two products that each look reasonable can take you past 350 mg.
Ease in
Start at the lower end and see how your gut handles it. Loose stools are the first sign you're taking more than your body wants. [3] If that happens, drop back a dose or split it.
When to take it
There's no proven best time of day, but the evening fits a sleep routine. In the 2025 trial, people took it daily for 4 weeks before the difference showed [2], so give it a few weeks of regular use. Take it at the same time each night alongside your wind-down routine.
Can I get enough from food?
Yes, if seeds, nuts, legumes and wholegrains turn up regularly. Here are some of the richest sources:
Magnesium per serve
Top food sources of magnesium
Magnesium per serve [4].
A handful of pumpkin seeds on your porridge and some almonds as a snack gets a woman nearly three-quarters of the way to her daily target. If those foods aren't part of your week, or you're training hard, a supplement is an easy top-up.
Our picks
For most people: Sanderson Magnesium FX. 160 mg of elemental magnesium per tablet from four forms (amino acid chelate, citrate, aspartate and orotate), with no magnesium oxide. It supports normal muscle and nerve function, energy metabolism and bone health, with vitamin B6, vitamin D3 and selenium added. The manufacturer suggests taking one to two tablets in the evening, as magnesium supports relaxation and restful sleep.
For a bedtime drink: Switch Nutrition Sleep+. Each 8 g serve has 320 mg magnesium alongside 2,500 mg glycine and 500 mg tart cherry, with no added melatonin or caffeine. It supports relaxation and normal sleep as part of a regular routine, in Chocolate (great as a hot chocolate) or Tropical Fruit. It contains 99 mg of griffonia (a natural source of 5-HTP) and soy, and isn't for under 18s or during pregnancy or breastfeeding.
For stress and post-training wind-down: Switch Nutrition Adrenal Switch. A vegan formula with 300 mg of magnesium and 3,350 mg of ashwagandha (dry root equivalent) per 5 g serve, plus glycine, L-theanine and L-leucine, that supports relaxation, muscle recovery and restful sleep. Have it hot or cold, after training or before bed, in Chocolate, Mango Nectar or Strawberry Pineapple. Read our ashwagandha evidence and cautions first.
Save 42%For most people
Sanderson Magnesium FX 120 Tablets
- Rating
- New

For a bedtime drink
Switch Nutrition Sleep+ Night-Time Powder 240g
- Rating
- New
- Per serve
- $2.50

For stress and post-training wind-down
Switch Nutrition Magnesium + Ashwagandha Powder (Adrenal Switch)
- Rating
- New
- Per serve
- $2.33
Pick one of these three as your magnesium source. Sleep+ alone gives 320 mg and Adrenal Switch 300 mg, so combining any two of them on the same day would take you past the 350 mg upper limit. [3]
Check first
Talk to your GP before taking magnesium if you have kidney disease, because your kidneys clear excess magnesium and the risk of it building up is higher. [4] Check with your GP or pharmacist if you take regular medication. Magnesium can reduce how well some medicines are absorbed: take it at least 2 hours apart from osteoporosis medicines (bisphosphonates), and take tetracycline or quinolone antibiotics at least 2 hours before or 4 to 6 hours after magnesium. [4] Some diuretics and long-term reflux medicines also affect magnesium levels. [4] If you're pregnant or breastfeeding, check before starting any sleep product. If poor sleep has gone on for months, comes with loud snoring or gasping, or is getting in the way of your days, see your GP. A structured talking therapy called CBT-I is the first-line treatment for long-term insomnia. [8]
Want a plan built around you?
Inception Nutrition builds your nutrition, supplements and evening routine into one plan around your goals, your routine and the foods you like, with weekly check-ins wherever you are in NZ. Not sure where to start? Take their free metabolic audit. Not sure which product suits you? Try our Supplement Finder or email us at info@supplementsolutions.co.nz. No question is too basic.
References
8 sources
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
Sources shown: the research is linked in the references. Product details and doses come from the brand. Product suggestions show what’s available now. Last updated 22 October 2026.
This guide is general information, not a diagnosis or medical advice. Take products as directed, and check with a qualified health professional first if you're pregnant, breastfeeding, taking medication or managing a health condition.





