Buy 8-in-1 STD test kit (69% off) - Free Shipping

What Is Doxy-PEP and How Does It Prevent Syphilis and Chlamydia?

One dose of doxycycline after sex can sharply lower the risk of syphilis and chlamydia. This guide covers the details that decide whether doxy-PEP works for you: the 200 mg dose, the 24- and 72-hour marks, who the CDC says should be offered it, what the trials found, the side effects, and the testing schedule that comes with a prescription.

17 min read
A single tan doxycycline tablet beside its foil blister strip on a white clinic table, with a glass of water nearby.
Share
  • Take 200 mg as soon as possible after sex, ideally within 24 hours and no later than 72, and never more than one dose in 24 hours.

  • The CDC recommends offering it to men who have sex with men and transgender women with a bacterial STI in the past 12 months, alongside STI testing every 3–6 months.

Published: October 2026 | Last updated: October 2026

Quick Answer

What is doxy-PEP?

Doxy-PEP is one 200 mg dose of the antibiotic doxycycline, taken as soon as possible after condomless oral, anal, or vaginal sex: ideally within 24 hours, no later than 72. CDC guidelines say it lowers the risk of syphilis and chlamydia by more than 70%, and gonorrhea by about 50%. It reduces the risk without removing it.

Doxy-PEP, short for doxycycline post-exposure prophylaxis, means taking one dose of a common antibiotic after sex to lower the chance that syphilis, chlamydia, or gonorrhea takes hold. The CDC published its first clinical guidelines on the approach in June 2024 (CDC clinical guidelines, MMWR 2024).

If you want the basics on whether doxycycline can prevent STIs at all, our plain-English guide to doxy PEP covers them. This article goes into the practical detail: the exact dose and the 24- and 72-hour marks, who the CDC says should be offered a prescription, what the trials measured, the side effects, what it leaves unprotected, and the testing schedule that comes with it.

For most readers the reassuring part is simple. Doxy-PEP is a strong tool for a specific group of people. If you are outside that group, you have not missed out on something essential: condoms and regular screening remain the best-supported protection for everyone.

How a single dose lowers the risk of syphilis and chlamydia

Bacterial STIs do not become an established infection the instant they reach the body. A small number of bacteria first have to settle into the lining of the genitals, rectum, or throat and start multiplying. Doxycycline, a tetracycline-class antibiotic used to treat bacterial infections (NHS doxycycline guide), blocks the machinery bacteria use to build proteins, so they stop growing and reproducing. Taken soon after sex, it reaches the tissues while that bacterial population is still tiny, and the immune system can clear what remains.

Treatment and prevention use the same drug. Timing is the difference. An earlier dose meets fewer bacteria, which is why the CDC describes the first 24 hours as the ideal window (CDC: Preventing STIs with Doxy PEP).

Syphilis and chlamydia respond well because the bacteria behind them, Treponema pallidum and Chlamydia trachomatis, remain largely sensitive to doxycycline. Gonorrhea is the weak spot. Many strains of Neisseria gonorrhoeae already carry tetracycline-resistance genes: in the main U.S. trial, 4 of 15 gonorrhea samples collected at enrollment (27%) were already resistant (Luetkemeyer et al., NEJM 2023), and in a Kenyan trial every gonorrhea sample tested carried a resistance gene (Stewart et al., NEJM 2023). That is why the CDC's guidelines put the reduction at about 50% for gonorrhea, against more than 70% for syphilis and chlamydia (CDC MMWR 2024).

The dose and the 24- and 72-hour marks

The CDC's recommended dose is 200 mg of doxycycline, in any formulation, and it should not exceed 200 mg in any 24-hour period (CDC MMWR 2024). Your prescription label tells you how many tablets or capsules make up that 200 mg.

