Most STIs can be treated safely during pregnancy, but the safe drug depends on the infection: penicillin remains the standard for syphilis (with desensitization if you're allergic), while doxycycline is avoided because it can affect fetal teeth and bones. The most protective step is universal screening. Everyone pregnant is tested for HIV, syphilis, and hepatitis B early, because catching a silent infection lets treatment protect the baby.
-
Everyone 15–65 — HIV at least once
USPSTF
-
Sexually active women under 25 — chlamydia & gonorrhea yearly
-
Gay & bisexual men — at least yearly, throat/rectal too
-
Everyone pregnant — HIV, syphilis, hepatitis B
-
More often with new or multiple partners
| Item | Value |
|---|---|
| Everyone 15–65 — HIV at least once | — USPSTF |
| Sexually active women under 25 — chlamydia & gonorrhea yearly | |
| Gay & bisexual men — at least yearly, throat/rectal too | |
| Everyone pregnant — HIV, syphilis, hepatitis B | |
| More often with new or multiple partners |
The bottom-line difference: screen first, then treat by infection
Two things matter in pregnancy, and people often confuse them. The first is screening, which finds the infection. The second is treatment, meaning what's safe to take once it's found. Screening is nearly identical for every pregnant person and is built into routine prenatal care. The differences live in treatment: the safe drug, the timing, and whether a partner needs treating too all change with the infection. Because many STIs cause no symptoms, screening does the heavy lifting. You can't treat what you never caught.
What each one is — screening vs. treatment in pregnancy
Screening in pregnancy means testing when you feel completely fine. It's standard prenatal bloodwork and swabs, not a response to a symptom, done because the consequences of a missed infection passed to a newborn during pregnancy or delivery are serious and largely preventable. Everyone who is pregnant is screened for HIV and syphilis, plus hepatitis B, because treating those in pregnancy protects the baby USPSTF, syphilis in pregnancy.
Treatment is the medication chosen once a test comes back positive. The guiding principle is to use the drug with the longest, best-established safety record in pregnancy and to avoid those known to affect fetal development. Penicillin is old, well-studied, and the only drug proven to treat syphilis in a pregnant person and prevent it in the fetus, so it stays first-line, and a few common antibiotics get swapped out.
The key differences, infection by infection
Syphilis
Syphilis shows most clearly why pregnancy screening exists. Untreated, it can cross the placenta and cause congenital syphilis: stillbirth, bone deformities, and damage to the brain and organs in the newborn. Penicillin given by injection is the only treatment that reliably cures the pregnant person and treats the fetus. If you're allergic to penicillin, there's no equally effective substitute in pregnancy, so the standard is penicillin desensitization, a hospital protocol that gives tiny, escalating doses under monitoring so your body tolerates the drug. Doxycycline, an alternative outside pregnancy, is not used here.
HIV
HIV screening is universal in pregnancy because antiretroviral treatment dramatically lowers the chance of passing the virus to the baby. Starting and staying on therapy suppresses the virus so that transmission during pregnancy, delivery, and breastfeeding becomes very unlikely. The same logic that protects the baby protects partners; the principle that earlier hiv treatment can help prevention applies in pregnancy too, where an undetectable viral load is the goal. HIV medications used in pregnancy are chosen for both safety and effectiveness, and care is managed with an HIV specialist.
Chlamydia and gonorrhea
Both are common and frequently silent, so screening all sexually active women under a certain age every year, and older women with new or multiple partners, is recommended USPSTF, chlamydia & gonorrhea. In pregnancy, untreated chlamydia or gonorrhea can be passed to the baby during delivery, causing eye infection (conjunctivitis) or pneumonia in the newborn. Both are treatable in pregnancy: chlamydia with an oral antibiotic regimen considered safe in pregnancy, and gonorrhea with an injection. Doxycycline, a go-to for chlamydia in non-pregnant adults, is avoided in pregnancy.
Hepatitis B
Hepatitis B is screened in everyone pregnant because a baby exposed at birth can develop chronic, lifelong infection. The protection here isn't an antibiotic. The newborn gets the hepatitis B vaccine and an antibody shot right after delivery, and in some cases the pregnant person is treated to lower the viral load beforehand. This pathway screens to prevent rather than to cure.
Pregnancy drug-safety: a side-by-side reference
This table sums up the safe-treatment logic across the infections most often flagged in prenatal screening. Doses are individualized by a clinician; the table shows which drug class is the standard and what's avoided.
| Infection | Standard treatment in pregnancy | Avoided / needs a workaround | Why screening matters |
|---|---|---|---|
| Syphilis | Penicillin by injection | Doxycycline; penicillin allergy requires desensitization | Prevents congenital syphilis (stillbirth, organ damage) |
| HIV | Antiretroviral therapy to suppress the virus | Care managed with a specialist | Lowers transmission to baby to very low |
| Chlamydia | Pregnancy-safe oral antibiotic | Doxycycline avoided | Prevents newborn eye infection and pneumonia |
| Gonorrhea | Antibiotic injection | Some oral agents avoided | Prevents newborn conjunctivitis |
| Hepatitis B | Newborn vaccine + antibody shot at birth | — | Prevents chronic lifelong infection in the baby |
Which screening applies to you, and how often
Some screening is universal in pregnancy, and some is risk-based. HIV, syphilis, and hepatitis B are tested in everyone pregnant. Chlamydia and gonorrhea screening targets younger women and those with new or multiple partners or other risk factors. How often you're retested during pregnancy is driven by risk: a new partner, a partner who tested positive, or inconsistent condom use all mean repeat testing later in the pregnancy.
Outside of pregnancy, the same risk logic applies. The general adult recommendation is that everyone aged fifteen to sixty-five be tested for HIV at least once, with more frequent testing for those at higher risk USPSTF, HIV screening. Men who have sex with men are advised to test at least once a year, and more often with higher risk, including throat and rectal swabs, not just a urine test, because those sites are commonly missed CDC STI screening. If those sites apply to you, ask for them specifically.
The practical next step
If you're pregnant or planning to be, screening happens at your first prenatal visit, but you don't have to wait for that to know your status. You can get tested now, before or between pregnancies, and that baseline makes prenatal care simpler. If you've had a recent exposure, timing matters: a test taken too soon can miss an early infection, so check when to test after exposure to know when a result is reliable.
- Treat screening as routine maintenance; it catches silent infections while you feel fine.
- Tie testing to a trigger: a new partner, an annual checkup, or a positive partner result.
- Ask by name for throat or rectal swabs if those sites apply to you; a urine test alone misses them.
- Tell your prenatal clinician about any recent exposures so retesting can be timed correctly.
When to talk to a clinician
Reach out before assuming anything if you have a penicillin allergy and a positive syphilis test, because desensitization needs to be planned in a monitored setting rather than improvised. Talk to a clinician if a partner tests positive during your pregnancy, if you develop symptoms like unusual discharge, pelvic pain, or sores, or if you're unsure which screens you've already had. And if you're a teenager wondering about privacy, the rules vary; here's what to know about whether can teens get std testing without parents knowing?