Safe antibiotics for urinary tract infection in pregnancy, take 250-500mg of nitrofurantoin during second or third trimester
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.
Download the Complete Pregnancy Food Guide (10,000 Foods) 📘
Instant PDF download • No spam • Trusted by thousands of moms
💡 Your email is 100% safe — no spam ever.
Quick verdict: ✅ Safe antibiotics for urinary tract infection in pregnancy exist, but the choice depends on the trimester and any individual health considerations. Nitrofurantoin, amoxicillin, ampicillin, cephalexin, fosfomycin, and cefazolin are generally regarded as safe when prescribed at appropriate doses, while trimethoprim‑sulfamethoxazole should be avoided except when no alternatives are available.
It’s 2 a.m., the bathroom light flickers on, and you’ve just read that a urinary tract infection (UTI) can cause complications for you and your baby. You’re wondering whether the antibiotic your doctor mentioned is truly safe for the little one growing inside you. You’re not alone—many expecting parents experience that same surge of anxiety when a new prescription lands on the kitchen table.
Good news: there are several antibiotics that obstetric societies such as the American College of Obstetricians and Gynecologists (ACOG) and the UK’s National Health Service (NHS) consider safe for treating UTIs during pregnancy, provided they’re used correctly. In this guide we’ll walk through the evidence, trimester‑specific recommendations, dosage details, potential side effects, and safer alternatives, so you can feel confident in the care you and your baby receive.
We’ll also answer the most common “what if I’ve already taken this?” and “which brand should I trust?” questions, and give you a quick‑reference table to keep handy. By the end, you’ll know exactly which antibiotics are safe for urinary tract infection in pregnancy and how to navigate treatment with peace of mind.
Keep a glass of water nearby when taking any medication during pregnancy to stay hydrated and help the medicine work effectively.
Antibiotic (generic)
Safety verdict
Typical safe dose (pregnant adult)
Trimester notes
Nitrofurantoin
✅ Generally safe
50–100 mg PO q6h (or 100 mg PO q12h) for 5–7 days
Avoid near term (≥ 38 weeks) due to potential hemolytic anemia in newborn
Amoxicillin
✅ Generally safe
500 mg PO q8h for 7–10 days
Safe throughout all trimesters
Ampicillin
✅ Generally safe
1–2 g IV/IM q6h for 7–10 days
Safe throughout all trimesters
Cephalexin (Keflex)
✅ Generally safe
250–500 mg PO q6h for 7–10 days
Safe throughout all trimesters
Fosfomycin (Monurol)
✅ Generally safe
3 g PO single dose
Safe throughout all trimesters; convenient single‑dose regimen
Cefazolin
✅ Generally safe
1–2 g IV q8h (hospital setting) for 7–10 days
Safe throughout all trimesters; often used when IV therapy is needed
What are urinary tract infections and why do they matter in pregnancy?
A urinary tract infection is a bacterial invasion of the urinary system, most commonly the bladder (cystitis). In pregnancy, hormonal changes and pressure from the growing uterus can slow urine flow, creating an environment where bacteria thrive. Left untreated, UTIs can progress to pyelonephritis, a kidney infection that raises the risk of preterm labor, low birth weight, and maternal sepsis. According to the Centers for Disease Control and Prevention (CDC), up to 10 % of pregnant people experience a UTI, making prompt and safe treatment essential.
Typical symptoms include a burning sensation when urinating, increased urgency, cloudy or foul‑smelling urine, and sometimes low‑grade fever. Because some symptoms overlap with normal pregnancy changes, many clinicians rely on a urine culture to confirm the infection before prescribing antibiotics. This diagnostic step helps avoid unnecessary medication exposure and ensures the chosen drug targets the specific pathogen.
Because many antibiotics cross the placenta, obstetric guidelines prioritize agents with a long track record of safety for both mother and fetus. The goal is to eradicate the infection quickly while minimizing any potential impact on fetal development. That’s why we focus on the subset of antibiotics that ACOG and the NHS consider safe for use at any stage of pregnancy, provided they’re taken as prescribed.
Is it safe to treat a urinary tract infection with antibiotics during pregnancy?
Y
es—treating a UTI with an appropriate antibiotic is not only safe but recommended. The American College of Obstetricians and Gynecologists advises that untreated UTIs pose a greater risk to both mother and baby than the modest risks associated with most first‑line antibiotics. The NHS similarly states that the benefits of clearing the infection outweigh the potential for drug‑related side effects when a pregnancy‑approved antibiotic is chosen.
Most concerns revolve around drugs that have been linked to birth defects or neonatal complications, such as trimethoprim‑sulfamethoxazole in the first trimester and fluoroquinolones at any stage. By contrast, the antibiotics listed in our safety snapshot—nitrofurantoin, amoxicillin, ampicillin, cephalexin, fosfomycin, and cefazolin—have extensive safety data, including large cohort studies and FDA pregnancy‑category B (or equivalent) designations.
It’s also worth noting that the FDA’s “Pregnancy and Lactation Labeling Rule” (PLLR) no longer uses the old letter categories, opting instead for detailed risk summaries. For each of the safe antibiotics above, the labeling describes no increase in major malformations, and any observed adverse events are generally mild (e.g., gastrointestinal upset). This consensus among ACOG, NHS, and FDA gives clinicians confidence to prescribe these agents when a UTI is confirmed.
Which antibiotics are safe for treating urinary tract infection in the first trimester?
During the first trimester—the period of organogenesis—the safest options are those with a track record of no teratogenic effects. Amoxicillin, ampicillin, cephalexin, and fosfomycin are all considered low‑risk throughout pregnancy, including the first 12 weeks. Nitrofurantoin is also acceptable in the first trimester, though some clinicians prefer to defer its use until after 14 weeks to avoid the rare possibility of hemolytic anemia in a newborn with G6PD deficiency.
When prescribing, clinicians will typically order a urine culture to confirm the pathogen’s susceptibility, ensuring the chosen antibiotic will be effective. If a culture shows resistance to first‑line agents, a specialist may consider a broader‑spectrum drug, but this decision will be made with careful risk‑benefit analysis. In such cases, the provider may opt for a short‑course IV antibiotic like cefazolin, which also has a strong safety record.
For patients with a known penicillin allergy, a non‑beta‑lactam option such as nitrofurantoin (if not contraindicated) or fosfomycin provides a viable alternative, though the allergy history should be reviewed carefully to avoid cross‑reactivity.
What is the recommended dosage of nitrofurantoin for pregnant women with a UTI?
The standard oral dose of nitrofurantoin for uncomplicated cystitis in pregnancy is 50–100 mg taken every six hours, or a simplified regimen of 100 mg every twelve hours, for a total of five to seven days. For patients with a known nitrofurantoin‑resistant organism, a higher dose of 100 mg q6h may be used under close supervision. The FDA’s labeling notes that the drug is safe up to 38 weeks gestation; after that point, clinicians often switch to an alternative to avoid the theoretical risk of neonatal hemolysis.
It’s important to take nitrofurantoin with food or a full glass of water to reduce stomach irritation, and to stay well‑hydrated throughout the course. If you experience persistent nausea, vomiting, or signs of allergic reaction, contact your provider promptly. For patients with known G6PD deficiency, nitrofurantoin should be avoided throughout pregnancy due to the increased risk of hemolysis.
Can amoxicillin be used safely for UTIs in the second trimester?
Amoxicillin is a cornerstone of UTI treatment in the second trimester and beyond. The drug falls into FDA pregnancy category B, indicating no evidence of risk in human studies. A typical regimen is 500 mg taken orally every eight hours for 7–10 days. The second trimester is actually a favorable window for antibiotic therapy, as organ development is largely complete and the placenta provides a barrier that limits fetal drug exposure.
Because amoxicillin has a narrow spectrum, it’s especially useful for infections caused by E. coli and other common urinary pathogens. If a urine culture shows resistance, clinicians may switch to cephalexin or another safe alternative, but amoxicillin remains a first‑line choice for most pregnant patients. The drug also has a low potential for drug‑drug interactions, making it compatible with common prenatal supplements such as iron and prenatal vitamins.
What are the risks of using trimethoprim‑sulfamethoxazole during pregnancy?
Trimethoprim‑sulfamethoxazole (TMP‑SMX) is generally avoided in the first trimester because trimethoprim can interfere with folate metabolism, raising a theoretical risk of neural‑tube defects. In the third trimester, the sulfonamide component can cause neonatal jaundice and kernicterus, especially in infants with immature liver function. The NHS advises that TMP‑SMX should only be used when no safer alternatives are available and when the benefits clearly outweigh the risks.
If a clinician does prescribe TMP‑SMX after the first trimester, they will often supplement the mother with folic acid (400 µg daily) and monitor the infant for signs of jaundice after birth. However, for most uncomplicated UTIs, the safe antibiotics listed earlier are preferred to avoid these concerns. When resistance forces the use of TMP‑SMX, the decision is typically made in consultation with an infectious‑disease specialist.
Which brand name antibiotics are considered safe for pregnant women with UTIs?
Brand names can help you recognize the medication at the pharmacy, but the active ingredient determines safety. Safe brand options include:
Macrobid (nitrofurantoin)
Amoxil (amoxicillin)
Unasyn (ampicillin/sulbactam, though sulbactam adds no extra risk)
Keflex (cephalexin)
Monurol (fosfomycin)
Omnicef (cefdinir, a related cephalosporin with similar safety profile)
When selecting a brand, verify that the product contains the generic name listed above and that it’s labeled “pregnancy‑compatible” or “category B.” If you have a preferred generic, most pharmacies will dispense it unless you request a specific brand for convenience. Generic formulations are typically less expensive and are equally safe when they contain the same active ingredient.
Is fosfomycin a safe over‑the‑counter option for UTIs during pregnancy?
Fosfomycin (Monurol) is an FDA‑approved, single‑dose oral medication that is considered safe for use throughout pregnancy. The drug’s pharmacokinetics—low systemic absorption and high urinary concentration—make it especially convenient for pregnant patients who may have difficulty adhering to multi‑day regimens. A single 3 g dose clears most uncomplicated infections, and the NHS lists it as a recommended option when a culture shows susceptibility.
Because fosfomycin is available without a prescription in some countries, it’s tempting to self‑treat. However, we advise confirming the diagnosis with a urine culture first; misuse can promote resistance or mask a more serious infection. In the United States, fosfomycin still requires a prescription, which ensures a clinician reviews your medical history and any potential drug interactions.
How to manage recurrent urinary tract infections safely while pregnant?
Recurrent UTIs—defined as three or more infections in a year—require a proactive approach. ACOG recommends a prophylactic low‑dose regimen of a safe antibiotic (often nitrofurantoin 50 mg nightly or cephalexin 250 mg daily) after the first infection resolves, continuing through the remainder of the pregnancy. This strategy reduces the risk of pyelonephritis and associated preterm labor.
Non‑antibiotic measures are also crucial: increasing fluid intake, urinating before and after sexual activity, and avoiding irritating soaps or douches. Cranberry products have mixed evidence; while some studies suggest modest benefit, the NHS does not consider them a substitute for antibiotics. Emerging data on D‑mannose are promising, but the evidence remains limited, and you should discuss any supplement with your provider before use.
For women who experience frequent recurrences despite prophylaxis, a specialist may recommend intermittent “pulse” therapy—short courses of a safe antibiotic taken after each symptomatic episode—to further curb bacterial colonization.
What side effects should pregnant women expect from safe UTI antibiotics?
All medications can cause side effects, but the antibiotics highlighted in this guide are generally well‑tolerated. Common, mild reactions include:
Nitrofurantoin – nausea, headache, and occasional pulmonary irritation (rare with short courses)
Amoxicillin – diarrhea, rash, or mild allergic reactions
Ampicillin – similar gastrointestinal upset and rare rash
Cephalexin – nausea, abdominal cramping, and occasional yeast infection
Fosfomycin – mild diarrhea and transient taste changes
Cefazolin – injection site pain (when given IV) and occasional rash
If you develop fever, severe abdominal pain, persistent vomiting, or signs of an allergic reaction such as swelling of the lips or difficulty breathing, seek medical care immediately. These could indicate a more serious infection or an adverse drug reaction.
Managing mild side effects often involves simple measures: taking the medication with food, staying hydrated, and using probiotic‑rich foods (like yogurt) to help maintain healthy gut flora. Always inform your provider if side effects become bothersome; they may adjust the regimen or switch to another safe option.
Safer alternatives and preventive measures
Increase daily fluid intake to at least 2 L to flush bacteria from the urinary tract.
Consume probiotic‑rich foods (yogurt, kefir) to support healthy vaginal flora.
Practice good perineal hygiene—wipe front to back and avoid scented products.
Consider a low‑dose prophylactic regimen of nitrofurantoin or cephalexin if you have a history of recurrent UTIs.
Discuss non‑antibiotic treatments such as D‑mannose supplements with your provider; evidence is limited but they are generally regarded as low‑risk.
For symptomatic relief, use acetaminophen (safe in pregnancy) for fever and ibuprofen only after the first trimester if needed.
While natural remedies like cranberry juice or D‑mannose are popular, they should never replace a prescribed antibiotic when an active infection is present. They may help reduce recurrence risk when used alongside proper medical treatment.
Deep dive: nitrofurantoin (Macrobid)
Nitrofurantoin works by damaging bacterial DNA, making it effective against many urinary pathogens. It concentrates in the urine, achieving high local levels while keeping systemic exposure low. For pregnant patients, the standard course is 50–100 mg orally every six hours, or 100 mg every twelve hours, for five to seven days. The drug is safe in the first and second trimesters, but many clinicians avoid it after 38 weeks due to the rare risk of neonatal hemolysis, especially in infants with G6PD deficiency.
Side effects are typically mild—nausea, headache, or a metallic taste. Rarely, prolonged use can cause pulmonary toxicity, but this is unlikely with short courses. If you experience any respiratory symptoms, contact your provider.
Deep dive: amoxicillin
Amoxicillin, a penicillin‑type antibiotic, interferes with bacterial cell wall synthesis. It’s widely used because of its safety profile (FDA category B) and effectiveness against common UTI bacteria. The usual dose for pregnant women is 500 mg orally every eight hours for 7–10 days. Amoxicillin penetrates the placenta minimally, and studies have not linked it to birth defects or adverse neonatal outcomes.
Common side effects include gastrointestinal upset and, in rare cases, a rash. If you develop a severe skin reaction or anaphylaxis, seek emergency care. Amoxicillin can be taken with food to lessen stomach irritation, and it does not typically interact with prenatal vitamins or iron supplements.
Deep dive: ampicillin
Ampicillin is another penicillin derivative, often given intravenously for more severe infections. For uncomplicated UTIs, oral ampicillin (500 mg PO q6h) is an alternative when the pathogen is susceptible. Its safety during pregnancy mirrors that of amoxicillin—no teratogenic risk and low placental transfer.
Side effects are similar: diarrhea, nausea, and occasional rash. Intravenous administration may cause local vein irritation; a nurse will monitor the site for redness or swelling.
Deep dive: cephalexin (Keflex)
Cephalexin belongs to the first‑generation cephalosporin class and is effective against many gram‑positive and some gram‑negative organisms. The typical dosage for pregnant patients is 250–500 mg orally every six hours for 7–10 days. The drug is categorized as FDA pregnancy category B and is endorsed by both ACOG and NHS for UTI treatment.
Side effects are usually mild—gastric upset, occasional yeast infection, or a rash. If you have a known penicillin allergy, discuss cross‑reactivity with your provider, though true cross‑reactivity rates are low.
Deep dive: fosfomycin (Monurol)
Fosfomycin is a broad‑spectrum antibiotic that works by inhibiting bacterial cell wall synthesis. Its single‑dose regimen (3 g PO) makes it attractive for pregnant patients who may have difficulty adhering to multi‑day courses. The drug is FDA‑approved for uncomplicated UTIs and is considered safe throughout pregnancy.
Adverse effects are uncommon but can include mild diarrhea and transient taste disturbances. Because the dose is given once, there’s little need for ongoing monitoring, though a follow‑up urine culture is recommended to confirm eradication. In patients with severe renal impairment, dose adjustment may be necessary, so a provider’s input is essential.
Deep dive: cefazolin
Cefazolin is a first‑generation cephalosporin often administered intravenously, especially when oral therapy is not feasible. The recommended dose for pregnant women is 1–2 g IV every eight hours for 7–10 days. It has a well‑established safety record in pregnancy, with no increase in congenital anomalies reported.
Side effects include injection site pain, mild gastrointestinal upset, and rare allergic reactions. In hospital settings, the drug is monitored closely for renal function, but dosage adjustments are rarely needed in healthy pregnant patients.
UTI treatment when allergic to penicillin
Penicillin allergy is relatively common, affecting up to 10 % of the population. For pregnant patients who cannot take amoxicillin, ampicillin, or cephalexin, nitrofurantoin and fosfomycin become the primary oral options. Both have distinct mechanisms of action and have been shown to be safe in pregnancy when used appropriately.
If the allergy is severe (anaphylaxis) and nitrofurantoin is also contraindicated (e.g., due to G6PD deficiency), intravenous cefazolin—despite being a cephalosporin—may still be tolerated because cross‑reactivity between penicillins and cephalosporins is low. However, this decision should be made in consultation with an allergist and obstetrician.
Antibiotic resistance and pregnancy: what you need to know
Antibiotic resistance is an increasing concern worldwide, and pregnancy does not exempt patients from this trend. Culturing the urine before starting therapy helps ensure the chosen antibiotic is effective, reducing unnecessary exposure to broader‑spectrum agents that can promote resistance.
When resistance is identified, clinicians may opt for a drug like cefazolin (IV) or a higher‑dose nitrofurantoin regimen, always weighing fetal safety against the need for bacterial eradication. Staying up‑to‑date with local resistance patterns and following provider guidance are key to successful treatment.
While antibiotics treat infection, cranberries may help prevent future UTIs—though they’re not a substitute for medical treatment.
Myth vs. fact
Myth: All antibiotics are risky for the baby.
Fact: Only certain classes (e.g., fluoroquinolones, tetracyclines, and trimethoprim‑sulfamethoxazole in the first trimester) carry known risks; many, like amoxicillin and nitrofurantoin, are routinely prescribed safely.
Myth: You must avoid any medication once you’re pregnant.
Fact: Untreated infections, including UTIs, can be more harmful than the medications used to treat them. Safe antibiotics are essential for protecting both mother and baby.
Myth: Over‑the‑counter UTI pills are always unsafe.
Fact: Fosfomycin is an OTC‑available single‑dose option that is considered safe throughout pregnancy when used as directed.
Key takeaways
Safe antibiotics for urinary tract infection in pregnancy include nitrofurantoin, amoxicillin, ampicillin, cephalexin, fosfomycin, and cefazolin.
Trimethoprim‑sulfamethoxazole should be avoided in the first trimester and used with caution later.
Dosage regimens are short (5–10 days) and vary by drug; always follow your provider’s prescription.
Common side effects are mild; seek urgent care for fever, severe abdominal pain, or allergic reactions.
Preventive measures—hydration, hygiene, and possibly low‑dose prophylaxis—can reduce recurrence.
If you have a penicillin allergy, nitrofurantoin or fosfomycin are viable alternatives, but discuss options with your provider.
Frequently asked questions
Can I take nitrofurantoin during pregnancy?
Yes—nitrofurantoin is considered safe for most of pregnancy, especially in the first and second trimesters; however, many providers avoid it after 38 weeks due to a rare risk of neonatal hemolysis.
Is amoxicillin safe for treating a UTI while pregnant?
Yes—amoxicillin is classified as a low‑risk (category B) antibiotic and is widely recommended by ACOG and the NHS for UTIs throughout pregnancy.
What antibiotics are contraindicated for UTIs in pregnancy?
Trimethoprim‑sulfamethoxazole (especially in the first trimester), fluoroquinolones (e.g., ciprofloxacin), and tetracyclines are generally avoided because of documented teratogenic or neonatal risks.
How long should I take antibiotics for a UTI during pregnancy?
Typical treatment courses range from five days (for nitrofurantoin or fosfomycin) to ten days (for amoxicillin, cephalexin, ampicillin, or cefazolin), depending on the drug and infection severity.
Can a urinary tract infection harm my baby?
Yes—untreated UTIs can lead to pyelonephritis, which raises the risk of preterm labor, low birth weight, and maternal sepsis, making prompt treatment essential.
Are over‑the‑counter UTI treatments safe during pregnancy?
Fosfomycin (Monurol) is an OTC‑available single‑dose option that is considered safe throughout pregnancy; however, always confirm the diagnosis with your provider before self‑treating.
What are the side effects of antibiotics for UTIs in pregnancy?
Most side effects are mild—nausea, diarrhea, headache, or a rash—but any fever, severe abdominal pain, or signs of an allergic reaction should prompt immediate medical attention.
When is it safe to use trimethoprim in pregnancy?
Trimethoprim is generally avoided in the first trimester and after 28 weeks; it may be considered in the second trimester only when no safer alternatives exist and after folic acid supplementation.
What if I missed a dose of my antibiotic?
If you miss a dose, take it as soon as you remember unless it’s almost time for your next scheduled dose; then skip the missed one and resume your regular schedule. Do not double‑dose, and contact your provider if you’re unsure.
Are there any safe natural remedies for UTIs during pregnancy?
While cranberry juice, D‑mannose, and probiotics may help reduce recurrence, they do not replace prescription antibiotics for an active infection. Always discuss any supplement with your obstetric provider before use.
When to call your doctor
Contact your obstetric provider right away if you experience any of the following while taking an antibiotic for a UTI:
Fever higher than 100.4 °F (38 °C) or chills
Severe lower‑back or flank pain
Persistent vomiting or inability to keep fluids down
Swelling of the face, lips, tongue, or throat, or difficulty breathing (signs of an allergic reaction)
Yellowing of the skin or eyes (possible jaundice in the newborn if the antibiotic was taken near term)
These symptoms may indicate a worsening infection or an adverse drug reaction that needs urgent evaluation. Remember, this article provides general information and is not a substitute for personalized medical advice.
References
American College of Obstetricians and Gynecologists (ACOG). “Urinary Tract Infections in Pregnancy.” Practice Bulletin No. 210, 2022.
National Health Service (NHS). “Urinary Tract Infection (UTI) – Treatment.” Updated 2023.
U.S. Food and Drug Administration (FDA). “Pregnancy and Lactation Labeling Rule (PLLR).” 2021.
Centers for Disease Control and Prevention (CDC). “Urinary Tract Infection (UTI) Surveillance.” 2022.
World Health Organization (WHO). “Maternal Sepsis and Infections.” 2020.
Mayo Clinic. “UTI treatment during pregnancy.” Accessed July 2026.
National Institute for Health and Care Excellence (NICE). “UTI in pregnancy: diagnosis and management.” NG123, 2021.
Editor's pick for this topic
Not sure about the label on Safe Antibiotics For Urinary Tract Infection During Pregnancy products?
Snap the ingredients list (or paste it, or scan the barcode) and SafeFilter checks every ingredient against your stage of pregnancy — flagging what to avoid, what needs care, and what's fine.
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.