What is the mechanism of hyperkalemia associated with cotrimoxazole (trimethoprim/sulfamethoxazole) use?

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: December 14, 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.

Mechanism of Hyperkalemia with Cotrimoxazole

Cotrimoxazole causes hyperkalemia through the trimethoprim component, which acts as a potassium-sparing diuretic by competitively inhibiting epithelial sodium channels (ENaC) in the distal nephron, identical to the mechanism of amiloride. 1, 2

Primary Mechanism

The trimethoprim component of cotrimoxazole blocks epithelial sodium channels in the distal collecting tubule and cortical collecting duct, which directly impairs renal potassium excretion 1. This blockade prevents sodium reabsorption and the coupled secretion of potassium into the tubular lumen, leading to potassium retention 2.

  • Trimethoprim functions pharmacologically as a potassium-sparing diuretic, producing the same antikaliuretic effect as amiloride through competitive inhibition of ENaC 1, 2
  • The mechanism is dose-dependent, with both high-dose (used for Pneumocystis pneumonia) and standard-dose cotrimoxazole capable of inducing hyperkalemia 1, 2
  • The sulfamethoxazole component does not contribute to hyperkalemia; the effect is entirely attributable to trimethoprim 1

Clinical Significance and Risk Factors

The FDA drug label explicitly warns that high-dose trimethoprim induces progressive but reversible increases in serum potassium, and even standard doses can cause hyperkalemia in patients with underlying potassium metabolism disorders, renal insufficiency, or concurrent use of drugs that induce hyperkalemia 3.

High-Risk Populations

  • Patients with baseline eGFR <60 mL/min/1.73 m² have 6.8-fold increased odds of developing hyperkalemia (OR 6.80,95% CI 3.09-15.06) 4
  • Patients with cardiac disorders have 2.4-fold increased risk of acute kidney injury, which further impairs potassium excretion (OR 2.40,95% CI 1.17-4.82) 4
  • Higher baseline serum potassium levels significantly predict hyperkalemia development 4, 5
  • Elderly patients are at particularly increased risk, especially when receiving concurrent diuretics or RAAS inhibitors 3

Medication Interactions

The European Society of Cardiology and FDA both classify trimethoprim-sulfamethoxazole as a drug that decreases potassium excretion 6. The FDA specifically contraindicates concurrent use with ACE inhibitors due to documented cases of severe hyperkalemia in elderly patients 3.

  • Concurrent RAAS inhibitors (ACE inhibitors, ARBs, MRAs) substantially increase hyperkalemia risk 6, 3
  • Potassium-sparing diuretics (spironolactone, amiloride, triamterene) create additive effects 6
  • NSAIDs further impair renal potassium excretion through reduced glomerular filtration 6
  • Beta-blockers reduce cellular potassium uptake, compounding the effect 6

Dose-Response Relationship

Low-dose cotrimoxazole (<1920 mg/day) is associated with significantly lower risk of both hyperkalemia and acute kidney injury compared to higher doses 4.

  • In clinical studies, 15.4% of patients developed hyperkalemia during cotrimoxazole therapy 4
  • Even in outpatients without acute infections, cotrimoxazole significantly increased mean serum potassium by 0.21 mmol/L at 6 weeks (95% CI 0.09-0.34, p=0.001) 7
  • This effect persists even after excluding patients on antikaliuretic drugs (mean increase 0.23 mmol/L, 95% CI 0.09-0.38, p=0.002) 7
  • Approximately 5.7% of patients reached clinically significant hyperkalemia (≥5.5 mmol/L) during treatment 7

Monitoring and Prevention

The FDA mandates close monitoring of serum potassium in high-risk patients, and the British Thoracic Society lists "people at risk of hyperkalaemia" as a specific caution for cotrimoxazole use 6, 3.

  • Early serum potassium changes within the first 2-4 days of therapy predict subsequent hyperkalemia (OR 2.47 for increase >0.6 mmol/L) 4
  • Baseline renal function, serum potassium, and cardiac disorders must be evaluated before prescribing 4
  • The lowest effective dose should be prescribed to minimize risk 4
  • Discontinuation of cotrimoxazole is recommended when hyperkalemia develops to lower serum potassium levels 3

Reversibility

The hyperkalemic effect of trimethoprim is completely reversible upon drug discontinuation 3, 1. In circumstances where continued treatment is essential, high urinary flow rates induced by intravenous fluids plus loop diuretics, combined with urine alkalinization, can block the antikaliuretic effect on distal nephron cells 1.

References

Research

Evaluating the risk of hyperkalaemia and acute kidney injury with cotrimoxazole: a retrospective observational study.

Clinical microbiology and infection : the official publication of the European Society of Clinical Microbiology and Infectious Diseases, 2020

Research

Prediction of hyperkalemia occurrence in patients using co-trimoxazole: Clinical adjustment of a Markov model.

International journal of clinical pharmacology and therapeutics, 2025

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

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.