Can I take magnesium with antibiotics?
Short answer: Not together with doxycycline or quinolone antibiotics: the quinolone labels each set their own gap, the doxycycline label names magnesium antacids but gives none, and NIH says magnesium can form insoluble complexes with them.
Not at the same time as doxycycline or quinolone antibiotics. Magnesium is on the doxycycline label, which names magnesium antacids but gives no gap. The ciprofloxacin, levofloxacin and moxifloxacin labels each set a different gap around magnesium; each is quoted in full below. NIH says magnesium can form insoluble complexes with these antibiotics.
How well documented: On the drug’s label. The medicine’s FDA-approved label names this supplement, or the kind of product it is.
What's known
- Doxycycline label. The doxycycline hyclate tablets label says: "Absorption of tetracyclines is impaired by antacids containing aluminum, calcium, or magnesium, and iron-containing preparations." It names magnesium antacids, not magnesium supplements, and gives no gap. (Doxycycline label)
- Quinolone labels. The Cipro (ciprofloxacin) Medication Guide says: "Take CIPRO Tablets and Oral Suspension either 2 hours before or 6 hours after taking these medicines, vitamins, or supplements:" and lists "an antacid, multivitamin, or other medicine or supplements that has magnesium, calcium, aluminum, iron, or zinc.", "sucralfate (Carafate®)." and "didanosine (Videx®, Videx EC®)." The levofloxacin label says: "While the chelation by divalent cations is less marked than with other fluoroquinolones, concurrent administration of levofloxacin tablets with antacids containing magnesium, or aluminum, as well as sucralfate, metal cations such as iron, and multivitamin preparations with zinc may interfere with the gastrointestinal absorption of levofloxacin, resulting in systemic levels considerably lower than desired." It also says: "Antacids containing magnesium, or aluminum, as well as sucralfate, metal cations such as iron, and multivitamin preparations with zinc or didanosine should be taken at least two hours before or two hours after oral levofloxacin administration." The moxifloxacin label says: "Inform patients that moxifloxacin tablets should be taken at least 4 hours before or 8 hours after multivitamins (containing iron or zinc), antacids (containing magnesium or aluminum), sucralfate, or didanosine buffered tablets for oral suspension or the pediatric powder for oral solution." (Cipro label; levofloxacin label; moxifloxacin label)
- NIH fact sheet. NIH's Office of Dietary Supplements says: "Magnesium can form insoluble complexes with tetracyclines, such as demeclocycline (Declomycin) and doxycycline (Vibramycin), and with quinolone antibiotics, such as ciprofloxacin (Cipro) and levofloxacin (Levaquin). These antibiotics should be taken at least 2 hours before or 4 to 6 hours after a magnesium-containing supplement." At its low end, the gap it gives after a supplement is shorter than the gaps in both the Cipro Medication Guide and the moxifloxacin label. (NIH ODS)
What to do
- Magnesium limits: the upper limit for adults from supplements is 350 mg a day, and diarrhoea is the usual first sign of too much. In a case series of 4 elderly people with constipation who took magnesium oxide as a laxative, high blood magnesium with symptoms developed and 1 died; kidney disease and older age are the risk factors, so check any magnesium laxative or supplement with your doctor if either applies to you.
- The timing differs by antibiotic; each label's own gap is quoted above with its link.
- NIH's Office of Dietary Supplements says: "Tell your doctor, pharmacist, and other health care providers about any dietary supplements and prescription or over-the-counter medicines you take." (NIH ODS)
- Don't stop or change a prescribed medicine on your own.
Related pages
Sources
- US National Library of Medicine. Doxycycline hyclate tablets (Alembic): prescribing information. DailyMed, revised August 2026. DailyMed
- US National Library of Medicine. Cipro (ciprofloxacin) tablets and oral suspension: prescribing information and Medication Guide. DailyMed, revised March 2026. DailyMed
- US National Library of Medicine. Levofloxacin tablets (Chartwell): prescribing information. DailyMed, revised June 2026. DailyMed
- US National Library of Medicine. Moxifloxacin tablets (Aurobindo): prescribing information. DailyMed, revised September 2025. DailyMed
- National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. NIH ODS
- National Institutes of Health, Office of Dietary Supplements. Magnesium: Fact Sheet for Consumers. NIH ODS