PharmingoGet the app
DNA & Folate · Sulfonamides

Sulfonamides & Trimethoprim: Starving Bacteria of Folate

Bacteria have to build their own folate from scratch; we simply eat ours. That single difference is a perfect weakness to exploit — and two drugs that block the folate pathway at two different steps combine into one of the most elegant antibiotics we have. But the same drug that saves lives in immunocompromised patients can also peel the skin off in a rare, terrifying reaction.

14 min read🎯 Linked lesson: Sulfonamides & Trimethoprim· Updated 2026-08-15
THE SCENE

A patient with a weakened immune system is protected from a dangerous lung infection (Pneumocystis pneumonia) by a daily tablet of cotrimoxazole — a combination of a sulfonamide and trimethoprim. It works so well because the two drugs block the same essential pathway at two separate steps, choking off the folate the microbe needs to build its DNA. It's a small masterpiece of drug design. But this same combination can, rarely, unleash one of the most feared reactions in medicine — a clue that even elegant drugs demand respect.

Two blocks on one pathway

Bacteria must synthesize folate; we get it from food. Folate is essential for making the building blocks of DNA. Human cells absorb ready-made folate from the diet, but bacteria have to manufacture it themselves — and that manufacturing line is the target. Sulfonamides (like sulfamethoxazole) block the first enzyme of the pathway, and trimethoprim blocks a later one. Given alone, each merely slows bacteria; given together as cotrimoxazole, they block the SAME pathway at two consecutive points — a 'sequential blockade' that is synergistic and bactericidal, far harder for bacteria to escape. Because the enzymes they hit either don't exist in us or are shaped differently, the drugs are relatively selective for the microbe.

Where cotrimoxazole shines

Cotrimoxazole is a versatile drug. It treats urinary infections, community MRSA skin infections, and certain gut infections, but it has two standout roles in immunocompromised patients: preventing and treating Pneumocystis pneumonia (a life-threatening lung infection in HIV and other immune-suppressed people), and treating toxoplasmosis. That protective, prophylactic use in vulnerable patients is one of its most important jobs — a cheap daily pill that quietly prevents a deadly infection.

The sulfa dangers

Sulfonamides are a classic cause of drug allergy, and most reactions are a simple rash — but rarely they trigger the devastating Stevens–Johnson syndrome / toxic epidermal necrolysis, in which the skin blisters and sloughs off like a burn. They can also cause haemolysis in people with G6PD deficiency (from the metabolism chapter), and, because they displace bilirubin, they're avoided near term and in newborns for fear of kernicterus. Trimethoprim adds its own quirks: it blocks a sodium channel in the kidney much like the diuretic amiloride, so it can raise blood potassium, and because it interferes with folate it can cause a megaloblastic anaemia (given with folinic acid in high-dose or prolonged use). The pair also raise the levels of warfarin and methotrexate. Powerful and cheap — but with a real list of hazards to keep in view.

Key points
  • Sulfonamides + trimethoprim block folate synthesis at two steps → sequential synergy (cotrimoxazole).
  • Selective because bacteria make folate while we get it from food.
  • Key uses: UTI, community MRSA, and Pneumocystis pneumonia prophylaxis/treatment in immunocompromised.
  • Sulfa allergy → rash, rarely Stevens–Johnson/TEN; haemolysis in G6PD; avoid near term.
  • Trimethoprim raises potassium (amiloride-like) and can cause megaloblastic anaemia.
💡 CLINICAL PEARL

This pair is a web of cross-connections to earlier chapters. The G6PD haemolysis is the metabolism/enzyme-deficiency lesson; the kernicterus risk echoes ceftriaxone's bilirubin displacement; trimethoprim's potassium rise mirrors the potassium-sparing diuretic amiloride from cardiology; and its folate interference is the same reason methotrexate (a human folate-pathway inhibitor) is toxic. Seeing sulfamethoxazole-trimethoprim as a node connecting metabolism, cardiology, and haematology is exactly the integrated thinking that makes a drug's dangers predictable rather than memorized.

⚠️ Common mistakes
  • Continuing the drug when a spreading rash/blistering appears — could be Stevens–Johnson; stop immediately.
  • Giving it to a G6PD-deficient patient or a near-term neonate — haemolysis / kernicterus.
  • Ignoring the potassium rise, especially with other potassium-raising drugs.
  • Forgetting it raises warfarin and methotrexate levels.
🎓 Questions students ask
Why is cotrimoxazole given to prevent pneumonia in immunocompromised patients?
People with weakened immunity — such as those with advanced HIV — are prone to Pneumocystis pneumonia, a serious lung infection that a healthy immune system keeps in check. A low daily dose of cotrimoxazole reliably prevents it, and higher doses treat it. It's one of the most valuable prophylactic uses of any antibiotic — a cheap tablet that averts a life-threatening illness.
How serious is a sulfa allergy?
Most sulfa reactions are a mild-to-moderate rash and simply mean choosing another drug. But a small minority progress to Stevens–Johnson syndrome or toxic epidermal necrolysis — severe reactions where the skin blisters and detaches, which can be life-threatening. Any spreading rash with blistering, mouth sores, or peeling during sulfa treatment is an emergency: stop the drug at once and seek urgent care.
Why does trimethoprim raise potassium?
Trimethoprim blocks a sodium channel in the kidney's collecting duct — the same channel blocked by the potassium-sparing diuretic amiloride. With less sodium reabsorbed there, the kidney excretes less potassium, so blood potassium can rise. Usually it's mild, but it can become significant in people already prone to high potassium or on other potassium-raising drugs, so levels are checked in those at risk.
Test yourself

Why is the folate pathway a good antibiotic target?

🫁 In one breath
  • Sulfonamides + trimethoprim block folate synthesis at two steps → synergistic (cotrimoxazole).
  • Selective because bacteria make their own folate; treats UTI, MRSA, Pneumocystis, toxoplasmosis.
  • Sulfa allergy (rash → Stevens–Johnson), G6PD haemolysis, kernicterus risk near term.
  • Trimethoprim raises potassium (amiloride-like) and can cause megaloblastic anaemia.
📚 Sources
  • Katzung BG. Basic & Clinical Pharmacology — Sulfonamides, Trimethoprim & Quinolones.
  • Brunton LL, et al. Goodman & Gilman's The Pharmacological Basis of Therapeutics — Sulfonamides & trimethoprim.
  • Rang HP, Dale MM, et al. Rang & Dale's Pharmacology — Antifolate drugs.
  • Murray PR, et al. Medical Microbiology — Folate synthesis inhibitors.
  • Whalen K. Lippincott Illustrated Reviews: Pharmacology — Folate antagonists.

More in DNA, Folate & Others →

Learn pharmacology and anatomy the fun way

Short lessons, interactive quizzes, a real 3D anatomy model, and a streak you'll actually keep.

Download on the App StoreGet it on Google Play