Bacterial infections sometimes require pharmaceutical treatment, such as antibiotic medications. One common medication prescribed by doctors is trimethoprim-sulfamethoxazole (sometimes called co-trimoxazole or TMP/SMX), the generic form of Bactrim.
Trimethoprim with sulfamethoxazole works by destroying bacteria in the body, which can alleviate bacterial infections.
As with any medication, trimethoprim-sulfamethoxazole is not for everyone. Your doctor will determine if it’s the right treatment based on your infection, health history, and current medications, among other things.
To help you be an informed patient—and to make prescription medicine more transparent—this article will address what trimethoprim-sulfamethoxazole is, what it’s used for, potential side effects, and how to take it.
What Is Trimethoprim-sulfamethoxazole?
Trimethoprim-sulfamethoxazole, or generic Bactrim, is an FDA-approved prescription antibiotic medication.
A combination of two types of antibiotics, TMP/SMX treats common bacterial infections, including serious types of pneumonia called pneumocystis jiroveci pneumonia and pneumocystis carinii pneumonia (PCP).
Trimethoprim-sulfamethoxazole works by decreasing the bacteria infecting a person’s body. The two active ingredients work together to prevent a chemical many bacteria need to grow.
Once production of that chemical ceases, the bacteria also stops growing, which can help resolve an infection.
What Is It Used For?
Trimethoprim-sulfamethoxazole is an antibacterial drug used to treat infectious diseases in the body caused by bacteria. Doctors commonly prescribe it for:
- Urinary tract infections (UTIs), including those caused by Escherichia coli (e.coli)
- Otitis media (middle ear infections) in children
- Traveler’s diarrhea
- Shigellosis or shigella (bacillary dysentery)
- Chronic bronchitis flare-ups
- Acne vulgaris
- Methicillin-resistant staphylococcus aureus (also known as MRSA), a type of staph infection
- Pneumocystis jiroveci pneumonia or pneumocystis carinii pneumonia (two serious types of pneumonia in people with compromised immune systems, such as those undergoing treatment for cancer or people living with HIV)
Antibiotics, including trimethoprim-sulfamethoxazole, don’t work for viral infections such as the common cold and influenza.
Additionally, taking antibiotics too much or to try to prevent disease can result in antibiotic resistance. This is when bacteria develop a way to outlive medications meant to kill them, making the treatment obsolete.
Can You Get Trimethoprim-sulfamethoxazole Online?
Since trimethoprim-sulfamethoxazole is a prescription antibiotic medication, you need a healthcare provider’s prescription to get it.
You can take your prescription to an online pharmacy to purchase the drug online; however, it’s important that you only get medication from a licensed pharmacy that requires a prescription from a doctor.
If you don’t want to see a doctor in person or you don’t have access to one, you can chat with a K doctor, who may prescribe an antibiotic based on your symptoms.
What Forms Does Trimethoprim-sulfamethoxazole Come In?
Trimethoprim-sulfamethoxazole comes in two forms: liquid and tablet. It’s generally taken by mouth. Your doctor will instruct you on the best way to take your medication.
Make sure to follow their instructions and finish the course of treatment, even if you start to feel better after a few days. If you don’t take all of the medication, you may not completely kill off the bacteria, and the infection could return.
What Are Common Dosages of Trimethoprim-sulfamethoxazole?
Your doctor will work with you to determine the appropriate dosage of trimethoprim-sulfamethoxazole based on your infection, its severity, and your general health.
Common dosing for adults and children older than two months of age include:
- For shigellosis or urinary tract infections: 800 milligrams (mg) of sulfamethoxazole and 160 mg of trimethoprim every 12 hours for 5 days (for shigellosis) or 14 days (for UTIs)
- For chronic bronchitis flare-ups: 800 mg/160 mg every 12 hours for 10-14 days
- To treat pneumocystis jirovecii pneumonia or pneumocystis carinii pneumonia: The dose varies by weight (usually 75-100 mg of sulfamethoxazole and 15-20 mg of trimethoprim per kilogram of body weight) and is taken every 6 hours for 14-21 days
- To prevent pneumocystis jirovecii pneumonia or pneumocystis carinii pneumonia: 800 mg/160 mg once daily
- For traveler’s diarrhea: 800 mg/160 mg every 12 hours for five days
- For shigellosis, middle ear infections, or UTIs in children: 40mg/8mg every 12 hours for 5 days (for shigellosis) or 10 days (for acute ear infections and UTIs)
Side Effects of Trimethoprim-sulfamethoxazole
All medications come with a risk of unwanted side effects. Your doctor or pharmacist should give you a heads up about these. The most commonly reported side effects of trimethoprim-sulfamethoxazole are:
More rarely, people who take trimethoprim with sulfamethoxazole experience serious side effects. Talk to your doctor right away if you have any of the following:
- Chest pain, cough, or difficulty breathing
- Severe diarrhea or stomach pain
- Dark urine or pale stools
- Yellowing skin or eyes
- Skin rash, including purple spots on your skin
- Changes in urination or painful urination
- Lower back or side (flank) pain
- Confusion
- Weakness
- Muscle twitching
- Seizures
- Unusual bleeding or bruising
- Fever
- Muscle pain
- Sore throat
And if you have experience of the below allergic reaction symptoms, call 911 or seek emergency care:
- Hives or itching
- Swelling in your face or hands
- Swelling or tingling in your throat or mouth
- Chest tightness
- Difficulty breathing
How to Take Trimethoprim-sulfamethoxazole
Follow your doctor’s instructions, including how much to take and when, when prescribed trimethoprim-sulfamethoxazole. It’s important, too, to finish your course of treatment even if you begin to feel better.
To reduce the risk of unwanted side effects, drink a glass of water when you take trimethoprim-sulfamethoxazole and continue to drink water throughout the day.
If you forget to take trimethoprim-sulfamethoxazole, take it as soon as you remember. But if it’s almost time for your next dose, wait until that time to take a single dose. Don’t take extra to make up for the dose you missed.
Contraindications
It’s always important to inform your healthcare provider about your medical history. In any of the following situations, be especially sure to talk to your doctor before taking trimethoprim-sulfamethoxazole:
- Pregnancy: Trimethoprim-sulfamethoxazole can harm unborn babies, so take an effective birth control to prevent pregnancy during your course of treatment. Immediately tell your doctor if you may be pregnant while you’re using trimethoprim-sulfamethoxazole.
- Breastfeeding: This medication can harm babies through breast milk.
- Diabetes: Trimethoprim-sulfamethoxazole can interfere with glucose production and certain oral diabetes medications.
- Anticonvulsant treatment: People taking medications to prevent seizures, such as phenytoin, could be at risk for vitamin B9 (folate, or folic acid) deficiency.
- High potassium (hyperkalemia): TMP/SMX can increase potassium levels in the blood.
- Infants: Clinicians prescribe trimethoprim-sulfamethoxazole for pediatric bacterial infections, but babies under two months of age should not take this medication.
Drug Interactions
Not all medications play nicely together. Sometimes taking trimethoprim-sulfamethoxazole in addition to other drugs can cause serious interactions.
Be sure your doctor knows if you’re currently taking any medications, particularly those below.
- ACE inhibitors
- Blood thinners
- Oral diabetes medication
- Diuretics
- Leucovorin
- Indomethacin
- Anticonvulsants
- Memantine
- Methotrexate
- Pyrimethamine
Warnings
Along with less serious side effects, trimethoprim-sulfamethoxazole can cause more adverse effects, including serious, life-threatening medical problems in some people.
It’s normal to experience some gastrointestinal discomfort on antibiotics, but if you have diarrhea for more than two weeks or an exacerbation of your GI symptoms, talk to your healthcare provider or chat with a K doctor.
Some patients may experience serious skin reactions. If you have any of the following symptoms, talk to a doctor or seek medical care right away:
- Skin rash
- Blistering
- Peeling
- Loosening skin
- Itching
- Red skin lesions
- Sores
- Ulcers
- White spots in your mouth or lips
In some people, this medication can cause liver problems. Seek medical treatment if you have these symptoms:
- Darkening urine
- Lightening stool
- Stomach pain
- Jaundice (yellowing eyes or skin)
People who take higher doses of trimethoprim-sulfamethoxazole, especially for prolonged periods, could be at risk for reduced platelet count. Consult with your doctor if you experience:
- Black, tarry stools
- Blood in your urine or stool
- Unusual bleeding
All medications come with a risk of severe allergic reactions, which require immediate emergency medical care. Call a doctor or go to the emergency room if you have any of the following adverse reactions:
- Itching
- Swelling in your mouth, throat, or tongue
- Difficulty breathing
- Chest pain
Lastly, trimethoprim-sulfamethoxazole can affect certain medical tests. If you need lab work done at the doctor or dentist, tell the provider that you’re taking this antibiotic.
How K Health Can Help
Did you know you can access online urgent care with K Health?
Check your symptoms, explore conditions and treatments, and if needed, text with a healthcare provider in minutes.
K Health’s AI-powered app is based on 20 years of clinical data.
Frequently Asked Questions
K Health has strict sourcing guidelines and relies on peer-reviewed studies, academic research institutions, and medical associations. We avoid using tertiary references.
-
Bactrim™. (2013).
https://www.accessdata.fda.gov/drugsatfda_docs/label/2013/017377s068s073lbl.pdf -
Drug Database: Sulfamethoxazole / Trimethoprim. (revised 2020).
https://clinicalinfo.hiv.gov/en/drugs/sulfamethoxazole-trimethoprim/tablet-tablet-double-strength -
Sulfamethoxazole and Trimethoprim (Oral Route). (updated 2021).
https://www.mayoclinic.org/drugs-supplements/sulfamethoxazole-and-trimethoprim-oral-route/side-effects/drg-20071899 -
Trimethoprim Sulfamethoxazole. (updated 2020).
https://www.ncbi.nlm.nih.gov/books/NBK513232/