Bactrim is a common name for a combination medicine that fights infections. It works against many different types of bacteria, both good and bad. Doctors often use it to treat infections like pneumonia, urinary tract infections, and ear infections.
Every report comes from a Lived member, sent anonymously.
Have you tried Bactrim (Trimethoprim-Sulfamethoxazole) for UTI (Urinary Tract Infection)?
Bactrim is a brand name for sulfamethoxazole and trimethoprim, a prescription antibiotic that combines two drugs in one tablet. Doctors and pharmacists often call it co-trimoxazole or TMP-SMX. Bactrim and Bactrim DS (double strength) tablets are sold in the US, along with generic tablets, a liquid and an intravenous form used in hospitals. Septra is a former brand name for the same combination that is no longer marketed in the US. It is approved to treat urinary tract infections, certain middle ear infections in children, flare-ups of chronic bronchitis in adults, shigellosis (a bacterial infection of the intestines) and traveler's diarrhea in adults caused by particular strains of E. coli. In each case it is meant for infections caused by bacteria it can actually kill, so local resistance patterns and, when available, a urine or other culture help decide whether it is a good choice. It is also a mainstay for Pneumocystis pneumonia (PCP), a serious lung infection that mainly affects people with weakened immune systems, such as people with AIDS. It is used both to treat PCP and, taken regularly over a long period, to prevent it in people at high risk. Doctors also prescribe it off label for some skin infections, including abscesses caused by MRSA (methicillin-resistant Staphylococcus aureus), a staph bacterium that resists many common antibiotics. Like all antibiotics, it does nothing for colds, flu or other viral infections, and it is not used for strep throat.
Many bacteria have to build their own folic acid, a vitamin they need to make DNA and proteins. Building it takes several steps in a row. Sulfamethoxazole blocks one of these steps, and trimethoprim blocks the very next one. With two consecutive steps shut down, the bacteria cannot make the material they need to grow and multiply. Pairing the two drugs has a second purpose. In laboratory studies, bacteria become resistant more slowly to the combination than to either drug alone. The same folate pathway explains some of the drug's cautions: because it can also interfere with how the body handles folic acid, it is used carefully in pregnancy and in people who are already low in folate.
Bactrim comes as a regular-strength tablet (400 mg sulfamethoxazole with 80 mg trimethoprim) and a DS tablet with twice that amount. One DS tablet equals two regular tablets. Children and people who cannot swallow tablets can use the liquid, which should be shaken well before each dose, and children's doses are based on body weight. The drug is not given to babies younger than 2 months. For most infections it is taken every 12 hours, and the length of treatment depends on the infection, ranging from a few days to two weeks or more. Treating PCP is different: doses are much higher, are given every 6 hours, and usually continue for 2 to 3 weeks. Preventing PCP uses a lower dose, typically once a day in adults or on three days a week in children. Drink plenty of fluids while taking it, because the drug can form crystals in the urine and contribute to kidney stones. People with reduced kidney function usually need a lower dose, and the drug is generally not used when kidney function is very low. If a dose is missed, take it when remembered unless the next one is nearly due, and never double up. Keep taking it for the full prescribed course even after feeling better, since stopping early can leave bacteria behind and encourage resistance.
Nausea, vomiting and loss of appetite are the most common side effects. Rash and hives are also fairly common, and the skin can burn more easily in the sun, so sunscreen and protective clothing help. A rash deserves more attention with this drug than with many others, because it can be the first sign of a rare but severe reaction affecting the skin, liver, blood or lungs. Stop taking it and contact the prescriber as soon as possible at the first sign of a rash, or if you develop a sore throat, fever, aching joints, cough, chest pain, shortness of breath, unusually pale skin, purple spots or unusual bruising, or yellowing of the skin or eyes. Blistering or peeling skin, swelling of the face or throat, or trouble breathing needs emergency care. Diarrhea is common with antibiotics and usually settles once treatment ends. Watery or bloody diarrhea, with or without cramps and fever, can signal a C. difficile infection of the colon, even if it starts up to two months after the last dose, and should be reported to a clinician promptly. Less often, the drug raises blood potassium or lowers blood sodium or blood sugar. These shifts are most likely with high doses, kidney or liver disease, older age, or poor nutrition.
Bactrim should not be taken by people allergic to sulfa drugs (sulfonamides) or to trimethoprim, or by anyone whose platelet count dropped dangerously during earlier use of either drug. It is also avoided in people with anemia caused by folate deficiency, serious liver damage, or severe kidney disease when kidney function cannot be monitored. Rarely, restarting it within days or weeks of a previous course has caused a sudden, severe drop in blood pressure with fever and confusion, so mention any recent course to the prescriber. Several interactions change prescribing decisions. It must not be combined with dofetilide, a heart rhythm medicine, because the combination can cause dangerous heart rhythms. It is generally avoided with methotrexate, an arthritis and cancer medicine whose levels and toxicity it can raise. It can strengthen warfarin, a blood thinner, so the INR (the blood test that measures how long blood takes to clot) needs rechecking. Trimethoprim can raise potassium, and that risk grows with ACE (angiotensin-converting enzyme) inhibitors, a common family of blood pressure medicines such as lisinopril, and other medicines that raise potassium, especially in older adults or people with kidney disease. It can also deepen the effect of some diabetes pills and lead to low blood sugar, and it affects levels of phenytoin (a seizure medicine) and digoxin (a heart medicine). Because the list is long, a pharmacist should check every prescription and supplement. Some studies have linked use during pregnancy to birth defects, including neural tube and heart defects, and the drug interferes with folate, so it is used in pregnancy only when the benefit clearly outweighs the risk. Anyone who becomes pregnant while taking it should contact the prescriber right away. It passes into breast milk and calls for caution when nursing a newborn who is premature, jaundiced or ill. People with G6PD deficiency (an inherited red blood cell condition) can have red cells break down, and people with AIDS who are treated for PCP have more frequent rash, fever and blood count changes.
Most people start to feel better within the first few days of treatment. If symptoms are not improving after a few days, are getting worse, or are still present after the course ends, contact the prescriber, since the bacteria may be resistant or the diagnosis may need another look. Blood tests to check blood counts, kidney function and potassium are part of monitoring on this drug. They matter most for people taking high doses or using it for months, as when preventing PCP, and for older adults, people with kidney disease and people on other medicines that raise potassium. When it is used to prevent PCP, how long it continues depends on the underlying condition and the person's ongoing risk, so the decision to stop belongs with the care team rather than with how someone feels day to day.
Last reviewed • Oct 2026
Educational content, not medical advice.
Share your experience taking Bactrim (Trimethoprim-Sulfamethoxazole), what you've noticed, or ask the community a question.