The CDC's patient guidance says to take the dose as soon as possible after anal, oral, or vaginal/front-hole sex, with within 24 hours as the ideal and 72 hours as the latest acceptable point. Its worked example: after sex on Saturday, the ideal dose is on Sunday and the latest acceptable dose is on Tuesday. The same page says not to take more than one dose in a 24-hour period, however many times you have sex that day, and that you can take doxy-PEP as often as every day if you need to (CDC: Preventing STIs with Doxy PEP).

A few habits make each dose easier on your body. The CDC's provider guidance says to take doxy-PEP with at least 8 ounces of water and food, not within two hours of dairy products, antacids, or supplements containing iron, calcium, or magnesium, and not to lie down for one hour afterward (CDC provider guidance on doxy PEP). The NHS advises swallowing the tablets whole while sitting or standing and not lying down for at least 30 minutes (NHS). Both aim to stop the tablet irritating your throat; follow your prescriber's instructions on how long to stay upright.

Doxy-PEP Timing After Sex

  1. Day 0 Sex

    Condomless oral, anal, or vaginal sex

  2. Day 1 Ideal dose window

    Take 200 mg as soon as possible, ideally within 24 hours

  3. Day 3 Latest dose

    72 hours is the latest point CDC considers acceptable

  4. Day 90 Earliest routine retest

    STI testing and prescription review from about 3 months

  5. Day 180 Latest routine retest

    Testing at least every 6 months while using doxy-PEP

Aim for the first 24 hours and never later than 72. STI testing continues every 3–6 months.

What the trials found

The strongest evidence comes from the DoxyPEP trial, published in the New England Journal of Medicine in 2023. It enrolled men who have sex with men and transgender women who were either taking HIV PrEP or living with HIV, and randomly assigned them to doxy-PEP or standard care. In the PrEP group, an STI was diagnosed at 10.7% of quarterly visits with doxy-PEP versus 31.9% with standard care, a relative risk of 0.34. Results were similar among people living with HIV: 11.8% versus 30.5% (Luetkemeyer et al., NEJM 2023).

Broken down by infection, the effect was largest for chlamydia and syphilis, as the table below shows. Self-reported adherence was high: 86% of the doxycycline group said they took the dose always or often within 72 hours after condomless sex, and 71% said they never missed a dose. Few side effects were linked to the drug. Investigators recorded five grade 3 (severe) events possibly or probably related to doxycycline, three diarrheal events and two headaches or migraines, plus one grade 2 liver-enzyme elevation. No serious adverse events were attributed to doxycycline, and about 2% of the doxycycline group stopped because of side effects or personal preference (same source).

DoxyPEP Trial: STIs per Quarterly Visit (PrEP Cohort)

InfectionDoxy-PEP groupStandard careRelative risk
Any bacterial STI10.7%31.9%0.34
Gonorrhea9.1%20.2%0.45
Chlamydia1.4%12.1%0.12
Syphilis0.4%2.7%0.13

Source: Luetkemeyer et al., NEJM 2023. A relative risk of 0.12 means roughly 88% fewer chlamydia diagnoses.

Who the CDC says should be offered doxy-PEP

The CDC recommends that providers counsel gay, bisexual, and other men who have sex with men and transgender women who have had at least one bacterial STI (specifically syphilis, chlamydia, or gonorrhea) in the past 12 months about doxy-PEP, and offer them a prescription (CDC MMWR 2024). A recent STI is one of the clearest markers of ongoing exposure, and that is where the benefit of the medicine most clearly outweighs its downsides. The same guidelines say doxy-PEP could also be discussed, as a shared decision, with men who have sex with men and transgender women who have not had a recent STI but face ongoing exposure risk.

For other populations, the CDC's provider page states there is insufficient evidence to assess the balance of benefits and harms (CDC provider guidance). The patient page is broader in tone, encouraging providers to talk through the pros and cons with gay and bisexual men and transgender women generally. Trans and nonbinary readers can find population-specific detail in our guide to doxy-PEP for trans people.

Who Is Most Clearly a Candidate for Doxy-PEP

