- Whether Bactrim is appropriate in pregnancy is an individual decision made with the OB, midwife, or maternal-fetal-medicine specialist who knows your history.
- Bactrim (sulfamethoxazole-trimethoprim) is a sulfonamide antibiotic often used for urinary tract infections, and an untreated UTI in pregnancy carries its own real risks.
- ACOG describes it as usable in the first trimester only if acceptable alternatives are not available, and as a possible first-line UTI option in the second and third trimesters.
- The trimethoprim component can lower folic acid, so clinicians pay attention to folic acid intake, especially early in pregnancy; first-trimester defect data are mixed and unsettled.
- Some authors suggest avoiding sulfonamides after about 32 weeks over a theoretical, unproven concern about newborn jaundice.
- The old FDA A/B/C/D/X letter categories have been retired; do not rely on them, and never start or stop an antibiotic on your own.
- What Bactrim is and what it treats
- What the guidance says by trimester
- First trimester
- Second and third trimesters
- Near the end of pregnancy
- The other side: an untreated infection also carries risk
- Breastfeeding
- A note on the old letter categories
- Do not start or stop on your own
- When to call your OB or a specialist
- Frequently asked questions
- Sources
If you have been prescribed Bactrim, or you have taken it and then learned you are pregnant, it is natural to want a clear yes or no. The honest answer is more layered than that. Bactrim has genuine pregnancy considerations that differ by trimester, and the right choice depends on your stage of pregnancy, what is being treated, and what other options exist. This article gathers what leading U.S. sources say so you can have a more informed conversation with the clinician who manages your pregnancy. It is general education only and does not replace that conversation.
What Bactrim is and what it treats
Bactrim is a brand name for a combination of two antibiotics, sulfamethoxazole and trimethoprim, often shortened to SMZ-TMP or co-trimoxazole. Other brand names include Septra and Sulfatrim. Sulfamethoxazole belongs to the sulfonamide (or “sulfa”) family. This combination is commonly used for urinary tract infections (UTIs), certain respiratory and skin infections, and some other bacterial illnesses. Because UTIs are common in pregnancy and can become more serious if ignored, this is a medication many pregnant people are offered at some point.
What the guidance says by trimester
According to MotherToBaby, a service of the non-profit Organization of Teratology Information Specialists, the picture is not uniform across pregnancy, which is exactly why timing matters.
First trimester
Two threads run through the early-pregnancy data. First, the evidence on birth defects is genuinely mixed. Some studies have reported possible associations with heart defects, neural tube defects, cleft lip or palate, and urinary tract defects, but those studies had limitations, and other research has found no increased risk. Because the data are inconclusive, MotherToBaby notes that the American College of Obstetricians and Gynecologists (ACOG) describes SMZ-TMP as something to use in the first trimester only if acceptable alternatives are not available. Second, the trimethoprim component can lower the body’s folic acid, a nutrient that is especially important early in pregnancy. For that reason, MotherToBaby notes the general recommendation of 400 to 800 micrograms of folic acid daily, and adds that a provider might suggest more folic acid if SMZ-TMP is used in the first trimester. A couple of studies have also looked at miscarriage, with mixed and hard-to-interpret findings.
Second and third trimesters
Later in pregnancy the balance often shifts. MotherToBaby reports that ACOG considers SMZ-TMP a reasonable first-line choice for UTIs in the second and third trimesters. That reflects a practical reality: the medicine is effective, and a poorly treated UTI in pregnancy can lead to complications of its own.
Near the end of pregnancy
One additional caution appears close to delivery. Some authors have recommended not using sulfonamides such as sulfamethoxazole after about 32 weeks, based on a theoretical and unproven concern that use near term could add to the chance of severe newborn jaundice (a buildup of bilirubin that makes the eyes and skin look yellow). This is described as theoretical rather than established, and it is one of the details your clinician will weigh if treatment is being considered in late pregnancy.
The other side: an untreated infection also carries risk
It is important not to swing from caution about the antibiotic to avoiding treatment altogether. MotherToBaby stresses that UTIs are commonly treated in pregnancy precisely because pregnant people with a UTI face a higher chance of some complications, including preterm delivery and low birth weight. In other words, some of the same outcomes that appear in antibiotic studies can also stem from the underlying infection, which makes it hard to untangle cause from condition. The goal your care team aims for is treating the infection safely, not leaving it untreated.
Breastfeeding
On nursing, MotherToBaby reports that SMZ-TMP passes into breast milk in small amounts, and that in a small group of nursing parents taking it, only a couple reported poor infant feeding and no other adverse effects were documented. It also advises extra caution with a premature or jaundiced infant. As always, confirm anything specific to your baby with your own clinician.
A note on the old letter categories
You may still see Bactrim described online using an old FDA pregnancy “letter category.” Those A/B/C/D/X categories have been retired and replaced by the FDA’s Pregnancy and Lactation Labeling Rule (PLLR), which uses narrative summaries of the actual data instead of a single letter. Treat any letter grade you find as outdated shorthand, and rely on current guidance and your clinician instead.
Do not start or stop on your own
Two principles are worth holding onto. First, do not start Bactrim in pregnancy on your own, even if you have leftover tablets or took it before for a similar problem; the right antibiotic depends on the infection, your allergies, and how far along you are. Second, if Bactrim was prescribed for a real infection, do not simply stop partway through because you are worried, since a partly treated infection can rebound. The safest move is to call the prescriber and talk it through rather than deciding alone.
When to call your OB or a specialist
Reach out to your obstetric provider before taking Bactrim in pregnancy, and promptly if you have already taken it and are anxious, if you have symptoms of a UTI or kidney infection such as burning, urgency, fever, or back pain, or if you have a sulfa allergy. For a complex situation, your provider may involve a maternal-fetal-medicine specialist. For questions about a specific exposure, you can also call MotherToBaby at 1-866-626-6847, a free service that answers questions about medicines and other exposures in pregnancy and breastfeeding.
Frequently asked questions
Is Bactrim ever used in pregnancy? Yes. MotherToBaby reports that ACOG views it as a reasonable first-line UTI option in the second and third trimesters, and as a first-trimester option only when acceptable alternatives are not available. The decision is individualized with your clinician.
I took Bactrim before I knew I was pregnant. Should I panic? Try not to. The first-trimester defect data are mixed rather than clearly alarming. Tell your OB what you took and when, mention your folic acid intake, and ask any follow-up questions there or through MotherToBaby.
Why does folic acid keep coming up? The trimethoprim part of Bactrim can lower folic acid, which matters most early in pregnancy. MotherToBaby notes a general 400 to 800 microgram daily recommendation and that your provider may suggest more if the drug is used in the first trimester.
Is there a concern late in pregnancy? Some authors suggest avoiding sulfonamides after about 32 weeks over a theoretical, unproven concern about newborn jaundice. Your clinician will factor this in if treatment is considered near term.
Can I take Bactrim while breastfeeding? MotherToBaby reports only small amounts reach breast milk, with extra caution advised for a premature or jaundiced baby. Confirm your situation with your clinician.
What if I am allergic to sulfa drugs? Tell your provider before any dose. A sulfa allergy is an important reason a different antibiotic may be chosen, and that choice should be made with your clinician rather than on your own.
This article is general education, not medical advice, and must not be used to start, stop, adjust, or taper any medication on your own. Suddenly stopping some medicines can be dangerous. Always work with the prescriber who manages your care. In an emergency call 911; for mental-health crisis call or text 988.
Sources
- MotherToBaby (Organization of Teratology Information Specialists) — Sulfamethoxazole/Trimethoprim (Bactrim/Septra) fact sheet.
- American College of Obstetricians and Gynecologists (ACOG) — guidance on SMZ-TMP use for urinary tract infections by trimester, as summarized in the MotherToBaby fact sheet.
- LactMed (Drugs and Lactation Database, U.S. National Library of Medicine) — Trimethoprim-Sulfamethoxazole record.
