Doxycycline and Magnesium: Can You Take Them Together?

Moderate — Timing Mattersabsorption
Evidence-gradedLast reviewed June 1, 2026Source: FDA Doryx (doxycycline) Prescribing Information
Learn about each ingredient:DoxycyclineMagnesium

Quick answer

Magnesium ions chelate doxycycline in the gastrointestinal tract, forming an insoluble complex that markedly reduces antibiotic absorption. Magnesium-containing antacids and supplements can lower doxycycline bioavailability by up to 90 percent.

Take doxycycline at least 2 hours before or 2 to 4 hours after magnesium supplements or magnesium-containing antacids. This includes magnesium oxide, citrate, glycinate, and hydroxide (milk of magnesia).

What happens when you take doxycycline with magnesium?

Doxycycline is a tetracycline antibiotic widely prescribed for acne, rosacea, Lyme disease, sexually transmitted infections, respiratory infections, and malaria prophylaxis. Magnesium is one of the most popular mineral supplements, used for sleep, muscle cramps, constipation, anxiety, and migraine prevention. When the two are taken close together, magnesium binds to doxycycline in the gut and prevents the antibiotic from being absorbed.

The mechanism is cation chelation. Doxycycline contains chemical groups that act as a clamp for divalent and trivalent metal ions. Magnesium (Mg2+) is a divalent cation and slots neatly into those binding sites. The result is an insoluble doxycycline-magnesium complex that the intestinal lining cannot transport. Both the antibiotic and the magnesium are then passed through and excreted.

FDA prescribing information for doxycycline products warns that absorption can be reduced by up to 90 percent when the drug is taken with antacids containing aluminum, calcium, or magnesium. Magnesium hydroxide (milk of magnesia) is especially problematic because it is alkaline and also raises gastric pH, which independently affects doxycycline dissolution. Other magnesium salts found in supplements (magnesium oxide, citrate, glycinate, malate, threonate, lactate, sulfate) all participate in chelation, although the magnitude varies somewhat by salt form.

Why is this important?

Antibiotics work only when blood concentrations stay above the minimum inhibitory concentration (MIC) for the bacteria being treated. A 90 percent reduction in absorbed dose is the difference between effective treatment and effectively no treatment. Sub-therapeutic levels mean:

First, treatment failure. The infection is not cleared, symptoms persist, and you may end up needing a second course of antibiotics. For time-sensitive infections like early Lyme disease or chlamydia, an inadequate first course can lead to progression and complications.

Second, antimicrobial resistance. Bacteria exposed to sub-MIC antibiotic concentrations have an ideal environment to develop resistance. Resistance can develop within a single under-dosed course and then spread between people. This is a personal problem and a public health problem.

Third, masking symptoms without curing the infection. Doxycycline at low levels may suppress symptoms enough to feel improvement, while the underlying pathogen continues to replicate. This delays appropriate care.

Magnesium itself is also less absorbed when chelated, so the supplement is also partly wasted. If you take magnesium for sleep or muscle cramps, you may not get the full effect when paired with doxycycline.

What should you do?

Separate doxycycline and magnesium-containing products by at least 2 hours before or 2 to 4 hours after the antibiotic. A practical schedule for someone on twice-daily doxycycline (100 mg every 12 hours) is to take the antibiotic with breakfast and dinner, take magnesium at bedtime (especially useful since magnesium often improves sleep), and avoid magnesium at lunch.

If you are on once-daily doxycycline, take the antibiotic at one fixed time and put magnesium on the opposite end of the day. For example, doxycycline at 8 AM, magnesium at 9 PM or later.

Be careful with combination antacids. Many over-the-counter antacids (Maalox, Mylanta, Gaviscon, Rolaids) contain magnesium hydroxide along with aluminum hydroxide or calcium carbonate. Do not take any antacid within 2 hours of your doxycycline dose. If you have heartburn, use a non-cation antacid like famotidine (Pepcid) or pantoprazole, or simply wait until your antibiotic absorption window has passed.

Laxatives are another common source of magnesium. Milk of magnesia (magnesium hydroxide) and magnesium citrate solutions used for constipation or bowel prep will chelate any doxycycline in the gut. Schedule them well away from antibiotic doses.

If you take magnesium for migraine prevention or restless legs, do not stop the supplement during your antibiotic course. Just separate the timing. Two weeks of well-spaced dosing will not undo your magnesium regimen.

Which specific products are affected?

Common magnesium supplements that interact include Natural Vitality Calm, Nature Made Magnesium, Doctor's Best High Absorption Magnesium, NOW Foods Magnesium Citrate, Pure Encapsulations Magnesium Glycinate, Thorne Magnesium Bisglycinate, BioSchwartz Magnesium, and Mag07 oxygenated magnesium. Magnesium-based laxatives include Phillips' Milk of Magnesia, Magnesium Citrate Oral Solution, and Epsom salt taken orally.

Magnesium-containing antacids and combo products include Maalox, Mylanta, Gaviscon, Rolaids Multi-Symptom, and several store-brand equivalents. Many multivitamins and prenatal vitamins also contain 100 to 400 mg of magnesium and will partially interact.

Doxycycline products include Vibramycin, Doryx, Oracea, Acticlate, Adoxa, and Monodox. All formulations (hyclate, monohydrate, calcium) and all delivery forms (capsule, tablet, delayed-release tablet, oral suspension) are affected.

The bottom line

Magnesium and doxycycline form an insoluble chelate that can reduce antibiotic absorption by up to 90 percent according to the FDA label. Always separate doses by at least 2 hours, and ideally 4 hours when possible. Take doxycycline first, wait the window, then take magnesium. Pay special attention to magnesium-containing antacids and laxatives, which are often overlooked sources of the interaction. Check your multivitamin and prenatal vitamin labels.

References

Primary evidence for this article. Always consult your healthcare provider for personal medical advice.

Disclaimer: This article is for informational purposes only and is not a substitute for professional medical advice. Always consult your healthcare provider before making changes to your supplement or medication routine. Pilora does not diagnose, treat, cure, or prevent any disease.

Check all your supplement interactions instantly

Try Pilora Free