In this guide
- Does the time of day matter for magnesium?
- Should I take magnesium in the morning or at night?
- Does the form of magnesium change when I should take it?
- How much magnesium do I need, and from which foods?
- Which medicines need a gap from magnesium?
- Who should avoid magnesium supplements?
- What should I do today?
There is no proven best time to take magnesium. Take it at the time you will remember every day, in the evening if you use it for sleep or constipation, and with food if it upsets your stomach.
This guide covers what timing really changes, how the common forms differ, which medicines need a gap, and what to eat first.
Does the time of day matter for magnesium?
For most people, not much. Your body uses magnesium all day, and levels shift over days and weeks, not hours. The research we cite does not include a trial comparing morning with evening dosing of the same supplement, so any claim that one time wins is a guess.
What trials do show is that results build with regular use. Sleep trials ran for weeks. Missing doses matters more than the hour you pick.
Best time for sleep? Evening, a couple of hours before bed, is the usual choice, though timing itself has not been tested. A 2021 meta-analysis of three small trials in 151 older adults with insomnia found people fell asleep about 17 minutes sooner on oral magnesium than on placebo. All three trials had a moderate or high risk of bias and the evidence was low to very low quality.[1]
Read that as worth a fair try, not a sleeping tablet. If your mind races at night, habits usually matter more. See how to stop overthinking at night, Ayurvedic remedies for insomnia and the NHS insomnia advice.[13]
Should I take magnesium in the morning or at night?
Choose by your goal and habits.
| Your goal | A sensible time | Why |
|---|---|---|
| Sleep or winding down | Evening, a few hours before bed | Matches the sleep trials |
| Constipation | Evening, with water | Bowel effects can take hours |
| General top-up | With your biggest meal | Easy to remember, gentler on the stomach |
| Migraine prevention | Same time every day | Steady daily use is the usual approach |
| You feel sleepy after it | Morning or midday | Keeps drowsiness away from work or driving |
Tie it to something you already do, such as your evening chai or brushing your teeth.
With food or on an empty stomach? With food is usually easier on the stomach. Supplements can cause cramps and loose stools, and a meal slows that down. The NHS says taking more than 400 mg for a short time can cause diarrhoea.[10]
The exception is a medicine that must be taken on an empty stomach, such as levothyroxine. The NHS says to take it 30 to 60 minutes before your first meal and lists antacids, calcium and iron supplements among things that can affect it.[11] The NHS page gives no gap for magnesium, so ask your pharmacist how long to wait.
Does the form of magnesium change when I should take it?
The form changes how the supplement behaves in your gut more than the best time.
| Form | What to know | Evidence note |
|---|---|---|
| Citrate | Absorbed better than oxide; can loosen stools | Small trial of 14 men[4] |
| Oxide | Cheap, poorly absorbed; acts as a laxative | Two trials for constipation[2][3] |
| Glycinate | Widely sold for sleep and calm | No head-to-head trial found |
| Mixed blends | Hard to judge | Check elemental magnesium per serving |
In 14 healthy men, a 400 mg dose of citrate raised blood and urine magnesium more than the same dose of oxide.[4] It is a small study of men only.
For constipation, a 90-person trial found about 68% improved on magnesium oxide against about 12% on placebo.[2] A 34-person trial in women found 71% against 25%.[3] Our constipation remedies guide covers fibre and fluids first.
How much magnesium do I need, and from which foods?
Food comes first. The NHS says you should be able to get all the magnesium you need from a varied diet, and gives about 300 mg a day for men and 270 mg for women.[10] A 2025 review estimated that about 31% of the world's population does not reach the recommended intake, so more magnesium-rich food is a sensible start.[6]
For supplements, the NHS says 400 mg or less a day is unlikely to cause harm.[10] The US upper limit for supplemental magnesium was set at 350 mg a day in 1997, and a 2023 paper argues it should be reviewed.[7] Follow your label.
Indian kitchen tip: one handful (about 30 g) of almonds or pumpkin seeds, a bowl of ragi porridge, rajma or chickpeas with roti, and til chikki in winter all add magnesium. Keep portions modest, as nuts are energy dense.
Myth or evidence: what does magnesium actually help?
- Myth: it fixes sleep, cramps and stress. The sleep evidence is low quality, as above.[1]
- Evidence, moderate: constipation, with two placebo-controlled trials of oxide.[2][3]
- Weaker or mixed: blood pressure and migraine results come from varied trials, so talk to your doctor rather than self-treating. See how to lower blood pressure naturally.
Which medicines need a gap from magnesium?
Minerals can bind some medicines in the gut so less is absorbed, and a few medicines lower magnesium. Check your medicine leaflet first.
- Levothyroxine: see the NHS advice above.[11]
- Some antibiotics: the NHS says to tell your doctor about antacids, iron or zinc when starting doxycycline.[12] Ask your pharmacist about magnesium before taking both.
- Acid-reducing medicines (PPIs): long-term use can lower magnesium.[5] Ask your doctor whether it should be checked.
- Osteoporosis tablets, diuretics and kidney medicines: ask your pharmacist about spacing.
Never stop or change a prescribed medicine because of a supplement.
What Ayurveda adds. Ayurveda does not mention magnesium, so we claim no classical view of it. It does value routine. The Charaka Samhita, Sutrasthana 11, names sleep as one of the supports of life along with food.[8] The Ashtanga Hridaya, Sutrasthana 2, describes a regular daily routine.[9] A restless, light vata type may like a steady evening routine; the dosha quiz and vata dosha guide can help.
Who should avoid magnesium supplements?
Check with your doctor first if any of these apply.
- Kidney disease: supplements can build up.
- Pregnancy or breastfeeding: ask your doctor or midwife.
- Heart rhythm problems or heart block.
- Children: no supplements without a paediatrician's advice.
- Persistent diarrhoea or bowel disease.
- Medicines that bind minerals or alter magnesium, as above.
If a supplement upsets your gut, take it with food or ask a pharmacist.
When to see a doctor. See your doctor for muscle cramps, weakness, tingling, an irregular heartbeat or lasting tiredness, which have many causes a blood test can sort out. Also go if constipation lasts weeks, sleep trouble lasts a month, or migraines worsen.
Call 911 (US), 999 (UK) or 112 (India) for chest pain, a fast or irregular heartbeat with fainting, trouble breathing, severe weakness or sudden confusion. Stop the supplement and get urgent help for severe vomiting or diarrhoea with feeling very unwell.
What should I do today?
- Pick one daily time and link it to a habit.
- Check your medicine leaflets and ask your pharmacist about gaps.
- Add one magnesium-rich food to today's meals.
- Give any effect four weeks before judging.
Key takeaways
- Timing evidence is thin, so a steady daily habit beats the clock.
- A 2021 review of three small trials in older adults with insomnia found people fell asleep about 17 minutes sooner, but the evidence was low quality.
- Citrate was absorbed better than oxide in a small trial of 14 men, and both can loosen stools.
- The NHS says 400 mg or less a day from supplements is unlikely to cause harm.
Questions people ask
Is magnesium glycinate better at night?
There is no special time for glycinate. People often take it in the evening because they use it for relaxation or sleep. We found no head-to-head trials of glycinate against other forms, so treat bold claims about it as marketing.
What is the best time to take magnesium citrate?
Citrate draws water into the bowel, so it is often taken in the evening for constipation. If you only want to top up your intake and it loosens your stool, try a smaller amount with food or ask your pharmacist about another form.
Can I take magnesium every day?
Many healthy adults do. The NHS says 400 mg or less a day from supplements is unlikely to cause harm. People with kidney disease should ask their doctor first.
How long does magnesium take to work?
For constipation, a bowel effect can come within hours with some forms. For sleep or stress, trials ran for weeks, so give it a month before judging.
Sources (13)
- 1.Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis BMC complementary medicine and therapies, 2021.
- 2.Morishita D, Tomita T, Mori S, et al. Senna Versus Magnesium Oxide for the Treatment of Chronic Constipation: A Randomized, Placebo-Controlled Trial The American journal of gastroenterology, 2021.
- 3.Mori S, Tomita T, Fujimura K, et al. A Randomized Double-blind Placebo-controlled Trial on the Effect of Magnesium Oxide in Patients With Chronic Constipation Journal of neurogastroenterology and motility, 2019.
- 4.Werner T, Kolisek M, Vormann J, et al. Assessment of bioavailability of Mg from Mg citrate and Mg oxide by measuring urinary excretion in Mg-saturated subjects Magnesium research, 2019.
- 5.Gommers LMM, Hoenderop JGJ, de Baaij JHF. Mechanisms of proton pump inhibitor-induced hypomagnesemia Acta physiologica (Oxford, England), 2022.
- 6.Zhang W, Zhao Y. Global Dietary Magnesium Deficiency: Prevalence, Underlying Causes, Health Consequences, and Strategic Solutions International journal for vitamin and nutrition research. Internationale Zeitschrift fur Vitamin- und Ernahrungsforschung. Journal international de vitaminologie et de nutrition, 2025.
- 7.Costello R, Rosanoff A, Nielsen F, et al. Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults Advances in nutrition (Bethesda, Md.), 2023.
- 8.Charaka Samhita, Sutrasthana 11 (Tisraishaniya: food, sleep and regulated living as supports of life)
- 9.Ashtanga Hridaya, Sutrasthana 2 (Dinacharya: daily routine)
- 10.NHS. NHS: Vitamins and minerals, magnesium
- 11.NHS. NHS: Levothyroxine, how and when to take it
- 12.NHS. NHS: Doxycycline, taking it with other medicines
- 13.NHS. NHS: Insomnia
For education only, not medical advice. Medical disclaimer
