Bacterial infections during pregnancy sometimes require antibiotic treatment. The safest decision is not necessarily to avoid medication: an untreated infection can also endanger the pregnant patient and the developing baby. Some antibiotics have substantial reassuring pregnancy experience, while others carry specific fetal or maternal concerns. No single rule applies to all medicines, stages of pregnancy, or infections. [1–3]

This article explains how healthcare professionals assess antibiotic safety during pregnancy, why the trimester and exact diagnosis matter, and which warning signs require urgent attention. It is not a list of antibiotics to start independently.

Are antibiotics safe during pregnancy?

Many antibiotics can be used when they are medically indicated. The choice is individualized according to the bacterium or likely pathogen, severity, susceptibility, gestational age, maternal allergies, kidney or liver function, route of administration, and the available safety evidence. The same class can contain medicines with substantially different evidence or labeling. [1,2]

Pregnancy affects drug distribution, kidney clearance, and physiology, sometimes changing how a prescribed medicine is used. The prescriber may consult obstetric guidelines, product information, pregnancy-exposure data, and a specialist in infectious diseases or maternal–fetal medicine. It is important not to substitute an apparently “safer” antibiotic for an effective one without a professional assessment.

Tell the prescriber if you are pregnant, may be pregnant, or are planning pregnancy. If pregnancy is discovered after an antibiotic was taken, do not assume that an adverse outcome has occurred or discontinue necessary treatment without advice. The specific drug, dose, timing, and indication should be reviewed.

Common antibiotic classes: a pregnancy-safety overview

Antibiotic or class General considerations Important qualification
Penicillins, including amoxicillin and penicillin G Extensive clinical use; may be used when indicated [1] Allergic reactions and bacterial resistance still matter.
Cephalosporins, including cephalexin and ceftriaxone Frequently used for susceptible infections Selection depends on infection type and individual product precautions.
Macrolides, including azithromycin Sometimes needed for specific infections, including chlamydia Evidence and potential risks vary by the individual drug [4].
Nitrofurantoin An option for some lower urinary tract infections in pregnancy [2] Not for kidney infection; trimester, G6PD deficiency, and near-term precautions matter.
Fosfomycin tromethamine Can be considered for selected bladder infections [2] Oral fosfomycin does not treat pyelonephritis.
Tetracyclines, including doxycycline Generally avoided when alternatives are suitable, particularly later in pregnancy A specialist may judge a particular infection warrants a different balance of benefits and risks.
Fluoroquinolones Often avoided when suitable alternatives are available Specific risk–benefit assessment and local guidance are essential.
Trimethoprim or trimethoprim/sulfamethoxazole May be necessary for selected infections Folate metabolism, gestational timing, and patient factors require careful assessment.
Aminoglycosides May be used in certain severe infections under specialist care Maternal kidney function, drug exposure, and fetal considerations require monitoring.

The table is an educational comparison, not a pregnancy prescribing chart. Regulatory labeling differs by country and formulation. [1–4]

Penicillins and cephalosporins

Penicillins include amoxicillin, ampicillin, flucloxacillin, and different formulations of penicillin G. The UK Teratology Information Service (UKTIS) stated in its September 2026 review that penicillin antibiotics can be used during pregnancy when clinically indicated. However, the evidence is not identical for every medicine or outcome, and penicillin allergy remains clinically important. [1]

Cephalosporins, such as cephalexin, cefuroxime, and ceftriaxone, are another frequently used group. Their spectrum and route differ: an oral cephalosporin for an uncomplicated condition should not be assumed equivalent to an intravenous medicine used for a serious infection. Some patients with a penicillin allergy label can receive certain cephalosporins after a risk assessment; a history of anaphylaxis or severe delayed reactions requires particular caution.

An antibiotic’s reassuring pregnancy experience does not establish that it treats a particular bacterium. Bacterial susceptibility and the infection site remain decisive.

Macrolides and sexually transmitted infections

