Magnesium for sleep is one of the most searched supplement questions online, and it often comes bundled with promises about faster recovery and an end to night-time cramps. The honest answer is more modest.
Here is what the research actually supports, how much you need, where to get it from food, and when a supplement may or may not make sense for a man over 35.
Key takeaways
- The RDA for men aged 31 and over is 420 mg of magnesium per day from all sources, according to the NIH Office of Dietary Supplements.
- The upper limit for magnesium from supplements is 350 mg per day for adults. Food magnesium does not count toward that limit.
- Evidence for magnesium and sleep is limited: small trials suggest a modest benefit, mainly in people who sleep poorly or are older.
- A Cochrane review concluded magnesium is unlikely to help typical muscle cramps in older adults.
- People with kidney disease should not take magnesium supplements without medical advice.
Why magnesium matters for active men
Magnesium is involved in hundreds of enzyme reactions, including energy production, muscle contraction, nerve signalling and protein synthesis. You cannot train, recover or sleep normally without enough of it.
That does not mean more is better. The useful question is whether you are getting enough, and whether extra helps if you already are.
Age matters here. The NIH Office of Dietary Supplements notes that older adults tend to eat less magnesium, absorb less from the gut and lose more through the kidneys. Some common medications, such as long-term proton pump inhibitors for acid reflux and certain diuretics, can also lower magnesium levels.
Signs your intake may be low
Mild shortfalls usually cause no obvious symptoms, which is why guessing is unreliable. Early signs of more significant deficiency can include loss of appetite, nausea, fatigue and weakness. As deficiency worsens, numbness, tingling, muscle cramps and abnormal heart rhythms can appear.
These symptoms overlap with many other conditions, so they are a reason to see a doctor, not to self-diagnose. A blood test for magnesium exists, but because most of your body’s magnesium sits in bone and cells, a normal result does not always rule out low stores. Your doctor will interpret it alongside your diet, medications and symptoms.
How much magnesium do you need?
The Recommended Dietary Allowance (RDA) is the daily intake that meets the needs of nearly all healthy people.
| Group | RDA (all sources) | Upper limit from supplements |
|---|---|---|
| Men 19–30 | 400 mg/day | 350 mg/day |
| Men 31 and over | 420 mg/day | 350 mg/day |
| Women 19–30 | 310 mg/day | 350 mg/day |
| Women 31 and over | 320 mg/day | 350 mg/day |
The 350 mg upper limit applies only to magnesium from supplements and medicines, not food. Going above it mainly raises the risk of diarrhoea, nausea and stomach cramps.
Food first: the best magnesium sources
Many of the richest sources are vegetarian, which makes magnesium one of the easier minerals to cover through diet. Figures below are from the NIH Office of Dietary Supplements.
| Food | Serving | Magnesium |
|---|---|---|
| Pumpkin seeds, roasted | 1 oz (28 g) | 156 mg |
| Chia seeds | 1 oz (28 g) | 111 mg |
| Almonds, dry roasted | 1 oz (28 g) | 80 mg |
| Spinach, boiled | ½ cup | 78 mg |
| Cashews, dry roasted | 1 oz (28 g) | 74 mg |
| Peanuts, oil roasted | ¼ cup | 63 mg |
| Soymilk | 1 cup | 61 mg |
| Black beans, cooked | ½ cup | 60 mg |
| Edamame, cooked | ½ cup | 50 mg |
| Brown rice, cooked | ½ cup | 42 mg |
| Yogurt, plain low-fat | 8 oz | 42 mg |
| Kidney beans | ½ cup | 35 mg |
| Banana | 1 medium | 32 mg |
A simple day that reaches 420 mg
You do not need to count every milligram. A day built on whole foods often gets there naturally:
- Breakfast: oats with yogurt, a banana and a spoon of chia seeds
- Snack: a handful of pumpkin seeds or almonds
- Lunch: rajma or black beans with brown rice and a side of spinach
- Dinner: tofu or paneer stir-fry with vegetables and edamame
This kind of eating also helps with protein and fibre. For more ideas, see our list of muscle-building foods.
Magnesium for sleep: what the evidence says
This is where most of the interest lies, and where the evidence is weakest.
The meta-analysis in older adults
A 2021 systematic review and meta-analysis in BMC Complementary Medicine and Therapies found only three randomised trials, with 151 older adults in total. Magnesium shortened the time to fall asleep by about 17 minutes compared with placebo. Total sleep time rose by about 16 minutes, but that was not statistically significant.
The authors rated the evidence low to very low quality, with moderate-to-high risk of bias in all trials. They concluded the literature was not strong enough for confident clinical recommendations.
A newer trial in adults with poor sleep
A 2025 randomised, placebo-controlled trial in Nature and Science of Sleep gave 155 adults aged 18 to 65 who reported poor sleep either 250 mg of elemental magnesium as bisglycinate or a placebo for four weeks. Insomnia severity scores improved in both groups, slightly more with magnesium. The difference was statistically significant but small, and other outcomes such as sleep quality, stress and mood did not differ between groups.
What that means for you
Magnesium is not a sleeping pill. If your intake is low or you already sleep poorly, a supplement may give a small nudge. If your sleep problems come from late screens, caffeine, alcohol, stress or an irregular schedule, magnesium will not fix them. Start with the basics in our guide to sleeping better after 35.
Ongoing loud snoring, gasping at night or daytime sleepiness can point to sleep apnoea, which needs a doctor, not a supplement.
Magnesium for muscle cramps and recovery
Severe magnesium deficiency can cause muscle cramps, which is why the link is so popular. But that does not mean extra magnesium prevents cramps in people who are not deficient.
A 2020 Cochrane review pooled 11 trials with 735 participants. For typical (idiopathic) cramps, mostly studied in older adults, the authors concluded that magnesium is unlikely to be effective, with moderate- to high-certainty evidence. For cramps in pregnancy, the evidence was very low certainty and conflicting.
Research on exercise-associated cramps in athletes is thin, and the review did not support magnesium for them. Cramps during sport are more often linked to fatigue, pacing and conditioning.
For recovery more broadly, there is no strong evidence that extra magnesium speeds up muscle repair in people who already get enough. Sleep, protein, training load and total calories matter far more. If you feel constantly drained, our guide to why you are always tired after 35 covers the usual causes.
Magnesium forms: glycinate, citrate and oxide
Supplement labels list the amount of elemental magnesium, which is the figure that counts toward the RDA and upper limit. The form changes how much is absorbed and how likely it is to upset your stomach.
| Form | Absorption | Notes |
|---|---|---|
| Glycinate (bisglycinate) | Chelated form; head-to-head absorption data are limited | Used in the 2025 sleep trial; often chosen because it tends to be gentler on the gut |
| Citrate | Generally absorbed better than oxide (NIH ODS) | Dissolves well in liquid; higher doses can loosen stools |
| Oxide | Absorbed less completely than citrate or chloride (NIH ODS) | Among the forms most often linked to diarrhoea |
The studies comparing forms are small, so do not overthink it. If you choose to supplement, a well-tolerated form at a dose that stays within the 350 mg upper limit is the sensible approach, after checking with your doctor.
Should you take a magnesium supplement?
A quick self-check:
- Your diet is low in nuts, seeds, pulses, whole grains and leafy greens. Fix the food first. It is cheaper and brings other benefits.
- You take long-term acid reflux medication or certain diuretics. Ask your doctor whether your magnesium should be checked.
- You sleep poorly despite good habits. A trial of a modest dose within the upper limit is reasonable to discuss with your doctor, but keep expectations small.
- You want fewer cramps. The evidence does not support magnesium for typical cramps. Look at training load, fatigue and hydration instead.
Safety note: Do not take magnesium supplements if you have kidney disease unless your doctor advises it, because impaired kidneys cannot clear excess magnesium and toxicity becomes more likely. Magnesium can reduce absorption of some osteoporosis drugs (bisphosphonates) and antibiotics (tetracyclines and quinolones), so doses need to be spaced apart. Diuretics and long-term proton pump inhibitors can affect magnesium levels. Stay within 350 mg per day from supplements and check with your doctor before starting, especially if you take regular medication.
FAQ
How much magnesium should I take for sleep?
There is no established dose for sleep. The recent trial used 250 mg of elemental magnesium, which sits within the 350 mg supplement upper limit. Check with your doctor before starting, and remember food sources come first.
When is the best time to take magnesium?
Sleep studies usually give it in the evening, but timing evidence is limited. If you take antibiotics or bisphosphonates, spacing matters more than the time of day, so ask your pharmacist.
Is magnesium glycinate better than citrate?
There is no strong head-to-head evidence. Citrate is well documented as better absorbed than oxide. Glycinate was used in a recent sleep trial and is often chosen for comfort. Pick the one your stomach tolerates.
Can magnesium help with cramps after cricket or football?
Evidence does not support it for typical cramps. Exercise cramps are more often linked to fatigue and conditioning, so gradual build-up in training is the better bet.
Can I get enough magnesium on a vegetarian diet?
Yes. Seeds, nuts, pulses, soy, whole grains and leafy greens are some of the richest sources, so a varied vegetarian diet is often high in magnesium.
Free tool: find your ideal bedtime and caffeine cut-off with the sleep calculator.
Sources
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021.
- Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nat Sci Sleep. 2025.
- Garrison SR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020.
This article is for general education and is not medical advice. Check with your doctor before starting a new training or nutrition plan, especially if you have a health condition.