Doxy-PEP is a prescription medicine. A prescriber will also plan STI testing every 3–6 months (CDC) and ask about pregnancy, since doxycycline is not usually used in pregnancy (NHS).

  • Gay, bisexual, or other man who has sex with men, or a transgender woman
  • Syphilis, chlamydia, or gonorrhea diagnosed in the past 12 months: CDC recommends offering a prescription
  • No recent STI but ongoing higher-risk exposure: CDC says doxy-PEP can be discussed as a shared decision

Why the evidence in cisgender women is still thin

The CDC guideline states that no recommendation can be given at this time on the use of doxy PEP for cisgender women (CDC MMWR 2024). The one large trial in cisgender women, the dPEP study in Kisumu, Kenya, enrolled 449 women aged 18 to 30 who were taking HIV PrEP. Doxy-PEP did not significantly reduce STIs: 25.1 infections per 100 person-years in the doxycycline group versus 29.0 with standard care, a relative risk of 0.88 that could easily have been chance (Stewart et al., NEJM 2023).

Adherence seems to explain much of the result. Self-reported use looked high, yet when investigators tested hair from 50 randomly selected women in the doxy-PEP group, they found doxycycline in only 58 of 200 samples, or 29%. The universal resistance in local gonorrhea, described above, also played a part (same source).

The CDC's guidelines describe clinical data for cisgender women, cisgender heterosexual men, transgender men, and other queer and nonbinary people assigned female at birth as limited, and ask providers to use clinical judgment and shared decision-making with them (CDC MMWR 2024). Internationally, the WHO says it is still working on doxy-PEP recommendations for some populations at higher risk of infection (WHO STI fact sheet).

If you're a woman wondering about doxy-PEP

Limited data is not a ban. Under the CDC's guidelines, a clinician can still discuss doxy-PEP with you as a shared decision. Meanwhile, condoms plus regular screening remain the best-supported protection, because chlamydia often has no symptoms yet can lead to pelvic inflammatory disease and infertility if it goes untreated (<a href="https://www.cdc.gov/chlamydia/about/index.html">CDC: About Chlamydia</a>).

Side effects and who should avoid doxy-PEP

The CDC names photosensitivity, meaning skin that burns more easily in the sun, and gastrointestinal symptoms as the effects most associated with doxycycline (CDC MMWR 2024), and its provider page advises wearing sunscreen or covering up while taking it (CDC provider guidance). The NHS lists headaches, nausea, vomiting, and rash among common side effects and flags sun sensitivity as a reaction to watch for (NHS).

Doxycycline is not usually used during pregnancy because it can affect how a baby's teeth develop, and it is generally avoided while breastfeeding (same NHS page). If you have ever reacted badly to doxycycline or another tetracycline antibiotic, tell the prescriber. If you take other regular medicines or supplements, ask a pharmacist to check for interactions.

The open long-term question is what intermittent antibiotic use over months or years does to the gut and skin bacteria that make up the microbiome. The CDC lists microbiome changes alongside resistance as risks to monitor.

The resistance trade-off

Resistance is the main reason some experts remain cautious. Doxy-PEP exposes STI bacteria to doxycycline, and it also exposes the harmless bacteria living on your skin and in your gut. In the DoxyPEP trial, tetracycline-resistant gonorrhea turned up in 5 of 13 cultured gonorrhea samples in the doxycycline groups compared with 2 of 16 in standard care: small numbers, but a direction worth watching (Luetkemeyer et al., NEJM 2023). The CDC's patient page lists, among its open questions, whether doxy-PEP might make it harder to treat some common germs with doxycycline (CDC).

This trade-off is why the recommendation targets people at the highest risk instead of everyone who has sex. Our explainer on doxycycline, gonorrhea, and resistance covers the surveillance picture in depth.

Current data suggest overall benefit of the use of doxy PEP, but potential risks related to the development of resistance and changes in the microbiome will need to be monitored as these guidelines are implemented.

U.S. Centers for Disease Control and Prevention, Clinical Guidelines on the Use of Doxycycline Postexposure Prophylaxis, 2024

