STIs (Sexually Transmitted Infections)

Does taking doxycycline after sex prevent STIs?

Doxycycline after sex probably prevents syphilis and chlamydia in gay and bisexual men and transgender women with recent STIs; gonorrhea protection is smaller.

Doxy-PEP means taking the antibiotic doxycycline after sex to prevent bacterial infections. CDC summarizes three large trials in gay and bisexual men and transgender women (not the Kenyan trial) as showing that it cut syphilis and chlamydia by more than 70 percent and gonorrhea by about half5,6. A trial in Kenyan women found no significant benefit, and few took the doses3. Rising tetracycline resistance in gonorrhea and unknown effects on the microbiome are the main concerns6,11.

What you can do

  • If you are a gay or bisexual man or transgender woman with a recent bacterial STI, ask about doxy-PEP; CDC says to offer it after shared decision-making5.
  • Doxy-PEP comes with STI testing every 3 to 6 months and a review of whether it is still needed, under CDC guidance5.
  • Ask about vaccines, HIV PrEP and risk-reduction counseling at the same visit; CDC frames doxy-PEP as one piece of comprehensive sexual health care5.

Be careful if

  • CDC makes no recommendation for cisgender women; the one trial in women found no significant benefit, and few participants took the doses3,6.
  • Doxycycline is not a recommended treatment for gonorrhea, and tetracycline resistance in gonorrhea has risen in some places6,11.
  • Side effects include sun sensitivity and esophagus irritation, doxycycline can interact with other medicines, and long-term microbiome effects are unstudied6.
How it works What it does in your body, in plain words 3 min

What it is

Doxy-PEP is doxycycline taken after condomless sex as post-exposure prophylaxis, managed by the patient. CDC's June 2024 guideline describes 200 mg within 72 hours after sex, with no more than 200 mg in 24 hours5. In the French DOXYVAC trial it was two 100 mg pills within 72 hours, with no more than three 200 mg doses a week2. These are the study and guideline doses, not advice for any individual.

Who CDC says it is for

CDC recommends that gay, bisexual and other men who have sex with men and transgender women who have had syphilis, chlamydia or gonorrhea in the past 12 months receive counseling that doxy-PEP is an option. After shared decision-making, providers can offer a prescription5. CDC gives no recommendation for cisgender women, and says data are limited for other groups, so clinical judgment and shared decision-making apply6. People on doxy-PEP are advised to have STI testing at the sites of exposure at the start and every 3 to 6 months, and the ongoing need is reassessed on the same schedule. Doxy-PEP is meant to sit inside broader care, with risk-reduction counseling, vaccination and linkage to HIV PrEP or HIV care5. The UK has issued its own first national guideline, aimed at preventing syphilis19. See PrEP options and STI testing.

What the trials found

Trial Who Main result
DoxyPEP (US) 501 men and transgender women, PrEP or HIV STI at 10.7% vs 31.9% of quarterly visits (PrEP group)1
DOXYVAC (France) 545 men on PrEP Chlamydia or syphilis 8.8 vs 53.2 per 100 person-years2
dPEP Kenya 449 women on PrEP 50 vs 59 STIs; not significant3

By infection, the effects are not equal. In DoxyPEP, doxycycline cut syphilis (relative risk 0.13) and chlamydia (0.12) sharply and gonorrhea less (0.45) in the PrEP group1. Pooling four trials, the gonorrhea effect was not statistically significant (relative risk 0.90)7; a smaller pooled analysis of three trials in men and transgender women found a modest one (0.79)8.

Why the Kenya result is not the last word

In the Kenyan women's trial, doxycycline was detected in only 29.0 percent of hair samples from participants assigned to it, and all gonorrhea isolates were doxycycline-resistant. The authors concluded that STI incidence was not significantly lower and that use was low3. Because so little of the drug was detected, the result is hard to interpret, and it does not show that doxy-PEP "doesn't work in women". It also did not reduce trichomonas4. See antibiotics: when they help and when they harm.

Side effects

In DoxyPEP, five grade 3 adverse events and no serious events were attributed to doxycycline1. In DOXYVAC there was one drug-related serious event (a fixed-drug eruption) and 6 people (2 percent) stopped for gastrointestinal problems2. CDC lists sun sensitivity, esophagitis and esophageal discomfort as known effects and advises not lying down for an hour after a dose; because doxycycline interacts with other drugs, it advises providers to review a patient's medication list6.

