- 01How much you take at once matters more than when
No trial has compared morning with night for magnesium. Dose size has been measured: the share of magnesium absorbed fell from 65% at the lowest amount to 11% at the highest, and an enteric coating cut absorption further 4. Split a large amount across two meals, then pick the hour for sleep or habit, keeping the medicine gaps 1.
Take magnesium at a time of day you will keep up, with a meal, in the evening if sleep is the goal, and well away from the medicines it binds. No trial has compared morning with night. The 2025 sleep trial gave magnesium 30 to 60 minutes before bed, and the constipation trials spread it across meals. How much you take at once and which medicines sit beside it in your gut change how much magnesium you absorb. This page gives the time that fits each reason and each form, the medicine gaps that matter, and six sample days.
When to take magnesium: the short answer
Choose the time for magnesium by four things: your reason for taking it, the form on the label, how your gut reacts and what other medicines you take. The table matches the common reasons to a time that fits. Each time in the table is a sensible default.
| Your reason | Form usually used | Time that fits | With food? |
|---|---|---|---|
| Sleep | Glycinate or citrate | Evening: with dinner or 30 to 60 minutes before bed | Either; food is gentler |
| Constipation | Oxide or citrate | Oxide split across meals; a citrate laxative on a morning at home, short term only | Yes, with meals |
| Migraine prevention | Citrate, oxide or glycinate | The same time every day, often breakfast | Yes |
| Low level or confirmed deficiency | Any well-absorbed form | As your clinician advises; otherwise whenever you will remember, split a large amount | Yes |
| Night-time leg cramps | Any | Evening, if you try it; trials in older adults mostly found no meaningful benefit | Yes |
| General top-up | Glycinate or citrate | Any meal you never skip | Yes |
The forms, the daily targets and who tends to run low live in the LifeFrom magnesium guide. The guide's verdict on the cheapest form matters for timing, because a form that mostly acts in the bowel behaves differently from one that is absorbed:
Magnesium oxide is cheap but only about 4% absorbed, so it mainly works as a laxative.
Read with this page
Does the time of day matter?
The time of day has not been shown to change what magnesium does, because no trial has tested it. Magnesium works by topping up a body store, and the trials for sleep, migraine and deficiency ran for about 3 weeks to 3 months of daily use. A missed week of magnesium changes more than a move from morning to night.
The amount in each dose matters more than the hour. In a 1991 study in the Journal of Clinical Investigation, Kenneth Fine and colleagues gave people magnesium in rising amounts and measured how much the gut took in. The share absorbed fell from 65% at the lowest amount to 11% at the highest 4. The gut takes in magnesium partly through a carrier that fills up, so much of a large single dose stays in the bowel and draws water with it. That suggests splitting a large amount into two smaller doses at two meals gets more of it absorbed and is less likely to loosen stools, though no trial has compared split with single dosing directly.
The same 1991 study found that enteric-coated magnesium chloride (a tablet coated to dissolve after it leaves the stomach) was absorbed much less than soluble magnesium 4. If a magnesium label says enteric-coated or delayed-release, the coating costs more absorption than any choice of hour.
Should I take magnesium in the morning or at night?
Take magnesium at night if sleep is the reason, and at whatever time you will remember if the reason is anything else. A 2021 meta-analysis by Jasmine Mah and Tyler Pitre pooled 3 small trials of daily magnesium in 151 older adults. Magnesium cut the time to fall asleep by about 17 minutes compared with placebo; total sleep time rose by 16 minutes, too small a change to rule out chance, and the authors rated the evidence low to very low quality 2.
A 2025 trial by Schuster and colleagues gave 155 adults with poor sleep 250 mg of elemental magnesium (the weight of the magnesium itself, not of the whole compound; labels list it as magnesium in the amount column) as bisglycinate, the same form sold as glycinate, or placebo, 30 to 60 minutes before bed for 4 weeks 3. Insomnia scores fell by 3.9 points on magnesium and 2.3 points on placebo. That small difference only just cleared the usual bar for being more than chance, and it was larger in people whose diets were low in magnesium 3. Those amounts describe the trial and are no guide to a personal dose.
Morning or night: choose by why you take magnesium
Night is the wrong time for magnesium in three situations: when it loosens your stools enough to wake you, when you take an antibiotic or an HIV medicine at bedtime, and when dinner is the meal you most often skip. In any of those, a morning or midday dose you keep taking does more than an evening dose you miss. No trial shows that morning magnesium raises daytime energy either. Responses differ for reasons that have nothing to do with the hour: people with little magnesium in their diet gained more in the 2025 trial 3, and gut tolerance, kidney function and long-term stomach-acid or water pills all change what magnesium does.
If night cramps are why you are here, a 2020 Cochrane review found magnesium unlikely to prevent cramps in a meaningful way in older adults 9. The common causes, and the tests that check them, are on leg cramps at night.
When to take magnesium glycinate
If you take magnesium glycinate for sleep, take it with dinner or 30 to 60 minutes before bed, the timing used in the 2025 bisglycinate trial, which found a small effect 3. For any other reason, any meal works. Glycinate is generally reported to be gentler on the gut, and less likely than oxide or citrate to cause the loose stools that would wake you, which is the practical reason it suits a bedtime dose.
A magnesium glycinate capsule holds little glycine. Magnesium bisglycinate is about 14% magnesium by weight, so a capsule supplying 200 mg of elemental magnesium carries roughly 1.2 g of glycine; even the 2025 trial's full daily dose carried about 1.5 g 3. The glycine sleep study by Yamadera and colleagues used 3 g before bed 8. Any sleep benefit from a standard glycinate capsule is better credited to the magnesium than to the glycine; the glycine guide covers the glycine studies.
If you want a bedtime to count back from, the sleep calculator works one out from your wake time. If sleep is poor despite magnesium, the causes worth checking are on why can't I sleep, and insomnia that lasts more than a few weeks is worth raising with your doctor.
Citrate, oxide, malate, threonate and blends: timing by form
When to take magnesium citrate depends on the job. As a daily supplement, take it with any meal. As a liquid laxative, take it on a morning at home, since the label says it usually works within 30 minutes to 6 hours 13. For a magnesium complex, follow the form listed first on the label and split it across meals.
| Form | Time that fits | With food | Note |
|---|---|---|---|
| Citrate, as a daily supplement | Any meal | Yes | Well absorbed; can loosen stools at higher amounts |
| Citrate, as a liquid laxative | A morning or a day at home | Follow the label; drink a full glass of liquid | Usually works within 30 minutes to 6 hours 13; for short-term use only, as the label directs |
| Oxide | Split across meals | Yes | The constipation trials gave it three times a day with meals |
| Glycinate (also sold as bisglycinate) | Evening for sleep, otherwise any meal | Either | Gentle on the gut |
| Malate | Whenever you will remember | Yes | No timing evidence; the claim that malate keeps you awake or energised has no trial behind it |
| L-threonate | Whenever you will remember | Either | No timing evidence |
| Blends sold as magnesium complex | Follow the main form; split across meals | Yes | The form listed first on the label is usually the largest share |
The common advice to take magnesium oxide in the morning does not match how the oxide trials gave it. In a 2019 trial by Mori and colleagues, people with chronic constipation took 0.5 g of magnesium oxide three times a day with meals for 28 days; 70.6% improved, against 25.0% on placebo 5. A later trial by Morishita and colleagues in the American Journal of Gastroenterology gave 1.5 g a day for 28 days and also found a benefit over placebo 14. The magnesium for constipation page covers those trials and who should avoid oxide. If constipation keeps coming back, the other causes, including medicines that cause it, are on constipation.
With food or on an empty stomach?
Magnesium does not need an empty stomach. Taking magnesium with a meal lowers the chance of loose stools and nausea, and the oxide trials gave it with meals 5. For scale, the recommended dietary allowance (RDA, the daily amount that covers nearly all healthy people) is 400 to 420 mg for men and 310 to 320 mg for women from food and supplements together, and the upper limit from supplements alone is 350 mg 1. If you take a large amount from supplements, splitting it across two meals keeps each dose smaller, and the 1991 Fine study suggests smaller doses are absorbed at a higher rate 4. With a magnesium laxative, drink a full glass of liquid, since the laxative works by drawing water into the bowel 13.
How magnesium fits into a day
How far apart from my medicines?
Magnesium binds some medicines in the gut and stops them being absorbed, so for anyone on those medicines the gap matters more than the hour. The gaps below come from the NIH magnesium fact sheet and the US prescribing labels for each drug, written from the magnesium side, since the magnesium is the thing to move.
| Medicine | When to take magnesium | Why | Source |
|---|---|---|---|
| Tetracycline antibiotics (doxycycline, minocycline) | At least 2 hours after, or 4 to 6 hours before, the antibiotic | Magnesium binds the antibiotic | NIH fact sheet 1 |
| Quinolone antibiotics (ciprofloxacin, levofloxacin) | At least 2 hours after, or 4 to 6 hours before, the antibiotic | Magnesium binds the antibiotic | NIH fact sheet 1 |
| Bisphosphonates, bone-strengthening drugs (alendronate, risedronate) | At least 2 hours apart | Magnesium lowers absorption of the bone drug | NIH fact sheet 1 |
| Levothyroxine | At least 4 hours before or after the thyroid pill | Binding products such as magnesium antacids lower absorption | Synthroid US label 10 |
| Gabapentin | At least 2 hours before a gabapentin dose | A magnesium and aluminium antacid (Maalox) cut gabapentin absorption by about 20% | Neurontin US label 11 |
| Dolutegravir (Tivicay; also in Triumeq and Dovato) | At least 6 hours before, or 2 hours after, dolutegravir | Magnesium binds the drug | Tivicay US label 12 |
If you take levothyroxine, the levothyroxine guide covers the other things that interfere with it, and hypothyroidism explains the condition it treats. Other medicines drain magnesium over months instead of clashing with a single dose. Prescription proton pump inhibitors (PPIs, strong stomach-acid reducers such as omeprazole) taken for more than a year can cause low blood magnesium, and the FDA warned about this in 2011 6. The warning noted how stubborn the problem can be:
In approximately one-quarter of the cases reviewed, magnesium supplementation alone did not improve low serum magnesium levels and the PPI had to be discontinued.US Food and Drug Administration, Drug Safety Communication, 2 March 2011
Loop and thiazide diuretics (water pills) also raise magnesium loss in the urine 1. For someone on a long-term PPI or diuretic, the time of a magnesium supplement matters less than a blood magnesium check and a talk with the prescriber. Do not stop a PPI or a diuretic on your own.
Can I take magnesium with vitamin D, zinc, calcium or iron?
Magnesium can share a meal with vitamin D, zinc and calcium at ordinary supplement doses. Very high zinc intakes, around 142 mg a day, interfere with magnesium absorption, and that is several times the 40 mg upper limit for zinc 1. People who take several minerals often spread them across breakfast and dinner, which keeps each dose small. Iron is the exception. The when to take iron guide puts it this way: "What is in your stomach matters more than what is on the clock." Plan the iron first, keep it 1 to 2 hours clear of calcium, and put magnesium at a different meal.
Other supplements often taken with magnesium
Sample schedules for real days
| Your day | Where magnesium fits | Why |
|---|---|---|
| Levothyroxine at 6 am | With lunch or dinner | Keeps the 4-hour gap from the Synthroid label |
| Sleep is the goal | With dinner, or 30 to 60 minutes before bed | As in the 2025 sleep trial |
| Constipation | Oxide split across meals, or a citrate laxative on a morning at home, short term only | Matches the oxide trials and the citrate label's 30-minute to 6-hour window |
| Migraine prevention | With breakfast every day; review it with your doctor at about 3 months | Benefit builds over months of daily use |
| A 7-day course of doxycycline or ciprofloxacin at 8 am and 8 pm | Around 2 pm, 6 hours from each antibiotic dose, or pause magnesium for the course | Keeps the antibiotic gap from the NIH fact sheet |
| Shift work | With the meal before your main sleep | Ties magnesium to a habit that moves with your shifts |
How long until it works?
| Goal | When to expect a change | Basis |
|---|---|---|
| Constipation, citrate laxative | 30 minutes to 6 hours | Drug Facts label 13 |
| Constipation, daily oxide | Within the 28 days the trials ran | Mori 2019 5 |
| Sleep | Measured after the 20 days to 8 weeks the trials ran | Mah and Pitre 2021 2; Schuster 2025 3 |
| Migraine prevention | About 3 months of daily use | AAN and AHS guideline, 2012 7 |
| Refilling a low level | Weeks; your clinician decides when to recheck | NIH fact sheet 1 |
For migraine, a 2012 guideline from the American Academy of Neurology and the American Headache Society rated magnesium as probably effective (Level B) for preventing episodic migraine in adults 7. If nothing has changed after 8 weeks of daily magnesium for sleep, or 3 months for migraine, moving the dose to another hour is unlikely to help; bring it to your doctor, who can look at other causes and treatments. If headaches are frequent or changing, the causes and red flags are on frequent headaches.
Who should check before taking it
Kidney disease is the main reason to check with a clinician before taking magnesium. Healthy kidneys clear extra magnesium; with a low eGFR (estimated glomerular filtration rate, the lab's score for how well the kidneys filter), magnesium can build up, and the amount that causes toxicity falls below the 5,000 mg a day usually seen with laxatives and antacids 1. The eGFR is on most routine blood panels, the eGFR calculator works it out from creatinine, and chronic kidney disease explains what each stage means.
- Older adults taking magnesium oxide every day, since kidney function falls with age and oxide doses for constipation are large
- Pregnancy: the recommended dietary allowance (RDA) is 350 to 400 mg a day from all sources, depending on age, and any supplement is worth clearing with your prenatal team 1
- Anyone on the medicines in the spacing table, a long-term PPI or a diuretic
How to tell if your magnesium is working
Judge magnesium first by the symptom you took it for. A blood test is a weaker check than it looks: serum (the liquid part of the blood, which is what the standard test measures) holds less than 1% of the body's magnesium, so a normal serum magnesium does not rule out low intake 1. Red blood cell (RBC) magnesium, measured inside the cells, is another option, though labs report it against different ranges. A serum magnesium below or above the lab's range needs a clinician, not a self-chosen supplement dose, and a low result with low potassium or calcium, palpitations, muscle twitching or tremor, or any seizure needs prompt care. The signs and tests for a true shortfall are on magnesium deficiency.
A magnesium dose taken a few hours before a serum magnesium draw may nudge the result, so on the day of a blood test, taking magnesium after the draw is the cleaner choice; ask whoever ordered the test if you are unsure. The page on supplements that affect blood tests lists the other supplements worth pausing.
Blood tests to read with magnesium

Citations
- 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;21:125
- Schuster J et al. Magnesium bisglycinate supplementation in healthy adults reporting poor sleep: a randomized, placebo-controlled trial. Nat Sci Sleep 2025;17:2027-2040
- Fine KD et al. Intestinal absorption of magnesium from food and supplements. J Clin Invest 1991;88(2):396-402
- Mori S et al. A randomized double-blind placebo-controlled trial on the effect of magnesium oxide in patients with chronic constipation. J Neurogastroenterol Motil 2019;25(4):563-575
- US Food and Drug Administration. Drug Safety Communication: Low magnesium levels can be associated with long-term use of proton pump inhibitor drugs (PPIs). 2 March 2011 (archived copy)
- Holland S, Silberstein SD, Freitag F et al. Evidence-based guideline update: NSAIDs and other complementary treatments for episodic migraine prevention in adults. Neurology 2012;78(17):1346-1353
- Yamadera W, Inagawa K, Chiba S et al. Glycine ingestion improves subjective sleep quality in human volunteers, correlating with polysomnographic changes. Sleep Biol Rhythms 2007;5(2):126-131
- Garrison SR, Korownyk CS, Kolber MR et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev 2020;9:CD009402
- Synthroid (levothyroxine sodium) tablets, US prescribing information, AbbVie (DailyMed)
- Neurontin (gabapentin), US prescribing information, Viatris (DailyMed)
- Tivicay (dolutegravir), US prescribing information, ViiV Healthcare (DailyMed)
- Magnesium citrate oral solution, saline laxative, Drug Facts label (CVS Pharmacy, DailyMed)
- Morishita D, Tomita T, Mori S et al. Senna versus magnesium oxide for the treatment of chronic constipation: a randomized, placebo-controlled trial. Am J Gastroenterol 2021;116(1):152-161
Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.










