Bactrim is a prescription antibiotic that combines two active drugs, sulfamethoxazole and trimethoprim, to treat a specific range of bacterial infections. It is most commonly used for urinary tract infections, certain types of pneumonia, and travel-related diarrhea. By blocking two separate steps in the bacterial production of folate, Bactrim stops bacteria from multiplying and allows your immune system to clear the infection.
What Is The Drug Bactrim Used For?
Bactrim treats infections caused by bacteria that are susceptible to this specific combination. It does not work against viruses, like the cold or flu, and it is not effective against every type of bacteria.
The most common approved uses include:
- Urinary tract infections (UTIs) — especially uncomplicated infections in the bladder.
- Pneumocystis pneumonia — a serious lung infection that mainly affects people with weakened immune systems, including those with HIV.
- Traveler’s diarrhea — caused by certain strains of E. coli bacteria.
- Ear infections in children, when other antibiotics are not appropriate.
- Chronic bronchitis flare-ups — when bacteria cause a worsening of symptoms.
- Shigellosis — a bacterial infection of the intestines that causes severe diarrhea.
Doctors also prescribe Bactrim for other infections, such as MRSA skin infections, but those uses may not be formally approved by the FDA. When a doctor prescribes a drug for an unapproved use, it is called an off-label use. This is legal and common, but you should always ask your doctor why they are recommending it.
How Does Bactrim Work?
Bactrim contains two antibiotics that attack the same bacterial pathway at different points. Sulfamethoxazole blocks one enzyme, and trimethoprim blocks another. Together, they create a double blockade that stops bacteria from making the folate they need to survive and divide.
This combination is important because it makes the drug more powerful than either component alone. It also reduces the chance that bacteria will develop resistance quickly, because the bacteria would need to mutate in two separate ways at the same time to survive.
Bactrim is bactericidal, meaning it kills bacteria directly rather than just slowing their growth. This is why it works quickly for many infections, often showing improvement within 48 to 72 hours of starting the medication.
What Are the Common Side Effects?
Most people tolerate Bactrim well, but side effects do occur. The most common ones involve the stomach and skin.
- Nausea and vomiting — taking the medication with food can help reduce these symptoms.
- Skin rash — this can range from mild to severe. Any rash while taking Bactrim should be reported to a doctor promptly.
- Loss of appetite — mild and usually temporary.
- Sun sensitivity — your skin may burn more easily, so use sunscreen and protective clothing.
Some side effects are more serious and require immediate medical attention. These include severe skin reactions like Stevens-Johnson syndrome, liver damage, and a sudden drop in white blood cells or platelets. These are rare but can be life-threatening.
If you experience a rash, fever, sore throat, unusual bruising, or yellowing of the skin or eyes, stop the medication and contact your doctor right away.
Who Should Not Take Bactrim?
Bactrim is not safe for everyone. Several groups of people should avoid it or use it only under strict medical supervision.
People with sulfa allergies should not take Bactrim. The sulfamethoxazole component is a sulfa drug, and allergic reactions can range from a mild rash to a severe, life-threatening reaction. If you have ever had an allergic reaction to a sulfa antibiotic, tell your doctor before taking Bactrim.
Pregnant women should generally avoid Bactrim, especially in the first trimester and near delivery. The drug can interfere with folate metabolism, which is critical for fetal development. It can also cause kernicterus, a type of brain damage, in newborns if taken near the time of birth.
People with kidney or liver disease may need dose adjustments or should avoid the drug entirely. Bactrim is cleared by the kidneys, and buildup can cause toxicity.
Older adults are at higher risk for certain side effects, including high potassium levels and kidney problems. They may also be more prone to drug interactions.
People taking certain other medications need careful monitoring. Bactrim can interact with blood thinners like warfarin, some diabetes medications, and methotrexate. These interactions can be dangerous, so always provide a complete list of your medications to your doctor.
How Is Bactrim Taken?
Bactrim comes in two forms: a standard tablet and a double-strength tablet. The dose depends on the infection being treated, your age, and your kidney function.
The standard adult dose for a UTI is typically one double-strength tablet taken every 12 hours. The usual course lasts 3 to 14 days, depending on the severity of the infection. For Pneumocystis pneumonia, treatment may last up to 21 days and the dose may be higher.
You should take Bactrim with a full glass of water. Drinking extra fluids while on this medication is important to prevent crystals from forming in your urine, which can damage the kidneys.
Finish the entire course of antibiotics even if you feel better before the prescription runs out. Stopping early can allow surviving bacteria to multiply and develop resistance, making the infection harder to treat the second time.
What Happens If Bactrim Does Not Work?
Antibiotic resistance is a growing problem, and Bactrim is not immune to it. Some bacteria, particularly certain strains of E. coli, have become resistant to Bactrim in many parts of the world.
If your symptoms do not improve within a few days of starting Bactrim, your doctor may order a urine culture or other tests to identify the exact bacteria causing your infection. The lab can also test which antibiotics will kill that specific bacteria. This is called susceptibility testing.
If the bacteria are resistant to Bactrim, your doctor will switch you to a different antibiotic. Common alternatives include nitrofurantoin, fosfomycin, or a fluoroquinolone like ciprofloxacin, depending on the infection and your medical history.
Resistance is one reason why doctors are careful about prescribing antibiotics. Taking Bactrim for a viral infection, or taking it incorrectly, contributes to the resistance problem for everyone.
Can Bactrim Be Used for COVID-19?
No. Bactrim is an antibacterial drug and has no activity against viruses, including the virus that causes COVID-19.
Some people with severe COVID-19 develop secondary bacterial infections, and in those cases, a doctor might prescribe Bactrim or another antibiotic. But using Bactrim to treat the viral infection itself is not supported by any evidence.
If you have COVID-19 symptoms, do not take leftover antibiotics. Antibiotics will not help and can cause side effects or contribute to resistance without providing any benefit.
What Should You Discuss With Your Doctor Before Taking Bactrim?
Before starting Bactrim, have a clear conversation with your doctor about your complete medical history. Be specific about any past allergic reactions, especially to sulfa drugs.
Mention all medications and supplements you take, including over-the-counter products. Bactrim interacts with more drugs than many people realize.
Ask your doctor what to do if you miss a dose. Generally, you should take the missed dose as soon as you remember, but skip it if it is almost time for your next dose. Do not double up.
Ask what symptoms should prompt you to call the office versus go to the emergency room. Knowing this in advance can save you time and worry.
Frequently Asked Questions
Can I drink alcohol while taking Bactrim?
Alcohol does not directly interact with Bactrim, but it can worsen side effects like nausea and dizziness. It is safest to avoid alcohol while taking this medication.
How long does Bactrim take to work?
Most people notice improvement in symptoms within 48 to 72 hours of starting Bactrim. If you see no improvement after three days, contact your doctor.
Can Bactrim treat a sinus infection?
Bactrim is sometimes prescribed for sinus infections, but it is not a first-line choice. Most sinus infections are viral and do not need antibiotics at all.
Is Bactrim safe for children?
Bactrim is approved for children over two months of age for certain infections. It should not be given to infants under two months because of the risk of serious side effects.

