Doxy-PEP (doxycycline post-exposure prophylaxis) is a single dose of the antibiotic doxycycline taken after sex to lower the risk of certain bacterial STIs. Because antibiotic use can drive resistance, the CDC recommends it only for specific higher-risk groups and actively monitors for resistance. It's a targeted tool for those groups, not a daily pill for everyone.

200 mg
Dose

doxycycline, within 72 hours after sex

bacterial STIs
Reduces

syphilis, chlamydia, some gonorrhea

specific groups
For

MSM & trans women with a recent bacterial STI

everyone
Not for

evidence still limited for others

Doxy-PEP at a glance. Source: CDC.
Doxy-PEP at a glance
ItemValue
Dose200 mg — doxycycline, within 72 hours after sex
Reducesbacterial STIs — syphilis, chlamydia, some gonorrhea
Forspecific groups — MSM & trans women with a recent bacterial STI
Not foreveryone — evidence still limited for others

What Doxy-PEP is and how it works

Doxy-PEP means taking doxycycline, a long-established antibiotic, shortly after condomless sex to head off a bacterial infection before it takes hold. The drug works against the bacteria that cause syphilis, chlamydia, and gonorrhea by interfering with their ability to make the proteins they need to multiply. Catch the bacteria early, before they establish, and the immune system plus the antibiotic clear them before symptoms or transmission begin.

Doxycycline targets bacteria only. It does nothing against HIV, herpes, HPV, or any other virus CDC. In practice, doxy-PEP is a single pill kept on hand and swallowed after sex. It is not a vaccine and not protection against everything you can catch.

How well does it work?

Studies have shown doxy-PEP substantially reduces the risk of syphilis and chlamydia. The effect on gonorrhea is less consistent across studies, which drives the resistance question. Gonorrhea has a long track record of evolving its way around antibiotic after antibiotic, and a meaningful share of strains already carry reduced susceptibility to tetracyclines like doxycycline. So the protection against gonorrhea is patchier than against syphilis and chlamydia, where doxycycline resistance is far less of a concern.

The biggest unanswered question hanging over doxy-PEP is what repeated, population-wide doxycycline exposure does to resistance over time. The long-term effects aren't fully known yet, so the CDC continues to monitor resistance patterns as doxy-PEP rolls out CDC MMWR, 2024. The worry isn't only resistant gonorrhea but potential pressure on other bacteria in the body that have nothing to do with STIs. The current guidance trades real benefit for high-risk people against keeping the antibiotic useful for everyone.

How to use it and who it's for

The dose is 200 mg of doxycycline taken as soon as possible, and within 72 hours, after sex, with no more than that amount in any 24-hour period. Sooner is better, since the antibiotic works best when it reaches the bacteria before they multiply. You don't take it before sex or on a daily schedule. It's an after-the-fact dose tied to a specific encounter.

Current CDC guidance is for providers to discuss doxy-PEP with gay and bisexual men and transgender women who have had at least one bacterial STI — gonorrhea, chlamydia, or syphilis — in the past 12 months. That recent-infection criterion flags the people with the highest near-term chance of another exposure, where the benefit most clearly outweighs the resistance trade-off.

For other groups, including cisgender women, there isn't yet enough evidence to weigh the benefits and harms, so doxy-PEP isn't broadly recommended. That doesn't mean it can't help anyone outside the named groups. The data needed to recommend it widely simply doesn't exist yet.

Cost and how to get it

Doxy-PEP requires a prescription, so the starting point is a conversation with a clinician — a primary care provider, a sexual-health clinic, or many telehealth services. Doxycycline itself is a generic, widely stocked antibiotic, which keeps it among the more affordable medications, and many insurance plans cover it. The pills are kept on hand so a dose is ready when needed, rather than picked up after each encounter.

What Doxy-PEP does NOT protect against

Doxy-PEP is a backstop. It targets bacterial STIs and leaves the viral ones untouched:

  • HIV — doxy-PEP does nothing here; HIV prevention runs on PrEP and condoms.
  • Herpes (HSV) — a virus that causes recurrent genital or oral sores; unaffected by doxycycline.
  • HPV (human papillomavirus) — the virus behind genital warts and several cancers; prevented by vaccination, not antibiotics.
  • Hepatitis B and other viral infections — outside doxycycline's reach entirely.
  • Gonorrhea, in part — protection is inconsistent because of existing tetracycline resistance in some strains.

If you're considering layering prevention strategies, see can doxypep and prep be taken together?. The two cover different threats and are often used side by side.

How it fits with other prevention

Doxy-PEP is one layer, used alongside condoms, vaccines, and regular testing, never a replacement for them. Condoms remain the only single tool that cuts both bacterial and viral transmission at once. Vaccination handles HPV and hepatitis B, which no antibiotic can prevent. Routine screening catches what slips through any prevention plan.

Regular screening matters even more on doxy-PEP, because the goal is to catch any infection early, including a resistant gonorrhea case that the antibiotic didn't stop. If you're sexually active in a higher-risk group, schedule time to get tested at the intervals your clinician advises. After a specific exposure, timing the test correctly matters; see when to test after exposure so you're not testing too early to get a reliable result.

When to talk to a clinician

Bring up doxy-PEP if you're in one of the groups the CDC names and you've had a bacterial STI in the past year, or if you're weighing your overall prevention plan. A clinician can confirm whether doxy-PEP fits your situation, check for drug interactions and allergies, set up a testing schedule, and make sure you're not relying on it for infections it can't touch. Also reach out if you develop symptoms — sores, discharge, burning with urination, or pelvic pain — since those need evaluation and treatment regardless of whether you took a dose.