The resistance and microbiome worry

Three things are being watched. First, gonorrhea may become more resistant to tetracyclines: authors of a surveillance study warn doxy-PEP might rapidly select for additional resistant strains14, and tetracycline resistance in King County gonorrhea rose from 27 to 70 percent between 2023 and mid-202411. Second, bacteria in the nose and throat may become resistant: doxy-PEP users carried more tetracycline-resistant Staphylococcus aureus and group A Streptococcus11. Third, the microbiome may change, and CDC states there are no studies of long-term intermittent doxycycline and the microbiome6. See gut damage and recovery after antibiotics.

The evidence The studies, what they found, and how much to trust them 6 min · 19 sources

The two positive trials

DoxyPEP was an open-label randomized study of 501 men who have sex with men and transgender women, either taking HIV PrEP (327) or living with HIV (174), all with gonorrhea, chlamydia or syphilis in the past year. Participants were randomized 2:1 to 200 mg of doxycycline within 72 hours after condomless sex or standard care, with quarterly STI tests. In the PrEP cohort, an STI was diagnosed at 61 of 570 quarterly visits (10.7 percent) with doxycycline and 82 of 257 (31.9 percent) with standard care (relative risk 0.34, 95% CI 0.24 to 0.46). In the living-with-HIV cohort it was 36 of 305 (11.8 percent) versus 39 of 128 (30.5 percent) (0.38, 0.24 to 0.60). In the PrEP cohort the relative risks were 0.45 (0.32 to 0.65) for gonorrhea, 0.12 (0.05 to 0.25) for chlamydia and 0.13 (0.03 to 0.59) for syphilis; in the living-with-HIV cohort they were 0.43, 0.26 and 0.23, the last with a wide interval (0.04 to 1.29). Among those with a culture, tetracycline-resistant gonorrhea occurred in 5 of 13 participants in the doxycycline groups and 2 of 16 in standard care. The National Institutes of Health funded it1.

ANRS 174 DOXYVAC enrolled HIV-negative men on PrEP at ten Paris hospitals with a bacterial STI in the previous 12 months. In a 2 by 2 design, 556 participants were randomized 2:1 to doxycycline PEP or none, and 1:1 to a meningococcal group B vaccine (4CMenB) or none; 545 were analyzed with median follow-up of 14 months. A first chlamydia or syphilis episode occurred at 8.8 per 100 person-years with doxycycline (35 events in 362 men) and 53.2 without (80 events in 183), an adjusted hazard ratio of 0.17 (0.12 to 0.26). The vaccine did not significantly reduce gonorrhea (58.3 versus 77.1 per 100 person-years; aHR 0.78, 0.60 to 1.01; p=0.061). The French research agency ANRS funded it2.

The null trial in women

dPEP Kenya randomized 449 Kenyan women aged 18 to 30 on HIV PrEP, 224 to 200 mg of doxycycline hyclate within 72 hours after condomless sex and 225 to standard care, followed quarterly for 12 months. There were 109 incident STIs: 50 with doxycycline (25.1 per 100 person-years) and 59 with standard care (29.0), a relative risk of 0.88 (0.60 to 1.29; P=0.51). Chlamydia made up 85 (78.0 percent) of them (35 versus 50; relative risk 0.73, 0.47 to 1.13). No serious adverse events were judged related to doxycycline and there were no HIV infections. In a random sample of 50 women assigned to doxycycline, it was detected in 58 of 200 hair samples (29.0 percent). All gonorrhea isolates were resistant to doxycycline. The National Institutes of Health funded it3. A secondary analysis found 27 trichomonas diagnoses in the doxycycline group and 29 in standard care (relative risk 0.96, 0.54 to 1.73)4.

Putting the trials together

CDC's 2024 guideline summarizes three large randomized trials in men who have sex with men and transgender women (the Kenyan trial in women was not among them) as showing a reduction of syphilis and chlamydia of more than 70 percent and of gonorrhea of about 50 percent5,6. A systematic review of four trials (1,727 participants, 73 percent men who have sex with men) found doxy-PEP cut any bacterial STI (hazard ratio 0.54, 95% CI 0.39 to 0.75; moderate certainty), chlamydia (relative risk 0.35, 0.15 to 0.82; low certainty) and syphilis (0.23, 0.13 to 0.41; high certainty), with no significant effect on gonorrhea (0.90, 0.64 to 1.26; very low certainty). Self-reported adherence was about 80 percent and one drug-related serious adverse event was reported7.

