Medication & supplements
How Much Magnesium Per Day? Daily Needs Explained
By Angus Munro, Clinical Psychologist (AHPRA PSY0001626434) · Last clinically reviewed 2026-07-10 · 9 min read
For general health, most adults need somewhere between 310 and 420 milligrams of magnesium per day, and the large majority of that comes from food rather than a bottle. If you are asking how much magnesium per day you should take specifically to fix insomnia, the honest answer is that there is no established "sleep dose," because the evidence that magnesium treats chronic insomnia is limited and mixed. Magnesium is worth understanding. It is just rarely the lever it gets sold as.
Let me explain what the numbers mean, what the evidence does and does not support, and where the real leverage sits.
The short answer, and the ceiling worth knowing
National nutrition guidelines put the adult daily requirement at roughly 310 to 420 milligrams, varying with age and sex. Most people who eat a reasonably varied diet already sit close to this. Magnesium is in leafy greens, nuts, seeds, legumes, wholegrains and dark chocolate, so a genuine deficiency in an otherwise well-nourished adult is less common than the supplement aisle implies.
If you do supplement, there is a ceiling worth knowing. The tolerable upper level for magnesium taken from supplements sits around 350 milligrams a day, on top of what you eat. Go much above that and the most common result is not deeper sleep. It is loose stools. Magnesium draws water into the bowel, which is exactly why some forms are sold as laxatives.
One real safety point. If you have reduced kidney function, your body clears magnesium less efficiently and it can build up. That moves the dose question out of the "try it and see" category and into a conversation with your GP or pharmacist. More on that below.
So the nutritional answer is fairly simple. The sleep answer is where it gets more honest.
Why magnesium became the sleep supplement everyone tries
Magnesium has a good story. It plays a role in the nervous system, in muscle function, in the pathways that calm the body down. Low levels are associated with feeling tense and wired. So the logic writes itself: I feel tense and wired at night, therefore I must be low, therefore topping it up should settle me.
There is a grain of truth in there, and I want to be fair to it. Deficiency is real, it does exist, and if there is a reason to suspect yours is low, your GP can test for it and correct it. Magnesium is cheap, widely available and low-risk at sensible doses. Trying it is not foolish.
But here is where I want to be upfront. For most people with chronic insomnia, the problem is not a mineral shortage. It is arousal. The system that should be powering down at night is instead running a low-grade threat response, and it does that regardless of how topped-up your magnesium is.
This is why supplement-chasing so often disappoints. It is like drinking seawater when you are thirsty. Every new bottle feels like it should help. When it does not, the search intensifies, the stakes around sleep climb higher, and the climbing stakes are themselves part of what keeps you awake.
The effort is the trap. Sleep is one of the few domains where trying harder tends to make the outcome worse.
What the evidence actually says about supplements for sleep
Let me hand you the evidence rather than an opinion.
When the American Academy of Sleep Medicine wrote its clinical guideline on treating chronic insomnia, it reviewed the common over-the-counter options and recommended against valerian, tryptophan and melatonin for chronic insomnia, on the grounds that the evidence quality was low and the benefit over placebo was small (Sateia et al., 2017). Magnesium was not even inside that guideline's scope. The absence tells you something. The supplement shelf is not where the strong evidence lives.
Contrast that with what the guidelines do put first. The European insomnia guideline, a consensus document from the European Sleep Research Society, names cognitive behavioural therapy for insomnia as the first-line treatment, with sleeping medication reserved for when that is unavailable or insufficient, and then generally for no more than a few weeks (Riemann et al., 2023). Notice what is not on that first line. Not a supplement. Not a dose.
None of this means magnesium is a scam, or that you are gullible for trying it. It means the evidence for magnesium as an insomnia treatment is limited, and you should hold your expectations accordingly. If a modest, low-cost trial helps you feel a little more settled, there is no reason to stop. Just do not ask a mineral to do the job that arousal is quietly undoing every night.
How much magnesium per day is safe, and when to ask a prescriber
Here is the practical frame.
For most healthy adults, the question of how much of magnesium per day to take is really two questions. How much are you already getting from food, and how much headroom is left under that supplemental ceiling of around 350 milligrams. Most people do not need to max it out. A modest supplemental dose, in a well-absorbed form, is the sensible starting point, and it is a good thing to run past a pharmacist who can look at your particular situation.
Ask a prescriber or pharmacist directly if any of the following apply. You have kidney disease or reduced kidney function. You take other medications, since magnesium can interfere with the absorption of some antibiotics and thyroid medication. You are older and taking several things at once. You are already stacking multiple supplements and have lost track of the total. These are not reasons for alarm. They are reasons to get a second set of eyes on the dose.
If you want to compare the different forms, and why some are gentler on the gut than others, that belongs in a dedicated piece on magnesium bis-glycinate for sleep rather than here.
One more thing, said plainly as care rather than as a hurdle. If your nights come with loud snoring and witnessed pauses in your breathing, with an irresistible urge to move your legs, or if your days involve dangerous levels of sleepiness, no dose of any supplement is the right tool. Those point to something a doctor should assess directly. Sorting it out first means you do not lose months on the wrong lever.
If you are taking magnesium to come off a sleeping pill
A lot of people reach for magnesium because they want to reduce or stop a prescription sleeping tablet, and they are hoping the supplement will fill the gap.
I understand the instinct, and I want to be careful here. The guidelines agree that sleeping medications are best kept short-term rather than open-ended (Riemann et al., 2023). But if you have been taking a benzodiazepine or a z-drug for a while, coming off it is not a matter of swapping in magnesium and hoping. It is a gradual, prescriber-led process, done slowly and ideally paired with behavioural support, and the evidence is clear that this structured approach works better than stopping abruptly (Pottie et al., 2018).
That is a conversation to have with the doctor who prescribed it. I am not going to hand you a schedule, because the right pace depends on you, your history and your prescriber's judgement, not on a blog. Magnesium is not the thing that gets you off a sleeping pill. A plan is.
The variable no supplement can reach
Step back and the pattern is clear. You can optimise your magnesium, your circadian rhythm, your room temperature and your wind-down routine, and still lie there wired, because the thing keeping you awake is not on the supplement shelf. It is arousal. The mineral cannot reach it.
This is the mechanism the Insomnia Reset program is built to address. It is grounded in cognitive behavioural therapy for insomnia, the approach the guidelines put first (Riemann et al., 2023), and then adapted for the sleep-anxiety and hyperarousal that keep capable people stuck. It is also why the program does not ask you to keep a nightly sleep diary. Tracking every night tends to feed the very hypervigilance we are trying to lower.
And it is why one tool is never enough. The reason most sleep advice fails is that it hands you a single strategy and expects it to work at every level of arousal. A calm-minute approach is useless the moment you are truly wired. The program's arousal-matched approach fits the tool to how activated you already are, which is precisely the part a supplement dose can never do.
If you are not sure how much of your struggle is hygiene, how much is habit and how much is arousal, the Sleep Clarity quiz is a good, quick place to start. It is a prompt for reflection, not a diagnosis.
Common questions about magnesium and sleep
How much magnesium per day is safe to take?
For general health, adults need roughly 310 to 420 milligrams a day, most of it from food. If you supplement, the tolerable upper level from supplements is around 350 milligrams on top of your diet; above that, loose stools are the usual sign you have overshot. If you have kidney problems or take other medication, confirm the dose with your GP or pharmacist first.
How much of magnesium per day should come from food versus a supplement?
Ideally most of it comes from food, since a varied diet of greens, nuts, seeds, legumes and wholegrains gets many adults close to the requirement on its own. A supplement is there to top up a shortfall, not to replace the diet, which is why a very large dose rarely makes sense.
Which form of magnesium is best for sleep?
Forms differ mainly in how well they are absorbed and how they sit with your gut, rather than in any proven sleep-specific power. The better-absorbed, gentler options are covered in the piece on magnesium bis-glycinate for sleep. Whichever form you choose, keep your expectations calibrated to limited evidence.
Will magnesium help the anxious, wired feeling at night?
It might take a small edge off, and if it does, that is fine. But the wired feeling at night is usually arousal doing its job, not a mineral running low. That is a pattern to work with directly, and it is not something you can reliably supplement your way out of.
How long does magnesium take to work for sleep?
There is no established timeline, because there is no established effect to time. If you are trialling it, give it a couple of weeks of consistent, sensible use and judge honestly. If nothing shifts, that is useful information: the lever is probably somewhere else.
Should I take magnesium if my GP has not found a deficiency?
You can, at a sensible dose, since the risk is low. Just hold it lightly. If your bloods are normal and you are well-nourished, correcting a deficiency you do not have is unlikely to be the thing that unlocks your sleep, and the search itself can quietly raise the stakes around bedtime.
Here is the stance to leave with. Magnesium is a fine thing to get enough of, mostly from your plate, and a reasonable low-cost trial if you are curious. It is just not the answer to chronic insomnia, because chronic insomnia is an arousal problem wearing a nutrition costume. Get the mineral roughly right, then put your real attention where the leverage actually is.
Frequently asked questions
How much magnesium per day is safe to take?
For general health, adults need roughly 310 to 420 milligrams a day, most of it from food. If you supplement, the tolerable upper level from supplements is around 350 milligrams on top of your diet; above that, loose stools are the usual sign you have overshot. If you have kidney problems or take other medication, confirm the dose with your GP or pharmacist first.
How much of magnesium per day should come from food versus a supplement?
Ideally most of it comes from food, since a varied diet of greens, nuts, seeds, legumes and wholegrains gets many adults close to the requirement on its own. A supplement is there to top up a shortfall, not to replace the diet, which is why a very large dose rarely makes sense.
Which form of magnesium is best for sleep?
Forms differ mainly in how well they are absorbed and how they sit with your gut, rather than in any proven sleep-specific power. The better-absorbed, gentler options are covered in the piece on magnesium bis-glycinate for sleep. Whichever form you choose, keep your expectations calibrated to limited evidence.
Will magnesium help the anxious, wired feeling at night?
It might take a small edge off, and if it does, that is fine. But the wired feeling at night is usually arousal doing its job, not a mineral running low. That is a pattern to work with directly, and it is not something you can reliably supplement your way out of.
How long does magnesium take to work for sleep?
There is no established timeline, because there is no established effect to time. If you are trialling it, give it a couple of weeks of consistent, sensible use and judge honestly. If nothing shifts, that is useful information: the lever is probably somewhere else.
Should I take magnesium if my GP has not found a deficiency?
You can, at a sensible dose, since the risk is low. Just hold it lightly. If your bloods are normal and you are well-nourished, correcting a deficiency you do not have is unlikely to be the thing that unlocks your sleep, and the search itself can quietly raise the stakes around bedtime.
Work on the mechanism, not another tip
Insomnia Reset is a structured, psychologist-designed program for exactly this pattern. If you're ready to work on the mechanism rather than chase another tip, that's what it's for.
Explore Insomnia Reset →