Lab results in 1–2 days 4,500+ partner labs in the US
Independent guide · Fact-checked against CDC guidance
Which test do I need?
Guide

STD Testing While Pregnant: Which Tests, When, and What Happens at Birth

Fact-checked against CDC and HIV.gov guidanceLast checked Nov 1, 2026By the Editorial Desk
Calendar with one date circled next to a phone, planning when to get tested
On this page
  1. Which STD tests are done while pregnant?
  2. When are STD tests done in pregnancy?
  3. Why is syphilis tested up to three times?
  4. What happens to the baby at birth if you have an STD?
  5. What happens if an STD test is positive while pregnant?
  6. Can you use an online STD test while pregnant?
  7. Does insurance or Medicaid cover STD testing in pregnancy?
  8. FAQ

STD testing while pregnant starts at the first prenatal visit, where everyone is tested for HIV, syphilis, hepatitis B and hepatitis C. Chlamydia and gonorrhea are tested if you are under 25 or at higher risk. ACOG also advises a second and third syphilis test, in the third trimester and at delivery, for every pregnant woman.

Key facts

  • Doctors do test for STDs in pregnancy, but not for all of them, and not always more than once.
  • Syphilis passed to a baby rose to 3,941 cases in 2024, up 82% since 2020. Almost all of these can be prevented.
  • If the mother has hepatitis B, every baby gets a vaccine and HBIG within 12 hours of birth. It is not optional.
  • Penicillin, the only syphilis treatment safe in pregnancy, is in short supply until late 2027. Pregnant women are first in line.
  • An online STD test can fill gaps between visits, but it does not replace your prenatal tests.

Most pregnant women never have to ask for STD tests, because they are part of the routine blood work at the first prenatal visit. The questions start later. Will they test again? Does the panel include herpes? What if I had a new partner after my first visit? This guide answers those, one by one, and shows where the official advice differs.

Which STD tests are done while pregnant?

Three US groups give advice on this. The CDC, the American College of Obstetricians and Gynecologists (ACOG) and the US Preventive Services Task Force (USPSTF) agree on most tests. They differ on how often to repeat the syphilis test. Your doctor may follow one or a mix of them, and some states have their own laws on top.

Infection First prenatal visit Third trimester At delivery
HIV Everyone (CDC) If at higher risk, before 36 weeks (CDC) Rapid test if never tested in pregnancy
Syphilis Everyone (CDC, ACOG, USPSTF) Everyone (ACOG). If at risk or in a high-rate area (CDC). Everyone (ACOG). If at risk (CDC).
Hepatitis B Everyone, in every pregnancy, even if vaccinated (CDC) No If not tested before or at high risk
Hepatitis C Everyone, in every pregnancy (CDC) No No
Chlamydia and gonorrhea Under 25, or 25 and older at higher risk (CDC) Retest if still at risk No
Trichomoniasis Only if you have symptoms No No
Herpes Not routine. The CDC does not advise herpes blood tests in pregnancy without symptoms. No Exam for sores when labor starts

Higher risk usually means a new partner, more than one partner, a partner with other partners, a recent STD, or drug use. If any of these happens during your pregnancy, even after the first visit, tell your doctor. That is the trigger for a repeat test under CDC rules.

When are STD tests done in pregnancy?

Think of it as four moments. Not every woman gets tested at all four, but you should know they exist so you can ask.

  1. First prenatal visitHIV, syphilis, hepatitis B and hepatitis C for everyone. Chlamydia and gonorrhea if you are under 25 or at higher risk. These tests are usually part of the first blood draw and urine sample.
  2. About 24 to 28 weeksA repeat syphilis test. ACOG advises it for everyone, and some clinics do it with the glucose test so you only need one blood draw. Chlamydia and gonorrhea are retested here if you are still at risk.
  3. Before 36 weeksA repeat HIV test if you are at higher risk, for example a new partner during pregnancy.
  4. At deliverySyphilis again (ACOG for everyone, CDC if at risk). A rapid HIV test if your status is unknown. Hepatitis B if you were never tested.

If the clinic follows the CDC schedule and you are not considered at risk, you may not get the second and third syphilis tests. You can still ask. A simple way to say it is “Can I have the third-trimester and delivery syphilis tests that ACOG recommends?” Some states, such as California, New York and Oregon, already require or advise three tests for everyone.

