Two different problems get called the same thing. Only one of them is solved by taking them hours apart.
The short answer. Magnesium interacts with medications in two different ways. In some cases magnesium interferes with a drug's absorption, and separating the doses by a few hours helps. In other cases the medication changes how much magnesium your body holds on to or loses — and taking the two at different times does nothing about that. Almost every article on this subject treats both as the same problem. They are not.
Which medications should be separated from magnesium?
These are the cases where magnesium can get in the way of the drug. The mechanism is physical: magnesium binds the drug in the gut, and what is bound is not absorbed. Put time between them and the problem largely goes away.
Oral bisphosphonates, such as alendronate, are taken for osteoporosis. NIH's Office of Dietary Supplements notes that magnesium-rich supplements or medications can decrease their absorption, and that taking magnesium at least two hours before or after the bisphosphonate can minimize the interaction.
Tetracycline antibiotics, such as doxycycline and demeclocycline, and quinolone antibiotics, such as ciprofloxacin and levofloxacin. Magnesium can form insoluble complexes with all of these. ODS advises taking these antibiotics at least two hours before, or four to six hours after, a magnesium-containing supplement.
Notice which direction the harm runs. In both cases the thing being reduced is the medication, not the magnesium. That is what makes timing the fix.
Which medications can change your magnesium levels?
Here the direction reverses, and the fix does not work.
Loop and thiazide diuretics. ODS notes that chronic treatment with loop diuretics such as furosemide and bumetanide, and thiazide diuretics such as hydrochlorothiazide, can increase the loss of magnesium in urine and lead to magnesium depletion. Potassium-sparing diuretics, such as amiloride and spironolactone, do the opposite and reduce magnesium excretion.
Proton pump inhibitors. Prescription PPIs, such as esomeprazole and lansoprazole, can cause low blood magnesium when taken for prolonged periods, typically more than a year. This one has an FDA safety communication behind it. In the cases FDA reviewed, magnesium supplements often raised the low levels — but in about a quarter of them the supplements did not work and the patient had to stop the PPI. FDA advises health care professionals to consider measuring serum magnesium before starting long-term PPI treatment, and to check it periodically afterwards.
That last detail is the reason this section exists. If a medication is increasing the amount of magnesium you lose, no amount of rescheduling changes it, and in some cases taking more magnesium does not either. It is a conversation with a prescriber, not a timing problem.
What about levothyroxine?
This is the question we were asked most while researching this article, and the honest answer has an edge to it.
Levothyroxine is prescribed to hold your thyroid hormone at a specific level, and its label says plainly that it has a narrow therapeutic index — how much of each dose you absorb matters. The prescribing information tells patients that iron supplements, calcium supplements and antacids can decrease absorption, and instructs them not to take levothyroxine within four hours of those agents.
Two things about that instruction repay a close reading.
First, a standalone magnesium supplement is not one of the agents named. Magnesium appears on the label as an ingredient of antacids — aluminum and magnesium hydroxides — not as a supplement in its own right.
Second, the label attributes the antacid effect to stomach acidity rather than to binding. In its interaction table, antacids, sucralfate and proton pump inhibitors are grouped together as products that raise gastric pH and reduce absorption that way. The explicit four-hour instruction in that table belongs to a different row: the phosphate binders and the resins, which work by binding the drug.
So the popular reasoning — magnesium behaves like calcium and iron in the gut, therefore the same four-hour rule applies — is not the mechanism the label gives for the magnesium-containing products it does name. That reasoning is not unreasonable. It is still reasoning, not what the label establishes.
We are not going to tell you there is no interaction, and we are not going to invent a rule the label does not contain. Taking magnesium later in the day, away from a morning thyroid dose, may be a simple way to avoid the overlap entirely. Whether that schedule is right for your prescription is a question for your pharmacist or prescriber, and you should not change the timing of a prescription medication on the strength of an article — including this one.
What about high-dose zinc?
Not a medication, but it comes up. ODS cites one study in which very high doses of zinc from supplements — 142 mg per day — interfered with magnesium absorption and disrupted magnesium balance in the body. One study, at a dose far higher than most people take. Worth knowing if you take a large zinc supplement; not a reason to worry about a multivitamin.
What does "spacing" actually mean?
Two hours. Four to six hours. Where do those numbers come from?
They are the guidance ODS reports, and ODS in turn cites a clinical reference database rather than a trial designed to measure the right gap. No study established that four hours is correct and three is not. The numbers are practical margins, chosen to be comfortably longer than the window in which the two would meet in the gut.
That is worth saying plainly, because it changes how you should treat them. They are not precision instructions. If your pharmacist gives you a different interval for your particular medication, follow your pharmacist.
What if your kidneys don't work normally?
The kidneys are the main route by which the body removes magnesium it does not need. ODS notes that the risk of magnesium toxicity increases when kidney function is impaired or has failed, because the ability to clear the excess is reduced or lost.
This matters here more than it might look. Several of the medications above — long-term diuretics in particular — are prescribed to people who also have reduced kidney function. If that describes you, talk to your healthcare professional before taking a magnesium supplement at all.
What this does not tell you
- It does not tell you that spacing fixes every magnesium–medication interaction. For diuretics and PPIs, it fixes nothing.
- It does not establish that standalone magnesium supplements interact with levothyroxine the way magnesium-containing antacids do — and the label's own mechanism for those antacids is stomach acidity, not binding.
- It does not give you the right interval for your medication. The intervals above are general guidance, not a prescription.
- It does not cover every medication that interacts with magnesium. ODS gives these as examples, not as a complete list.
- It does not replace the instructions that came with your prescription.
Before you act on any of this
This article is general education. It is not a substitute for the instructions from your prescriber or pharmacist, and it is not a reason to change, stop, or reschedule a prescription medication. If anything here applies to you, that is a reason to ask a professional who can see your full medication list — not a reason to adjust something yourself.
Sources
- Office of Dietary Supplements, National Institutes of Health. Magnesium — Fact Sheet for Health Professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
- U.S. Food and Drug Administration. FDA Drug Safety Communication: Low magnesium levels can be associated with long-term use of Proton Pump Inhibitor drugs (PPIs). March 2, 2011. https://www.fda.gov/drugs/drug-safety-and-availability/fda-drug-safety-communication-low-magnesium-levels-can-be-associated-long-term-use-proton-pump
- DailyMed, U.S. National Library of Medicine. SYNTHROID (levothyroxine sodium) tablets — full prescribing information, AbbVie Inc., revised 2/2024. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=1e11ad30-1041-4520-10b0-8f9d30d30fcc