Bactrim (sulfamethoxazole-trimethoprim): uses, dosage, side effects and refills
Sulfamethoxazole-trimethoprim (Bactrim, Bactrim DS) is a two-drug antibiotic tablet taken every 12 hours for urinary tract infections, some ear and chest infections, traveler's diarrhea, and Pneumocystis pneumonia. Stop it at the first sign of a skin rash: the label links it to rare but fatal skin, liver and blood reactions.
Prices checked on October 6, 2026
Cost
Generic TMP-SMX is one of the least expensive antibiotics to fill. Mark Cuban Cost Plus Drugs listed these cash prices, which include its $5 pharmacy fee; standard shipping adds $5.25 (Cost Plus Drugs, checked 6 Oct 2026):
| Strength | 30 tablets | 60 tablets | 90 tablets |
|---|---|---|---|
| 800/160 mg (DS) | $6.17 | $7.35 | $8.52 |
| 400/80 mg (single strength) | $6.12 | $7.25 | $8.37 |
The DS tablet works out to about $0.04 each before the fee, so a 3-day or 14-day course costs little more than the fee itself. The oral suspension was listed at about $0.03 per mL. Brand Bactrim costs more. Most insurance plans cover the generic at the lowest tier. Whatever you pay at the counter is the pharmacy's price; Temi adds nothing to it (usetemi.com/about, checked 6 Oct 2026).
Quick facts
- Generic name
- Sulfamethoxazole and trimethoprim (co-trimoxazole, TMP-SMX)
- Brand names
- Bactrim, Bactrim DS
- Drug class
- Sulfonamide + trimethoprim; blocks two steps of bacterial folate synthesis
- Used for
- UTIs, otitis media in children, chronic bronchitis flares, shigellosis, Pneumocystis pneumonia, traveler's diarrhea
- Forms and strengths
- Tablets 400/80 mg (single strength) and 800/160 mg (DS); suspension 200/40 mg per 5 mL
- How often
- Every 12 hours for most infections; once daily for Pneumocystis prevention
- Prescription status
- Rx only; not a controlled substance
- Generic available?
- Yes
- Boxed warning
- None, but the label warns of fatal skin, liver and blood reactions
- Pregnancy
- Label warns of possible birth-defect risk; ask your prescriber
- Typical cash price
- $6.17 for 30 DS tablets, plus $5.25 shipping (Cost Plus Drugs, checked 6 Oct 2026)
- Can Temi refill it?
- A Temi physician can review it: $69 new prescription; refill $15 first, then $69 (usetemi.com, checked 4 Dec 2026)
What it is
Sulfamethoxazole-trimethoprim pairs two older antibiotics in a fixed 5-to-1 ratio. Each Bactrim DS (double strength) tablet holds 800 mg of sulfamethoxazole and 160 mg of trimethoprim; the single-strength Bactrim tablet holds half that, 400 mg and 80 mg (Bactrim label). Pharmacists and doctors often shorten the name to TMP-SMX, SMX-TMP or co-trimoxazole, and many people simply call it "Bactrim" whatever the manufacturer.
It remains one of the most-filled antibiotics in the country. ClinCalc ranked it 135th among all US prescription drugs in 2024, with about 4.64 million prescriptions.
Three things set it apart from most antibiotics:
- It is a sulfa drug. People with a sulfonamide allergy cannot take it.
- It reaches high levels in urine. Urine concentrations of both parts are considerably higher than blood levels, which is why it is so often used for bladder infections (Bactrim label).
- It is cheap. Generic DS tablets cost a few cents each at cash-price pharmacies.
It is sold as tablets and an oral suspension for children, and an IV form is used in hospitals.
Uses
The Bactrim label lists these FDA-approved uses, each for infections caused by susceptible bacteria:
- Urinary tract infections caused by E. coli, Klebsiella, Enterobacter, Morganella morganii and Proteus species. The label itself says first episodes of uncomplicated UTI are better treated with a single effective antibiotic than with the combination.
- Acute otitis media in children, when the prescriber judges it has an advantage over other options. It is not for long-term or preventive use in ear infections.
- Acute flare-ups of chronic bronchitis in adults, due to Streptococcus pneumoniae or Haemophilus influenzae.
- Shigellosis (bacterial dysentery) from Shigella flexneri or Shigella sonnei.
- Pneumocystis jirovecii pneumonia (PCP): both treatment and prevention in people with weakened immune systems, such as those with HIV or on transplant drugs.
- Traveler's diarrhea in adults caused by enterotoxigenic E. coli.
How guidelines use it for bladder infections. The IDSA and European guideline on uncomplicated cystitis in women (2010) recommends one DS tablet twice daily for 3 days, shorter than the label's 10 to 14 days, but only where local resistance among urinary bacteria does not exceed 20% or the strain is known to be susceptible. For kidney infection (pyelonephritis) it suggests 14 days if the organism is susceptible.
What it does not treat. The label says sulfonamides should not be used for strep throat (group A streptococcus), because they will not clear the infection or prevent rheumatic fever. Like all antibiotics, it does nothing for colds or flu.
How it works
Bacteria cannot absorb ready-made folate from their surroundings the way human cells do. They have to build it from scratch, and they need it to make DNA and proteins. TMP-SMX cuts that assembly line in two places (Bactrim label, Microbiology):
- Sulfamethoxazole competes with para-aminobenzoic acid (PABA), a raw material, so the bacterium cannot make dihydrofolic acid.
- Trimethoprim blocks dihydrofolate reductase, the enzyme that converts dihydrofolic acid into its active form, tetrahydrofolic acid.
Hitting two consecutive steps makes the pair more effective than either drug alone, and the label notes that in laboratory studies resistance develops more slowly to the combination.
After a tablet, both parts peak in the blood within 1 to 4 hours. Their half-lives are about 10 hours for sulfamethoxazole and 8 to 10 hours for trimethoprim, which supports twice-daily dosing. The kidneys remove most of each dose: within 72 hours, 84.5% of the sulfonamide and 66.8% of free trimethoprim are recovered in urine. Because elimination depends on the kidneys, severe kidney impairment lengthens both half-lives and calls for a lower dose.
Before taking it
Do not take TMP-SMX if any of these apply (Bactrim label, Contraindications):
- An allergy to trimethoprim or any sulfonamide ("sulfa") drug.
- A past drop in platelets (immune thrombocytopenia) caused by trimethoprim or a sulfonamide.
- Megaloblastic anemia due to folate deficiency.
- Marked liver damage, or severe kidney insufficiency where kidney function cannot be monitored.
- You take dofetilide (Tikosyn), a heart-rhythm drug.
- The patient is a baby under 2 months old.
Tell your prescriber before starting if you have:
- Kidney or liver disease. Doses are halved when creatinine clearance is 15 to 30 mL/min, and use is not recommended below 15.
- Possible folate deficiency: older age, heavy alcohol use, seizure medicines, malabsorption or poor nutrition.
- G6PD deficiency, which can lead to red-cell breakdown (hemolysis).
- Asthma or severe allergies, porphyria, or a thyroid disorder.
- HIV, since people with AIDS have higher rates of rash, fever and low white counts on this drug.
- Diabetes treated with a sulfonylurea, pioglitazone or metformin, because low blood sugar is possible.
- High potassium, or use of an ACE inhibitor, potassium supplement or other potassium-raising drug.
- Pregnancy, plans to become pregnant, or breastfeeding.
If you recently finished a course of TMP-SMX, mention it: the label describes circulatory shock occurring within minutes to hours of restarting it after recent use.
How to take it
Take each dose by mouth about every 12 hours, keeping the times as even as you can (Bactrim label; MedlinePlus). Food is not required, but taking it with a meal can ease nausea.
Drink plenty of fluids. The label asks patients to maintain good fluid intake to prevent crystals and stones forming in the urine, and MedlinePlus repeats this. A full glass of water with each tablet and steady drinking through the day is a practical habit.
Liquid form. Shake the suspension well before every dose and use a dosing syringe or cup, not a kitchen spoon (MedlinePlus).
Finish the course. Most people feel better within the first few days. Stopping early can leave bacteria behind and encourage resistance. Call your prescriber if symptoms are no better after a few days or get worse, and for a urinary infection, if fever, back or side pain appears.
Watch your skin every day. The single most important instruction on the label is to stop the drug and contact a clinician at the first appearance of a rash, or with sore throat, fever, joint pain, cough, shortness of breath, pale skin, unexplained bruising or yellowing of the skin. A rash can be the first sign of Stevens-Johnson syndrome or another severe reaction.
Sun. Photosensitivity is listed among the label's reactions. Sunscreen and covering up while on the course are sensible.
Long courses. If you take it for weeks, for example to prevent Pneumocystis, the label asks for regular blood counts, kidney tests and electrolytes.
Dosing
| Use | Typical dose | Maximum | Notes |
|---|---|---|---|
| Urinary tract infection (adult) | 1 DS tablet (800/160 mg) or 2 single-strength tablets every 12 hours | 10 to 14 days per label | IDSA 2010 cystitis guideline: 3 days where local resistance is 20% or lower |
| Shigellosis (adult) | 1 DS tablet every 12 hours | 5 days | Same daily dose as UTI, shorter course (Bactrim label) |
| Chronic bronchitis flare (adult) | 1 DS tablet every 12 hours | 14 days | For S. pneumoniae or H. influenzae |
| Traveler's diarrhea (adult) | 1 DS tablet every 12 hours | 5 days | Enterotoxigenic E. coli only |
| Pneumocystis pneumonia, treatment | 75 to 100 mg/kg sulfamethoxazole + 15 to 20 mg/kg trimethoprim per day, split every 6 hours | 14 to 21 days | Weight-based; usually started under close supervision |
| Pneumocystis pneumonia, prevention (adult) | 1 DS tablet once daily | Ongoing while immune risk lasts | Children: 750/150 mg per m² per day on 3 days a week |
| UTI or ear infection (child 2 months and older) | 40 mg/kg sulfamethoxazole + 8 mg/kg trimethoprim per day in 2 doses | 10 days; not exceed adult dose | Contraindicated under 2 months of age |
Dosing notes
Kidney function decides the dose. The Bactrim label uses creatinine clearance (CrCl): above 30 mL/min, the usual regimen; 15 to 30 mL/min, half the usual regimen; below 15 mL/min, use is not recommended. You can estimate kidney function with Temi's eGFR calculator, but your prescriber will use your actual lab results.
Older adults. The label lists severe skin reactions, bone-marrow suppression, low platelets and high potassium as the most frequently reported severe reactions in older patients, and advises keeping courses as short as possible. Trimethoprim clearance is lower in older adults.
Pneumocystis doses are calculated by weight and are much higher than UTI doses, which is when high potassium and low sodium are most likely.
Chronic overuse. High doses or long courses can cause bone-marrow depression; the label treats it with leucovorin 5 to 15 mg daily.
Your prescriber sets your dose and duration. Do not adjust either on your own.
If you miss a dose
Take a forgotten tablet once you notice, unless the next dose is close, in which case leave it out and continue on schedule. Never take two doses at once to catch up (MedlinePlus). Because the course is short, try to keep the 12-hour spacing; a pill organizer or phone alarm helps.
Overdose
The label reports these signs of sulfonamide overdose: loss of appetite, colic, nausea, vomiting, dizziness, headache, drowsiness and unconsciousness, sometimes with fever, blood or crystals in the urine. Too much trimethoprim can add confusion, depression and bone-marrow suppression; jaundice and blood disorders may appear later. Hemodialysis removes only a moderate amount. Poison Help (1-800-222-1222) gives free, confidential advice on what to do next; collapse, seizures, or trouble breathing or waking mean calling 911 instead.
What to avoid
- Dehydration. Low fluid intake raises the risk of crystals in the urine (Bactrim label).
- Extra sun or tanning beds without protection, since photosensitivity is a listed reaction.
- Potassium supplements and salt substitutes (potassium chloride) unless your prescriber approves them, because trimethoprim can raise potassium.
- Leucovorin during treatment of Pneumocystis pneumonia: the label reports treatment failure and excess deaths with the combination in people with HIV.
- Heavy drinking. Chronic alcohol use is a folate-deficiency risk the label names.
- Restarting leftover tablets for a new infection without advice; re-exposure after recent use is when circulatory shock has been reported.
Common side effects
| Side effect | Frequency | Source |
|---|---|---|
| Nausea | Among the most common (no rate given) | Bactrim label, Adverse Reactions |
| Vomiting | Among the most common (no rate given) | Bactrim label, Adverse Reactions |
| Loss of appetite (anorexia) | Among the most common (no rate given) | Bactrim label, Adverse Reactions |
| Rash | Among the most common allergic reactions (no rate given) | Bactrim label, Adverse Reactions |
| Hives (urticaria) and itching | Reported (no rate given) | Bactrim label, Adverse Reactions |
| Diarrhea and abdominal pain | Reported (no rate given) | Bactrim label, Adverse Reactions |
| Sun sensitivity | Reported (no rate given) | Bactrim label, Adverse Reactions |
| Headache, dizziness or ringing in the ears | Reported (no rate given) | Bactrim label, Adverse Reactions |
| Weakness, fatigue or insomnia | Reported (no rate given) | Bactrim label, Adverse Reactions |
| Raised potassium on blood tests | Reported; more likely at high doses or with kidney disease | Bactrim label, Precautions |
Serious side effects
| Effect | Signs | What to do |
|---|---|---|
| Severe skin reaction (SJS, TEN, DRESS, AGEP) | Rash, blisters, peeling skin, mouth sores, fever, swollen glands | Stop taking it and get emergency care the same day. |
| Blood disorders (low platelets, agranulocytosis, aplastic anemia) | Unusual bruising or purple spots, nosebleeds, sore throat with fever, pale skin, extreme tiredness | Stop it and call your prescriber now; a blood count is needed. |
| Liver injury, including fulminant hepatic necrosis | Yellow skin or eyes, dark urine, pale stools, pain under the right ribs | Stop it and seek urgent medical care. |
| Lung injury or respiratory failure | New cough, chest pain, shortness of breath within days to weeks of starting | Call 911 for trouble breathing; otherwise urgent same-day care. |
| Circulatory shock on re-exposure | Fever, very low blood pressure and confusion minutes to hours after a dose | Call 911. |
| High potassium or low sodium | Muscle weakness, irregular heartbeat, confusion, nausea, headache | Contact your prescriber promptly for blood tests; call 911 for palpitations with fainting. |
| Low blood sugar | Shakiness, sweating, hunger, confusion, especially in kidney or liver disease | Take fast sugar, then call your prescriber; call 911 if the person cannot swallow. |
| C. difficile diarrhea | Watery or bloody diarrhea, cramps, fever, even up to 2 months after the course | Call your prescriber; do not take anti-diarrhea medicine without advice. |
Interactions
| Substance | Level | What happens |
|---|---|---|
| Dofetilide (Tikosyn) | avoid | Contraindicated. Trimethoprim raises dofetilide levels, risking dangerous QT-related arrhythmias (Bactrim label). |
| Warfarin | monitor | Can prolong clotting time; INR should be rechecked during the course (Bactrim label). |
| Methotrexate | avoid | Raises free methotrexate levels and can interfere with some methotrexate blood assays (Bactrim label). |
| ACE inhibitors (lisinopril, enalapril) and other potassium-raising drugs | avoid | Label lists avoiding concurrent use after hyperkalemia cases in older adults; monitor potassium if unavoidable. |
| Thiazide diuretics (hydrochlorothiazide) | avoid | Higher rate of low platelets with purpura reported in older adults (Bactrim label). |
| Phenytoin | monitor | Phenytoin half-life rose 39% and clearance fell 27%; watch for excess phenytoin effect (Bactrim label). |
| Sulfonylureas, pioglitazone, repaglinide, metformin | monitor | Blood sugar can drop; check glucose more often (Bactrim label). |
| Digoxin | monitor | Digoxin levels can rise, especially in older adults (Bactrim label). |
| Cyclosporine | avoid | Reversible kidney toxicity reported in kidney-transplant patients (Bactrim label). |
| Amantadine and memantine | avoid | A case of toxic delirium with amantadine; label advises avoiding these OCT2 substrates. |
| Pyrimethamine over 25 mg weekly | avoid | Megaloblastic anemia reported with the combination (Bactrim label). |
| Tricyclic antidepressants | monitor | Antidepressant effect may decrease (Bactrim label). |
| Procainamide | monitor | Trimethoprim raises procainamide and NAPA levels, further prolonging the QT interval (Bactrim label). |
| Leucovorin (during Pneumocystis treatment) | avoid | Treatment failure and excess deaths seen in a randomized trial in HIV (Bactrim label). |
| Alcohol | use with caution | No direct label interaction, but chronic heavy drinking is a named risk for folate deficiency on this drug. |
Pregnancy and breastfeeding
Pregnancy. The Bactrim label carries an embryofetal toxicity warning: some studies suggest first-trimester exposure may be linked to neural tube defects, heart and urinary tract malformations, oral clefts and club foot, though other studies found no clear association. Because it interferes with folate, the label reserves it in pregnancy for cases where the potential benefit outweighs the risk to the fetus. ACOG Committee Opinion 717 (2017) considers sulfonamides acceptable first-line options in the second and third trimesters, and appropriate in the first trimester when no suitable alternative exists. Untreated urinary infection in pregnancy carries its own risks, so ask your prescriber which option fits your trimester.
Breastfeeding. Milk levels are about 2% to 5% of an infant dose. The label advises caution, especially with jaundiced, ill, stressed or premature babies, because sulfonamides can displace bilirubin.
Storage
The Bactrim label asks for storage between 20°C and 25°C (68°F and 77°F), dispensed in a tightly closed container that keeps out light. Keep the suspension as the pharmacy label directs. Keep all medicines out of children's reach, and do not save leftover tablets for a future infection.
Related medications
- Nitrofurantoin (Macrobid): a bladder-only antibiotic used for uncomplicated cystitis.
- Ciprofloxacin (Cipro): a fluoroquinolone kept for cases with no alternative.
- Levofloxacin: a once-daily fluoroquinolone for kidney and lung infections.
- Cephalexin (Keflex): a cephalosporin option for some urinary and skin infections.
- Amoxicillin-clavulanate (Augmentin): a penicillin-type alternative.
- Phenazopyridine (Pyridium, AZO): eases urinary burning while an antibiotic works.
- Lisinopril: an ACE inhibitor that can raise potassium alongside trimethoprim.
Getting it with Temi
TMP-SMX is not a controlled substance. Temi's new prescription page names antibiotics for everyday infections, UTIs included, as something its physicians review, at a one-time $69 fee (usetemi.com/get-prescribed, checked 4 Dec 2026). A Temi physician decides whether an online review is appropriate or whether you need a urine culture or in-person exam first; approval is not guaranteed, and the fee pays for the review either way. Ongoing use, such as daily Pneumocystis prevention, can be renewed through refills at $15 for the first refill and $69 for each after, or $0 with Temi Care (usetemi.com/prescription/refills, checked 4 Dec 2026). Expect an answer within 48 hours; an approved prescription is sent to whichever pharmacy you name.
Frequently asked questions
What is sulfamethoxazole-trimethoprim used to treat?
It treats urinary tract infections, ear infections in children, flare-ups of chronic bronchitis, shigellosis, traveler's diarrhea from E. coli, and Pneumocystis pneumonia, which it can also prevent (Bactrim label). It works only on bacteria, so it will not help a cold or flu, and the label says it should not be used for strep throat.
How long does Bactrim take to work for a UTI?
Most people notice burning and urgency easing within the first few days of treatment (MedlinePlus). Blood levels peak 1 to 4 hours after a dose (Bactrim label). If symptoms are not improving after two or three days, or you develop fever or back pain, contact your prescriber, because the bacteria may be resistant or the infection may have reached the kidney.
Is Bactrim DS a strong antibiotic?
"DS" means double strength: 800 mg sulfamethoxazole and 160 mg trimethoprim, twice the single-strength tablet (Bactrim label). It is a broad, effective drug for susceptible bacteria, but strength is not the right measure. Resistance is: the IDSA guideline advises against relying on it for bladder infections where more than 20% of local urinary bacteria resist it.
Can I take Bactrim if I am allergic to sulfa?
No. A known allergy to sulfonamides or to trimethoprim is a contraindication on the Bactrim label. Tell your prescriber exactly what happened with the earlier reaction, because there are several non-sulfa antibiotics for urinary and other infections, such as nitrofurantoin or a cephalosporin, depending on the infection.
Can you drink alcohol while taking sulfamethoxazole-trimethoprim?
The Bactrim label does not list a direct alcohol interaction, unlike metronidazole. It does name chronic heavy drinking as a risk for folate deficiency, which makes blood problems on this drug more likely. Alcohol can also worsen nausea and dehydration while you are fighting an infection, so keeping it minimal during the course is reasonable.
Why do I need to drink so much water on Bactrim?
The label asks patients to keep up their fluid intake to stop crystals and stones forming in the urine, a recognized effect of sulfonamides called crystalluria. Staying well hydrated also helps flush a urinary infection. A full glass of water with each dose and regular drinking through the day covers it for most people.
Can Bactrim raise potassium?
Yes. Trimethoprim acts on the kidney in a way that can raise blood potassium, most often at high doses, in kidney disease, or with ACE inhibitors and other potassium-raising drugs (Bactrim label). Ask your prescriber whether you need a potassium check if you take lisinopril, spironolactone or potassium supplements.
Is Bactrim safe during pregnancy?
It is used with caution. The label warns of a possible link between first-trimester use and birth defects, including neural tube defects. ACOG says sulfonamides may be used first-line in the second and third trimesters and in the first trimester when no suitable alternative exists. Ask your prescriber: "Given my trimester, is there an equally effective alternative?"
Sources
- Bactrim and Bactrim DS (sulfamethoxazole and trimethoprim) tablets, prescribing information, Sun Pharmaceutical (DailyMed, published 1 Jan 2025) (checked October 6, 2026)
- Co-trimoxazole: MedlinePlus Drug Information (NLM) (checked October 6, 2026)
- Gupta K et al. International clinical practice guidelines for the treatment of acute uncomplicated cystitis and pyelonephritis in women: 2010 update by IDSA and ESCMID. Clin Infect Dis 2011;52(5):e103 (checked October 6, 2026)
- ACOG Committee Opinion No. 717: Sulfonamides, nitrofurantoin, and risk of birth defects. Obstet Gynecol 2017;130(3):666 (checked October 6, 2026)
- Cost Plus Drugs: Sulfamethoxazole/Trimethoprim 800 mg-160 mg tablet (checked October 6, 2026)
- Cost Plus Drugs: Sulfamethoxazole/Trimethoprim 400 mg-80 mg tablet (checked October 6, 2026)
- Cost Plus Drugs: Sulfamethoxazole-Trimethoprim 200-40 mg/5 mL suspension (checked October 6, 2026)
- ClinCalc DrugStats: Sulfamethoxazole; Trimethoprim, 2024 prescription count (checked October 6, 2026)
- Get prescribed, Temi (usetemi.com/get-prescribed) (checked December 4, 2026)
- Prescription refills, Temi (usetemi.com/prescription/refills) (checked December 4, 2026)
- About Temi (usetemi.com/about) (checked December 4, 2026)
Need a new prescription for a medication you already take?
Start a prescription renewal for an eligible non-controlled medication.
Start your refill