What is Bactrim: Uses, Warnings & Interactions

Updated May 14, 2025  •  Published Dec 30, 2020

Bactrim is a brand-name prescription antibiotic. Twice-daily Bactrim tablets for a few days can fight off a range of bacterial infections, most commonly urinary tract infections and ear infections. Bactrim contains two antibiotics, sulfamethoxazole and trimethoprim. These two drugs are more than just a combination. Instead, they work together to block a vital process bacteria rely on for growth.

Bactrim overview

BRAND NAMES:

  • Bactrim, Bactrim DS

Generic Names:

  • Sulfamethoxazole-trimethoprim

Uses:

  • Treats or prevents infections.

Therapeutic Classes:

  • Antibiotic, sulfonamide combination

Forms:

  • Tablet

How it’s taken:

  • By mouth

What is Bactrim used for?

Healthcare professionals use Bactrim to treat various infections in adults and children, including urinary tract infections, middle ear infections, chronic bronchitis, Shigellosis, pneumocystis pneumonia, and traveler’s diarrhea (a parasite infection). Bactrim is also used off-label for several other infections, including acne and pneumonia.

What form(s) does Bactrim come in

  • Tablet

    • 400 mg sulfamethoxazole/80 mg trimethoprim

    • 800 mg/160 mg

What are common Bactrim doses?

  • For urinary tract infections: 

    • In adults: 800 mg/160 mg (one Bactrim DS tablet or two Bactrim tablets) taken every 12 hours for 10–14 days

    • In children: 40 mg/8 mg per kilogram of body weight daily divided into two doses for 10 days

  • For middle ear infections in children: 40 mg/8 mg per kilogram of body weight daily divided into two doses for 10 days

  • For Shigellosis: 

    • In adults: 800 mg/160 mg (one Bactrim DS tablet or two Bactrim tablets) taken every 12 hours for 5 days

    • In children: 40 mg/8 mg per kilogram of body weight daily taken in two divided doses for 5 days

  • For bronchitis in adults:  800 mg/160 mg (one Bactrim DS tablet or two Bactrim tablets) taken every 12 hours for 14 days

  • For treatment of pneumocystis jirovecii pneumonia in adults and children: Dose is based on weight, and doses are taken every 6 hours for 14–21 days

    • For prevention of pneumocystis jirovecii in adults: 400 mg/80 mg (1 Bactrim tablet) taken once per day

    • For prevention of pneumocystis jirovecii in children: Dose based on weight taken twice per day for three consecutive days weekly

  • For traveler’s diarrhea in adults: 800 mg/160 mg (one Bactrim DS tablet or two Bactrim tablets) taken every 12 hours for 5 days

Common Bactrim prescriptions

  • Bactrim
    20 tablets bottle

  • Bactrim
    400-80mg tablet

How to take Bactrim

  • Your doctor will tell you how much medicine to use. Use only directed.

  • Take all of the medicine in your prescription to clear up your infection, even if you feel better after the first few doses.

  • Tablets can be taken with or without food.

  • Swallow the tablet whole with eight ounces of water. Drink plenty of fluids when taking Bactrim.

  • The tablets have score lines that can be broken into two separate doses. This may be necessary when giving Bactrim to children. Ask the pharmacist to demonstrate if you don’t know how to divide a tablet.

  • Store the medicine in a closed, light-resistant container at room temperature.

What to do if you miss a dose of Bactrim

  • Take a dose as soon as you remember. If it is almost time for your next dose, wait until then and take a regular dose. Do not take extra medicine to make up for a missed dose.

Bactrim contraindications

  • This medicine is not right for everyone. 

  • Do not use it if you have had an allergic reaction to trimethoprim, sulfamethoxazole, or any sulfa drug

  • Bactrim should never be taken by people who:

    • Are pregnant

    • Are younger than 2 years of age

    • Have a history of drug-induced blood clotting problems due to sulfamethoxazole-trimethoprim

    • Have a history of anemia due to folate deficiency (vitamin B9 deficiency)

    • Have liver damage

    • Have severe kidney impairment

Bactrim warnings

  • Tell any doctor or other healthcare provider who treats you that you are using this medicine.

  • Your doctor may need to perform lab tests regularly to monitor the infection and the effects of this medicine. Keep all appointments.

  • It is not safe to take this medicine during pregnancy. It could harm an unborn baby. Tell your doctor right away if you become pregnant.

  • Tell the doctor if you’re breastfeeding.

  • Also, tell the prescribing doctor if you have:

    • Kidney problems

    • Liver damage

    • Problems absorbing nutrients from food

    • Malnourishment issues

    • Folate deficiency (low levels of vitamin B9)

    • Thyroid issues

    • A history of alcoholism

    • Severe allergies

    • Asthma

    • HIV/AIDS infection

    • Porphyria

    • A genetic disorder of the blood called G6PD deficiency

  • This medicine may cause the following problems: 

    • Red blood cell death

    • Bleeding problems

    • Anemia

    • Kidney problems

    • Liver injury

    • Heart problems

    • Low blood sugar

    • Electrolyte imbalances, including high potassium and low sodium

    • Severe muscle damage

    • Severe drug or allergic reactions

  • This medicine can cause severe diarrhea, which may occur several weeks or months after treatment ends. Call your doctor if you experience severe, watery, persistent, or bloody diarrhea. Do not take any medicine to treat the diarrhea until you have talked to your doctor. 

Bactrim interactions

  • To avoid potentially hazardous drug interactions, tell the prescribing healthcare provider about all prescription drugs, over-the-counter medications, and supplements you use before taking Bactrim.

  • Tell other healthcare providers you are using Bactrim before they prescribe new medications. Bactrim may affect some blood tests or interact with other drugs.

  • Bactrim should never be taken with the heart medication dofetilide.

  • Bactrim can cause problems when combined with certain medications. In some cases, healthcare professionals will avoid the combination if they can. Other combinations may require increased monitoring for side effects. These drugs include:

Find more detailed information about sulfamethoxazole-trimethoprim interactions to avoid here.

Bactrim side effects

Serious side effects

Talk to a doctor if you notice any signs or symptoms of a possible serious side effect, including:

  • Uneven heartbeat, trouble breathing, numbness or tingling in your hands, feet, or lips, weakness, fatigue, muscle pains, mental changes, confusion

  • Unusual bleeding or bruising

  • Change in how much or how often you urinate, painful urination, lower back or side pain

  • Dark urine or pale stools, nausea, vomiting, loss of appetite, stomach pain, yellow skin or eyes

  • Chest pain, cough, trouble breathing, abnormal heartbeats, racing heartbeats

  • Severe muscle pain, dark urine

  • Severe diarrhea, bloody diarrhea, stomach pain, cramps, bloating

  • Blistering, peeling, or red skin rash

  • Allergic reaction: Itching or hives, swelling in your face or hands, swelling or tingling in your mouth or throat, chest tightness, trouble breathing

Less serious side effects

  • Nausea

  • Vomiting

  • Appetite loss

  • Stomach upset

Sources:

Subscribe to our savings newsletter

Health education, drug info, wellness & more

By clicking 'Subscribe', I agree to SingleCare's Terms & Conditions.