STD tests during pregnancyFour times STD tests may be done in pregnancy: first prenatal visit, 24 to 28 weeks, before 36 weeks, and at delivery.Four moments for STD tests in pregnancyFirst prenatal visitHIV, syphilis, hepatitis B and hepatitis C foreveryone.Chlamydia and gonorrhea if you are under 25 orat higher risk.About 24 to 28 weeksRepeat syphilis test (ACOG advises it foreveryone).Chlamydia and gonorrhea retested if still atrisk.Before 36 weeksRepeat HIV test if you are at higher risk, forexample a new partner during pregnancy.At deliverySyphilis again (ACOG for everyone, CDC if atrisk).Rapid HIV test if status is unknown. HepatitisB if never tested.Not every woman gets all four. You can ask yourclinic for the repeat syphilis tests.
Typical timing of STD tests in pregnancy. Schedules can differ between clinics.

Why is syphilis tested up to three times?

Because syphilis passed to a baby, called congenital syphilis, has risen fast in the US. The USPSTF counted 3,882 cases in 2023, including 279 stillbirths and baby deaths. Provisional CDC data show 3,941 cases in 2024, the highest in more than 30 years. The USPSTF says almost 90% of these cases could have been prevented with testing and treatment in pregnancy.

A single early test misses women who catch syphilis later in pregnancy, and that is exactly what was happening. This is why ACOG moved to testing everyone three times in 2024. The USPSTF, in its 2025 update, gives early testing its highest grade (A) but says there is not yet enough evidence to recommend for or against the repeat tests.

There is one more reason to test early. Penicillin is the only treatment recommended for syphilis in pregnancy, and the long-acting shot, Bicillin L-A, is in short supply. The CDC says supply is expected to recover in late 2027 and asks clinics to save it for pregnant patients. The FDA also allowed a similar product to be imported from March 2026. Finding syphilis early gives the clinic time to get the medicine. Our syphilis page and syphilis test page explain the infection and the test in detail.

What happens to the baby at birth if you have an STD?

This is the part most guides skip, and it is the part most parents worry about. For each infection, there is a plan at birth that protects the baby.

If the mother has What happens for the baby
Hepatitis B The baby gets the hepatitis B vaccine and hepatitis B immune globulin (HBIG) within 12 hours of birth, every time. The vaccine series is finished on schedule, and the baby has a blood test at 9 months or older to check protection. The same is done if the mother’s status is unknown.
HIV The mother takes HIV medicine in pregnancy and the baby gets medicine after birth. Done this way, the risk of passing HIV is 1% or less.
Syphilis The baby is checked at birth, and may get tests and treatment depending on the mother’s treatment in pregnancy.
Herpes If there are sores or warning signs when labor starts, a C-section is usually done. The risk to the baby is highest, 30 to 50%, when the mother first catches herpes near delivery. It is under 1% when herpes is an older infection.

About the hepatitis B shot for all newborns. In December 2025 the CDC changed the rule for babies of mothers who test negative, making the birth dose a choice. A federal court paused that change on March 16, 2026, so for now the shot at birth is again advised for every newborn. The change never applied to babies of mothers with hepatitis B. Those babies always get both shots. The hepatitis B page explains the court case in more detail.

What happens if an STD test is positive while pregnant?

Most STDs can be treated safely in pregnancy, and treating early protects the baby. Your prenatal team will choose a medicine that is safe in pregnancy. Some common antibiotics, such as doxycycline, are avoided in pregnancy, so tell any doctor you see that you are pregnant. Treatment and dose are decided by a doctor or clinic. This site does not give treatment advice.

  • Chlamydia or gonorrhea. Treated with antibiotics safe in pregnancy. A repeat test about 4 weeks after treatment checks the infection is gone, and another test at 3 months checks you did not catch it again.
  • Syphilis. Treated with penicillin. Women allergic to penicillin are usually desensitized in a hospital so they can still get it, because there is no safe substitute in pregnancy.
  • HIV. HIV medicine is started as soon as possible and continued through delivery.
  • Hepatitis B. Most women don’t need treatment in pregnancy. If the virus level is high, the doctor may start an antiviral medicine around 28 weeks to lower the risk to the baby.
  • Hepatitis C. Usually treated after delivery. The baby is tested later.

Your partner needs testing and treatment too, or you can catch the same infection again. Our guides on what to do after a positive result and how to tell a partner help with the next steps.

Possible HIV exposure in the last 72 hours? No test can find HIV this soon. Go to an ER or urgent care today and ask about PEP, medicine that can prevent HIV if it is started quickly.

Can you use an online STD test while pregnant?

Yes, but think of it as an extra, not a replacement. An online lab test is useful if you had a new partner after your first prenatal visit, if you want to test before your first appointment, or if you are trying to get pregnant. It is a blood draw and urine sample at a local lab, so it is safe in pregnancy. Here is what it can and cannot do.