The testing schedule that comes with a prescription

Doxy-PEP lowers your risk without removing it. Gonorrhea still gets through about half the time, and any dose that is late or missed leaves a gap. The CDC says people prescribed doxy-PEP should have bacterial STI testing at the anatomic sites they are exposed at, at baseline and every 3–6 months thereafter, and that HIV-negative men who have sex with men and transgender women should keep up HIV screening under current recommendations (CDC MMWR 2024). Those visits are also when a clinician reviews whether doxy-PEP still suits you and renews the prescription.

Throat and rectal sites need a clinic, because they require a clinician-collected or lab-processed swab; we do not sell throat or rectal swab tests. For genital and blood screening between visits, or after a specific exposure you want to check, at-home rapid kits are an option. They use lateral-flow chemistry with results in about 15 minutes. Labs use NAAT for chlamydia and gonorrhea, which has higher analytical sensitivity, so treat a home result as a screen: confirm any positive with a clinician, and remember that a negative genital swab says nothing about your throat or rectum.

Syphilis needs one more caveat. Rapid syphilis tests detect antibodies, and those antibodies can stay positive for years after a treated infection. If you have had syphilis before, which is common among people offered doxy-PEP, you need a clinic blood test that can tell an old, treated infection from a new one. If you never have, an at-home syphilis test is a reasonable screening step between visits.

This article is published by stdrapidtestkits.com, which sells at-home STI testing kits. We recommend products based on fit-for-purpose for the reader's concern, not commercial benefit.

3-in-1 Chlamydia, Gonorrhea & Syphilis Rapid Test Kit

Screen for Chlamydia, Gonorrhea, and Syphilis at Home

3-in-1 Chlamydia, Gonorrhea & Syphilis Rapid Test Kit

$192.00

3-in-1 rapid kit: a genital self-swab for chlamydia and gonorrhea plus a fingerstick blood test for syphilis antibodies, with lateral-flow results in about 15 minutes. Useful between 3–6 month clinic visits if you have never had syphilis. Does not test throat or rectal sites. Confirm any positive with a clinician.
Screen for All Three

What doxy-PEP leaves unprotected

Doxycycline acts only on bacteria, so it has no effect on viral STIs. It will not prevent HIV, herpes (HSV-1 or HSV-2), HPV, or hepatitis B and C. Trichomoniasis, which is caused by a parasite, was not a target of the doxy-PEP trials either. And unlike HIV PrEP, it is not a scheduled daily pill: it is taken after sex, when needed.

HIV protection comes from different tools: condoms, PrEP, and HIV PEP, a separate course of HIV medicines that has to be started quickly after an exposure. Many people on doxy-PEP also take PrEP, and the main trial enrolled exactly that group alongside people living with HIV (Luetkemeyer et al.). Doxy-PEP sits alongside those tools, condoms included, and replaces none of them.

How to get a prescription

Doxy-PEP requires a prescription. You can ask for it at a sexual health clinic, an LGBTQ+ health center, your primary care provider, an HIV PrEP clinic, or through some telehealth services. If you already take PrEP, your PrEP provider is often the easiest starting point, because you already attend regular visits that include STI testing.

At the first appointment, expect a conversation about your recent STI history and how often you have condomless sex, baseline testing for syphilis, chlamydia, and gonorrhea at the sites you are exposed, and instructions on dose, timing, and side effects. Some prescribers supply enough tablets for several doses so you have them at home when you need them. Doxycycline is an older generic medicine, though what you pay depends on your pharmacy and insurance.

