Best time to take magnesium: morning or night, by form and by medicine

No trial has tested one hour of the day against another. The size of each dose, the form and the gap from the medicines that magnesium binds matter more than the hour. This page gives a time for each reason, a medicine spacing table and six sample days.

Reviewed by LifeFrom’s medical AIPublished November 21, 2026 · 12 min read
Ask AI about this pageChatGPTClaudePerplexity
The distinctions
  1. 01
    How 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 reasonForm usually usedTime that fitsWith food?
SleepGlycinate or citrateEvening: with dinner or 30 to 60 minutes before bedEither; food is gentler
ConstipationOxide or citrateOxide split across meals; a citrate laxative on a morning at home, short term onlyYes, with meals
Migraine preventionCitrate, oxide or glycinateThe same time every day, often breakfastYes
Low level or confirmed deficiencyAny well-absorbed formAs your clinician advises; otherwise whenever you will remember, split a large amountYes
Night-time leg crampsAnyEvening, if you try it; trials in older adults mostly found no meaningful benefitYes
General top-upGlycinate or citrateAny meal you never skipYes

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.

LifeFrom, Magnesium supplements: which form, how much, and when they help

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.

65% to 11%Share of a magnesium dose absorbed, from the lowest amount tested to the highestFine and colleagues, J Clin Invest 1991

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

Morning or middayFits most reasons
With breakfast or lunch
SuitsMigraine prevention, refilling a low level, a general top-up
Evidence for the hourNone either way; the trials tested daily use
If it loosens stoolsYou are awake and near a toilet
Medicine clashesClashes with levothyroxine taken on waking
Easy to rememberYes, with a fixed breakfast
Evening or bedtimeFits a sleep goal
With dinner or 30 to 60 minutes before bed
SuitsSleep
Evidence for the hourThe 2025 sleep trial gave it 30 to 60 minutes before bed
If it loosens stoolsIt can wake you in the night
Medicine clashesClashes with bedtime doses of some antibiotics and dolutegravir
Easy to rememberYes, if dinner is regular
These rows are practical reasons to prefer one time of day, drawn from how the trials gave magnesium and from the medicine labels.

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.

About 1.2 gGlycine in a magnesium bisglycinate capsule supplying 200 mg of elemental magnesiumThe glycine sleep study (Yamadera 2007) used 3 g

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.

FormTime that fitsWith foodNote
Citrate, as a daily supplementAny mealYesWell absorbed; can loosen stools at higher amounts
Citrate, as a liquid laxativeA morning or a day at homeFollow the label; drink a full glass of liquidUsually works within 30 minutes to 6 hours 13; for short-term use only, as the label directs
OxideSplit across mealsYesThe constipation trials gave it three times a day with meals
Glycinate (also sold as bisglycinate)Evening for sleep, otherwise any mealEitherGentle on the gut
MalateWhenever you will rememberYesNo timing evidence; the claim that malate keeps you awake or energised has no trial behind it
L-threonateWhenever you will rememberEitherNo timing evidence
Blends sold as magnesium complexFollow the main form; split across mealsYesThe 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

BreakfastMorning
LunchMidday
DinnerEvening
Before bed30 to 60 min before sleep
With foodWith a meal, to lower the chance of loose stools
How oftenDaily; split a large amount across two meals
Space ~2h fromTetracycline and quinolone antibioticsBisphosphonatesLevothyroxineGabapentinDolutegravir
The evening slots match how the 2025 sleep trial gave magnesium; any slot works for other reasons, provided the medicine gaps in the next table are kept.

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.

MedicineWhen to take magnesiumWhySource
Tetracycline antibiotics (doxycycline, minocycline)At least 2 hours after, or 4 to 6 hours before, the antibioticMagnesium binds the antibioticNIH fact sheet 1
Quinolone antibiotics (ciprofloxacin, levofloxacin)At least 2 hours after, or 4 to 6 hours before, the antibioticMagnesium binds the antibioticNIH fact sheet 1
Bisphosphonates, bone-strengthening drugs (alendronate, risedronate)At least 2 hours apartMagnesium lowers absorption of the bone drugNIH fact sheet 1
LevothyroxineAt least 4 hours before or after the thyroid pillBinding products such as magnesium antacids lower absorptionSynthroid US label 10
GabapentinAt least 2 hours before a gabapentin doseA 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, dolutegravirMagnesium binds the drugTivicay 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.

Sample schedules for real days

Your dayWhere magnesium fitsWhy
Levothyroxine at 6 amWith lunch or dinnerKeeps the 4-hour gap from the Synthroid label
Sleep is the goalWith dinner, or 30 to 60 minutes before bedAs in the 2025 sleep trial
ConstipationOxide split across meals, or a citrate laxative on a morning at home, short term onlyMatches the oxide trials and the citrate label's 30-minute to 6-hour window
Migraine preventionWith breakfast every day; review it with your doctor at about 3 monthsBenefit builds over months of daily use
A 7-day course of doxycycline or ciprofloxacin at 8 am and 8 pmAround 2 pm, 6 hours from each antibiotic dose, or pause magnesium for the courseKeeps the antibiotic gap from the NIH fact sheet
Shift workWith the meal before your main sleepTies magnesium to a habit that moves with your shifts

How long until it works?

GoalWhen to expect a changeBasis
Constipation, citrate laxative30 minutes to 6 hoursDrug Facts label 13
Constipation, daily oxideWithin the 28 days the trials ranMori 2019 5
SleepMeasured after the 20 days to 8 weeks the trials ranMah and Pitre 2021 2; Schuster 2025 3
Migraine preventionAbout 3 months of daily useAAN and AHS guideline, 2012 7
Refilling a low levelWeeks; your clinician decides when to recheckNIH 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.

Free, no accountRead your blood testGot a serum magnesium result beside your kidney numbers? Read every line of the report, free.Read my results
Free, no accountDrop in your lab report and see every marker explained in plain words, placed on the body, against your lab's range. It's read on your device: nothing is uploaded and nothing is kept.
Citations
  1. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals
  2. 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
  3. 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
  4. Fine KD et al. Intestinal absorption of magnesium from food and supplements. J Clin Invest 1991;88(2):396-402
  5. 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
  6. 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)
  7. 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
  8. 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
  9. Garrison SR, Korownyk CS, Kolber MR et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev 2020;9:CD009402
  10. Synthroid (levothyroxine sodium) tablets, US prescribing information, AbbVie (DailyMed)
  11. Neurontin (gabapentin), US prescribing information, Viatris (DailyMed)
  12. Tivicay (dolutegravir), US prescribing information, ViiV Healthcare (DailyMed)
  13. Magnesium citrate oral solution, saline laxative, Drug Facts label (CVS Pharmacy, DailyMed)
  14. 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.