You prevent syphilis by combining several layers: use condoms correctly and consistently, limit exposure to untested partners, and screen regularly if you're at risk. For some gay and bisexual men and transgender women, doxy-PEP — a single dose of doxycycline after sex — adds strong protection. No method works alone, so layering them is the strategy.

painless
Primary sore

~3 wks; 10–90 days

2 blood tests
Testing
penicillin
Treatment

by stage

≠ cured
Symptoms fade
Syphilis at a glance. Source: CDC.
Syphilis at a glance
ItemValue
Primary sorepainless — ~3 wks; 10–90 days
Testing2 blood tests
Treatmentpenicillin — by stage
Symptoms fade≠ cured

How to prevent syphilis

Syphilis is caused by the bacterium Treponema pallidum, and it spreads through direct contact with a syphilis sore during vaginal, anal, or oral sex, plus from a pregnant person to the baby CDC, About Syphilis. The bug travels on skin and mucous-membrane contact rather than only through fluids, so prevention has to account for areas a barrier may not fully cover. For the full picture of how the infection moves through the body, see what is syphilis? causes, stages & risks.

There's no syphilis vaccine, so the prevention toolkit is behavioral and pharmacologic. The CDC names correct and consistent condom use, mutual monogamy with a partner who has tested negative, and routine screening for people at risk. For a defined group, doxy-PEP now sits alongside those.

  • Condoms, used correctly every time — reduce but don't eliminate contact with a sore.
  • Mutual monogamy with a tested-negative partner — removes new exposure if both partners stay within the agreement.
  • Routine screening — catches and treats infection before it spreads onward, and is the single most effective community-level tool.
  • Doxy-PEP — a post-sex antibiotic dose for eligible people, which sharply lowers the odds of acquiring syphilis after a known or likely exposure.

Condoms and their limits

Condoms are a foundation. A latex or polyurethane condom blocks contact with a sore that sits on the covered part of the penis, but a syphilitic chancre can appear on the scrotum, the labia, around the anus, or inside the mouth — anywhere skin meets skin during sex. If the sore is somewhere the condom doesn't cover, transmission can still happen even when the condom is used flawlessly.

Condoms work best paired with screening rather than relied on alone. The first sore is painless and often hidden, so a partner with active, infectious syphilis frequently has no idea, and neither does the person being exposed. Use a barrier for oral, vaginal, and anal sex, and treat any new genital, anal, or oral ulcer as a reason to get checked rather than to wait and watch.

Testing as prevention

A person who's diagnosed and treated stops transmitting, so screening is prevention. Penicillin G, given by injection, reliably clears every stage of syphilis when used correctly CDC, STI Treatment Guidelines. Catching it early also spares the person the later stages, which can invade the eyes or nervous system at any point in the disease, not only years down the line.

Diagnosis takes two blood tests: a nontreponemal test (RPR or VDRL) and a treponemal test (such as TP-PA, FTA-ABS, EIA, or CIA), run in either the traditional or reverse-sequence order CDC Lab Recommendations, 2024. Timing matters. Antibodies may not be detectable in the earliest infection — the CDC notes they can take up to two weeks after the chancre appears, and the chancre itself shows up about three weeks after exposure. A negative test soon after a risky encounter doesn't clear you, so you retest. See when to test after exposure for the timing, and get tested when you're due.

Sexually active gay and bisexual men, people with HIV, anyone with multiple or new partners, and everyone who is pregnant should screen routinely. Syphilis is rising sharply and isn't spread evenly — primary-and-secondary cases reached roughly 53,000 in 2023, and rates in some states run several times the national average CDC AtlasPlus, 2023. Regular screening finds infections that stay silent.

Doxy-PEP: the newer prevention option

There's no syphilis vaccine and no syphilis-specific PrEP, but doxy-PEP (post-exposure prophylaxis with doxycycline) has changed the conversation. In the CDC's 2024 guidance, taking 200 mg of doxycycline within 72 hours after sex reduced syphilis acquisition by about 73% CDC DoxyPEP Guidelines, 2024. That drop is why doxy-PEP is now part of standard prevention talk for the right people.

It isn't for everyone. The recommendation is for men who have sex with men and transgender women who've had a bacterial STI in the past year, offered through shared decision-making — a real conversation with a clinician about benefits, antibiotic resistance concerns, and your own risk. Doxy-PEP supplements condoms and screening rather than replacing them; it doesn't treat an established infection, and it doesn't cover everyone at risk.

Putting it together

No single method covers every gap, so the smart approach stacks them. Below, the main options compared on what they do and where they fall short.

MethodHow well it worksMain limit
Condoms (every time)Reduces contact with sores in covered areasDoesn't cover sores on the scrotum, labia, anus, or mouth
Mutual monogamy, tested-negative partnerRemoves new exposureDepends on both partners testing and staying in the agreement
Routine screeningFinds and treats silent infection; stops onward spreadHas a window period; an early test can miss recent infection
Doxy-PEP (eligible groups)Cut syphilis acquisition by ~73% in CDC's dataOnly for MSM/transgender women with a recent bacterial STI; not preventive against an existing infection

For most sexually active adults, that means condoms plus a screening schedule that matches your risk. Eligible men and transgender women can add doxy-PEP after a clinician conversation. And if you're pregnant, prenatal syphilis screening is non-negotiable — congenital syphilis nearly doubled in four years, from 2,163 cases in 2020 to 3,882 in 2023, its highest level in decades CDC, Congenital Syphilis. Screening plus penicillin prevents almost all of it, so see syphilis in pregnancy for what that schedule looks like.

When to see a clinician

Get checked promptly if you notice a painless sore anywhere on the genitals, anus, or mouth, even if it heals on its own. That healing is a trap, because the bacteria move inward while you feel fine. A widespread rash, especially on the palms and soles, is another classic sign; here's more on the secondary syphilis rash and what it looks like.

Treat new vision changes or neurological symptoms in anyone with syphilis as an emergency, because the infection can reach the eyes or nervous system at any stage. Also see a clinician after any known exposure to a partner who tests positive, and if you're pregnant, at your first prenatal visit and again later in pregnancy if you're at higher risk.