Yes, several common medications can lower magnesium levels, most notably acid-reducing drugs called proton pump inhibitors (PPIs), and also some diuretics ("water pills"), certain cancer drugs, and some antibiotics. For most people the effect is small, but in some it becomes a real problem.
Medications linked to low magnesium
The evidence is stronger for some of these than others:
- Proton pump inhibitors (PPIs), such as omeprazole or esomeprazole. Regulators like the US FDA have warned that long-term use (usually a year or more) can occasionally cause low blood magnesium. This is well documented, though it affects a minority of users.
- Loop and thiazide diuretics, such as furosemide or hydrochlorothiazide. They make the kidneys pass more magnesium in urine. This is well established.
- Some cancer drugs, such as cisplatin and cetuximab, which can cause the kidneys to waste magnesium.
- Certain antibiotics and antifungals, such as aminoglycosides (for example gentamicin) and amphotericin B, usually given in hospital.
- Immune-suppressing drugs such as tacrolimus and cyclosporine, used after organ transplants.
Other things, such as heavy alcohol use, poorly controlled diabetes, and ongoing diarrhea, can also lower magnesium, and they can add to a drug's effect.
Signs to watch for
Mild low magnesium often causes no symptoms and is only found on a blood test. When it is more significant, people may notice:
- Muscle cramps, twitches or weakness
- Fatigue
- Tingling or numbness
- In serious cases, irregular heartbeat or seizures
Low magnesium can also lead to low potassium and calcium, which is one reason doctors take it seriously. Note that a standard blood test measures only a small share of the body's magnesium, so mild shortfalls can be missed.
Food can help, but it isn't a substitute for medical advice
Eating magnesium-rich foods supports your intake. These USDA figures are per 100 g:
| Food | Magnesium (per 100 g) | Typical serving |
|---|---|---|
| Pumpkin seeds (dried) | 592 mg | 1 cup (129 g) |
| Almonds | 270 mg | 1 oz (28 g) |
| Spinach (raw) | 79 mg | 1 cup (30 g) |
| Black beans (cooked) | 70 mg | 1 cup (172 g) |
Working that out per serving, an ounce of almonds gives roughly 76 mg, a cup of cooked black beans about 120 mg, and a cup of raw spinach about 24 mg. Pumpkin seeds are very rich, but a full cup is a lot of seeds, so a small handful is more realistic.
Diet alone may not fix a drug-induced shortage, because the problem is often that the body is losing or not absorbing magnesium, not that you aren't eating enough.
What to do
Don't stop a prescribed medication on your own. If you take one of the drugs above long-term and have symptoms such as cramps, palpitations or unusual weakness, talk with your doctor or pharmacist. They can check your magnesium level, review whether you still need the drug or the dose, and advise on supplements. Magnesium supplements can interact with some medicines (including certain antibiotics and osteoporosis drugs) and are risky for people with kidney disease, so ask a professional before starting one.