The headline “NEVER use magnesium if you are taking…” is too absolute. Magnesium supplements can interact with certain medicines, but many interactions can be managed by separating doses rather than avoiding magnesium altogether. The risk also depends on the type and dose of magnesium and your kidney function. (Office of Dietary Supplements)
Here’s a more accurate version:
Never Take Magnesium With These Medications Without Checking First
Magnesium is an essential mineral found in foods such as nuts, seeds, beans and leafy green vegetables. Magnesium supplements can be useful when a deficiency exists, but they aren’t automatically safe for everyone—particularly when combined with certain medications.
The biggest concern is that magnesium can reduce the absorption of some medicines, while other medications can affect magnesium levels in the body.
1. Certain antibiotics
Magnesium can bind to some antibiotics in the digestive tract, making them harder for your body to absorb.
This includes doxycycline and other tetracycline antibiotics, as well as ciprofloxacin and levofloxacin, which belong to the quinolone family. NIH guidance recommends separating these medicines from magnesium supplements—typically taking the antibiotic at least 2 hours before magnesium or waiting 4–6 hours afterward, depending on the drug. (Office of Dietary Supplements)
2. Oral bisphosphonates
Medicines such as alendronate, used to treat osteoporosis, may not be absorbed properly when taken too close to magnesium.
NIH guidance recommends taking magnesium-containing supplements or medicines at least 2 hours before or after an oral bisphosphonate. (Office of Dietary Supplements)
3. Diuretics (“water pills”)
Diuretics can affect magnesium levels, but the effect depends on the specific drug.
Loop and thiazide diuretics can increase magnesium loss through urine, potentially contributing to deficiency. Potassium-sparing diuretics such as amiloride and spironolactone can reduce magnesium excretion. (Office of Dietary Supplements)
This doesn’t mean you should automatically avoid magnesium if you take a diuretic. Your healthcare professional can determine whether supplementation is appropriate.
4. Proton-pump inhibitors
Long-term use of proton-pump inhibitors (PPIs), including some medicines used for acid reflux, can sometimes cause low blood magnesium.
Interestingly, this is not necessarily a reason to avoid magnesium. In some people, supplementation can help correct the deficiency. However, some cases don’t respond adequately to supplementation and require medical reassessment of the PPI treatment. (Office of Dietary Supplements)
5. Magnesium-containing antacids and laxatives
Remember that magnesium isn’t found only in dietary supplements. Some antacids and laxatives also contain magnesium, so you can accidentally consume more magnesium than you realize.
Taking excessive amounts can cause diarrhea, nausea and abdominal cramping. Extremely high magnesium levels can cause low blood pressure, breathing problems, irregular heartbeat and potentially cardiac arrest. (Office of Dietary Supplements)
Who needs extra caution?
People with kidney disease need particular care. Healthy kidneys normally remove excess magnesium, but impaired kidney function can allow magnesium to accumulate in the blood. (MedlinePlus)
Older adults and anyone taking multiple medications should also have their complete medication and supplement list reviewed by a pharmacist or doctor.
Don’t confuse food magnesium with supplements
The interaction concerns discussed above primarily involve magnesium supplements or magnesium-containing medicines.
Magnesium naturally present in food is not subject to the NIH’s 350-mg-per-day upper limit for supplemental magnesium. That upper limit applies to magnesium from dietary supplements and medications for adults, not magnesium naturally occurring in food. (Office of Dietary Supplements)
The bottom line
You don’t necessarily have to stop magnesium simply because you take prescription medication.
The important question is which medication, which magnesium product, what dose, and when you take them.
If you take antibiotics such as doxycycline or ciprofloxacin, an oral osteoporosis medicine such as alendronate, a diuretic, or long-term acid-reducing medication, ask your pharmacist or doctor how to time magnesium safely.
Never change or stop a prescribed medicine without medical advice.
For publication, I’d recommend replacing “NEVER” with “Don’t Take Magnesium at the Same Time as These Medications”—it’s more accurate and less likely to scare readers into unnecessarily stopping a useful supplement or prescribed treatment.
