Search "best time to take magnesium" and you will get a confident answer: night, for sleep. That answer is not wrong, exactly. It is just answering the wrong question. Most people who feel that magnesium "doesn't work" or that it "wrecked their stomach" have not made a timing mistake — they have bought the wrong form, or they are taking it in the same mouthful as a medicine it binds to. This page deals with those two problems first, and then tells you the truth about the clock.

The short answer

Magnesium works best when it is taken consistently, and the hour on the clock is not what determines whether it works. Evening has a plausible rationale if sleep or night cramps are your reason, and it is a sensible default — but the effect is modest and the evidence is thin, so 9pm is not a magic window. What genuinely changes outcomes is separation from certain medicines: magnesium binds levothyroxine, tetracyclines (doxycycline, minocycline) and quinolones (ciprofloxacin, levofloxacin) in the gut and reduces how much of the drug you absorb. Standard advice is to keep roughly four hours between them. And if magnesium is giving you loose stools, that is almost certainly the form, not the timing.

Why the form matters more than the hour

"Magnesium" on a label is never elemental magnesium metal — it is magnesium bound to something else (an amino acid, an organic acid, an oxide). That partner determines three things: how much magnesium is in the pill, how much of it you actually absorb, and how much stays in your gut pulling water in behind it. The last one is why cheap magnesium gives people diarrhoea.

Magnesium oxide is the extreme case. It is roughly 60% elemental magnesium by weight, which looks great on a label, but its bioavailability is poor. The comparative studies point the same way: Lindberg and colleagues found magnesium citrate more bioavailable than the oxide, and Firoz and Graber, testing US commercial preparations, found magnesium chloride, lactate and aspartate all absorbed substantially better than magnesium oxide. The magnesium that is not absorbed stays in the bowel and works osmotically. That is not a side effect: it is the mechanism by which magnesium oxide and magnesium hydroxide (milk of magnesia) are sold as laxatives. If your supplement is a large, cheap oxide tablet and you are wondering why you are in the bathroom, you have your answer.

Common magnesium forms: absorption, tolerability, and what each is genuinely used for
Form Absorption Gut tolerability What it is actually used for Honest verdict
Glycinate / bisglycinate Good; chelated to the amino acid glycine Best tolerated of the common forms; least laxative General repletion, sleep, anxiety, cramps The usual choice when someone wants magnesium without bowel effects. Glycine itself is mildly calming, which may add to the effect.
Citrate Well absorbed — one of the better-studied organic salts Mildly laxative, dose-dependent Repletion; deliberately used for constipation Excellent value. A feature if you are constipated, a nuisance if you are not.
Oxide Poor — much of the dose is not absorbed Frequently laxative Laxative and antacid use; the filler in most cheap supplements High elemental content on the label, low delivery to you. Effective as a laxative, a poor way to correct a low intake.
Malate Reasonable (organic salt) Generally well tolerated Marketed for muscle pain and fatigue A perfectly acceptable form. The specific fibromyalgia and energy claims rest on small, old, unconvincing studies.
L-threonate Good; marketed on the basis of raising brain magnesium Well tolerated; low elemental content per capsule Sold for memory, focus, "brain fog" Weak evidence. The cognition story comes from rodent work; the human trials are small, short and largely industry-funded. Expensive. Not a lie, but not proven either.
Sulfate (Epsom salts) Absorbed if swallowed; transdermal absorption is not well demonstrated Strongly laxative if taken orally Baths; oral and intravenous use in medical settings Weak evidence for the "absorb it through your skin" claim. The bath may still relax you. It is not a reliable way to raise your magnesium.
Chloride, lactate, aspartate Good (organic and soluble salts) Moderate General repletion Fine, less commonly stocked. No particular advantage over glycinate or citrate.

If you want the longer version of this comparison, we go deeper in magnesium forms compared and specifically on magnesium glycinate.

So does taking magnesium at night actually help you sleep?

There is a real mechanism to point at. Magnesium is a cofactor in hundreds of enzyme reactions and modulates NMDA and GABA-A receptor activity — the same GABAergic system that most sedatives act on. That makes the sleep hypothesis biologically reasonable rather than invented.

