DoxyPEP is a single dose of the antibiotic doxycycline taken after sex to lower the risk of getting certain bacterial STIs. Standing for doxycycline post-exposure prophylaxis, it targets bacterial infections — syphilis and chlamydia, and in some studies gonorrhea — but does nothing against HIV or other viruses. It's a targeted backstop for specific higher-risk groups, not a 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 DoxyPEP is and how it works

DoxyPEP uses doxycycline, a common, decades-old antibiotic in the tetracycline family. Taken shortly after condomless sex, it puts a dose of the drug into your system during the window when bacteria you may have been exposed to are first trying to establish an infection. Doxycycline works by blocking the bacteria's ability to make the proteins they need to multiply, so a recently introduced infection can be cleared before it takes hold.

The key word is bacterial. DoxyPEP only acts on bacterial STIs, so it can't touch viral infections like HIV, herpes, HPV, or hepatitis. Think of it as a chemical backstop you take after a potential exposure — not a force field, and not something that works for every infection out there. For a fuller walk-through of how this fits an after-sex prevention plan, see our guide to doxypep.

How well does DoxyPEP work?

In clinical studies, DoxyPEP has been shown to reduce the risk of syphilis and chlamydia, and in some studies gonorrhea — though the effect on gonorrhea is less consistent CDC. That inconsistency partly reflects gonorrhea's known tendency to develop resistance to antibiotics, including doxycycline, so the protection can vary depending on which strains are circulating in a community.

What the evidence does not yet do is tell us the long-term picture for antibiotic resistance. Because repeated antibiotic use can push bacteria — both the STIs being targeted and other germs in the body — toward resistance, the CDC continues to monitor for resistance as DoxyPEP is used more widely CDC MMWR, 2024. That ongoing caution is exactly why it's recommended as a targeted tool rather than a routine pill for the general public.

How to use DoxyPEP and who it's for

The dose is 200 mg of doxycycline taken by mouth as soon as possible within 72 hours after sex, and no more than that amount in any 24-hour period. In real life that means keeping a pill on hand and taking it after condomless sex — not taking it daily or stacking extra doses if you have sex more than once. Sooner is better within that window; the earlier you take it after exposure, the better the chance of stopping an infection before it establishes.

DoxyPEP is not handed out to everyone. CDC guidance is for providers to discuss it 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 is a way of identifying people whose real-world risk is high enough that the benefit clearly outweighs the downsides.

For other groups, including cisgender women, there isn't yet enough evidence to weigh the benefits and harms, so DoxyPEP isn't broadly recommended for everyone. That's not a judgment about who deserves protection — it reflects that the trials showing benefit were done in specific populations, and results don't automatically transfer. A clinician can help you sort out where you fall.

Cost and how to get DoxyPEP

DoxyPEP requires a prescription, so the path is a visit — in person or via telehealth — with a clinician who can confirm you fit the criteria and write for doxycycline. The medication itself is a generic antibiotic that has been on the market for decades, which keeps it relatively inexpensive compared with many newer prevention drugs. Many sexual-health clinics, LGBTQ-focused health centers, and some primary-care and telehealth services now offer it.

A common mistake is treating DoxyPEP like an over-the-counter option you can dose on your own — it isn't. The provider conversation matters because it pairs the prescription with the testing schedule and resistance monitoring that make it safe to use over time.

What DoxyPEP does NOT protect against

DoxyPEP has clear limits, and knowing them keeps you from a false sense of safety:

  • DoxyPEP does nothing against HIV — for HIV prevention you need PrEP or PEP, which are entirely different medications.
  • It does not protect against viral STIs like herpes, HPV (the virus behind genital warts and several cancers), or hepatitis.
  • Its effect on gonorrhea is less consistent than on syphilis and chlamydia, so it shouldn't be relied on as your only defense against gonorrhea.
  • It doesn't undo an infection you already have or replace treatment — it's prevention taken before an infection can establish, not a cure.

How DoxyPEP fits with other prevention

DoxyPEP works best as one layer in a stack, not a standalone solution. Condoms still reduce the risk of the infections DoxyPEP misses, including HIV and many viral STIs. Vaccines cover ground antibiotics can't — the HPV vaccine and hepatitis B vaccine prevent infections DoxyPEP has no effect on. And regular screening catches anything that slips through any single layer.

Routine testing is non-negotiable when you're using DoxyPEP, because no prophylaxis is perfect and because resistance monitoring depends on knowing what infections are actually occurring. If you're on DoxyPEP or considering it, plan to get tested on a regular schedule, and learn when to test after exposure so you're not testing too early to get an accurate result. If you've had chlamydia before, the risk of getting it again is real — read up on chlamydia reinfection and the recommended retesting timeline.

LayerWhat it protects againstWhat it misses
DoxyPEPSyphilis, chlamydia; gonorrhea less consistentlyHIV, herpes, HPV, hepatitis
CondomsMany bacterial and viral STIs, including HIVSkin-contact infections outside the covered area
VaccinesHPV, hepatitis BMost bacterial STIs
Regular testingCatches what other layers miss; guides treatmentDoesn't prevent — it detects

When to talk to a clinician

Bring up DoxyPEP if you're a gay or bisexual man or a transgender woman and you've had gonorrhea, chlamydia, or syphilis in the past year — that's the group CDC specifically flags for the conversation. It's also worth asking if you're having condomless sex with new or multiple partners and want an added layer of protection, even if you fall outside the named groups; a clinician can talk through whether the evidence supports it for your situation.

See a clinician promptly if you develop symptoms — unusual discharge, sores, burning with urination, or a rash — since those mean a possible active infection that needs testing and treatment, not prophylaxis. And if you've started DoxyPEP, keep your follow-up testing appointments so any breakthrough infection is caught and treated early.