What an online lab test can do

  • Blood tests for HIV, syphilis, hepatitis B and hepatitis C.
  • A urine test for chlamydia and gonorrhea.
  • Give results in a few days, between prenatal visits.
  • Test you before you have a prenatal appointment.

What it cannot do

  • Swab a sore or do a pelvic exam.
  • Check the hepatitis B virus level or manage HIV in pregnancy.
  • Treat syphilis. That needs a penicillin shot from a clinic.
  • Send results to your prenatal record. You have to share them yourself.

One detail matters for pregnancy. The STDcheck 10-test panel covers HIV, syphilis, hepatitis A, B and C, chlamydia, gonorrhea and also herpes 1 and 2 blood tests. The CDC does not recommend herpes blood tests in pregnancy if you have no symptoms, because a positive result is common and usually does not change care. If you take the panel, share all the results with your prenatal team rather than worrying about the herpes result alone. Testing too soon after a new partner can also miss an infection. The window period calculator shows when each test becomes reliable.

Non-partner options also exist. Labcorp OnDemand sells STD tests online with a clinician’s order, including a test for chlamydia, gonorrhea and trichomoniasis. There is also an FDA-authorized at-home syphilis fingerstick test, called First To Know, that gives a result in 15 minutes. A positive result on it needs a lab test to confirm, and it can stay positive after an old, treated infection. Our STD panel page compares what each panel includes.

Does insurance or Medicaid cover STD testing in pregnancy?

In most cases, yes, with no cost to you. The CDC says syphilis testing in pregnancy and chlamydia and gonorrhea testing for pregnant women 24 or younger or at risk are covered without cost sharing by most private plans, Medicare and Medicaid expansion. Traditional Medicaid rules depend on the state, but Medicaid covers pregnancy care in every state. More details are on the insurance and STD testing page.

Prefer a free test?

No insurance? Title X family planning clinics (more than 4,000 across the US) and county health department clinics test for free or on a sliding scale. Find one with the CDC GetTested tool. Some listings are pregnancy centers that do not offer full STD testing, so call and ask first.

Find free testing (CDC)

To find a clinic in your area, see our STD testing near me guide, which lists options by state and city.

FAQ

Do they automatically test for STDs when you are pregnant?

Yes for HIV, syphilis, hepatitis B and hepatitis C at the first prenatal visit. Chlamydia and gonorrhea are tested if you are under 25 or at higher risk. Herpes and trichomoniasis are not routine. You can always ask for any test.

Do they test for STDs at delivery?

Sometimes. ACOG advises a syphilis test at delivery for everyone, and the CDC advises it for women at risk. A rapid HIV test is done if your status is unknown, and hepatitis B if you were never tested.

Do they test for herpes during pregnancy?

Not routinely. The CDC does not recommend herpes blood tests for pregnant women without symptoms. If you or your partner has herpes, tell your doctor, and you will be checked for sores when labor starts.

Will my partner find out my prenatal STD results?

Not from the clinic. Your results are private health information. But if you test positive, your partner needs to know so they can get tested and treated, or you may catch the infection again.

Can I have a healthy baby if I have an STD?

Yes, in most cases. When an STD is found and treated in pregnancy, the risk to the baby drops a lot. With HIV, for example, the risk is 1% or less with treatment.

Is it safe to take an STD test while pregnant?

Yes. STD tests use a blood sample, a urine sample or a swab, and none of these affect the pregnancy.

Sources

  1. CDC: STI Treatment Guidelines, screening recommendations for pregnant women
  2. USPSTF: Syphilis infection during pregnancy, screening (May 2025)
  3. HealthDay: ACOG advises syphilis screening three times in pregnancy (April 2024)
  4. CDC: Sexually transmitted infections surveillance, provisional 2024 data
  5. CDC: Bicillin L-A updates (April 2026)
  6. DC Health: Prevention of perinatal hepatitis B
  7. WHO: Preventing mother-to-child transmission of hepatitis B
  8. CDC: STI Treatment Guidelines, genital herpes
  9. CDC: HIV treatment and preventing perinatal transmission
  10. CDC: STD preventive services coverage
  11. HHS Office of Population Affairs: Title X family planning clinics
  12. Labcorp OnDemand: STI tests
  13. OHSU: What to expect from STD testing during pregnancy
  14. George Washington University: American Academy of Pediatrics v. Kennedy case summary
How we checked this page
  • Every medical number on this page comes from the CDC, HIV.gov or another public health source listed under Sources.
  • We last checked the facts on Nov 1, 2026.
  • Written by the Editorial Desk. We are an independent guide, not a clinic, and no doctor reviews our pages. Our editorial policy.

Found something wrong or out of date? Tell us, and see our corrections log.