A 2026 meta-analysis with trial sequential analysis of three trials in men and transgender women (1,278 participants) found a pooled relative risk of 0.41 for any bacterial STI (TSA-adjusted CI 0.20 to 0.85), 0.22 for chlamydia (0.12 to 0.39), 0.24 for syphilis (0.13 to 0.44) and 0.79 for gonorrhea (0.66 to 0.95). Heterogeneity was substantial (I-squared 89.1 percent), and the composite estimate did not reach its required information size (1,278 of 1,696)8.

Real-world data

In a Kaiser Permanente Northern California cohort of 11,551 people dispensed HIV PrEP (95.1 percent male), 2,253 (19.5 percent) were dispensed doxy-PEP. Among them, quarterly chlamydia positivity fell from 9.6 to 2.0 percent (relative risk 0.21, 0.16 to 0.27) and syphilis from 1.7 to 0.3 percent (0.20, 0.11 to 0.37); gonorrhea fell only from 10.2 to 9.0 percent (0.88, 0.77 to 1.00; P=0.048), with significant drops in rectal (0.81) and urethral (0.56) but not throat gonorrhea. Positivity stayed stable in people not dispensed doxy-PEP. This was a before-and-after observational comparison9. In King County, Washington, total syphilis diagnoses were an estimated 52.3 percent lower after implementation, but syphilis in pregnant people and congenital syphilis rose; see Syphilis is back10.

Resistance data

In US national surveillance of 183,668 urethral gonorrhea isolates (1987 to 2022), tetracycline resistance was 19.7 percent in both 1987 and 2022, but high-level resistance rose from 2.8 to 14.6 percent, and in 2018 to 2022 samples was highest in men reporting male partners13. In King County, among 2,312 men who have sex with men with gonorrhea, tetracycline resistance was stable at a mean 27 percent until the first quarter of 2023, then rose to 70 percent by the second quarter of 2024, and high-level resistance rose from 2 to 65 percent between early 2021 and mid-2024. Taking more than three doses a month was associated with resistance, while any use of doxy-PEP was not. Among 703 men at a sexual health clinic, S. aureus colonization was less common in doxy-PEP users (27 versus 36 percent) but tetracycline-resistant S. aureus was more common (18 versus 8 percent), as was group A Streptococcus (9 versus 4 percent)11.

In a DOXYVAC substudy of 78 gonorrhea isolates and 233 positive samples, all isolates were tetracycline-resistant, high-level tetM-mediated resistance was more frequent in the doxycycline arm (35.5 versus 12.5 percent; P=0.043), and decreased susceptibility to cefixime was more frequent (32.3 versus 10.0 percent; P=0.033). Ceftriaxone, fluoroquinolone and azithromycin MICs were similarly distributed and all isolates were susceptible to ceftriaxone and cefixime12.

Elsewhere, resistance is already high: 92.2 percent by the European breakpoint across 2,993 isolates from eight countries in 2021 to 2024, leading the authors to conclude doxy-PEP will unlikely significantly reduce gonorrhea there and might select for multidrug-resistant strains14; 62.3 percent (2,231 of 3,579) in 22 European countries in 2024, higher in men who have sex with men (adjusted odds ratio 1.38, 1.06 to 1.79)15. In eligible men, S. aureus tetracycline non-susceptibility was more common than in the general population and linked to resistance to trimethoprim-sulfamethoxazole and clindamycin16. A small Italian cross-sectional study (153 men) found tetracycline exposure, not PrEP status, was independently associated with resistant nasal S. aureus; it is exploratory17. A clinical review says equitable implementation needs study of who is offered it, long-term STI incidence and resistance18.

How sure are we?

