Skip to main content

Sulfamethoxazole and trimethoprim

Generic name: sulfamethoxazole and trimethoprim (oral/injection) [ SUL-fa-meth-OX-a-zole-and-trye-METH-oh-prim ]
Brand names: Bactrim, Bactrim DS, Sulfatrim Pediatric, Septra, Sulfatrim, ... show all 18 brands
Dosage forms: intravenous solution (80 mg-16 mg/mL), oral suspension (200 mg-40 mg/5 mL), oral tablet (400 mg-80 mg; 800 mg-160 mg)
Drug class: Sulfonamides

Medically reviewed by Drugs.com on Aug 3, 2023. Written by Cerner Multum.

What is sulfamethoxazole and trimethoprim?

Sulfamethoxazole and trimethoprim is a combination antibiotic used to treat ear infections, urinary tract infections, bronchitis, traveler's diarrhea, shigellosis, and Pneumocystis jiroveci pneumonia.

Sulfamethoxazole and trimethoprim may also be used for purposes not listed in this medication guide.

Sulfamethoxazole and trimethoprim side effects

Get emergency medical help if you have signs of an allergic reaction (hives, cough, chest pain, shortness of breath, swelling in your face or throat) or a severe skin reaction (fever, sore throat, burning eyes, skin pain, red or purple skin rash with blistering and peeling).

Seek medical treatment if you have a serious drug reaction that can affect many parts of your body. Symptoms may include: skin rash, fever, swollen glands, joint pain, muscle aches, severe weakness, pale skin, unusual bruising, or yellowing of your skin or eyes.

Sulfamethoxazole and trimethoprim may cause serious side effects. Call your doctor at once if you have:

Common side effects of sulfamethoxazole and trimethoprim may include:

This is not a complete list of side effects and others may occur. Call your doctor for medical advice about side effects. You may report side effects to FDA at 1-800-FDA-1088.

Warnings

Use only as directed. Tell your doctor if you use other medicines or have other medical conditions or allergies.

Before taking this medicine

You should not use sulfamethoxazole and trimethoprim if you are allergic to sulfamethoxazole or trimethoprim, or if you have:

May cause birth defects. Do not use if you are pregnant. Tell your doctor if you become pregnant.

Do not breastfeed.

This medicine should not be given to a child younger than 2 months old.

Tell your doctor if you have ever had:

How should I use sulfamethoxazole and trimethoprim?

Follow all directions on your prescription label and read all medication guides or instruction sheets. Use the medicine exactly as directed.

Sulfamethoxazole and trimethoprim oral is taken by mouth.

Shake the oral suspension (liquid). Measure a dose with the supplied measuring device (not a kitchen spoon).

Sulfamethoxazole and trimethoprim injection is given in a vein. Be sure you understand how to properly mix this medicine with a liquid (diluent) and how to store the mixture. Ask your doctor or pharmacist if you don't understand how to use an injection.

Prepare an injection only when you are ready to give it. Call your pharmacist if the medicine looks cloudy, has changed colors, or has particles in it.

Mixed medicine must be used within 2 to 6 hours depending on the amount of diluent in the mixture. Follow your doctor's instructions. Do not refrigerate mixed medicine.

Do not reuse a needle or syringe. Place them in a puncture-proof "sharps" container and dispose of it following state or local laws. Keep out of the reach of children and pets.

Drink plenty of fluids to prevent kidney stones.

Antibiotic medicines can cause diarrhea. Tell your doctor if you have diarrhea that is watery or bloody.

Keep using this medicine even if your symptoms quickly improve. Skipping doses could make your infection resistant to medication. Sulfamethoxazole and trimethoprim will not treat a viral infection (flu or a common cold).

You may need blood and urine tests, and this medicine may be stopped based on the results.

Store at room temperature away from moisture, heat, and light. Do not refrigerate.

What happens if I miss a dose?

Use the medicine as soon as you can, but skip the missed dose if it is almost time for your next dose. Do not use two doses at one time.

What happens if I overdose?

Seek emergency medical attention or call the Poison Help line at 1-800-222-1222.

Overdose symptoms may include loss of appetite, vomiting, fever, blood in your urine, yellowing of your skin or eyes, confusion, or loss of consciousness.

What should I avoid while using sulfamethoxazole and trimethoprim?

If you use the injection form of sulfamethoxazole and trimethoprim, do not eat or drink anything that contains propylene glycol (an ingredient in many processed foods, soft drinks, and medicines). Dangerous effects could occur.

Sulfamethoxazole and trimethoprim could make you sunburn more easily. Avoid sunlight or tanning beds. Wear protective clothing and use sunscreen (SPF 30 or higher) when you are outdoors.

What other drugs will affect sulfamethoxazole and trimethoprim?

You may need more frequent check-ups or medical tests if you also use medicine to treat depression, diabetes, seizures, or HIV.

Tell your doctor about all your current medicines. Many drugs can affect sulfamethoxazole and trimethoprim, especially:

This list is not complete and many other drugs may affect sulfamethoxazole and trimethoprim. This includes prescription and over-the-counter medicines, vitamins, and herbal products. Not all possible drug interactions are listed here.

Popular FAQ

People with a sulfa allergy typically need to avoid sulfonamide antibiotics (antibiotics containing sulfa), including:

  • Septra and Bactrim (sulfamethoxazole-trimethoprim)
  • Pediazole (erythromycin-sulfisoxazole)

Whether other nonantibiotic sulfa-containing drugs need to be avoided with sulfa allergy is unclear and considered on a case-by-case basis. Continue reading

Headache is a common side effect with Bactrim (sulfamethoxazole / trimethoprim) and may occur in up to 10% of patients. Low blood sugar, low sodium blood levels and rarely, aseptic meningitis are other side effects of Bactrim that may lead to a headache. Continue reading

More FAQ

View more FAQ

Further information

Remember, keep this and all other medicines out of the reach of children, never share your medicines with others, and use this medication only for the indication prescribed.

Always consult your healthcare provider to ensure the information displayed on this page applies to your personal circumstances.