Macrolides include azithromycin, erythromycin, and clarithromycin. The UKTIS February 2026 review explains that most studies of macrolide exposure do not show an association with major congenital malformations, but the amount and quality of evidence differ between agents. [4]

Azithromycin is used for certain infections during pregnancy, including recommended treatment pathways for chlamydia. The correct drug depends on the infection: chlamydia, gonorrhea, and syphilis are not interchangeable conditions. In particular, penicillin G is the only proven effective antimicrobial for treating fetal syphilis and preventing congenital syphilis. Patients with syphilis during pregnancy and a confirmed penicillin allergy may need desensitization in a monitored setting followed by penicillin therapy. [3]

The trimester and pregnancy stage are important, but a blanket claim that one macrolide is always safest is not supported across all conditions.

Urinary tract infections during pregnancy

Urinary infections illustrate why pregnancy-specific assessment matters. A bladder infection (cystitis), infection of the kidney (pyelonephritis), and asymptomatic bacteriuria are separate clinical situations.

The American College of Obstetricians and Gynecologists (ACOG) recommends a urine culture early in prenatal care to screen for asymptomatic bacteriuria. Unlike most nonpregnant populations, pregnant patients with significant asymptomatic bacteriuria are generally treated because of the risk of kidney infection. ACOG recommends culture-directed treatment for symptomatic cystitis and careful follow-up according to the clinical situation. [2]

Nitrofurantoin often achieves effective concentrations in the bladder, but it is not appropriate for pyelonephritis because it does not reach adequate levels in kidney tissue. ACOG regards nitrofurantoin and sulfonamides as reasonable in the first trimester when no appropriate alternative is available; it also identifies G6PD deficiency as a reason to avoid nitrofurantoin. UK guidance separately advises avoiding nitrofurantoin at term because of possible neonatal hemolysis. These statements are context-dependent rather than contradictory “safe or unsafe” labels. [2,5]

A pregnant patient with fever, flank pain, shaking chills, or vomiting and possible UTI needs urgent evaluation. ACOG recommends initial inpatient management of pyelonephritis during pregnancy. [2]

Antibiotics that need particular caution

Tetracyclines. Drugs such as doxycycline are generally not routine options during pregnancy, especially later in gestation because of concerns about developing teeth and bones. NHS guidance notes that a doctor may still recommend doxycycline when benefits outweigh risks; exposure early in pregnancy is not the same as exposure later. [6]

Trimethoprim and combination products. Trimethoprim interferes with folate metabolism. The relevance of exposure depends on the trimester, indication, alternatives, and nutritional or folate factors. Decisions about supplementation and treatment should be individualized, not based on blanket internet advice.

Fluoroquinolones. Agents such as ciprofloxacin and levofloxacin are not generally first choices when a better-supported effective alternative exists. Nevertheless, a clinician may face a resistant infection for which the balance of risks is different.

Aminoglycosides. Gentamicin and related medicines may be used for selected severe infections in hospital care, with monitoring guided by the indication and maternal physiology. Their risks should not be generalized to every antibiotic class.

Does the trimester change antibiotic safety?

Yes. Early pregnancy includes organ formation, while later pregnancy brings different concerns, including fetal growth, tooth development, neonatal toxicity, and effects close to delivery. A medicine may have different precautions in the first trimester, after midpregnancy, or near term. [2,5,6]

A pregnancy exposure should be evaluated by exact medicine and gestational timing. Product instructions may use different wording from specialist obstetric guidance because labels, available studies, and approved indications vary internationally.

If a medicine is being taken for a serious infection, stopping it abruptly may allow the infection to worsen. Contact the treating team before changing a prescribed regimen.

What about antibiotic allergies and side effects?

Pregnant patients can experience the same adverse reactions as other patients: nausea, diarrhea, rash, yeast infections, and occasionally severe hypersensitivity. Anaphylaxis, difficulty breathing, swelling of the tongue or throat, or collapse requires emergency care. Severe diarrhea during or after antibiotics requires evaluation for conditions including Clostridioides difficile infection.

