Young pregnant woman wears white pajama pants and cropped top and holds picture of ultrasound.

STIs and babies: Why prenatal testing and treatment are so important for prevention

Young pregnant woman wears white pajama pants and cropped top and holds picture of ultrasound.

Developing babies can acquire sexually transmitted infections (STIs) from their mother during pregnancy and childbirth. These can affect the newborn’s health and cause serious issues.

Most STI-related complications in newborns can be prevented through routine prenatal care, screening and prompt treatment when an infection is detected. Early care helps give babies the healthiest start in life.

Learn what tests can help detect STIs and how to protect your unborn child.

Can a baby get a sexually transmitted infection from their mother during pregnancy, birth or after birth?

Yes. STIs can be passed to the developing baby during pregnancy, labor and delivery, shortly after birth or during breastfeeding. Without diagnosis and treatment, these infections can lead to serious health problems for newborns.

Read about prenatal testing and screening

Which STIs can be passed to a baby?

Several STIs can be transmitted from pregnant mothers to their babies, including:

The risk of transmission and the potential effects on the baby vary depending on the infection and whether it is treated before delivery.

Learn about infections and immunizations in pregnancy

How common are STIs in newborns?

According to the California Department of Public Health, the number of congenital syphilis cases peaked in 2022 (620 cases). Since then, it has gone down, with 438 cases identified in California in 2024.

National data indicate that congenital gonococcal, chlamydia, HSV, HIV and hepatitis B infections are rare. This is likely due to widespread, routine prenatal screening and treatment. While the overall transmission risk of congenital hepatitis C is low, national rates of hepatitis C infection during pregnancy in the U.S. increased between 2009 and 2019. Congenital hepatitis C infections are likely underestimated due to infrequent maternal and infant screening. 

Find out more about testing for STIs

Why is STI testing during pregnancy important?

Many STIs do not cause symptoms in the mother. Routine prenatal screening helps identify infections early so they can be treated before they affect the developing baby. Early treatment protects both those who are pregnant and the newborn.

Learn about our care for high-risk pregnancies

Which STI tests are recommended during pregnancy? Which tests are routine and which tests do you need to ask for?

Screening recommendations vary slightly by state and a person’s risk factors. However, the Centers for Disease Control and Prevention (CDC) recommends that all pregnant mothers be tested for: 

  • HIV
  • Syphilis
  • Hepatitis B
  • Hepatitis C

In addition, screening for chlamydia and gonorrhea is routinely recommended for pregnant women under age 25 and for older patients who have risk factors for infection. In California, providers commonly screen for HIV, syphilis, hepatitis B, hepatitis C, chlamydia and gonorrhea at the first prenatal visit.

Check out our advanced care for every pregnancy

Can treatment during pregnancy prevent STI transmission to a developing baby?

In many cases, yes. Appropriate treatment and medical management can significantly reduce or prevent transmission of several STIs to the developing baby and lower the risk of serious complications. Treatment depends on the specific infection.

Explore treatments for sexually transmitted infections

What treatment options are available for STIs?

Patients should talk with their healthcare provider about treatment options. The following are general treatment options during pregnancy for sexually transmitted infections:

  • Syphilis: Treated with penicillin, which is the only recommended treatment proven to prevent transmission of syphilis to the baby.
  • Chlamydia: Usually treated with antibiotics that are considered safe during pregnancy, such as azithromycin.
  • Gonorrhea: Treated with antibiotics, typically ceftriaxone, following current treatment guidelines.
  • HIV: Managed with antiretroviral medications, which can greatly reduce the risk of passing HIV to the baby during pregnancy and delivery.
  • Genital herpes (HSV): Antiviral medications such as acyclovir may be prescribed late in pregnancy to reduce the risk of an outbreak during labor. In some cases, a cesarean delivery (C-section) may be recommended there are active lesions.
  • Hepatitis B: While there is no cure for hepatitis B, newborns can receive the hepatitis B vaccine and hepatitis B immune globulin (HBIG) shortly after birth to help prevent infection.

Read why the hepatitis B vaccine is critical for newborns

What can happen if syphilis is not treated during pregnancy?

Untreated syphilis can cause miscarriage, stillbirth, premature birth or congenital syphilis. Congenital syphilis is a serious infection that can lead to lifelong health problems affecting a baby’s bones, brain, eyes, hearing and other organs.

Explore our compassionate prenatal care

What can happen if gonorrhea or chlamydia are not treated before birth?

These infections can be passed to a baby during delivery and may cause severe eye infections that can lead to blindness if untreated. They can also cause pneumonia and other infections in newborns.

What can happen if hepatitis B or C is not treated before birth?

These viruses can be transmitted to developing babies during pregnancy or delivery. They can cause severe liver disease if undetected or untreated. 

How can herpes affect a newborn?

If a mother has an active genital herpes infection during labor, the virus can be passed to the baby. Neonatal herpes can be life-threatening and may affect the baby’s skin, eyes, mouth, brain or other organs.

Read more about herpes simplex virus (HSV)

Can HIV be transmitted to a baby?

Yes. HIV can be transmitted during pregnancy, labor and delivery, or breastfeeding. However, timely testing, treatment and medical care can greatly reduce the risk of transmission.

Learn about HIV treatments and the services we offer

This blog was medically reviewed by UC Davis Health pediatric infectious medicine physician Elizabeth Partridge.

Subscribe to Cultivating Health

Subscribe to our blog and receive notifications of new stories by email.

refreshLoad new characters