On this page · 9 sections

Sulfamethoxazole and trimethoprim

Generic name: sulfamethoxazole and trimethoprim (oral/injection)

Brand names: Bactrim, Bactrim DS, Sulfatrim Pediatric, Septra, Sulfatrim, Bethaprim, Cotrim, Uroplus, Uroplus DS, Cotrim DS, Septra I.V, Bactrim I.V, Bactrim Pediatric, Bethaprim Pediatric, Sulfatrim Suspension, Cotrim Pediatric, Septra DS, SMZ-TMP DS

Last updated November 3, 2026 0 views
Share

What is sulfamethoxazole and trimethoprim?

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

Sulfamethoxazole and trimethoprim may also be used for other reasons not mentioned in this medication guide.

This section was rewritten for readability and reviewed for meaning.

Warnings

Use only as directed. Inform your doctor if you are taking other medicines or have other medical conditions or allergies.

This section was rewritten for readability and reviewed for meaning.

Before taking this medicine

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

  • severe liver disease;
  • kidney disease that is not being treated or monitored;
  • anemia (low red blood cells) caused by folic acid deficiency;
  • a history of low blood platelets after taking trimethoprim or any sulfa drug; or
  • if you take dofetilide.

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:

  • kidney or liver disease;
  • a folate (folic acid) deficiency;
  • asthma or severe allergies;
  • HIV or AIDS;
  • a thyroid disorder;
  • malnourishment;
  • alcoholism;
  • an electrolyte imbalance (such as low blood sodium or high potassium);
  • porphyria, or glucose-6-phosphate dehydrogenase (G6PD) deficiency; or
  • if you use a blood thinner (such as warfarin) and you have routine "INR" or prothrombin time tests.

This section was rewritten for readability and reviewed for meaning.

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:

  • severe stomach pain, diarrhea that is watery or bloody (even if it occurs months after your last dose);
  • any skin rash, no matter how mild;
  • yellowing of your skin or eyes;
  • a seizure;
  • new or unusual joint pain;
  • increased or decreased urination;
  • swelling, bruising, or irritation around the IV needle;
  • increased thirst, dry mouth, fruity breath odor;
  • new or worsening cough, fever, trouble breathing;
  • high blood potassium--nausea, weakness, tingly feeling, chest pain, irregular heartbeats, loss of movement;
  • low blood sodium--headache, confusion, problems with thinking or memory, weakness, feeling unsteady; or
  • low blood cell counts--fever, chills, mouth sores, skin sores, easy bruising, unusual bleeding, pale skin, cold hands and feet, feeling light-headed or short of breath.

Common side effects of sulfamethoxazole and trimethoprim may include:

  • nausea, vomiting, loss of appetite; or
  • skin rash.

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.

This section was rewritten for readability and reviewed for meaning.

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 possible, but skip the missed dose if it is nearly time for your next dose. Do not take two doses at the same time.

This section was rewritten for readability and reviewed for meaning.

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.

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.

This section was rewritten for readability and reviewed for meaning.

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:

  • amantadine, digoxin, cyclosporine, indomethacin, leucovorin, methotrexate, procainamide, pyrimethamine;
  • an "ACE inhibitor" heart or blood pressure medication (benazepril, enalapril, lisinopril, quinapril, ramipril, and others); or
  • a diuretic or "water pill".

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.

This section was rewritten for readability and reviewed for meaning.

Common questions about sulfamethoxazole/trimethoprim

What happens if antibiotics don’t work for UTI?
If an antibiotic does not fully treat your UTI, the bacteria may be resistant and the infection can get worse. You may need more testing or a different antibiotic. A bladder infection can spread to the kidneys or bloodstream, causing a serious medical emergency. Contact your healthcare provider if your symptoms do not improve. Continue reading
What drugs should be avoided with a sulfa allergy?
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
Does Bactrim cause headaches?
Yes. Headache is a common side effect of Bactrim (sulfamethoxazole / trimethoprim) and may occur in up to 10% of patients. Most Bactrim headaches are mild and fade once treatment ends. In rare cases, a headache can be a warning sign of a serious side effect, such as aseptic meningitis, low blood sugar, or low sodium in the blood. Continue reading

Related medicines

Before you take this medicine: the information on this page is general and may not cover your personal circumstances. Read the label supplied with your medicine and ask a pharmacist or doctor if you are unsure, especially if you are pregnant, breastfeeding, taking other medicines or managing a long-term condition.
General medicine information Consumer-friendly language

Content is provided for education and is not medical advice. See our medical disclaimer.