Sulfamethoxazole is an antibiotic medicine, a sulfonamide. It works by stopping bacteria from making the folic acid they need to grow. It's used to treat various bacterial infections, but some bacteria have become resistant to it over time.
Every report comes from a Lived member, sent anonymously.
No reports yet
Add what worked for you with the search bar below
Sulfamethoxazole is a sulfonamide, or "sulfa," antibiotic. It was once sold on its own under the brand name Gantanol, but that product has been discontinued in the US. Today it is prescribed in a fixed combination with a second antibiotic, trimethoprim. The combination is often called co-trimoxazole, and it is sold as Bactrim, Bactrim DS (double strength) and as generic tablets and liquid. The combination is approved for urinary tract infections, middle ear infections in children, flare-ups of chronic bronchitis in adults, traveler's diarrhea in adults and a bowel infection called shigellosis. It is also a main treatment for Pneumocystis pneumonia, a serious lung infection that affects people with weakened immune systems, and it is taken long term to prevent that infection in people whose immune systems are weakened enough to put them at high risk. Like all antibiotics, it works only against bacteria and does nothing for colds, flu or other viral illnesses. Many bacteria have become resistant to it over the years, so prescribers choose it based on test results or on how often it still works against local bacteria.
Bacteria must make their own folic acid, a B vitamin they need to build DNA and grow. Sulfamethoxazole blocks an early step in that process, and trimethoprim blocks the step right after it. Hitting two steps in a row makes the combination more effective than either drug alone, and in laboratory studies bacteria develop resistance to the pair more slowly. Human cells take in folic acid from food rather than making it, which is why the drug can target bacteria. It still affects people's folate use somewhat, which matters for people who are already low in folate and during pregnancy.
The combination comes as tablets and as a liquid for children. A regular-strength tablet holds 400 mg of sulfamethoxazole and 80 mg of trimethoprim, and a double-strength tablet holds twice that. For a typical adult urinary tract infection, the dose is usually one double-strength tablet every 12 hours, while treatment for Pneumocystis pneumonia uses much higher, weight-based doses. Children's doses are based on weight. People with reduced kidney function usually need a lower dose. Drinking plenty of fluids during treatment helps prevent crystals from forming in the urine. Shake the liquid well before each dose. Take every dose for as long as prescribed, even after feeling better; stopping early can leave the infection partly treated and encourage resistance. If a dose is missed, take it when remembered unless the next one is nearly due, and do not double up.
Nausea, vomiting and loss of appetite are the most common side effects. The drug can also make skin burn more easily in the sun, so sunscreen and protective clothing are worthwhile during treatment. Rash is the other common reaction, and it matters more than with many medicines. A sulfa rash can be the first sign of a rare but severe reaction affecting the skin, liver or blood. Stop taking it and contact the prescriber right away for any new rash, or for sore throat, fever, joint pain, unusual bruising or purple spots, unusual paleness, or yellowing of the skin or eyes. Blistering or peeling skin, swelling of the face or throat, or trouble breathing needs emergency care. Watery or bloody diarrhea, with or without cramps and fever, can signal a serious bowel infection called C. difficile. It can start during treatment or up to two months afterward and should be reported promptly.
People with a known allergy to sulfa drugs or to trimethoprim should not take it, nor should anyone who has had a severe drop in platelets from either drug. It is not given to infants younger than 2 months. Severe liver disease, severe kidney disease that cannot be monitored and anemia from folate deficiency also rule it out. Several interactions change how it is used. It can strengthen warfarin, a blood thinner, so the INR (international normalized ratio, a blood test of how long blood takes to clot) needs rechecking. It must not be combined with dofetilide, a heart rhythm medicine, because of the risk of a dangerous heart rhythm. It can raise levels of methotrexate (used for arthritis and cancer), phenytoin (a seizure medicine) and digoxin (a heart medicine). It can push blood sugar too low in people taking diabetes pills such as glipizide or glyburide. The trimethoprim part can raise blood potassium, especially in older adults, people with kidney disease, those on high doses and people also taking potassium-raising medicines such as ACE (angiotensin-converting enzyme) inhibitors, a common class of blood pressure drugs. People with glucose-6-phosphate dehydrogenase (G6PD) deficiency, an inherited red blood cell condition, can have red blood cells break down. Some studies have linked use in pregnancy to birth defects, including neural tube and heart defects, so it is used in pregnancy only when the benefit clearly outweighs the risk. It passes into breast milk and calls for caution when nursing a newborn who is premature, jaundiced or ill.
For a common infection such as a bladder infection, symptoms usually start to ease within the first few days. If they do not improve or get worse, the prescriber may need to check whether the bacteria are resistant and switch antibiotics. Courses for common infections usually last 5 to 14 days. People who take it for a longer time, such as for Pneumocystis prevention, or who have kidney problems or take interacting medicines, usually have periodic blood tests to check blood counts, kidney function and potassium. Short courses in otherwise healthy people often need no testing. A rash that appeared during an earlier course is worth telling every future prescriber about, since taking the drug again after a reaction can trigger a severe one.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share your experience taking Sulfamethoxazole, what you've noticed, or ask the community a question.