There is no proven best time to take magnesium. No trial we found has compared morning and evening doses, and the sleep studies gave magnesium at different times: some split it across the day, others asked people to take it 30 minutes to 2 hours before bed124. What the evidence does support is spacing it from certain medicines and staying within the upper limit for supplements5.
Key takeaways
- Evidence strength: None for timing. No trial we found has compared times of day for taking magnesium; sleep studies gave it at different times, from doses split across the day to a single dose 30 minutes to 2 hours before bed124.
- Sleep trials used different schedules: two or three doses a day in older trials, and one evening dose 30 to 60 minutes or 2 hours before bed in recent ones124.
- Medicines: osteoporosis drugs (bisphosphonates) are not well absorbed when taken too soon before or after supplements or medicines with high amounts of magnesium, and some antibiotics might not be absorbed if taken too soon before or after a magnesium supplement5.
- Upper limit: for adults, 350 mg a day from supplements and medicines; high intakes can cause diarrhea, nausea and abdominal cramping5.
- Does magnesium help sleep at all? The evidence is limited; see our review of magnesium for sleep.
Is it better to take magnesium in the morning or at night?
Nobody knows. We found no trial that gave the same magnesium supplement at different times of day and compared the results. Taking it in the evening as part of a wind-down routine is a common habit, not a research finding. Whether magnesium improves sleep at all is a separate question, and the evidence there is limited; our magnesium for sleep review covers the trials.
What time of day did the sleep trials use?
Looking at when trial participants took their magnesium shows how little the timing has been controlled:
| Trial | Who took part | Daily magnesium | When it was taken |
|---|---|---|---|
| Nielsen 2010, as summarized in a 2021 review4 | 100 adults over 51 with poor sleep quality | 320 mg (magnesium citrate) | Two tablets in the morning, one at noon, two in the evening |
| Held 2002, as summarized in a 2021 review4 | Older adults | Built up to 729 mg (magnesium oxide) | Once, then twice, then three times a day; time of day not given |
| Abbasi 20123 | 46 older adults with insomnia | 500 mg (magnesium oxide) | Twice a day; time of day not reported |
| Hausenblas 20242 | 80 adults aged 35 to 55 with sleep problems | 1 g of magnesium L-threonate (about 75 mg of magnesium) | 2 hours before bedtime |
| Schuster 20251 | 155 adults aged 18 to 65 with poor sleep | 250 mg (magnesium bisglycinate) | 30 to 60 minutes before bedtime |
A 2021 review of the three older trials noted that daily doses ranged from 320 to 729 mg, taken two to three times a day4. The two recent trials used a single evening dose12. Because each trial also used a different form and amount, these schedules can’t tell you which time works best.
Best time to take magnesium glycinate
The 2025 bisglycinate trial asked participants to take two capsules (250 mg of magnesium in total) 30 to 60 minutes before bedtime for 28 days1. That schedule was part of the study design, not something the researchers tested against other times1. Our magnesium glycinate guide covers what that trial found and what to check on the label.
Should you take magnesium with food?
None of the sleep trials above compared taking magnesium with and without food, so there is no evidence either way for sleep. The NIH Office of Dietary Supplements does warn that high intakes from supplements and medicines can cause diarrhea, nausea and abdominal cramping5. If magnesium upsets your stomach, ask a pharmacist whether a lower amount or a different form makes sense for you.
Medicines that need spacing
Timing does matter if you take certain medicines. According to the NIH Office of Dietary Supplements5:
- Osteoporosis drugs (bisphosphonates) are not well absorbed when taken too soon before or after supplements or medicines with high amounts of magnesium.
- Some antibiotics might not be absorbed if taken too soon before or after a supplement that contains magnesium.
- Diuretics can either increase or decrease the loss of magnesium through urine, depending on the type.
- Prescription drugs for acid reflux or peptic ulcers can cause low blood levels of magnesium when taken over a long period.
- Very high doses of zinc supplements can interfere with how the body absorbs and regulates magnesium.
Ask your pharmacist how many hours apart to take magnesium and your medicine.
Who should be careful
Who should be careful
- Medicines: if you take antibiotics, bisphosphonates, diuretics or long-term acid reducers, ask a pharmacist or doctor before adding magnesium and how to space your doses5.
- Kidney disease: in healthy people, the kidneys get rid of excess magnesium in the urine5; if you have kidney disease, don’t take magnesium supplements without medical advice.
- Upper limit: the adult upper limit for magnesium from supplements and medicines is 350 mg a day; it doesn’t include magnesium from food5.
- Pregnancy, breastfeeding and children: talk to a clinician first.
- Ongoing sleep problems: if poor sleep lasts for weeks, see a doctor rather than adjusting supplement timing.
The bottom line
There is no evidence that one time of day is better for taking magnesium. Sleep trials have used doses split across the day and single evening doses, but none of the trials we found compared them. Pick a time you can stick to, keep supplements within the upper limit, and space magnesium from medicines that interact with it. For whether magnesium helps sleep in the first place, read our magnesium for sleep review, and see our guide to foods that help you sleep for magnesium from food.
Frequently asked questions
How long before bed should I take magnesium?
We found no study that tested this. Recent trials asked people to take it 30 to 60 minutes or 2 hours before bedtime12.
Can I split my magnesium dose?
Older sleep trials gave magnesium two or three times a day4 and recent ones gave a single evening dose12, but none of these trials compared split and single doses.
Does magnesium make you sleepy right away?
The trials measured sleep over weeks, not drowsiness after one dose: for example, 28 days in the glycinate trial1 and 21 days in the threonate trial2.
Sources (5)
- Schuster J, Cycelskij I, Lopresti A, Hahn A. Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nat Sci Sleep. 2025;17:2027–2040 (funded by the Institute of Food and One Health, Leibniz University Hannover). https://pmc.ncbi.nlm.nih.gov/articles/PMC12412596/
- Hausenblas HA, et al. Magnesium-L-threonate improves sleep quality and daytime functioning in adults with self-reported sleep problems: a randomized controlled trial. Sleep Med X. 2024;8:100121 (commissioned and funded by AIDP Inc., which owns patents; a 2025 corrigendum added the full competing-interests declaration and noted the trial was registered retrospectively: https://pmc.ncbi.nlm.nih.gov/articles/PMC12190206/). https://pmc.ncbi.nlm.nih.gov/articles/PMC11381753/
- Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. J Res Med Sci. 2012;17(12):1161–1169. https://pmc.ncbi.nlm.nih.gov/articles/PMC3703169/
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis. BMC Complement Med Ther. 2021;21:125. https://pmc.ncbi.nlm.nih.gov/articles/PMC8053283/
- NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers. Updated March 22, 2021. https://ods.od.nih.gov/factsheets/Magnesium-Consumer/



