How Sulfamethoxazole and Trimethoprim works

This antibiotic pairs sulfamethoxazole, a sulfonamide, with trimethoprim. Each blocks a different step in the way bacteria make folate, which they need to grow, so together they are much more effective. It treats urinary tract infections, some ear and bronchitis infections, travelers' diarrhea, and is a key drug for Pneumocystis pneumonia.

Read the transcript

Sulfamethoxazole and trimethoprim are two antibiotics combined in one medicine. Bacteria must make their own folate, which they need to build DNA. They do it step by step, with a chain of enzymes. Sulfamethoxazole blocks an early step in this chain. Trimethoprim blocks a later one. Blocking two steps in the same pathway works better than either alone. Human cells, which get folate from food, are largely spared. Drink plenty of fluids. Stop and seek care if you get a rash, which can rarely be severe. It doesn't treat viral infections.

0:43 · Published November 23, 2026 · Clinical review pending

Read the full sulfamethoxazole and Trimethoprim guide