What Not to Take With Magnesium, and What Pairs Well
The medicines to space from magnesium, the drugs that drain it, the minerals that compete with it, and the pairings with trial data behind them.
The short answer
Most problems with magnesium are about timing, not danger: it binds some medicines in the gut and stops them being absorbed. Take tetracycline and quinolone antibiotics at least 2 hours before or 4 to 6 hours after a magnesium supplement1, and keep levothyroxine 4 hours away from antacids and calcium or iron supplements2.
The real reasons not to take magnesium without a doctor are kidney disease and very high doses, because the kidneys are what clear the excess1.
Key takeaways
What medications should you not take with magnesium?
Five drug groups lose absorption when they meet magnesium in the gut, so they need spacing rather than avoidance. Magnesium binds these drugs in the gut into complexes that are poorly absorbed1. Interactions also run the other way, because magnesium and many drugs share transport pathways in the body3.
- Tetracycline and quinolone antibiotics (doxycycline, ciprofloxacin, levofloxacin): magnesium forms insoluble complexes with them, so take the antibiotic at least 2 hours before or 4 to 6 hours after the supplement1.
- Oral bisphosphonates (alendronate for osteoporosis): keep magnesium at least 2 hours away1. The alendronate label says antacids and multivalent cations interfere, and asks for at least 30 minutes after the dose before any other oral medicine4.
- Levothyroxine: the label says not to take it within 4 hours of iron and calcium supplements or antacids2.
- Gabapentin: an aluminum and magnesium hydroxide antacid cut its bioavailability by about 20%, so the label advises taking gabapentin at least 2 hours after the antacid5.
- Dolutegravir (an HIV medicine): take it 2 hours before or 6 hours after cation-containing antacids or laxatives6.
How much does timing matter?
A lot. In healthy men given 750 mg of ciprofloxacin, a magnesium and aluminum antacid taken 5 to 10 minutes earlier left only 15.1% of the usual absorption7. Two hours earlier it was 23.2%, and 4 hours earlier it was 70%7. Taking the antacid 6 hours before or 2 hours after the antibiotic had no effect7.
Supplements behave more mildly than antacids. In a crossover trial in 15 healthy adults, magnesium aspartate taken with 1 mg of levothyroxine cut its absorption by 12%, while magnesium citrate cut it by a non-significant 7%8. The authors still advise people with hypothyroidism to separate the two8.
If you take magnesium during a course of antibiotics, our guide to antibiotics and supplements covers probiotics, calcium and zinc too. If you have hypothyroidism or osteoporosis, the spacing rules above apply every day, not just during a course.
Common pain relievers such as ibuprofen are not among the examples on the NIH list of magnesium interactions1. That list gives examples rather than every drug, so ask a pharmacist about anything you take daily1.
Which medicines change your magnesium levels?
Some drugs work the other way: they lower or raise your magnesium over months, which matters more than any single dose.
- Loop and thiazide diuretics (furosemide, hydrochlorothiazide): long-term use increases magnesium loss in urine and can deplete it1.
- Potassium-sparing diuretics (amiloride, spironolactone): these reduce magnesium excretion, so magnesium can build up instead1.
- Proton pump inhibitors (omeprazole, esomeprazole, lansoprazole): taken for long periods, typically over a year, they can cause low magnesium1.
With acid reducers, supplements are not always enough. In the cases the FDA reviewed, magnesium supplements failed to raise low levels in 25% of people, who had to stop the drug1. The FDA advises checking magnesium before long-term use and periodically after1.
The size of the risk is less clear than the warnings suggest. A 2019 review of 15 observational studies in 129,347 people pooled 14 of them and found a 44% higher risk of low magnesium (RR 1.44)9. The link disappeared when outpatients and hospital patients were analysed separately, and the authors called it unclear9.
If you take an acid reducer for GERD, ask for a magnesium test rather than guessing. Our page on magnesium for deficiency covers what repletion looks like.
Can you take magnesium with blood pressure medication?
Usually yes. Calcium channel blockers such as amlodipine and diltiazem are not among the examples on the NIH list of magnesium interactions; the diuretics above are1. Because magnesium lowers blood pressure slightly, tell your prescriber you take it.
The effect is small. A 2016 meta-analysis of 34 double-blind trials in 2,028 adults found that a median 368 mg a day for 3 months lowered systolic pressure by 2.00 mmHg and diastolic by 1.78 mmHg10. The same analysis found 300 mg a day was enough to raise blood magnesium and lower pressure, and its summary does not compare magnesium forms10. The effect is too small to replace a prescription; if you take blood pressure medicine, your prescriber can watch for any extra drop.
So high blood pressure is not, by itself, a reason to avoid magnesium. Kidney disease is, and it often travels with high blood pressure. The evidence for blood pressure is on our magnesium for blood pressure page, and drug-by-drug advice is in blood pressure meds and supplements.
What vitamins and minerals should not be taken with magnesium?
The documented clashes are with other minerals, not vitamins: high-dose zinc is the clearest, iron is worth spacing, and calcium at normal doses looks fine11, 12, 13. Vitamin D and B6 are paired with magnesium in trials, covered below14, 15.
- Zinc, at high doses: in a metabolic-ward study, 142 mg a day of zinc sulfate significantly reduced magnesium absorption and balance in adult men11. In 25 postmenopausal women, 53 mg of zinc a day for 90 days also lowered magnesium balance16. A typical zinc supplement is far below the first dose, but stacked products can creep toward the second.
- Iron: in prenatal multivitamins with 60 to 65 mg of iron, women absorbed only 1.8 to 3.0 mg of iron, against 8.1 mg from iron alone12. The researchers traced this to calcium carbonate and magnesium oxide in the tablets12. If you take iron for low stores, take it apart from magnesium; see iron absorption.
- Calcium: in a small crossover study in 5 adolescent girls, raising calcium from 800 to 1,800 mg a day did not change magnesium absorption or balance13. Taking calcium with magnesium is reasonable, though the study is too small to rule out a modest effect.
The same metal-binding problem means magnesium, calcium and zinc can all reduce tetracycline absorption3. So a multimineral is the product to space from your antibiotic, not only a magnesium tablet.
What can you take with magnesium?
Vitamin D and vitamin B6 are the two pairings with trial data14, 15, and different magnesium forms combine safely within one daily limit1.
- Vitamin D: lab and animal studies suggest the enzymes that make and break down vitamin D depend on magnesium14. In a randomized trial in 180 adults aged 40 to 85, magnesium raised 25-hydroxyvitamin D when starting levels were near 30 ng/mL, but lowered it when levels started higher14. Taking the two together is sensible; expecting magnesium to fix low vitamin D is not.
- Vitamin B6: in 264 stressed adults with low blood magnesium, 300 mg of magnesium with 30 mg of B6 cut stress scores by 44.9% in 8 weeks, against 42.4% for magnesium alone, a difference that was not significant15. Only people with severe stress did better with the pair, by 24%15. Vitamin B6 adds little for most people.
- Other magnesium forms: glycinate, citrate, oxide and threonate can be taken together. The limit is the total: 350 mg a day of supplemental magnesium for adults, counting every form and any magnesium antacid or laxative1.
Food magnesium does not count toward that limit, because healthy kidneys clear the excess1; see magnesium-rich foods. To choose between forms, see magnesium glycinate vs citrate.
Who should not take magnesium supplements?
People with kidney disease should not take magnesium without their doctor's advice, because failing kidneys cannot remove the excess1.
Children have much lower limits: 65 mg a day of supplemental magnesium at ages 1 to 3 and 110 mg at ages 4 to 81. A 28-month-old boy died of magnesium toxicity after very large doses1, so keep adult products and magnesium laxatives away from children and ask a pediatrician before giving any.
Too much magnesium shows up first as diarrhea, nausea and cramping1. Carbonate, chloride, gluconate and oxide are the forms most often reported to cause diarrhea1. Toxicity is rare and mostly seen with laxatives and antacids giving over 5,000 mg a day1. Its signs include low blood pressure, vomiting, muscle weakness, difficulty breathing and an irregular heartbeat1.
Magnesium laxatives carry their own warnings. One magnesium citrate solution label provides 290 mg of magnesium per fluid ounce17. It says to ask a doctor first if you have17:
- kidney disease;
- a magnesium-restricted diet;
- abdominal pain, nausea or vomiting;
- a sudden change in bowel habits lasting over 2 weeks.
The same label says to take it 2 or more hours before or after other drugs17. If you have ulcerative colitis or another bowel condition, the laxative effect is the issue to raise with your doctor. For constipation itself, see magnesium for constipation.
Kidney disease
How do you space magnesium around your medicines?
Fix the medicine's time first, then put magnesium in the gap the label allows. One sample day, using the spacing above:
- 7 am: alendronate with plain water, at least 30 minutes before food or any other medicine4; or levothyroxine as your prescriber directs.
- Noon: calcium or a multimineral with lunch, if you take one, at least 4 hours after levothyroxine2.
- Evening: magnesium, well clear of the morning dose and at least 2 hours from the bisphosphonate1.
- On an antibiotic: follow the antibiotic spacing above, and move the magnesium if the doses collide.
Because magnesium oxide and calcium carbonate in the same tablet cut iron absorption12, it is reasonable to take iron at a different time, for example iron in the morning and magnesium at night. Our guide on when to take magnesium covers morning versus night for sleep and cramps.
Frequently Asked Questions
What 5 medications should not be mixed with magnesium?
Is there any medication you cannot take with magnesium?
Can you take magnesium while on diltiazem?
Should you not take magnesium if you have high blood pressure?
What form of magnesium do cardiologists recommend?
Can I take magnesium if I have colitis?
Can I take ibuprofen and magnesium glycinate together?
Is magnesium better taken in the morning or night?
How we researched this
We searched PubMed for reviews, trials and pharmacokinetic studies on magnesium and drug or mineral interactions, and read the NIH Office of Dietary Supplements fact sheet and five current drug labels on DailyMed. We read 11 journal records and 6 official pages, and cited all of them.
Label directions and pharmacokinetic studies came first, because spacing advice comes from them. Several mineral studies are small or decades old, and few test supplement forms such as glycinate directly. Researched and written in October 2026.
References
- National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
- DailyMed. Levothyroxine sodium tablets: prescribing information (revised August 2024), section 17 Drug-Food Interactions. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=5100c561-0028-a3c0-e063-6394a90addeb
- Gröber U. Magnesium and Drugs. Int J Mol Sci. 2019;20(9). doi:10.3390/ijms20092094
- DailyMed. Alendronate sodium tablets: prescribing information (revised February 2021), section 7.1 Calcium Supplements/Antacids. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=c23fb7fe-c6b9-4f77-bde7-992222b589d3
- DailyMed. Gabapentin capsules: prescribing information, section 7.3 Maalox (aluminum hydroxide, magnesium hydroxide). https://dailymed.nlm.nih.gov/dailymed/lookup.cfm?setid=54dc347e-cba0-ea73-e063-6294a90ab436
- DailyMed. Dolutegravir tablets: prescribing information, sections 2 and 7 (polyvalent cations). https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=807b0cd2-093c-4353-a4a5-2e1f264616ba
- Nix DE, et al. Effects of aluminum and magnesium antacids and ranitidine on the absorption of ciprofloxacin. Clin Pharmacol Ther. 1989;46(6):700-5. doi:10.1038/clpt.1989.207
- Attinger MC, et al. Single Center, Open-Label, Randomized Crossover Trial on Drug-Drug Interactions of Levothyroxine/Magnesium-Citrate and Levothyroxine/Magnesium-Aspartate in Healthy Subjects-The ThyroMag Trial. Clin Transl Sci. 2025;18(11):e70409. doi:10.1111/cts.70409
- Liao S, et al. Does the use of proton pump inhibitors increase the risk of hypomagnesemia: An updated systematic review and meta-analysis. Medicine (Baltimore). 2019;98(13):e15011. doi:10.1097/MD.0000000000015011 Our study summary.
- Zhang X, et al. Effects of Magnesium Supplementation on Blood Pressure: A Meta-Analysis of Randomized Double-Blind Placebo-Controlled Trials. Hypertension. 2016;68(2):324-33. doi:10.1161/HYPERTENSIONAHA.116.07664 Our study summary.
- Spencer H, et al. Inhibitory effects of zinc on magnesium balance and magnesium absorption in man. J Am Coll Nutr. 1994;13(5):479-84. doi:10.1080/07315724.1994.10718438
- Seligman PA, et al. Measurements of iron absorption from prenatal multivitamin--mineral supplements. Obstet Gynecol. 1983;61(3):356-62. https://pubmed.ncbi.nlm.nih.gov/6823378/
- Sojka J, et al. Magnesium kinetics in adolescent girls determined using stable isotopes: effects of high and low calcium intake. Am J Physiol. 1997;273(2 Pt 2):R710-5. doi:10.1152/ajpregu.1997.273.2.R710
- Dai Q, et al. Magnesium status and supplementation influence vitamin D status and metabolism: results from a randomized trial. Am J Clin Nutr. 2018;108(6):1249-1258. doi:10.1093/ajcn/nqy274 Our study summary.
- Pouteau E, et al. Superiority of magnesium and vitamin B6 over magnesium alone on severe stress in healthy adults with low magnesemia: A randomized, single-blind clinical trial. PLoS One. 2018;13(12):e0208454. doi:10.1371/journal.pone.0208454 Our study summary.
- Nielsen FH, et al. A moderately high intake compared to a low intake of zinc depresses magnesium balance and alters indices of bone turnover in postmenopausal women. Eur J Clin Nutr. 2004;58(5):703-10. doi:10.1038/sj.ejcn.1601867
- DailyMed. Magnesium citrate oral solution (saline laxative): drug facts label, Warnings and Directions. https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=4e6a64a0-e453-709b-e063-6294a90a7443
Continue Reading
All articlesFoods High in Phosphorus: Amounts and Swaps
Seeds, canned fish, liver, dairy and beans top the list. See phosphorus per serving, hidden phosphate additives and low-phosphorus swaps for kidney disease.
Collagen-Rich Foods: What to Eat and What Works
Collagen is only in animal connective tissue: gelatin, bone broth, tough cuts and fish skin. Amounts per serving, vitamin C foods and when supplements help.
Can You Mix Creatine With Protein Shakes?
Yes, creatine mixes fine with a protein shake. Trials of the pair, which drinks work, carbs, caffeine, other stacks and who should check with a doctor first.