The trial evidence is much less impressive than the marketing. The most-cited synthesis — a 2021 systematic review and meta-analysis of oral magnesium for insomnia in older adults (Mah and Pitre, BMC Complementary Medicine and Therapies) — found only three randomised trials in 151 people. Pooled, magnesium shortened the time taken to fall asleep by about 17 minutes versus placebo; total sleep time increased by about 16 minutes, which was not statistically significant. The authors graded the certainty of that evidence as low to very low, with the trials at moderate-to-high risk of bias, and concluded that the literature is not strong enough for physicians to make well-informed recommendations. That is an honest "possible small benefit", not "magnesium is a sleep aid".

Practically: if sleep, restless legs or night cramps are the reason magnesium is on your shelf, evening is a rational time to take it and there is no downside. If the reason is a low dietary intake, migraine prevention, or bowel regularity, the time of day is close to irrelevant. See magnesium for sleep for the full evidence review, and best sleep supplements if you are comparing options.

The timing rules that genuinely matter: interactions

This is the part that changes outcomes, and it is the part most articles bury.

  • Levothyroxine. Magnesium — like calcium and iron — binds levothyroxine in the gut and reduces its absorption. Levothyroxine has a narrow therapeutic window, so a chronic absorption hit can show up as a drifting TSH and returning hypothyroid symptoms. Standard practice is to separate the two by about four hours; levothyroxine in the morning on an empty stomach and magnesium later in the day is how most people manage it. More detail: levothyroxine and supplements.
  • Tetracycline antibiotics (doxycycline, minocycline, tetracycline) and quinolones (ciprofloxacin, levofloxacin, moxifloxacin). Magnesium chelates these drugs and can substantially reduce the antibiotic level you achieve — a real problem when you are treating an infection. Product labelling commonly advises taking the antibiotic two hours before, or four to six hours after, magnesium-containing products. Follow the specific instruction that came with your prescription, and ask the pharmacist if it is not clear.
  • Bisphosphonates (alendronate, risedronate) for osteoporosis: the same chelation problem. These are taken first thing on an empty stomach, and magnesium-containing products are kept well away from them.
  • Gabapentin and some other drugs also show reduced absorption when taken with magnesium-containing antacids.
  • Kidney disease. Magnesium is cleared by the kidneys. If kidney function is reduced, supplemental magnesium can accumulate to genuinely dangerous levels. This is an "ask your clinician first" situation, not a "start low and see" one.

Run your own list through our interaction checker before adding magnesium to anything you already take, and see vitamins you should not take together for the wider picture.

Should you split the dose?

Often, yes — and it is the single most useful trick when magnesium upsets the gut. Absorption of magnesium is fractional and saturable: the percentage absorbed falls as the single dose rises. A large single dose therefore delivers proportionally less magnesium to you and leaves proportionally more unabsorbed magnesium sitting in the bowel drawing in water. Two smaller amounts spread across the day usually absorb better and are far gentler than one big one.

Taking magnesium with food also improves tolerability for most people, at some small cost to how fast it is absorbed. Magnesium is not a nutrient where speed matters, so food is a reasonable trade.

How much is too much? The upper limit only applies to supplements

This distinction trips people up constantly. The Tolerable Upper Intake Level (UL) for magnesium set by the US Institute of Medicine — and used by the NIH Office of Dietary Supplements — is 350 mg per day for adults, and it applies only to magnesium from supplements and medications, not to magnesium from food and drink. There is no upper limit on food magnesium, because healthy kidneys excrete the excess from dietary sources without difficulty. Pumpkin seeds, spinach, black beans and dark chocolate are not a route to a magnesium problem.

The UL is not a safety cliff, and it is not a target: it is the level above which supplemental magnesium reliably starts causing diarrhoea. Higher doses are used clinically in specific situations (bowel preparation, eclampsia, some migraine protocols) under supervision. The recommended intake for adult women is in the region of 310–320 mg a day from all sources — which many women in Western countries do not reach from food alone. If your diet already gets you close, a large supplement mostly buys you a laxative. We cover the overdose end of this in too much magnesium.

Who is actually at risk of running low?

