When Is the Best Time to Take Magnesium? Morning, Night, Food
In this article
- Is it better to take magnesium in the morning or at night?
- Should you take magnesium with food or on an empty stomach?
- Is it better to split the dose?
- How long before or after medicines should you take magnesium?
- Does the form change when you should take it?
- Does it matter when you take magnesium with zinc, calcium or vitamin D?
- How long does it take to work, and how long should you keep taking it?
- What we don't know
- Frequently asked questions
There is no best time of day to take magnesium: no trial has compared taking it in the morning with taking it at night. What the evidence does settle is practical: take it with a meal if it unsettles your stomach, split a larger dose, and keep it apart from the few medicines it binds in the gut.1, 2, 4 The rest is habit. This page sits inside the Wellgard vitamins and minerals guide.
Is it better to take magnesium in the morning or at night?
Neither has been tested against the other. The trials quoted for bedtime dosing gave magnesium at bedtime by design, with no morning group. In 94 adults with night-time leg cramps, magnesium oxide at bedtime for four weeks cut cramps by 3.41 a week against 3.03 on placebo, a non-significant difference (P = .67), with no difference in sleep quality.5 In 175 people who completed a 60-day trial of magnesium oxide monohydrate, 226 mg of the compound at bedtime, cramps fell by 3.4 episodes against 2.6 (p = 0.01) and a sleep-quality score improved (p < 0.001).6 In 43 care-home residents, melatonin, magnesium and zinc together an hour before bed for eight weeks gave a sleep-quality score 6.8 points better than placebo; with three ingredients, the trial cannot say what the magnesium did.7
None of those says evening beats morning, because none asked. The sleep trials are weighed on does magnesium help you sleep, which keeps the for-sleep timing question. Pick the time you will remember; if a dose at night seems to make you restless, move it to the morning. The mineral does not keep office hours.
Should you take magnesium with food or on an empty stomach?
With food, if there is any difference at all. In a crossover study of 10 healthy women, magnesium from a magnesium-rich mineral water was absorbed 45.7% when drunk alone and 52.3% with a meal (P = 0.0001), a relative difference of 14.4%.1 That is water, not a capsule, from a mineral-water company's institute: a direction, not a figure for your tablet. The 2017 review of absorption agrees: fibres, phytate and oxalate lower uptake, proteins and indigestible carbohydrates raise it.3
The stronger reason is comfort. Unabsorbed magnesium stays in the bowel and draws water in, and the European Scientific Committee on Food, reviewing the trials in 2001, noted that "a given daily dose of Mg is better tolerated when it is divided into several portions" and that "considerable adaptation can develop within days".4 No food needs to be avoided; a meal simply smooths the dose. Magnesium side effects has the dose at which loose stools began in the trials.
Is it better to split the dose?
For anything beyond a small dose, yes. The share absorbed falls as the dose rises: in healthy adults given 0 to 80 mEq of magnesium acetate with a meal, fractional absorption fell "from 65% at the lowest to 11% at the highest intake".2 The 2017 review concludes that uptake "is higher when the mineral is ingested in multiple low doses throughout the day compared to a single, large intake" and that "a higher absorption is usually followed by a higher excretion".3 Splitting does not double what you keep; it raises the proportion, lowers the surplus and, in the trials the European committee tabulated, was better tolerated.4
Every figure here is elemental magnesium, the "magnesium ... mg" line on the nutrition panel, not the weight of the compound: 500 mg of magnesium citrate carries roughly 55 to 80 mg of magnesium. How much magnesium per day sets out the UK amounts, 300 mg a day for men and 270 mg for women, and the 400 mg guidance level for supplements.
How long before or after medicines should you take magnesium?
The NHS medicine pages name what should not be swallowed at the same time, and none gives a magnesium-specific gap in hours. The doxycycline page (reviewed 5 September 2025) lists "antacids and other indigestion treatments" and "medicines or supplements that contain iron or zinc" among the things that may not mix well.8 The levothyroxine page (reviewed 6 July 2026) lists "calcium and iron supplements" and antacids, and says to take it "30 to 60 minutes before your first meal of the day", before caffeine "or any other medicine".9 The alendronic acid page (reviewed 7 May 2025) names magnesium: if you need another medicine by mouth, "wait for at least 30 minutes", and "Tell your doctor if you're taking supplements or multivitamins containing calcium, iron, magnesium or zinc".10 The longer gaps quoted for antibiotics, bisphosphonates and levothyroxine come from pharmacology sources, not the NHS; what you should not take with magnesium sets them out medicine by medicine. For any prescribed medicine, your pharmacist can confirm the spacing against your full list.
Does the form change when you should take it?
No. The salt sets how much magnesium a tablet carries and how quickly it dissolves, not the hour you take it. In 14 healthy men, a single 400 mg dose as citrate raised plasma magnesium at four and eight hours and 24-hour urinary excretion significantly, while oxide did not reach significance on either: a difference in speed of appearance in blood, in one small study, not a timing instruction.11 The 2017 review covers every form: "The type of Mg2+ salt appears less relevant than is often thought", it "remains unclear which Mg2+ binding form produces the highest bioavailability", and dose and existing status matter more.3 Every salt shares one timing answer; what magnesium glycinate is keeps its own timing FAQ.
Does it matter when you take magnesium with zinc, calcium or vitamin D?
No trial has compared times of day for magnesium and zinc together; the one trial that dosed them before bed, the care-home study above, did so by protocol.7 Can you take zinc and magnesium together covers the doses. Calcium has a mechanism: the 2017 review lists "high doses of other minerals" among the factors that impair uptake, so a large calcium dose at a different meal is a reasonable habit, though no trial has measured the gain.3 No trial has timed vitamin D against magnesium either; each has its own page, when is the best time to take vitamin D and when is the best time to take zinc.
How long does it take to work, and how long should you keep taking it?
Blood and urine respond within hours; tissues take weeks. In the single-dose study above, plasma magnesium had risen by four hours and 24-hour urinary excretion rose with it.11 In an eight-week trial of 300 mg a day in 264 stressed adults, red-cell magnesium had risen by week four in the subgroup who started low (below 1.6 mmol/L): 0.21 mmol/L, 95% CI 0.10 to 0.31.12 The outcome trials above ran four weeks to 60 days.5, 6, 7 How long to keep taking it is a dietary question: the UK reference intake is a daily need, and a supplement is a top-up for as long as the shortfall lasts. Magnesium contributes to a reduction of tiredness and fatigue, in the register's words, whatever the hour.
What we don't know
No trial has randomised time of day for any magnesium salt, so "morning versus night" has no evidence either way. No trial has compared tablets, capsules, powders, gummies and drinks for absorption; the European committee noted only that "the galenic form (aqueous solution, capsules, tablets, etc.) may play a role" in bowel tolerance.4
Frequently asked questions
Can you take magnesium every night?
Yes, at a sensible dose: the NHS says 400 mg or less a day from supplements is "unlikely to cause any harm" (page reviewed 3 August 2020), and the trials above dosed nightly for four to eight weeks.5, 6, 7, 13 People with kidney disease should ask a GP first.
When should you take magnesium glycinate?
Whenever you will remember, with food if it unsettles you: the same answer as for any salt, because no trial has compared times of day for glycinate or any other form.
Should you take magnesium before or after exercise?
No trial has tested timing around exercise, and magnesium contributes to normal muscle function whatever the hour; a large dose on an empty stomach just before a run is simply the combination most likely to upset the bowel.2, 4
Can you take magnesium with coffee or tea?
Nothing in the absorption evidence says otherwise: the 2017 review lists fibres, phytate, oxalate and high doses of other minerals as the factors that lower uptake, not tea or coffee.3 The only caffeine rule on the NHS pages belongs to levothyroxine.9
What is the best time to take magnesium for anxiety?
No trial has tested a time of day for that or any other outcome; magnesium contributes to normal psychological function, in the register's wording, whatever the clock says. If anxiety is affecting your daily life, the NHS route is your GP or NHS Talking Therapies.
Sources
- Sabatier M, et al. Meal effect on magnesium bioavailability from mineral water in healthy women. American Journal of Clinical Nutrition, 2002. PubMed 11756061.
- Fine KD, et al. Intestinal absorption of magnesium from food and supplements. Journal of Clinical Investigation, 1991. PubMed 1864954.
- Schuchardt JP, Hahn A. Intestinal absorption and factors influencing bioavailability of magnesium: an update. Current Nutrition and Food Science, 2017. PubMed 29123461.
- Scientific Committee on Food. Opinion on the tolerable upper intake level of magnesium (2001), in EFSA, Tolerable Upper Intake Levels for Vitamins and Minerals, 2006, pp. 107 to 116. efsa.europa.eu.
- Roguin Maor N, et al. Effect of magnesium oxide supplementation on nocturnal leg cramps: a randomized clinical trial. JAMA Internal Medicine, 2017. PubMed 28241153.
- Barna O, et al. A randomized, double-blind, placebo-controlled, multicenter study assessing the efficacy of magnesium oxide monohydrate in the treatment of nocturnal leg cramps. Nutrition Journal, 2021. PubMed 34719399.
- Rondanelli M, et al. The effect of melatonin, magnesium, and zinc on primary insomnia in long-term care facility residents in Italy: a double-blind, placebo-controlled clinical trial. Journal of the American Geriatrics Society, 2011. PubMed 21226679.
- NHS. Taking doxycycline with other medicines and herbal supplements. Page last reviewed 5 September 2025. nhs.uk.
- NHS. Levothyroxine. Page last reviewed 6 July 2026. nhs.uk.
- NHS. Taking alendronic acid with other medicines and herbal supplements. Page last reviewed 7 May 2025. nhs.uk.
- Werner T, et al. Assessment of bioavailability of Mg from Mg citrate and Mg oxide by measuring urinary excretion in Mg-saturated subjects. Magnesium Research, 2019. PubMed 32162607.
- Noah L, et al. Impact of magnesium supplementation, in combination with vitamin B6, on stress and magnesium status: secondary data from a randomized controlled trial. Magnesium Research, 2020. PubMed 33210604.
- NHS. Vitamins and minerals: others (magnesium). Page last reviewed 3 August 2020; next review was due 3 August 2023. nhs.uk.
Regulatory and NHS sources last checked 12 October 2026. This article is general information, not medical advice. If you take prescribed medicines or have kidney disease, ask your GP or pharmacist before adding magnesium.