A past label of “penicillin allergy” does not always represent an active allergy. Assessment, and sometimes allergy testing, may broaden safe treatment options; do not attempt an at-home test or take a previously implicated medicine to find out.

What if antibiotics were taken before pregnancy was recognized?

First, identify the exact drug, formulation, dose, dates taken, and estimated gestational age. A clinician or teratology information service can assess the available pregnancy evidence. Do not assume a single exposure has harmed the fetus, and do not make irreversible decisions based on general online lists.

A specialist may recommend routine prenatal care or additional assessment based on the specific exposure. The most important immediate question may be whether the underlying infection was fully treated.

When to seek medical attention

Contact your pregnancy-care team promptly for urinary symptoms, new fever, persistent vomiting, a suspected adverse drug reaction, or symptoms that are not improving as expected. Emergency assessment is needed for breathing difficulty, severe allergic symptoms, confusion, fainting, or signs of sepsis. Significant abdominal pain, vaginal bleeding, or reduced fetal movements when movements are normally expected should also prompt urgent obstetric advice.

Frequently Asked Questions

Is amoxicillin safe during pregnancy?

Amoxicillin is widely used when indicated, and NHS and UKTIS resources support its use during pregnancy. The diagnosis, allergy history, and likely bacterial susceptibility still need to be considered. [1,7]

Can I take antibiotics in the first trimester?

Sometimes. Safety is drug-specific and infection-specific. A clinician should weigh benefits and risks rather than automatically withholding treatment.

Can a UTI during pregnancy go untreated?

A suspected UTI warrants medical assessment. Significant asymptomatic bacteriuria and symptomatic UTI in pregnancy commonly require treatment; pyelonephritis can become an emergency. [2]

Are all antibiotics dangerous for the baby?

No. This is an inaccurate generalization. Some have reassuring evidence; others warrant avoidance or specialized monitoring. The untreated infection also carries risks.

Should I stop taking an antibiotic if I find out I am pregnant?

Contact your prescriber promptly. Do not discontinue treatment independently unless you are experiencing symptoms of a serious reaction requiring urgent care.

Does an antibiotic need to be changed near delivery?

Sometimes. Timing may alter risks for particular medicines, including nitrofurantoin near term. Your obstetric team should review the exact treatment. [5]

Key Takeaways

  • Bacterial infections in pregnancy sometimes require urgent, effective antibiotics.
  • Penicillins and several other antibiotics have substantial pregnancy experience, but safety cannot be judged by drug class alone.
  • Nitrofurantoin and oral fosfomycin are not treatments for kidney infection.
  • Trimester, diagnosis, bacterial susceptibility, allergies, and national guidance affect treatment choice.
  • Speak with an obstetric or prescribing clinician before starting, stopping, or changing an antibiotic.

References

  1. UK Teratology Information Service. Use of Penicillin Antibiotics in Pregnancy. September 2026, version 3.0. https://uktis.org/monographs/use-of-penicillins-in-pregnancy/
  2. American College of Obstetricians and Gynecologists. Urinary Tract Infections in Pregnant Individuals. Clinical Consensus, August 2023. https://www.acog.org/clinical/clinical-guidance/clinical-consensus/articles/2023/08/urinary-tract-infections-in-pregnant-individuals
  3. CDC. Syphilis During Pregnancy: STI Treatment Guidelines. https://www.cdc.gov/std/treatment-guidelines/syphilis-pregnancy.htm
  4. UK Teratology Information Service. Use of Macrolide Antibiotics in Pregnancy. February 2026, version 4.0. https://uktis.org/monographs/use-of-macrolides-in-pregnancy/
  5. NICE. Urinary Tract Infection (Lower): Antimicrobial Prescribing (NG109). https://www.nice.org.uk/guidance/ng109/chapter/Recommendations
  6. NHS. Doxycycline. https://www.nhs.uk/medicines/doxycycline/
  7. NHS. Pregnancy, Breastfeeding and Fertility While Taking Amoxicillin. https://www.nhs.uk/medicines/amoxicillin/pregnancy-breastfeeding-and-fertility-while-taking-amoxicillin/