What medications can cause hypomagnesemia and hypokalemia?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 22, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Medications That Cause Hypomagnesemia and Hypokalemia

Loop diuretics and thiazide diuretics are the primary medication classes that cause both hypomagnesemia and hypokalemia, with thiazides having a stronger association with hypomagnesemia while both significantly affect potassium levels. 1, 2

Diuretics

Loop Diuretics

  • Furosemide, bumetanide, and torasemide can cause hypokalemia and hypomagnesemia through increased urinary excretion of these electrolytes 3
  • Loop diuretics are associated with more significant hypokalemia than hypomagnesemia, particularly with higher doses and prolonged use 1
  • Risk factors for electrolyte depletion with loop diuretics include:
    • Brisk diuresis
    • Restricted salt intake
    • Presence of cirrhosis
    • Concomitant use of corticosteroids or ACTH 1

Thiazide Diuretics

  • Hydrochlorothiazide, metolazone, and indapamide are strongly associated with both hypokalemia and hypomagnesemia 3
  • Thiazide diuretics are more strongly associated with hypomagnesemia than loop diuretics 4
  • Long-term thiazide use (>390 days) significantly increases the risk of hypomagnesemia with an odds ratio of 2.74-3.14 4
  • Chlorthalidone has a higher risk of causing hypokalemia compared to hydrochlorothiazide (hazard ratio 3.06) 5

Other Medications

Proton Pump Inhibitors (PPIs)

  • Esomeprazole, pantoprazole, omeprazole, and rabeprazole can cause severe hypomagnesemia even after just 1 year of use 6
  • PPI-induced hypomagnesemia can lead to secondary hypokalemia through increased renal potassium excretion 6

Other Medications That Affect Electrolytes

  • Corticosteroids and ACTH intensify electrolyte depletion, particularly hypokalemia 2
  • Digitalis therapy can exaggerate the metabolic effects of hypokalemia 1
  • Laxatives (with prolonged use) can contribute to hypokalemia 1
  • Licorice in large amounts can cause hypokalemia 1

Clinical Manifestations and Monitoring

Signs and Symptoms

  • Symptoms of hypomagnesemia and hypokalemia include:
    • Muscle weakness, cramps, and fatigue
    • Cardiac arrhythmias and ECG abnormalities (prolonged QT interval, ST depression, U waves)
    • Lethargy, drowsiness, and restlessness
    • Gastrointestinal disturbances (nausea, vomiting)
    • Hypotension and tachycardia 1, 2, 6

Monitoring Recommendations

  • Regular monitoring of serum electrolytes (potassium, magnesium, sodium) is essential for patients on diuretics 3, 1
  • For patients starting diuretic therapy, check electrolytes every 5-7 days initially until values stabilize, then every 3-6 months 3
  • Patients on thiazide diuretics should have magnesium levels checked regularly, even though this is not consistently included in hypertension guidelines 3

Prevention and Management

Prevention Strategies

  • Combining thiazide diuretics with potassium-sparing agents (spironolactone, amiloride, triamterene) can prevent hypokalemia and hypomagnesemia 4
  • Using the lowest effective dose of diuretics can minimize electrolyte disturbances 3
  • Potassium-sparing diuretics tend to increase serum and intracellular magnesium content 7

Treatment Approaches

  • For hypokalemia: potassium supplementation or increased dietary intake of potassium-rich foods 2
  • For hypomagnesemia: oral magnesium supplements for asymptomatic patients; parenteral magnesium for symptomatic patients with severe deficiency (<1.2 mg/dL) 8
  • Spironolactone (12.5-50 mg) can be used to prevent excess potassium and magnesium excretion 3

Special Considerations

High-Risk Populations

  • Patients with cirrhosis are at increased risk for diuretic-induced electrolyte abnormalities 1
  • Elderly patients are more susceptible to severe electrolyte depletion and its consequences 1
  • Patients with heart failure may have altered electrolyte balance at baseline, complicating the management of diuretic-induced electrolyte disorders 9

Drug Interactions

  • Concomitant use of multiple medications that affect electrolytes can amplify the risk of hypomagnesemia and hypokalemia 3
  • NSAIDs can reduce the diuretic and natriuretic effects of diuretics, potentially affecting electrolyte balance 2

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Guideline

Medications That Can Cause Hypokalemia

Praxis Medical Insights: Practical Summaries of Clinical Guidelines, 2025

Research

A case series of proton pump inhibitor-induced hypomagnesemia.

American journal of kidney diseases : the official journal of the National Kidney Foundation, 2010

Research

Do diuretics cause magnesium deficiency?

British journal of clinical pharmacology, 1993

Research

Hypomagnesemia: an evidence-based approach to clinical cases.

Iranian journal of kidney diseases, 2010

Research

Interaction of diuretics and electrolytes in congestive heart failure.

The American journal of cardiology, 1990

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.