Bactrim is a prescription antibiotic that combines two drugs, sulfamethoxazole and trimethoprim, to treat bacterial infections such as urinary tract infections, some ear and chest infections, traveler's diarrhea and a type of pneumonia called Pneumocystis pneumonia. It works well for many infections, but Bactrim side effects can include upset stomach, rash and, rarely, severe skin, blood or potassium problems.
Key facts
- Generic name: sulfamethoxazole and trimethoprim (also called co-trimoxazole or TMP-SMX)
- Drug class: sulfonamide antibiotic combined with a folate-blocking antibiotic
- Main uses: urinary tract infections, ear infections in children, flare-ups of chronic bronchitis, shigella and traveler's diarrhea, Pneumocystis pneumonia
- US status: prescription only (Rx); not a controlled substance
- Forms: Bactrim and Bactrim DS tablets; generic tablets and liquid suspension
- Biggest cautions: sulfa allergy, serious skin rashes, low blood counts, high potassium, pregnancy
What is Bactrim used for?
Bactrim treats infections caused by bacteria that are sensitive to it. It does not work against viruses, so it will not help a cold, the flu or most sore throats, as the CDC explains in its antibiotic guidance. According to the FDA-approved Bactrim label on DailyMed, Bactrim is approved for:
- Urinary tract infections (UTIs) caused by susceptible E. coli, Klebsiella, Proteus and related bacteria
- Acute middle ear infections (otitis media) in children when the doctor feels it offers an advantage over other antibiotics
- Flare-ups of chronic bronchitis in adults caused by susceptible bacteria
- Shigellosis, a bacterial infection of the intestines
- Pneumocystis jirovecii pneumonia (PCP), both to treat it and to prevent it in people with weakened immune systems
- Traveler's diarrhea in adults caused by susceptible E. coli
Doctors also prescribe sulfamethoxazole-trimethoprim for other infections, such as some skin and soft-tissue infections. MedlinePlus notes that it is sometimes used for other conditions, so ask your doctor or pharmacist why it was chosen for you. Bactrim is one of several antibiotics listed on our infectious diseases page, and your prescriber picks among them based on the germ, local resistance patterns and your allergies.
If you were prescribed a different antibiotic, such as cefdinir, for a similar infection, that is normal. Antibiotics are not interchangeable, and a lab culture sometimes guides the final choice.
How Bactrim works
Bacteria must make their own folic acid (folate) to build DNA and grow. Bactrim blocks two different steps in that process. Sulfamethoxazole stops bacteria from making an early building block of folate, and trimethoprim blocks a later enzyme in the same pathway.
Hitting the pathway twice makes the combination stronger than either drug alone and makes it harder for bacteria to escape. Human cells take in folate from food instead of making it, so they are far less affected. Even so, the drug can lower folate in some people, which is why long courses may need blood tests.
Generic and US brand names
In the United States, most prescriptions are filled with generic sulfamethoxazole-trimethoprim. The brand Bactrim is still on DailyMed as a regular-strength and a double-strength (DS) tablet. MedlinePlus also lists Septra products, and notes that the branded Septra suspension is no longer on the market.
Brand name
Form and strengths sold in the US
Rx or OTC
Notes
Bactrim
Tablets, 400 mg sulfamethoxazole / 80 mg trimethoprim
Rx
Regular strength
Bactrim DS
Tablets, 800 mg sulfamethoxazole / 160 mg trimethoprim
Rx
Double strength; the most commonly prescribed form
Septra, Septra DS
Tablets
Rx
Older brand names; generic tablets are far more common
Generic (no brand)
Tablets, oral suspension and an injection for hospital use
Rx
Septra suspension brand is no longer marketed; generic liquid is available
How Bactrim is usually taken
Bactrim tablets and the liquid are taken by mouth. MedlinePlus says co-trimoxazole is usually taken two to four times a day, at around the same times each day. Your doctor decides the strength, how often you take it and for how long, based on the infection, your age, weight and kidney function.
Drink plenty of fluids while you take it. The label advises this to help prevent crystals and stones forming in the urine. Shake the liquid well before each dose and measure it with a proper dosing device, not a kitchen spoon.
Finish the full course even if you feel better after a few days. Stopping early can leave some bacteria alive and help resistance develop. If you miss a dose, take it when you remember unless the next dose is nearly due; never double up. Always follow your prescriber, your pharmacist and the patient leaflet.
Bactrim side effects
The Bactrim label says the most common side effects are stomach upset, such as nausea, vomiting and loss of appetite, and allergic skin reactions such as rash and hives. Most mild effects settle on their own, but a rash always needs a call to your doctor, because it can be the first sign of a serious reaction.
Common side effects
- Nausea, vomiting or loss of appetite
- Mild diarrhea or stomach pain
- Itching or a mild rash (tell your doctor)
- Headache or dizziness
- Increased sensitivity to sunlight, which can lead to sunburn more easily
- Tiredness or trouble sleeping
Serious side effects — get help
Severe reactions to sulfa antibiotics are rare, but some have been fatal. Stop taking Bactrim and contact your doctor right away, or get emergency care, if you notice:
- Skin reactions: a spreading red or purple rash, blisters, peeling skin or sores in the mouth, eyes or genitals (possible Stevens-Johnson syndrome or toxic epidermal necrolysis)
- Blood problems: sore throat with fever, unusual bruising or bleeding, tiny red spots on the skin, or pale skin and tiredness, which can point to low platelets, low white cells or anemia
- Liver problems: yellow skin or eyes, dark urine, or pain in the upper right belly
- High potassium: muscle weakness, an irregular heartbeat or feeling faint, especially in older adults or people with kidney disease
- Severe diarrhea: watery or bloody stools, with or without fever and cramps, even up to two months after the last dose (possible C. difficile infection)
- Breathing problems: new cough, shortness of breath or wheezing
- Low blood sugar: shakiness, sweating, confusion or a fast heartbeat
When to get urgent help
Call 911 if someone has trouble breathing, swelling of the face or throat, a rapidly spreading blistering rash, chest pain or a seizure. If someone may have taken too much Bactrim, call Poison Help at 1-800-222-1222 right away.
You or your doctor can report side effects to the FDA through the MedWatch safety reporting program. Your doctor may order blood counts, kidney tests or potassium checks if you take Bactrim for more than a short course.
Who should not take it, and cautions
The prescribing information says Bactrim must not be used by people who:
- Are allergic to sulfamethoxazole, trimethoprim or other sulfonamide (sulfa) drugs
- Have had low platelets caused by trimethoprim or a sulfa drug in the past
- Have megaloblastic anemia from folate deficiency
- Have marked liver damage, or severe kidney disease when kidney function cannot be monitored
- Are babies younger than 2 months
Tell your doctor before starting Bactrim if you have kidney or liver disease, asthma or severe allergies, HIV, low folate (for example from poor nutrition or alcohol use), G6PD deficiency, porphyria, thyroid disease or phenylketonuria. Older adults have a higher risk of severe skin reactions, low blood counts and high potassium.
Bactrim makes skin more sensitive to sunlight, so use sunscreen and protective clothing. It should not be used for strep throat, because the label notes it does not clear group A strep and will not prevent complications such as rheumatic fever.
Interactions
Give your doctor and pharmacist a complete list of your prescription drugs, over-the-counter products and supplements. Important interactions listed on the Bactrim label include:
- Warfarin: Bactrim can raise its effect and the risk of bleeding, so clotting tests may need checking
- Medicines that raise potassium: ACE inhibitors (such as lisinopril), potassium-sparing diuretics such as spironolactone and potassium supplements
- Diabetes medicines: glipizide, glyburide, pioglitazone, repaglinide and metformin, because blood sugar can drop
- Phenytoin and digoxin: blood levels can rise
- Methotrexate: levels can rise and lab tests can be affected
- Cyclosporine: higher risk of kidney problems
- Thiazide diuretics in older adults: higher risk of low platelets
- Tricyclic antidepressants: may work less well
Bactrim can also affect some lab tests, including a creatinine test for kidney function. Remind the lab that you are taking it.
Pregnancy and breastfeeding
Tell your doctor if you are pregnant or could become pregnant. The Bactrim label warns that some studies link use in pregnancy, especially early pregnancy, with a higher risk of birth defects such as neural tube and heart defects, possibly because the drug interferes with folate. MedlinePlus advises calling your doctor right away if you become pregnant while taking it. Your doctor will weigh the benefits against the risks and may choose another antibiotic.
Small amounts pass into breast milk. The label advises caution, especially for babies who are premature, ill, jaundiced or younger than 2 months, because sulfa drugs can raise bilirubin in newborns. Talk with your doctor before breastfeeding while taking Bactrim.
Storage
Store Bactrim tablets at room temperature, 68°F to 77°F (20°C to 25°C), in a tightly closed, light-resistant container, away from heat and moisture. Do not keep it in the bathroom. Keep all medicines out of reach of children. Do not save leftover antibiotics or share them; use a medicine take-back program to dispose of unused doses.
Frequently asked questions
Is Bactrim a strong antibiotic?
Bactrim is an effective, broad antibiotic for infections caused by bacteria that are sensitive to it, including many urinary tract infections. "Strong" depends on the germ: some bacteria are resistant to it, so your doctor may choose based on local resistance or a urine culture.
How fast does Bactrim work for a UTI?
Many people start to feel better within the first few days. If your symptoms do not improve or get worse, such as fever, back pain or vomiting, call your doctor. Keep taking it until the prescription is finished.
Is Bactrim a sulfa drug?
Yes. Sulfamethoxazole is a sulfonamide, or sulfa, antibiotic. If you have ever had a reaction to a sulfa drug, tell your doctor before taking Bactrim.
Can you drink alcohol while taking Bactrim?
The label does not list a specific alcohol interaction, but alcohol can worsen nausea and dehydration while you fight an infection, and heavy drinking can lower folate. Ask your doctor or pharmacist what is safe for you.
What are the most common Bactrim side effects?
Nausea, vomiting, loss of appetite and rash are the most common. Stop taking it and call your doctor at the first sign of a rash, and get urgent help for blistering, a sore throat with fever, yellow skin or severe diarrhea.