Should I Ask a Clinician About Doxy-PEP?

  1. Are you a man who has sex with men or a transgender woman, and have you had syphilis, chlamydia, or gonorrhea in the past 12 months?

    Yes: The CDC recommends that you be counseled about and offered doxy-PEP. Ask a sexual health clinic or your PrEP provider, and get baseline STI testing at the same visit.

  2. Are you a man who has sex with men or a transgender woman without a recent STI, but having condomless sex with new or multiple partners?

    Yes: Doxy-PEP is worth discussing with a clinician as a shared decision. Keep up STI testing every 3–6 months either way.

  3. Are you a cisgender woman, a cisgender heterosexual man, a transgender man, or a nonbinary person assigned female at birth with ongoing STI exposure risk?

    Yes: Evidence for your group is limited, so doxy-PEP is a case-by-case conversation with a clinician. Condoms and regular screening remain the best-supported protection, and guidance may expand as new studies report.

  4. Did you have condomless sex in the last 72 hours and you are worried about STIs?

    Yes: Doxy-PEP only helps now if you already have a prescription on hand. Plan STI testing once enough time has passed, and see a clinic sooner if you develop symptoms.

    No: No action is needed now. Keep up routine STI testing, and talk to a clinician if you would like a prescription for future use.

Guidance only. A clinician can advise based on your full sexual health history.

This article summarizes current guidance from the U.S. Centers for Disease Control and Prevention (CDC), the U.S. National Institutes of Health (NIH), the World Health Organization (WHO) and the NHS. Each specific figure or recommendation links to the page that states it, and every page used is listed under Sources with what it supports. It is general health information written by our editorial staff, not a diagnosis or a treatment plan; see our medical disclaimer.

  1. U.S. Centers for Disease Control and Prevention. Clinical Guidelines on the Use of Doxycycline Postexposure Prophylaxis for Bacterial STI Prevention, MMWR 2024. Supports the 200 mg dose (any formulation) and 200 mg per 24-hour maximum, the recommendation for MSM and transgender women with a bacterial STI in the past 12 months, shared decision-making for those without a recent STI and for other populations with limited data, the >70% and ~50% effect sizes, testing at baseline and every 3–6 months, photosensitivity and GI effects, and the benefit-versus-resistance quote.
  2. U.S. Centers for Disease Control and Prevention. Preventing STIs with Doxy PEP (patient page, updated August 2026). Supports the ideal-within-24-hours and no-later-than-72-hours timing, one dose per 24 hours, use as often as daily if needed, and open questions on resistance.
  3. U.S. Centers for Disease Control and Prevention. Doxy PEP provider guidance. Supports taking the dose with at least 8 ounces of water and food, spacing it two hours from dairy, antacids, and iron, calcium, or magnesium supplements, not lying down for one hour, sun protection, and insufficient evidence for other populations.
  4. Luetkemeyer AF, et al. Postexposure Doxycycline to Prevent Bacterial Sexually Transmitted Infections. NEJM 2023 (PMC author manuscript). Supports quarterly STI rates, per-infection relative risks, self-reported adherence (86% always or often, 71% never missed), grade 2–3 adverse events with no serious events attributed to doxycycline, discontinuation, and baseline and on-study gonorrhea resistance data.
  5. Stewart J, et al. Doxycycline Prophylaxis to Prevent Sexually Transmitted Infections in Women. NEJM 2023 (PMC). Supports the Kenyan trial result (RR 0.88), hair-sample adherence findings, and universal tetracycline-resistance genes in gonorrhea.
  6. World Health Organization. Sexually transmitted infections (STIs) fact sheet, September 2025. Supports WHO's ongoing work on doxy-PEP recommendations for some higher-risk populations.
  7. NHS. Doxycycline medicine guide, reviewed September 2025. Supports swallowing the tablets whole while sitting or standing and avoiding lying down for at least 30 minutes, common side effects, sun sensitivity, and advice on pregnancy and breastfeeding.
  8. U.S. Centers for Disease Control and Prevention. About Chlamydia. Supports the statements that chlamydia often has no symptoms and can cause pelvic inflammatory disease and infertility.
Sam Harper
Sam Harper

Sam covers at-home sexual-health testing, public-health guidance, and clinical-testing basics for general audiences. Has been writing about consumer health since 2019, with a focus on translating CDC and WHO guidance into plain-English action items. Not a clinician; articles are summaries, not advice.