Trimethoprim/Sulfamethoxazole (Bactrim): What You Need to Know
Trimethoprim/sulfamethoxazole, sold under the brand names Bactrim and Septra, is a combination antibiotic used to treat urinary tract infections, certain skin and soft tissue infections including MRSA (methicillin-resistant Staph aureus), and some respiratory infections. It combines two drugs that block different steps in bacterial growth, making it effective against bacteria that resist other antibiotics. Understanding how to take it correctly, what side effects to watch for, and which other drugs it interacts with helps you get the full benefit while staying safe.
Common Uses and How It Works
Bactrim is prescribed most often for uncomplicated urinary tract infections (UTIs), especially when the bacteria causing the infection are known or expected to be susceptible to it. Your provider may send a urine culture to confirm this before or shortly after starting treatment.
It is also a first-line treatment for skin and soft tissue infections caused by MRSA, a type of Staph aureus that does not respond to many common antibiotics such as amoxicillin or cephalexin.
Other uses include prevention and treatment of Pneumocystis pneumonia (a lung infection that can occur in people with weakened immune systems), certain intestinal infections, and traveler's diarrhea.
The drug works by blocking two sequential steps in the bacterial production of folate, a nutrient bacteria need to grow. Human cells get folate from food rather than making it themselves, which is why the drug can kill bacteria without harming human cells at the same mechanism.
Take each dose with a full glass of water (8 ounces). Drink extra fluids throughout the day to help flush the kidneys and reduce the risk of crystalluria, a rare condition where the drug forms crystals in the urine.
Side Effects to Know
Sun sensitivity (photosensitivity): Bactrim makes your skin more reactive to ultraviolet light. You may burn more easily than usual. Wear sunscreen of SPF 30 or higher, protective clothing, and limit direct sun exposure while taking this medication.
Nausea and stomach upset are common, especially when taken on an empty stomach. Taking the medication with food or milk can reduce these effects.
Skin rash: a mild rash occurs in about 3 to 5% of patients. Stop taking the medication and contact your provider right away if you develop any rash, as a small number of cases can progress to a severe skin reaction called Stevens-Johnson syndrome, which causes widespread blistering and requires emergency care.
Changes in blood counts: Bactrim can reduce certain blood cell counts with prolonged use. In patients on long-term therapy, providers may monitor blood counts periodically.
Elevated potassium: Bactrim can raise potassium levels (hyperkalemia), particularly in patients with kidney disease or those taking certain blood pressure medications such as ACE inhibitors (lisinopril, enalapril) or potassium-sparing diuretics. Symptoms of high potassium include muscle weakness, irregular heartbeat, or tingling in the extremities.
Drug Interactions and Precautions
Warfarin (Coumadin): Bactrim significantly increases the blood-thinning effect of warfarin. If you are on warfarin, your INR (a measure of clotting time) will likely need to be checked shortly after starting Bactrim and possibly more frequently during treatment.
Methotrexate: Bactrim can increase methotrexate levels in the blood, raising the risk of toxicity. Tell your provider if you take methotrexate for any condition including rheumatoid arthritis, psoriasis, or cancer.
ACE inhibitors and potassium-sparing diuretics: combining these with Bactrim raises the risk of dangerously high potassium. Your provider should review all your medications before prescribing Bactrim.
Phenytoin (Dilantin), a seizure medication: Bactrim can slow how the body breaks down phenytoin, causing phenytoin levels to rise. If you take phenytoin, your care team may monitor levels more closely.
Tell your provider if you have kidney or liver disease, glucose-6-phosphate dehydrogenase (G6PD) deficiency, a sulfa drug allergy, or are pregnant. Bactrim is generally avoided in the first trimester of pregnancy and in the last few weeks before delivery due to risks to the developing infant.
Frequently asked
Questions patients ask.
Do I need to finish the full course of Bactrim even if I feel better?
Yes. Stopping early, even when symptoms have resolved, can allow surviving bacteria to multiply and cause a relapse that is harder to treat. Complete the full prescribed course unless your provider instructs otherwise. UTI courses are typically 3 to 7 days; skin infection courses are often 5 to 10 days depending on severity.
Can I take Bactrim with over-the-counter pain relievers?
Acetaminophen (Tylenol) is generally safe to take alongside Bactrim. NSAIDs such as ibuprofen or naproxen are usually acceptable for short-term use but should be used cautiously in patients with kidney problems, as both Bactrim and NSAIDs can affect kidney function independently.
What should I do if I miss a dose?
Take the missed dose as soon as you remember, unless it is almost time for your next scheduled dose. In that case, skip the missed dose and resume your regular schedule. Do not take two doses at once to make up for a missed one.
Is it safe to be in the sun while taking Bactrim?
You can go outside, but you need to take precautions. Apply broad-spectrum SPF 30 or higher sunscreen to exposed skin, wear a hat, and try to avoid prolonged direct sun exposure, especially between 10am and 4pm when ultraviolet radiation is strongest. Even brief unprotected sun exposure can cause a burn that is more severe than expected while on this medication.
For patients
Get a personalized care plan.
This guide provides general information. For instructions tailored to your specific procedure, ask your provider about QR Rx care plans.
These medication guides are for educational purposes only and do not replace medical advice. Always follow your healthcare provider's specific medication instructions.