Clinical Knowledge › Internal medicine › Infectious diseases › Relevant pharmacology
Trimethoprim, sulfonamides and nitrofurantoin
Trimethoprim and the sulfonamides block two steps of bacterial folate synthesis: sulfamethoxazole competes with para-aminobenzoic acid at dihydropteroate synthase and trimethoprim inhibits dihydrofolate reductase. Together, as co-trimoxazole, they give synergistic killing and are first-line for Pneumocystis pneumonia treatment and prophylaxis, Stenotrophomonas, Nocardia and toxoplasmosis prophylaxis. Trimethoprim alone treats lower urinary tract infection where resistance is low. Its amiloride-like block of epithelial sodium channels causes hyperkalaemia, and it raises serum creatinine by blocking tubular secretion without lowering GFR. Sulfonamides cause rash, Stevens–Johnson syndrome, marrow suppression, haemolysis in G6PD deficiency and kernicterus in neonates. Nitrofurantoin is reduced by bacterial enzymes to reactive intermediates that damage many targets, so resistance stays low; it concentrates only in urine, so it treats cystitis but never pyelonephritis. NICE NG109 makes it first-line for lower UTI if eGFR is 45 or more. Long-term use can injure lung and liver.
Patient case, mechanism, investigations, management, flashcards and exam-style questions.Open the lesson →

Key facts
- Sulfamethoxazole inhibits dihydropteroate synthase (PABA analogue); trimethoprim inhibits bacterial dihydrofolate reductase: sequential blockade
- Co-trimoxazole is first-line for PCP: treatment about 120 mg/kg/day in divided doses for 21 days; prophylaxis 960 mg daily or 480 mg daily (teaching doses; check local formulary)
- Trimethoprim blocks distal ENaC like amiloride (hyperkalaemia) and inhibits tubular creatinine secretion (creatinine rises without true GFR loss)
- Dangerous interactions: methotrexate (pancytopenia), ACE inhibitors/ARBs/spironolactone (hyperkalaemia, sudden death), warfarin (raised INR with co-trimoxazole)
- Sulfonamides: rash (very common in advanced HIV), SJS/TEN, marrow suppression, G6PD haemolysis, kernicterus in neonates
- Nitrofurantoin 100 mg modified-release twice daily for 3 days in non-pregnant women (7 days in men or pregnancy) is NICE NG109 first-line for cystitis
- Avoid nitrofurantoin if eGFR below 45 (short course possible at 30–44 for resistant organisms) and near term; it has no tissue levels, so not for pyelonephritis
- Nitrofurantoin harms: acute hypersensitivity pneumonitis, chronic pulmonary fibrosis, chronic hepatitis and neuropathy with long-term use
Differential diagnosis
| Condition | Clues | Key test |
|---|---|---|
| Trimethoprim-induced creatinine rise | Creatinine up 10–20% with stable urea and urine output | Repeat creatinine after stopping; cystatin C |
| True AKI (interstitial nephritis or dehydration) | Rising urea, falling urine output, rash or eosinophilia | Urinalysis, urine microscopy, renal ultrasound |
| Trimethoprim hyperkalaemia | Potassium rise in an older patient on ACE inhibitor or spironolactone | Serum potassium, ECG |
| Stevens–Johnson syndrome/TEN | Fever, mucosal ulceration and blistering 1–3 weeks into co-trimoxazole | Clinical; skin biopsy; SCORTEN |
| Co-trimoxazole marrow suppression | Neutropenia or thrombocytopenia, especially with methotrexate | Full blood count; folate |
| G6PD haemolysis | Dark urine, jaundice, anaemia after sulfonamide or nitrofurantoin | Blood film (bite cells), G6PD assay after recovery |
| Nitrofurantoin pulmonary reaction | Fever, cough, breathlessness within days (acute) or insidious fibrosis on long-term prophylaxis | Chest X-ray or CT, eosinophil count |
Exam pearls
Guideline
NICE NG109 lower urinary tract infection: antimicrobial prescribing (2018) and WHO 2021 consolidated HIV guidelines (co-trimoxazole prophylaxis)
References
- National Institute for Health and Care Excellence. Urinary tract infection (lower): antimicrobial prescribing (NG109). NICE 2018.
- Huttner A, Kowalczyk A, Turjeman A, et al.. Effect of 5-Day Nitrofurantoin vs Single-Dose Fosfomycin on Clinical Resolution of Uncomplicated Lower Urinary Tract Infection in Women: A Randomized Clinical Trial. JAMA 2018.
- Fralick M, Macdonald EM, Gomes T, et al.. Co-trimoxazole and sudden death in patients receiving inhibitors of renin-angiotensin system: population based study. BMJ 2014.
- Wagenlehner F, Perry CR, Hooton TM, et al.. Oral gepotidacin versus nitrofurantoin in patients with uncomplicated urinary tract infection (EAGLE-2 and EAGLE-3): two randomised, controlled, double-blind, double-dummy, phase 3, non-inferiority trials. Lancet 2024.
- Bennett JE, Dolin R, Blaser MJ (eds).. Mandell, Douglas, and Bennett's Principles and Practice of Infectious Diseases, 9th edition. Elsevier 2020.
- World Health Organization. Consolidated guidelines on HIV prevention, testing, treatment, service delivery and monitoring: recommendations for a public health approach. WHO, Geneva 2021.
Related topics
By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.