Fairly sure for syphilis and chlamydia in gay and bisexual men and transgender women: two independent randomized trials, two meta-analyses and large real-world cohorts agree1,2,7,8,9. Less sure for gonorrhea, where the benefit is smaller and depends on local resistance7,11,14. Unproven in women, where the one trial was undermined by low drug use3. Resistance and microbiome effects are real signals but their long-term cost is unknown6,11.

  1. Postexposure Doxycycline to Prevent Bacterial Sexually Transmitted Infections. Luetkemeyer AF, Donnell D, Dombrowski JC, Cohen S, Grabow C, Brown CE, Malinski C, Perkins R, Nasser M, Lopez C, Vittinghoff E, Buchbinder SP, Scott H, Charlebois ED, Havlir DV, Soge OO, Celum C, DoxyPEP Study Team. New England Journal of Medicine, 2023. PubMed 37018493 (opens in a new tab)
  2. Doxycycline prophylaxis and meningococcal group B vaccine to prevent bacterial sexually transmitted infections in France (ANRS 174 DOXYVAC): a multicentre, open-label, randomised trial with a 2 × 2 factorial design. Molina JM, Bercot B, Assoumou L, Rubenstein E, Algarte-Genin M, Pialoux G, Katlama C, Surgers L, Bébéar C, Dupin N, Ouattara M, Slama L, Pavie J, Duvivier C, Loze B, Goldwirt L, Gibowski S, Ollivier M, Ghosn J, Costagliola D, ANRS 174 DOXYVAC Study Group. Lancet Infectious Diseases, 2024. PubMed 38797183 (opens in a new tab)
  3. Doxycycline Prophylaxis to Prevent Sexually Transmitted Infections in Women. Stewart J, Oware K, Donnell D, Violette LR, Odoyo J, Soge OO, Scoville CW, Omollo V, Mogaka FO, Sesay FA, McClelland RS, Spinelli M, Gandhi M, Bukusi EA, Baeten JM, dPEP Kenya Study Team. New England Journal of Medicine, 2023. PubMed 38118022 (opens in a new tab)
  4. Trichomonas vaginalis Among Cisgender Women Taking Doxycycline Postexposure Prophylaxis. Sesay FA, Oware K, Violette LR, Donnell D, Odoyo JB, Omollo V, Mogaka FO, McClelland RS, Balkus JE, Bukusi EA, Baeten JM, Stewart J. Journal of Infectious Diseases, 2026. PubMed 41063661 (opens in a new tab)
  5. CDC Clinical Guidelines on the Use of Doxycycline Postexposure Prophylaxis for Bacterial Sexually Transmitted Infection Prevention, United States, 2024. Bachmann LH, Barbee LA, Chan P, Reno H, Workowski KA, Hoover K, Mermin J, Mena L. MMWR Recommendations and Reports, 2024. PubMed 38833414 (opens in a new tab)
  6. CDC Clinical Guidelines on the Use of Doxycycline Postexposure Prophylaxis for Bacterial Sexually Transmitted Infection Prevention, United States, 2024 (full report). Centers for Disease Control and Prevention. MMWR Recommendations and Reports, 2024. Source (opens in a new tab)
  7. Efficacy of postexposure prophylaxis with doxycycline (Doxy-PEP) in reducing sexually transmitted infections: a systematic review and meta-analysis. Sokoll PR, Migliavaca CB, Döring S, Traub U, Stark K, Sardeli AV. Sexually Transmitted Infections, 2025. PubMed 39097410 (opens in a new tab)
  8. Doxycycline postexposure prophylaxis for sexually transmitted infections: A systematic review and meta-analysis with trial sequential analysis. Yamamoto S, Onozuka D, Ishiuchi T, Konishi K, Kutsuna S. International Journal of Infectious Diseases, 2026. PubMed 42612786 (opens in a new tab)
  9. Doxycycline Postexposure Prophylaxis and Bacterial Sexually Transmitted Infections Among Individuals Using HIV Preexposure Prophylaxis. Traeger MW, Leyden WA, Volk JE, Silverberg MJ, Horberg MA, Davis TL, Mayer KH, Krakower DS, Young JG, Jenness SM, Marcus JL. JAMA Internal Medicine, 2025. PubMed 39761062 (opens in a new tab)
  10. The Population-Level Impact of Doxycycline Postexposure Prophylaxis on Syphilis in King County, WA: An Interrupted Time Series Analysis. Menza TW, Berzkalns A, Cannon CA, Balkus J, Kerani RP, Dombrowski JC, Golden MR. Clinical Infectious Diseases, 2026. PubMed 41885610 (opens in a new tab)
  11. Potential Impact of Doxycycline Post-Exposure Prophylaxis on Tetracycline Resistance in Neisseria gonorrhoeae and Colonization With Tetracycline-Resistant Staphylococcus aureus and Group A Streptococcus. Soge OO, Thibault CS, Cannon CA, McLaughlin SE, Menza TW, Dombrowski JC, Fang FC, Golden MR. Clinical Infectious Diseases, 2025. PubMed 40036749 (opens in a new tab)
  12. Antimicrobial-Resistant Neisseria gonorrhoeae Infections in Men Using Doxycycline Postexposure Prophylaxis: A Substudy of the ANRS 174 DOXYVAC Trial. Berçot B, Assoumou L, Caméléna F, Voitichouk C, Mérimèche M, Ouattara M, Liegeon G, Kaba AD, Manda V, Mainardis M, Braille A, Pialoux G, Katlama C, Surgers L, Slama L, Bébéar C, Ollivier M, Ghosn J, Costagliola D, Molina JM, ANRS 174 DOXYVAC Study Group. Clinical Infectious Diseases, 2026. PubMed 41208026 (opens in a new tab)
  13. Tetracycline Resistance Among Neisseria gonorrhoeae Isolates-United States, 1987-2022. Wondmeneh S, Learner ER, Schmerer MW, Harvey A, Mauk K, Papp JR, Quilter LAS, St Cyr SB, Antimicrobial-Resistant Neisseria gonorrhoeae Working Group. Sexually Transmitted Diseases, 2026. PubMed 41410464 (opens in a new tab)
  14. Exceedingly high levels of tetracycline resistance in Neisseria gonorrhoeae in eight WHO Enhanced Gonococcal Antimicrobial Surveillance Programme countries in three WHO regions, 2021-2024-doxycycline post-exposure prophylaxis will unlikely impact gonorrhoea burdens. Schröder D, Cherdtrakulkiat T, Doanh LH, Golparian D, Heng LS, Hoffman I, Jacobsson S, Jamoralin MC, Kakooza F, Kittiyaowamarn R, Kyambadde P, Maseko V, Matoga M, Müller E, Nguyen TTP, Ouk V, Setiawaty V, Sia SB, Sulaiman V, Virak M, Thuy Van NT, Wi T, Maatouk I, Unemo M, WHO EGASP tetracycline study group. Journal of Antimicrobial Chemotherapy, 2025. PubMed 40099718 (opens in a new tab)
  15. High prevalence of tetracycline resistance in Neisseria gonorrhoeae across 22 European countries, 2024. Jacobsson S, Cole MJ, Jansen van Rensburg M, Schröder D, Mårdh O, Ködmön C, Unemo M, Euro-GASP tetracycline study group, Collaborators: Euro-GASP tetracycline study group. Eurosurveillance, 2026. PubMed 41540930 (opens in a new tab)
  16. Staphylococcus aureus Tetracycline Resistance and Co-resistance in a Doxycycline Postexposure Prophylaxis-Eligible Population. Mittelstaedt R, Kanjilal S, Helekal D, Robbins GK, Grad YH. Journal of Infectious Diseases, 2025. PubMed 39718967 (opens in a new tab)
  17. STI-driven antibiotic exposure may shape macrolide and tetracycline resistance in nasal Staphylococcus aureus among MSM receiving HIV pre-exposure prophylaxis. Gaspari V, Foschi C, Lazzarotto T, Djusse ME, Marangoni A, Ambretti S. Sexually Transmitted Infections, 2026. PubMed 42342442 (opens in a new tab)
  18. Filling in the Gaps: Updates on Doxycycline Prophylaxis for Bacterial Sexually Transmitted Infections. Hazra A, McNulty MC, Pyra M, Pagkas-Bather J, Gutierrez JI, Pickett J, Stewart J, Bolan RK, Molina JM, Celum C, Luetkemeyer AF, Klausner JD. Clinical Infectious Diseases, 2024. PubMed 38332660 (opens in a new tab)
  19. Introducing the first UK national guideline for the use of doxycycline postexposure prophylaxis (doxyPEP) for the prevention of syphilis. Saunders J, Fifer H, Medland N, guideline writing group. Sexually Transmitted Infections, 2025. PubMed 40675772 (opens in a new tab)

Every change to this page is tracked in version control. View edit history. If you have conflicting research, we want to hear about it.

Spotted something wrong or out of date? Suggest a change.

Weekly research digest

New topics and updated research, once a week when there's something new. How it works