Magnesium may help your sleep and your anxiety a little, and it may help neither. That is the honest answer, and it is also the useful one.
The trials say this. For sleep, a 2021 review of 3 trials with 151 older adults found magnesium helped people fall asleep about 17 minutes faster, but did not help them sleep longer, and the trials were low quality. A 2026 review of 12 trials concluded the evidence does not support magnesium as a routine treatment for insomnia. For anxiety, a 2017 review of 18 studies found the evidence suggestive but poor quality, and a 2024 review of 15 trials found 5 of 7 anxiety studies reported an improvement in self-reported anxiety. The effects were clearest in people whose magnesium intake was low to start with.
That means magnesium is worth a fair trial if your diet is low in it, and it is not a treatment for insomnia or for an anxiety disorder. If your sleep is poor and your mind races at night, start with food and with sleep habits, not with a capsule. A supplement can only fill a gap. It cannot fix a late caffeine habit, a phone in bed, or anxiety that needs talking therapy.
The NHS puts the need plainly. Adults aged 19 to 64 need 300 mg of magnesium a day if you are a man, and 270 mg a day if you are a woman, from food and supplements together. Most people should be able to get all of it from a varied and balanced diet. The NHS also says 400 mg or less a day from supplements is unlikely to cause any harm, and more than 400 mg a day for a short time can cause diarrhoea.
What the trials show at a glance
Table 1: What the trials show at a glance.
| Question | What the best evidence says | How strong is it |
|---|---|---|
| Does it help you fall asleep faster? | About 17 minutes faster, in 2 small trials of older adults | Low to very low quality |
| Does it help you sleep longer? | No clear effect, 16 minutes longer but not statistically significant | Low to very low quality |
| Does it ease insomnia overall? | The 2026 review says it does not support routine use for insomnia | Low to very low certainty |
| Does it ease anxiety? | 5 of 7 trials reported an improvement in self-reported anxiety | Poor quality, small trials |
| Does it lower blood pressure? | About 2 mmHg systolic and 1.8 mmHg diastolic | Modest, from 34 trials |
| Does one form work better than another? | No trial has compared one form with another for sleep | No evidence either way |
This table is the whole article in one place. Read it before you buy anything. Every row has a limit attached to it, and the limits matter as much as the numbers. A 17 minute gain in falling asleep is real, but it comes from 2 small trials in older adults. An improvement in 5 of 7 anxiety trials sounds strong, but the trials were small, they used different doses and forms, and the reviewers called the quality poor.
Two warnings belong with this table. First, the people who gained most in the trials were the ones whose magnesium intake was low to start with. If your diet is already rich in magnesium, a supplement has little room to help. Second, no form has been shown to work better than another. Any page that ranks one form as the best for sleep goes beyond the evidence.
What magnesium is, and what it does in your body
Magnesium is a mineral your body uses in more than 300 enzyme reactions. It helps turn the food you eat into energy, it helps your muscles and nerves work properly, and it helps your parathyroid glands, which make hormones that matter for bone health, work normally. It also helps regulate the nervous system, which is why people reach for it when they feel wired at night.
That link is real, but it is not a treatment. Magnesium helps your body run normally. It does not switch off anxiety, and it does not put you to sleep. Think of it like oil in a car engine. The engine needs it to run smoothly, and running low can cause problems, but adding extra oil to a full engine does not make the car faster.
Sleep and anxiety feed each other. Anxiety makes it hard to fall asleep, and poor sleep makes anxiety worse the next day. That is why a supplement that helps one may seem to help the other, and why it is hard to tell which one changed. Our anxiety guide, linked below, explains the symptom check, the panic attack plan and the 5 minute calm down routine in full, and our sleep when anxious guide explains the wind down buffer, the morning anchor and the 3am reset. Those cost nothing, and they work on the problem directly, while a capsule works on it only through a mineral gap, if there is one.
How much magnesium you need in the UK
The NHS figure is 300 mg a day for men and 270 mg a day for women aged 19 to 64, from all sources, food and supplements together. The same figures apply at ages 65 to 74 and 75 and over. Children need less: 85 mg a day at ages 1 to 3, rising to 300 mg a day at ages 15 to 18.
Two other numbers appear on labels and in articles, and they cause confusion. The lower reference nutrient intake is 190 mg a day for men and 150 mg a day for women. That is the level below which a shortfall becomes more likely, not a target to aim for. The nutrient reference value printed on supplement labels is 375 mg a day for all adults. That is a labelling yardstick, not a personal target. Do not chase the label number. Chase the NHS number, and chase it through food first.
The safety line is separate from the need. The NHS says 400 mg or less a day of magnesium from supplements is unlikely to cause any harm. More than 400 mg a day for a short time can cause diarrhoea. There is not enough evidence to say what high doses do over a long time. The US sets its supplement upper level lower, at 350 mg a day, but this is a UK guide, so the NHS figure is the one to use.
The best food sources in the UK
Table 2: The best food sources in the UK.
| Food | Serving | Magnesium |
|---|---|---|
| Baby spinach, boiled | 150 g, a side portion | 168 mg |
| Sunflower seeds | 30 g, a small handful | 117 mg |
| Pumpkin seeds | 30 g, a small handful | 81 mg |
| Almonds | 30 g, a small handful | 81 mg |
| Cashews | 30 g, a small handful | 81 mg |
| Brown rice, boiled | 180 g, a portion | About 80 mg |
| Wholemeal bread | 2 slices, about 80 g | 53 mg |
| Edamame beans, boiled | 80 g | 52 mg |
| Porridge oats, dry | 40 g | 46 mg |
| Brazil nuts | 2 nuts, about 10 g | 41 mg |
| Chickpeas, canned and drained | 80 g, about 3 tablespoons | 35 mg |
| Banana | 1 medium, about 120 g | 32 mg |
| Houmous | 40 g, about 2 tablespoons | 25 mg |
| Dark chocolate | 20 g, 2 squares | 18 mg |
All figures come from McCance and Widdowson’s Composition of Foods Integrated Dataset 2021, the UK food composition tables, and the per serving figures are calculated from the per 100 g values. A few things in this table surprise people. Pumpkin seeds look modest per serving because a serving is only 30 g, but they are one of the richest foods per 100 g. Spinach looks modest per 100 g, but a cooked side portion of 150 g brings 168 mg, more than any handful of nuts. Dark chocolate has some magnesium, but 2 squares give only 18 mg, so it is a treat, not a source.
Two warnings belong with this table. First, the US database gives higher figures for some foods, for example pumpkin seeds at 592 mg per 100 g. This article uses the UK figures only. Second, only about 30 to 40 percent of the magnesium in food is usually absorbed, so the numbers in the table are what you eat, not what your body keeps. That is normal, and it is already built into the NHS figures.
A day of food that covers your magnesium
You do not need a special diet to reach 300 mg a day. An ordinary day does it.
Breakfast: a bowl of porridge made with 40 g of oats, plus a banana. That gives about 46 mg from the oats and about 32 mg from the banana, 78 mg in total.
Lunch: a wholemeal sandwich, 2 slices of bread, with houmous. That gives about 53 mg from the bread and about 25 mg from the houmous, 78 mg in total.
Snack: a small handful of almonds, 30 g. That gives about 81 mg.
Dinner: a portion of brown rice, 180 g, with chickpeas, 80 g. That gives about 80 mg from the rice and about 35 mg from the chickpeas, 115 mg in total.
Add it up: 78 plus 78 plus 81 plus 115 equals about 352 mg for the day. That is above the 300 mg a man needs and the 270 mg a woman needs, from food alone, with no supplement. If you eat this way most days, a magnesium capsule has nothing to add.
UK survey data backs that up. Men averaged 90.8 percent of the reference intake from food, and women 80.2 percent. About 14 percent of men and 11 percent of women fell below the lower reference intake, and about 19 percent of people in their twenties were below it. That means most adults are close to enough, and a minority are genuinely low. Eating below the reference intake does not mean you are short of magnesium. It means you are below a figure set high enough to cover almost everyone. The people most likely to benefit from a supplement are the ones whose diet is low in magnesium, not the ones who already eat well.
How common is low magnesium, and what deficiency looks like
Low intake is common. True deficiency is rare in healthy adults. Those are two different things, and supplement sellers blur them on purpose.
Low intake means your diet gives you less than the reference amount. That is common, as the survey figures above show. It does not mean you are ill. Your body stores magnesium in bones and muscles, and it manages its levels tightly. A low intake over weeks or months matters more than a low day, and a varied diet usually puts it right.
True deficiency means your blood magnesium is low enough to cause symptoms. That is rare in healthy adults, and it usually has a clear cause. The usual causes are long term diarrhoea or vomiting, a gut that cannot absorb nutrients properly, medicines such as proton pump inhibitors and laxatives, kidney losses from water tablets, diabetes, alcohol dependence and malnutrition. Dietary deficiency alone is uncommon.
Most people with low magnesium have no symptoms at all. Symptoms typically appear when blood magnesium falls below 0.5 mmol/L, and they include nausea, vomiting, tiredness, muscle weakness, drowsiness, muscle cramps, twitching, tremor, confusion, vertigo and, in severe cases, an irregular heartbeat or a seizure. Those symptoms are not specific to magnesium. Tiredness and muscle cramps have many causes, and most of them are not a magnesium deficiency.
A blood test does not settle it simply. A blood test measures the magnesium in your blood, not the magnesium stored in your bones and muscles, and low blood magnesium is not the same as low intake. A low result needs a GP to find the cause. A normal result does not prove your diet is perfect. Do not order a private magnesium test and treat the number yourself. If you have symptoms that worry you, see a GP, and let the GP decide what to test and what it means.
Magnesium and sleep: what the trials actually show
The sleep evidence is modest, and you should hear the numbers, not the headlines.
The best summary comes from a 2021 review that pooled 3 randomised controlled trials with 151 older adults with insomnia. The trials used magnesium oxide or citrate at 320 to 729 mg of elemental magnesium a day, for 20 days to 8 weeks. People fell asleep 17.36 minutes faster on magnesium than on placebo. That sounds good, but it comes from only 2 trials, all in older adults, and the reviewers rated the evidence low to very low quality. Total sleep time was 16.06 minutes longer, but that result was not statistically significant, which means it could have happened by chance. The authors said the literature was substandard for well-informed recommendations, and the evidence for improved sleep was weak.
The largest trial in that review tells the same story in a different way. Nielsen et al gave 100 adults aged 51 to 85 either 320 mg of magnesium citrate a day or a placebo for 7 weeks. Sleep quality scores improved from 10.4 to 6.6 in both groups, regardless of magnesium or placebo. The supplement did no better than the dummy pill. That is the placebo effect at work, and it is strong in sleep trials, because believing you are being treated can itself help you sleep.
One small trial is often quoted on seller pages, and it needs its limits stated. Abbasi et al gave 46 adults aged 60 to 75 with insomnia either 500 mg of elemental magnesium a day as oxide or a placebo for 8 weeks. The magnesium group fell asleep faster, slept longer, slept more efficiently, and had higher melatonin and lower cortisol. Those are real results, but the trial had only 46 people, all of them older adults with insomnia, and the 500 mg dose is above the NHS 400 mg supplement line. Do not present it as proof that magnesium works for everyone, and do not copy the dose.
The newest review is the most honest summary of all. Lopresti, Smith and Drummond 2026 looked at 12 randomised controlled trials of oral magnesium for sleep, insomnia or poor sleep in adults, searched to June 2026. The findings were inconsistent across every type of measure: questionnaires, brain wave recordings, wrist activity monitors, consumer wearables and blood markers. Certainty was low to very low. Their conclusion was plain: current evidence does not support oral magnesium as a routine treatment for insomnia, though it may provide modest benefits for selected subjective outcomes in some adults.
The newest trial adds a small positive note, with limits. Schuster et al 2025 gave 155 adults aged 18 to 65 with self-reported poor sleep either 250 mg of elemental magnesium a day as bisglycinate or a placebo for 4 weeks. Insomnia scores fell 3.9 points with magnesium against 2.3 points with placebo. The effect was small, and the result only just reached statistical significance. People with lower dietary magnesium seemed to gain more, but that came from an exploratory analysis, not the main result. There was no difference for sleep quality, daytime sleepiness, fatigue, stress, mood, or anxiety and depression symptoms. All outcomes were self-reported, with no objective measure. One co-author also led the 2026 review above, and directs a contract research organisation funded by nutraceutical companies. That does not make the trial wrong, but it is a conflict worth knowing about, and seller pages never mention it.
The practical reading is this: if your intake is low, correcting it may help you settle faster. If your intake is already fine, more magnesium will not do much. And if your sleep problem is sleep apnoea, restless legs, shift work, or a medicine that keeps you awake, magnesium will not fix it, because it is not the cause. Our sleep when anxious guide, linked below, explains the wind down buffer, the morning anchor and the 3am reset in full. Those have better evidence than any magnesium supplement for general sleep.
Magnesium and anxiety: what the trials actually show
The anxiety evidence is weaker than the sleep evidence, and the same reviews are the source for both.
A 2017 review by Boyle, Lawton and Dye looked at 18 studies, all in people vulnerable to anxiety: mildly anxious people, people with premenstrual syndrome, postpartum women and people with high blood pressure. Four of 8 studies in anxious samples, 4 of 7 in premenstrual syndrome samples and 1 of 2 in hypertensive samples reported positive effects on subjective anxiety. There was no effect on postpartum anxiety, and no study used a validated measure of subjective stress. The authors concluded the evidence was suggestive of a beneficial effect in anxiety vulnerable samples, but the quality of the existing evidence was poor, and well-designed randomised controlled trials were required. That has not changed much since. The trials are still small, still mixed in dose and form, and still short.
A 2024 review by Rawji et al looked wider, at 15 interventional trials. Seven of them measured anxiety. Five reported improvements in self-reported anxiety, and two found no effect. The two that found no effect were in people whose anxiety had an underlying hormone cause: premenstrual symptoms and postpartum anxiety. The reviewers concluded magnesium is likely useful for mild anxiety and insomnia, particularly in people whose magnesium status was low at baseline, but they were clear that the trials were small, the doses and formulations varied, and larger studies were still needed. Most of the trials used magnesium oxide, and the highest dose in any trial was 729 mg a day.
That matters because anxiety is not one thing. Everyday worry, stress before an exam, and a diagnosed anxiety disorder are different problems, and a supplement is not a treatment for any of them. About one in five adults in England aged 16 and over had a common mental health condition in the past week, and generalised anxiety disorder was the most common single condition, at 7.5 percent. If anxiety is persistent, if it stops you working or leaving the house, or if it comes with panic attacks, see a GP. Talking therapy and, where needed, prescribed medicine are the treatments with real evidence behind them. Magnesium is a small add on for mild, everyday anxiety, at best, and only if your intake is low. Our anxiety guide, linked below, explains the symptom check, the panic attack plan and the 5 minute calm down routine in full.
Blood pressure: a small extra, not a reason to take it
Magnesium has a small effect on blood pressure, and it is worth stating honestly because seller pages overstate it.
A meta-analysis of 34 randomised double-blind placebo-controlled trials with 2,028 participants found magnesium at a median dose of 368 mg a day for a median of 3 months lowered systolic blood pressure by 2.00 mmHg and diastolic blood pressure by 1.78 mmHg. A dose of 300 mg a day, or a duration of 1 month, was enough to raise blood magnesium and lower blood pressure.
A 2 mmHg fall is small. To put it in context, the DASH diet lowered systolic pressure by 8 to 14 mmHg in people with high blood pressure, and isometric exercise such as wall squats lowered resting pressure by about 8 mmHg systolic in a large review. Magnesium is a footnote next to those. Do not take magnesium for blood pressure. If your blood pressure is high, follow the steps that work, and see a GP. Our blood pressure guide, linked below, explains the DASH diet, the isometric exercise evidence and the home measurement steps in full.
The forms: citrate, glycinate and oxide, and what absorption really means
Seller pages rank magnesium forms as if the ranking were settled science. It is not. No trial has compared one form with another for sleep or anxiety, so any page that declares a winner goes beyond the evidence.
The number that matters is elemental magnesium, which is the actual magnesium in the dose, not the weight of the whole compound. Magnesium is always sold bound to something else: an oxide, a citrate, a glycinate, a chloride. The weight on the front of the pack is usually the weight of the whole compound, and only part of that weight is magnesium.
Magnesium oxide is about 60 percent elemental magnesium by weight, the highest of any form. That makes it look strong on the label. But its fractional absorption is only around 4 percent, about 3 to 4 times lower than more soluble salts, and it is the form most likely to loosen stools. It is also used as a laxative and an antacid, which tells you what it does in the gut. A cheap oxide tablet that passes through you is not a bargain.
Magnesium citrate is a soluble salt, and its absorption is roughly 4 times that of oxide by stable isotope measurement. In simulated gastric fluid, citrate dissolved about 96 percent, against about 4 percent for oxide. It is well absorbed and good value, and it is a sensible choice for a general top up. At higher doses it can loosen stools, so start low and take it with food.
Magnesium glycinate, also called bisglycinate, is about 14 percent elemental magnesium, is chelated to the amino acid glycine, and is generally gentler on digestion. That is why it is the usual choice for nightly use and for sensitive stomachs. It is also the most expensive per mg of elemental magnesium, because so little of each capsule is magnesium, so you will take more capsules or a larger scoop of powder. Glycine is linked with calm, but the glycine in a magnesium glycinate capsule has not been shown to improve sleep on its own, so do not buy it for the glycine.
Two more forms appear on seller pages, and neither has a proven edge. Magnesium L-threonate is promoted for brain delivery and for overthinking, but there is no good trial showing it works better than glycinate or citrate for sleep or anxiety. It is also the most expensive form. Magnesium taurate is promoted for physical anxiety, but again there is no good trial behind that claim. Magnesium chloride and magnesium gluconate also appear in trials, but no form has been shown in a trial to work better than another for sleep or anxiety.
Read the label this way. First, find the elemental magnesium per serving, not the compound weight on the front. Second, check whether the dose is per capsule or per serving, because a serving is often two or three capsules. Third, check for buffered on a glycinate label, because buffered means part of it is oxide. Fourth, check the other ingredients, because some products add vitamin B6 or herbs, and then you cannot tell what did what. A plain, single-form product with a clear elemental dose is the honest choice for a trial.
How to take it safely, and the 400 mg line
If you decide to try magnesium, keep it simple, keep it low, and give it a fair trial.
Start at 200 mg of elemental magnesium a day, in the evening with food. That sits inside the NHS 400 mg supplement figure with room to spare, and it matches the lower end of the doses used in the trials. If it suits you and you want to try more, 300 mg elemental a day is a reasonable ceiling for a self-chosen trial, still inside the NHS figure. Do not go above 400 mg a day from supplements without a doctor’s advice, and do not combine two magnesium products. The most common side effect is loose stools, and that is your sign to lower the dose or stop.
Take it 30 to 60 minutes before bed, with food, because that is when the sleep trials took it and because food softens the stomach effect. Night is convenient rather than necessary. If you take it in the morning, it will not harm your sleep, but you will not get the evening ritual either.
Give it 4 to 8 weeks, which is how long the trials ran. Judge it on your sleep first, because that is where the evidence is strongest: how long it takes to fall asleep, how often you wake, and how you feel in the morning. Write those three things down each morning. If you do not write them down, you will remember the good nights and forget the bad ones, or the other way round. If nothing has changed after 8 weeks, stop it. Do not buy a different form and start again without asking why the first one did not work. And do not keep taking it for months out of habit.
One more rule: do not change anything else in the same weeks. If you start magnesium, fix your caffeine, and start a new wind down routine all at once, you will not know which one helped. Change one thing at a time, and write down what happened.
Who should speak to a GP first, and medicines that interact
For most healthy adults, magnesium is well tolerated, and the most common side effect is loose stools. But safe for most people is not safe for everyone.
Speak to a GP first if you have kidney disease. Healthy kidneys remove extra magnesium from the blood. If your kidneys do not work as well, magnesium can build up, and that can be dangerous. People with kidney disease must only take magnesium if a doctor advises it.
Speak to a GP first if you are pregnant or breastfeeding. Magnesium is important in pregnancy, and most women get what they need from food, but a supplement is a decision for your GP or midwife, not for a shop shelf.
Speak to a GP or pharmacist first if you take medicines that interact with magnesium. Magnesium can reduce the absorption of some medicines, so the timing matters. Take magnesium at least 2 hours before or after oral bisphosphonates such as alendronate, used for osteoporosis. Take tetracycline antibiotics such as doxycycline, and fluoroquinolone antibiotics such as ciprofloxacin and levofloxacin, at least 2 hours before or 4 to 6 hours after a magnesium supplement, because magnesium can bind to them in the gut and stop them working properly. Loop diuretics such as furosemide and thiazide diuretics, the water tablets, can increase magnesium loss in urine, while potassium-sparing diuretics such as amiloride and spironolactone can raise magnesium levels. Long-term proton pump inhibitors, the acid blockers such as omeprazole, taken for more than a year, can cause low blood magnesium. If you take heart medicines, blood pressure medicines or any other medicine regularly, ask a pharmacist before you start, and take your medicine exactly as its label says.
Do not take magnesium instead of seeing a GP about anxiety or poor sleep that needs checking. A supplement can mask a symptom, and it can delay a diagnosis. If you take magnesium and develop a fever, severe abdominal pain, or bloody diarrhoea, stop it and seek medical advice. Mild wind or loose stools in the first few days are common and usually settle. Severe symptoms are not.
What does not help: cure promises, mega doses and testing kits
Some claims on magnesium packaging are not supported by evidence, and it is worth naming them plainly.
A cure promise does not help. No magnesium product cures insomnia, anxiety or any anxiety disorder, and no product can claim to treat them. If a label or an advert says it does, it is out of line. Magnesium may help a little, mostly if your intake is low. That is the whole claim, and it is enough.
Mega doses do not help. A product with 500 mg or 800 mg of magnesium is not twice as good as one with 200 mg. The NHS figure is 400 mg or less a day from supplements, and more than that can cause diarrhoea. The number on the front of the pack is often the compound weight, not the elemental magnesium, so a big number can hide a small dose, or a big dose can hide poor absorption. The elemental line and the trial dose are the numbers that matter.
Magnesium oil and sprays do not have good evidence behind them. They are sold as a way to absorb magnesium through the skin and avoid the stomach, but there is no good trial showing that enough magnesium gets through the skin to change your sleep. A spray that tingles or stings is irritating your skin, not treating your insomnia.
Private testing kits do not help much either. A finger prick test or a hair test that promises to reveal your magnesium status cannot tell you what you need to know, because a blood test measures the magnesium in your blood, not the magnesium stored in your bones and muscles, and low blood magnesium is not the same as low intake. Save the money and spend it on food.
Stacking products does not help. Taking a magnesium capsule, a magnesium powder, a multivitamin with magnesium, and a magnesium bath soak all at once does not add up to a better result. It adds up to a dose you cannot count, and a stomach that will tell you about it. Pick one product, count its elemental dose, and stick to it for the trial.
A supplement does not fix a bad sleep routine. If you drink coffee late, scroll in bed, and keep irregular hours, a capsule will not undo any of that. The capsule is the smallest part of sleep. Light in the morning, caffeine cut off by midday, a wind down hour, and a regular wake time matter more, and they are free.
When to see a GP, and when to call 999
See a GP if anxiety is persistent, if it stops you working, sleeping or leaving the house, or if it comes with panic attacks, low mood, or thoughts of harming yourself. That is not a supplement problem. That is a problem that needs a proper assessment, and talking therapy is the treatment with the best evidence behind it.
See a GP if poor sleep lasts more than a few weeks, if you snore loudly and wake gasping, if you fall asleep during the day, or if you have restless legs that keep you awake. Those are signs of a sleep problem that a supplement will not fix, and they need checking.
Ask for an urgent GP appointment or call NHS 111 if you need help urgently but it is not an emergency. NHS 111 can tell you the right place to get help.
If you feel unsafe, call Samaritans on 116 123, free, 24 hours a day. You can also text Shout by texting SHOUT to 85258, free, 24 hours a day. If you are in immediate danger, call 999.
Call 999 or go to A and E now if you have chest pain, severe breathlessness, or a severe allergic reaction after taking a supplement. A health emergency should be taken as seriously as any other emergency. Do not wait for a routine appointment.
If you already take prescribed medicine, do not stop it because you have started magnesium. That decision needs your GP or pharmacist, and stopping suddenly can make things worse.
Frequently asked questions
Does magnesium help you sleep?
It may help a little, mostly if your intake is low. A 2021 review of 3 trials with 151 older adults found magnesium helped people fall asleep about 17 minutes faster, but did not help them sleep longer. A 2024 review found 5 of 8 sleep studies reported an improvement. A 2026 review of 12 trials concluded the evidence does not support magnesium as a routine treatment for insomnia. Treat it as a small gain, not a cure.
Which form of magnesium is best for sleep and anxiety?
There is no proven winner. Glycinate is the gentlest on the stomach and the usual choice for nightly use. Citrate is well absorbed and good value. Oxide is poorly absorbed and the most likely to upset your stomach, so it is a poor choice for sleep. No trial has tested one form against another for sleep, so do not trust a page that ranks one above the other.
How much magnesium should I take?
Start at 200 mg of elemental magnesium a day, in the evening with food. That is inside the NHS figure of 400 mg or less a day from supplements. If it suits you, 300 mg elemental a day is a reasonable ceiling for a self-chosen trial. Check the label for the elemental line, not the front of the pack number, and do not combine two magnesium products. Speak to a GP first if you have kidney disease, take medicines that interact with magnesium, or are pregnant or breastfeeding.
Can I get enough magnesium from food?
Yes, most people can. Adults need 300 mg a day if you are a man and 270 mg a day if you are a woman, and an ordinary day of porridge, wholemeal bread, beans and a handful of seeds can reach about 350 mg. UK survey data shows men averaged 90.8 percent of the reference intake from food and women 80.2 percent. If your diet is low in magnesium, food is the first fix, and a supplement is only a top up.
Is magnesium safe to take every day?
For healthy adults, yes, within the NHS guidance of 400 mg or less a day from supplements. The most common side effect is loose stools. Do not take it every day without advice if you have kidney disease, if you take medicines that clash with it, such as some antibiotics, water tablets, bisphosphonates or heart medicines, or if you are pregnant or breastfeeding. Ask a pharmacist first if you take anything regularly.
How long does magnesium take to work for sleep and anxiety?
Give it 4 to 8 weeks, which is how long the trials ran. Judge it on your sleep first: how long it takes to fall asleep, how often you wake, and how you feel in the morning. Write those three things down each morning. If nothing has changed after 8 weeks, stop it. Do not buy a different form and start again without asking why the first one did not work.
Sources and disclaimer
This article is general information, not medical advice. It does not diagnose or treat any condition. Speak to your GP if anxiety or poor sleep is affecting your life, if you have kidney disease or take medicine regularly, or if you are pregnant or breastfeeding. Do not stop a medicine your GP has prescribed without speaking to your GP or pharmacist first. If you feel unsafe, call Samaritans on 116 123, free, 24 hours a day, or text Shout by texting SHOUT to 85258. If you have chest pain, severe breathlessness, or a severe allergic reaction, call 999 or go to A and E now.
- NHS, Vitamins and minerals: Others
- Mah J and Pitre T, BMC Complementary Medicine and Therapies 2021;21:125
- Abbasi B et al, Journal of Research in Medical Sciences 2012;17(12):1161-1169
- Lopresti AL, Smith SJ and Drummond PD, Journal of Dietary Supplements 2026;23(5):553-581
- Schuster J et al, Nature and Science of Sleep 2025;17:2027-2040
- Boyle NB, Lawton C and Dye L, Nutrients 2017;9(5):429
- Rawji A et al, Cureus 2024;16(4):e59317
- Zhang X et al, Hypertension 2016;68(2):324-333
- NIH Office of Dietary Supplements, Magnesium: Fact Sheet for Health Professionals
- NHS, Get help with anxiety, fear or panic
- NHS insomnia page, last reviewed 19 March 2024
- UK Government Dietary Recommendations, Public Health England 2016
- Derbyshire E, Frontiers in Nutrition 2018, secondary analysis of National Diet and Nutrition Survey years 1 to 6
- McCance and Widdowson’s Composition of Foods Integrated Dataset (CoFID) 2021, Public Health England and Food Standards Agency
- Firoz M and Graber M, Magnesium Research 2001
- Walker et al 2003
- Firoz and Grabowski 2003
- Lindberg et al 1990
- Royal United Hospitals Bath NHS Foundation Trust, Hypomagnesaemia: a guide for GPs, approved June 2024
- Kent and Medway NHS Formulary, Hypomagnesaemia in Adults: Primary Care Guide, approved August 2023
- Adult Psychiatric Morbidity Survey 2023/24, published June 2025