Real magnesium depletion is not a wellness abstraction — it clusters in identifiable groups:

  • Long-term proton pump inhibitor users. In a Drug Safety Communication dated 2 March 2011, the FDA reported hypomagnesaemia in people taking prescription PPIs for at least three months — in most cases longer than a year — occasionally severe enough to cause tetany, arrhythmia or seizures. In roughly a quarter of the reviewed cases, magnesium supplementation alone did not correct the level and the PPI had to be stopped as well. The FDA judged the risk very low for over-the-counter PPIs used as directed for 14 days; this is a long-term, prescription-use problem.
  • Type 2 diabetes. Higher glucose loads increase urinary magnesium loss.
  • Chronic alcohol use. Increased renal wasting plus poorer intake.
  • GI disease — Crohn's, coeliac disease, chronic diarrhoea, bowel resection — where absorption is impaired.
  • Loop and thiazide diuretics, which increase magnesium excretion.
  • Older adults, who absorb less and excrete more.

Symptoms of depletion are non-specific and easy to attribute to something else: muscle cramps, twitching, fatigue, poor sleep, low mood. See magnesium deficiency symptoms.

Why a "normal" magnesium blood test does not mean much

This is the most under-told fact on this page. Serum magnesium is a poor test of your body's magnesium stores. Less than about 1% of the body's magnesium is in blood at all — the rest sits in bone and inside cells — and the body defends the blood level tightly, pulling magnesium out of bone and tissue to hold the serum concentration steady. You can be meaningfully depleted at the tissue level and still have a perfectly normal serum magnesium result. The NIH Office of Dietary Supplements says as much plainly: assessing magnesium status is difficult, and no single simple blood test is considered satisfactory.

The practical consequence cuts both ways. A normal magnesium on a routine panel does not rule out depletion — and it also does not justify supplementing forever "just in case". Clinical context — your medications, your gut, your intake, your symptoms — carries more weight than the number. If you are trying to interpret a panel, our lab results explainer may help.

Putting it together

  1. Form first. Glycinate is the gentlest general-purpose option and the one usually chosen for sleep or anxiety. Citrate is well absorbed and good value, with a mild laxative effect that is welcome only if you are constipated. Oxide is the cheap filler and behaves mostly as a laxative.
  2. Timing second. Evening is a fine default; morning works too. What matters is that it is a time that will not be forgotten, because consistency is what raises tissue stores.
  3. Tolerability. Food helps. Splitting the day's magnesium into two smaller amounts helps more.
  4. The four-hour wall. Magnesium is kept away from levothyroxine, bisphosphonates, and tetracycline or quinolone antibiotics.
  5. Patience. Repleting tissue magnesium is slow. If nothing has changed after six to eight weeks of consistent use, magnesium probably was not the problem.

When to talk to a clinician

Magnesium is not a supplement to self-manage — and a doctor, rather than a supplement, is the right next step — if any of these apply:

  • You have reduced kidney function or are on dialysis. Supplemental magnesium can accumulate dangerously. This needs medical direction, full stop.
  • You take levothyroxine and your TSH has drifted, or your symptoms have returned. Do not adjust a thyroid dose yourself; tell your prescriber what supplements you take and when.
  • You have heart-rhythm problems, or take digoxin or diuretics — the FDA specifically flags these as reasons for a clinician to check magnesium levels.
  • You have persistent muscle cramps, twitching, numbness, palpitations, or seizures. These can reflect a genuine electrolyte disturbance and need testing, not a supplement.
  • You have been on a PPI for more than a year and have any of those symptoms — a specific, recognised risk worth raising at your next appointment.
  • You have diarrhoea that persists after a change of form and a split dose.
  • You are pregnant or breastfeeding, or you take prescription medication of any kind and are unsure about the overlap.

Nothing here is a dose instruction, or a reason to start, stop or change any medication or supplement. That is a conversation with your own clinician, who can see your kidney function, your prescriptions and your labs.

The bottom line

The best time to take magnesium is the time it actually gets taken, day after day. Evening is a reasonable, mechanistically defensible default if sleep is the goal, but the trial evidence behind it is weak enough that expectations should stay modest. The decisions that pay are the other ones: the form on the label rather than the hour on the clock, food and split doses if the gut objects, the 350 mg supplemental ceiling, food sources eaten freely, and four hours between magnesium and a thyroid tablet or an antibiotic. That is the whole of the useful advice — everything else is packaging.

More from our supplements section: magnesium for anxiety, calcium vs magnesium, and magnesium for menopause.