Yes, many antibiotics are safe in pregnancy for UTI, especially in the second trimester. Learn which dosages are effective and safe, and discover important considerations for your health and baby's well-being.
By Shubhra Mishra — a mom of two who turned her own confusion during pregnancy into BumpBites, a global mission to make food choices clear, safe, and stress-free for every expecting mother. 💛
Check whether any food is safe during pregnancy with the BumpBites Food Safety Checker.
Quick verdict: ⚠️ Safe with limits – most antibiotics used for urinary‑tract infections are considered safe in pregnancy when prescribed at the appropriate dose, but some (especially in the first trimester) should be avoided unless truly needed. Talk to your provider to pick the right drug and dose for you.
It’s 2 a.m., the bathroom light flickers on, and you’re suddenly sure you’ve felt a burning sensation while urinating. The thought that “maybe I have a UTI” collides with a new worry: “Are antibiotics safe in pregnancy for UTI?” You’re not alone. Many expecting parents search the same question, especially after the first prenatal visit when a urine test reveals bacteria. The good news is that, for most pregnant people, the antibiotics doctors commonly prescribe for a urinary‑tract infection are considered safe, but the choice of drug, timing, and dosage matter.
In this article we’ll give you a clear, evidence‑based verdict on antibiotics safe in pregnancy for UTI, break down safety by each trimester, explain typical dosages, list safer alternatives, and point out red‑flag signs that warrant a call to your provider. We’ll also compare related antibiotics so you can see at a glance which ones are usually recommended and which ones you should steer clear of.
By the end you’ll know exactly what to ask your clinician, how to manage symptoms, and when you can breathe easier knowing you’re protecting both your health and your baby’s.
Stage
Verdict
Notes
First trimester (0‑13 weeks)
⚠️ Safe with limits
Penicillins (amoxicillin, ampicillin) and cephalosporins (cephalexin) are low‑risk; avoid trimethoprim‑sulfamethoxazole (Bactrim) and fluoroquinolones.
Second trimester (14‑27 weeks)
✅ Generally safe
Same classes remain preferred; some providers may add nitrofurantoin after 14 weeks.
Third trimester (28 weeks‑birth)
⚠️ Safe with limits
Avoid nitrofurantoin close to delivery; penicillins and cephalosporins remain safe.
Breastfeeding
✅ Generally safe
Most penicillins and cephalosporins are compatible with nursing; check specific drug levels.
What are antibiotics for urinary‑tract infections?
Antibiotics are medicines that kill or stop the growth of bacteria. When a bacterial infection settles in the urinary tract—most often the bladder (cystitis) or the urethra—they can cause painful urgency, burning, and sometimes fever. In pregnancy, untreated UTIs increase the risk of kidney infection, preterm labor, and low birth weight, so prompt treatment is essential.
Doctors choose antibiotics based on the likely bacteria (usually Escherichia coli), local resistance patterns, and safety data for the developing fetus. Commonly prescribed agents include penicillins (amoxicillin, ampicillin), cephalosporins (cephalexin), nitrofurantoin, and sometimes fosfomycin. Each works by interfering with bacterial cell wall synthesis or metabolic pathways, eradicating the infection while the mother’s immune system helps clear any remaining bacteria.
Because the placenta allows many drugs to cross, obstetric guidelines emphasize agents with a long safety track record in pregnancy and avoid those linked to birth defects or neonatal complications. The goal is to resolve the infection quickly, prevent recurrence, and keep both mother and baby safe.
Is amoxicillin safe for UTI during pregnancy?
Y
es, amoxicillin is one of the most frequently recommended antibiotics for UTIs in pregnancy. The American College of Obstetricians and Gynecologists (ACOG) lists amoxicillin and ampicillin as Category B (no proven risk in humans) and cites numerous studies showing no increase in birth defects when used at standard doses. The UK’s NHS also includes amoxicillin in its “first‑line” list for pregnant patients with uncomplicated cystitis.
Amoxicillin works by inhibiting bacterial cell wall formation, which is effective against the common uropathogen E. coli. Because it does not cross the placenta in harmful concentrations, it is generally considered safe throughout all trimesters. However, clinicians may prefer cephalexin if there is a known penicillin allergy.
While amoxicillin is safe, it’s still essential to complete the full prescribed course—usually 5‑7 days—to ensure the infection is fully cleared and to reduce the chance of recurrence or resistant bacteria.
Are antibiotics safe during first trimester for UTI?
The first trimester is the period of organogenesis, when the baby’s major organs form. During this window, obstetricians are especially cautious about any medication that could act as a teratogen. The consensus from ACOG, the CDC, and the FDA is that penicillins (amoxicillin, ampicillin) and cephalosporins (cephalexin) are safe in the first trimester and are preferred first‑line agents for UTI.
Conversely, trimethoprim‑sulfamethoxazole (Bactrim) is linked to a small increased risk of neural‑tube defects when taken before 20 weeks, so it is generally avoided in the first trimester unless no alternative exists and the infection is severe. Fluoroquinolones (e.g., ciprofloxacin) have been associated with cartilage toxicity in animal studies, leading many guidelines to advise against their use throughout pregnancy.
If you’re in the first trimester and your provider prescribes a medication outside these preferred classes, ask about the risk‑benefit assessment and whether a safer alternative is available.
Can you take antibiotics for UTI while pregnant in second trimester?
During the second trimester (weeks 14‑27), the placenta is well‑developed, and many antibiotics that were limited in the first trimester become acceptable. ACOG’s “Antibiotic Use in Pregnancy” guideline states that nitrofurantoin, a common UTI drug, can be used safely after week 14, provided there are no contraindications such as glucose‑6‑phosphate dehydrogenase (G6PD) deficiency.
Penicillins, cephalosporins, and amoxicillin remain safe throughout the second trimester. The CDC’s “UTI Treatment in Pregnancy” fact sheet also confirms that these agents have no known teratogenic effects and are effective at clearing infection.
Even in the second trimester, it’s wise to avoid prolonged courses of broad‑spectrum antibiotics unless culture results dictate them. Short, targeted therapy reduces the chance of developing resistant bacteria and protects the baby’s developing microbiome.
UTI antibiotics dosage during pregnancy
Dosage recommendations are based on the drug’s standard adult regimen, but your provider may adjust them for renal function or infection severity. Below are typical dosing ranges that are widely accepted as safe when prescribed by a clinician:
Antibiotic
Typical adult dose (pregnant)
Duration
Amoxicillin
500 mg orally every 8 hours
5‑7 days
Cephalexin
500 mg orally every 6 hours
5‑7 days
Nitrofurantoin
100 mg orally twice daily
5‑7 days (after 14 weeks)
Fosfomycin (single‑dose)
3 g orally as a single dose
1 dose
All of these regimens are considered safe for the fetus when taken as prescribed. If you have a kidney condition, your provider may reduce the dose or choose a different antibiotic.
Brand names vary by country, but most contain the same active ingredient. For example, Amoxil (U.S.) and Amoxicillin Sandoz (UK) are both amoxicillin. Choose a reputable pharmacy and verify that the product is FDA‑approved (U.S.) or MHRA‑approved (U.K.).
Risks of taking antibiotics for UTI while pregnant
While many antibiotics are safe, they are not without potential side effects. Common, mild reactions include nausea, diarrhea, and rash. More serious, though rare, concerns include:
Allergic reaction: Hives, swelling, or difficulty breathing require immediate medical attention.
Clostridioides difficile infection: Broad‑spectrum agents can disrupt gut flora, leading to severe diarrhea.
Neonatal jaundice: Certain antibiotics (e.g., sulfonamides) may increase bilirubin levels in newborns if taken close to delivery.
Kidney complications: Nitrofurantoin can cause hemolytic anemia in fetuses with G6PD deficiency; screening is advised if risk is known.
Importantly, untreated UTIs pose a greater risk than most antibiotic side effects, including the chance of kidney infection, preterm labor, and low birth weight. Always discuss any concerns with your provider, who can weigh the benefits against these relatively low risks.
Safer alternatives to antibiotics for UTI during pregnancy
D‑mannose: A sugar that prevents bacteria from adhering to the bladder wall; studies in non‑pregnant women show reduced recurrence.
Cranberry juice (unsweetened): Contains pro‑anthocyanidins that may inhibit bacterial attachment; safe in moderate amounts.
Uva ursi (bearberry) tea: Traditional herb with mild antiseptic properties; limited evidence, use only under provider guidance.
Probiotics (Lactobacillus rhamnosus GR-1, L. reuteri): May restore healthy vaginal flora and reduce UTI risk.
Heating pads: Provide symptomatic relief for bladder discomfort without medication.
Keeping a bottle of amoxicillin handy alongside a glass of water and a small bowl of cranberries can help you manage a UTI while staying mindful of safe alternatives.
Safety by trimester
First trimester (0‑13 weeks)
Penicillins (amoxicillin, ampicillin) and cephalosporins (cephalexin) are the safest choices. Nitrofurantoin is generally avoided until after week 14 because of a theoretical risk of birth‑defect‑related folate antagonism, though data are limited. Avoid trimethoprim‑sulfamethoxazole (Bactrim) and fluoroquinolones (ciprofloxacin) because of documented associations with neural‑tube defects and cartilage toxicity.
Second trimester (14‑27 weeks)
All first‑trimester‑safe agents remain appropriate. Nitrofurantoin becomes an acceptable option after week 14, and fosfomycin (a single‑dose regimen) is also considered low‑risk. Continue to avoid Bactrim unless culture shows susceptibility and no alternatives exist.
Third trimester (28 weeks‑birth)
Penicillins and cephalosporins stay safe. Nitrofurantoin should be used with caution after 36 weeks because it can cause hemolytic anemia in newborns if given close to delivery; many clinicians switch to amoxicillin or cephalexin during this window. Bactrim remains contraindicated.
Breastfeeding
Most antibiotics discussed—amoxicillin, cephalexin, nitrofurantoin, and fosfomycin—are excreted in breast milk at low levels and are considered compatible with nursing. The CDC’s “Medications and Breastfeeding” database lists these as “compatible” (e.g., amoxicillin, cephalexin). Mothers should still monitor the infant for any signs of rash or gastrointestinal upset.
Safe dosage / amount / brands
When your provider prescribes an antibiotic, they will tailor the dose to your weight, kidney function, and infection severity. Below are typical adult dosages that are widely accepted as safe in pregnancy; always follow your clinician’s instructions.
Antibiotic
Standard safe dose (pregnant)
Common brand (U.S.)
Common brand (U.K.)
Amoxicillin
500 mg PO q8h for 5‑7 days
Amoxil, Moxatag
Amoxil, Amoxycillin Sandoz
Cephalexin
500 mg PO q6h for 5‑7 days
Keflex
Cephalexin Teva
Nitrofurantoin
100 mg PO BID after 14 weeks
Macrobid
Macrobid
Fosfomycin
3 g PO single dose
Monurol
Fosfomycin Trometamol
If you have a known penicillin allergy, a cephalosporin such as cephalexin may still be tolerated, but your provider will confirm via skin testing. For patients with G6PD deficiency, nitrofurantoin should be avoided; alternatives include amoxicillin or fosfomycin.
Side effects and risks
Common side effects of the antibiotics listed above include mild stomach upset, occasional diarrhea, and transient yeast infections. These are generally self‑limited and can be mitigated by taking the medication with food and staying well‑hydrated.
Serious adverse events are rare but require prompt medical attention:
Allergic reaction: Hives, swelling of the face or tongue, or difficulty breathing – call emergency services.
Severe diarrhea or bloody stools: Possible Clostridioides difficile infection – contact your provider.
Fever, flank pain, or worsening urinary symptoms after 48 hours of therapy: May indicate treatment failure or kidney infection – seek care.
Remember, completing the full course is crucial to prevent recurrence and resistance, even if you feel better after a day or two.
Related items — safety at a glance
Item
Verdict
One‑line note
Bactrim (trimethoprim‑sulfamethoxazole)
❌ Best avoided
Linked to neural‑tube defects if used before 20 weeks.
Cipro (ciprofloxacin)
❌ Best avoided
Fluoroquinolones may affect fetal cartilage development.
Augmentin (amoxicillin‑clavulanate)
⚠️ Safe with limits
Generally safe but may cause more GI upset; use if standard amoxicillin fails.
Macrobid (nitrofurantoin)
⚠️ Safe with limits
Safe after 14 weeks; avoid near term (36 weeks+) due to neonatal hemolysis risk.
Cephalexin
✅ Generally safe
First‑line cephalosporin with excellent safety record.
Sulfamethoxazole (single‑component)
❌ Best avoided
Same concerns as Bactrim; avoid in first trimester.
Myth vs. fact
Myth: All antibiotics are unsafe during pregnancy.
Fact: Most antibiotics used for UTIs—especially penicillins and cephalosporins—are considered safe when prescribed appropriately.
Myth: If you feel better, you can stop the antibiotic early.
Fact: Stopping early can leave lingering bacteria, increasing the chance of recurrence or kidney infection; finish the full course.
Myth: Natural remedies alone can cure a UTI in pregnancy.
Fact: While D‑mannose and cranberry may help prevent recurrence, they do not replace antibiotics for an active infection.
Key takeaways
Penicillins (amoxicillin) and cephalosporins (cephalexin) are the safest first‑line antibiotics for UTIs at any stage of pregnancy.
Avoid Bactrim, sulfonamides, and fluoroquinolones, especially in the first trimester.
Nitrofurantoin is acceptable after 14 weeks but should be stopped before 36 weeks.
Complete the full prescribed course to prevent complications and resistance.
Consider safe alternatives—D‑mannose, unsweetened cranberry juice, probiotics, and heating pads—as adjuncts, not replacements.
Contact your provider promptly for any allergic reaction, worsening symptoms, or signs of kidney infection.
Frequently asked questions
can UTI cause miscarriage
Directly, an untreated UTI does not usually cause miscarriage, but severe kidney infection (pyelonephritis) can increase the risk of preterm labor, which may indirectly affect pregnancy outcomes.
how to treat UTI during pregnancy without antibiotics
While antibiotics are the standard treatment, supportive measures such as increased fluid intake, D‑mannose supplements, unsweetened cranberry juice, and probiotics can help prevent recurrence, but they should not replace antibiotics for an active infection.
what antibiotics are safe for UTI during pregnancy
Amoxicillin, ampicillin, cephalexin, and nitrofurantoin (after 14 weeks) are the most commonly recommended antibiotics considered safe for treating UTIs in pregnancy.
UTI symptoms during pregnancy
Typical signs include burning during urination, increased urgency, cloudy or foul‑smelling urine, and sometimes mild fever or flank pain; any of these should prompt a urine test.
can you take azo while pregnant
Azo urinary pain relief tablets contain phenazopyridine, which is not recommended for routine use in pregnancy because it does not treat the infection and its safety profile is unclear; consult your provider for appropriate pain management.
how to prevent UTI during pregnancy
Drink plenty of water, urinate before and after intercourse, avoid irritating feminine products, and consider daily D‑mannose or probiotic supplementation if you have a history of recurrent UTIs.
UTI treatment during pregnancy
The standard approach is a short course (5‑7 days) of a pregnancy‑safe antibiotic such as amoxicillin or cephalexin, followed by a repeat urine culture to confirm clearance.
Combining a safe antibiotic like cephalexin with natural supports such as cranberries and a heating pad can help you feel more comfortable while your infection clears.
When to call your doctor
If you experience any of the following, seek medical attention right away:
Fever ≥ 38°C (100.4°F) or chills
Severe flank or back pain
Blood in urine or persistent cloudy urine despite treatment
Signs of an allergic reaction (hives, swelling, difficulty breathing)
Persistent nausea, vomiting, or diarrhea lasting more than 48 hours
These symptoms may signal a kidney infection or an adverse reaction that needs prompt evaluation. Remember, this article provides general information and is not a substitute for personalized medical advice. Always discuss your specific situation with your obstetric provider.
References
American College of Obstetricians and Gynecologists. “Antibiotic Use in Pregnancy.” ACOG Practice Bulletin, 2023.
National Health Service (UK). “Urinary Tract Infection (UTI) in Pregnancy.” NHS website, 2022.
U.S. Food and Drug Administration. “Drug Safety Communication: Use of Antibiotics in Pregnancy.” FDA Safety Alerts, 2021.
Centers for Disease Control and Prevention. “Urinary Tract Infection (UTI) Treatment Guidelines for Pregnant Women.” CDC Clinical Guidelines, 2022.
Mayo Clinic. “UTI treatment during pregnancy.” Mayo Clinic Patient Care, 2023.
World Health Organization. “WHO Guidelines on Antimicrobial Use in Pregnancy.” WHO Technical Report Series, 2020.
National Institute for Health and Care Excellence (NICE). “UTI in pregnancy: diagnosis and management.” NICE Guideline NG154, 2021.
When Shubhra Mishra was expecting her first child in 2016, she was overwhelmed by conflicting food advice — one site said yes, another said never. By the time her second baby arrived in 2019, she realized millions of mothers face the same confusion.
That sparked a five-year journey through clinical nutrition papers, cultural diets, and expert conversations — all leading to BumpBites: a calm, compassionate space where science meets everyday motherhood.
Her long-term vision is to build a global community ensuring safe, supported, and free deliveriesfor every mother — because no woman should face pregnancy alone or uninformed. 🌿
🌍 Stand with mothers, shape safer guidance
Join a small circle of experts who review BumpBites articles so expecting parents everywhere can decide with confidence.