18+ only: Closer Couples is sex and relationship education for adults.
GuideGay menSafer sexLGBTQ+

DoxyPEP Dosing: When and How to Take It (A Plain Guide for Gay and Bi Men)

Take 200 mg of doxycycline as soon as possible after sex, ideally within 24 hours and no later than 72. Never take more than 200 mg in 24 hours; on several days in a row take one dose a day, the last after your last sex. Take with water and food and stay upright for an hour.

Key facts

Last updated 13 Nov 2026

Last updated: · Medically sourced (sources listed below)

TL;DR

Short answer: doxyPEP (also written doxy-PEP or doxy PEP) means taking one 200 mg dose of the antibiotic doxycycline as soon as possible after sex, ideally within 24 hours and no later than 72 hours. It lowers the chance of syphilis and chlamydia by more than 70% and gonorrhea by about half in gay, bi and other men who have sex with men and trans women. Never take more than 200 mg in 24 hours. If you have sex on several days in a row, take one dose a day, with the last dose after the last time you had sex. Swallow it with a full glass of water and food, and stay upright for an hour. It doesn't protect against HIV, herpes, HPV or mpox.

Doxycycline post-exposure prophylaxis, or doxyPEP, is sometimes called the "morning-after pill for STIs". It's the first new way to prevent bacterial STIs in decades, and health bodies in the US and UK now recommend it for some gay and bi men. Most of the questions people ask about it are practical: when exactly do I take it, what if I had sex twice, and is it safe to keep taking? This guide answers those in plain terms. Our broader guide to PrEP, doxyPEP and safer sex for gay and bi men covers HIV prevention alongside it.

What doxyPEP is (and isn't)

DoxyPEP is a single dose of doxycycline, a common antibiotic, taken after sex to stop certain bacteria from setting up an infection. It's a prescription medicine, used as part of a regular sexual health plan with a clinic or doctor.

It is not:

How well does doxyPEP work?

Three large randomised trials in men who have sex with men and trans women found that 200 mg of doxycycline taken within 72 hours after sex reduced syphilis and chlamydia by more than 70% and gonorrhea by about 50%, according to the CDC's 2024 guidelines. The gonorrhea effect is smaller because many gonorrhea strains are already resistant to tetracycline-type antibiotics.

The only trial in cisgender women, in Kenya, found no clear reduction in STIs, so current guidance does not recommend doxyPEP for cis women, cis straight men, trans men or nonbinary people outside research, simply because the evidence isn't there yet.

Who is doxyPEP recommended for?

If you think you fit, ask at a sexual health clinic or your PrEP prescriber. In the UK, NHS sexual health clinics can advise; in the US, many PrEP providers and health departments now prescribe it.

How to take doxyPEP: the basic dose

  1. Take 200 mg of doxycycline (usually two 100 mg tablets or capsules) after oral, anal or vaginal sex without a condom.
  2. Take it as soon as you can. The trials allowed up to 72 hours, and both the CDC and BASHH say ideally within 24 hours.
  3. Don't take more than 200 mg in any 24 hours, however many partners or times you had sex in that window.

One dose covers the sex you had in the hours before it. The point is to take it soon after sex, not before.

Several partners or several days in a row

This is the most common question on forums. The general rule from clinic patient guides:

Your prescriber may tailor this, so follow the instructions you're given.

How to avoid side effects

Most people take doxycycline without problems. The known side effects are stomach upset, nausea, irritation of the food pipe (oesophagus) and sun sensitivity. The CDC's tips:

Tell your prescriber about other medicines you take. Doxycycline isn't usually used in pregnancy.

The trade-offs: antibiotic resistance and testing

DoxyPEP means taking more antibiotics. In the DoxyPEP trial, participants took on average 43 extra doses a year to prevent about 1.3 bacterial STIs each. Researchers are still studying the long-term effects on resistance in gonorrhea and in everyday bacteria such as Staphylococcus aureus, and on the gut and skin microbiome. That's why guidance limits doxyPEP to the people who benefit most and pairs it with check-ups.

If you use doxyPEP:

Talking to partners about doxyPEP

DoxyPEP can make conversations about sex easier rather than harder. "I'm on PrEP and doxyPEP and I test every three months" is a clear, low-drama way to share your plan. It's still worth asking partners about their own testing and status. Our guide on how to ask a partner to get STI tested has wording that keeps it relaxed. If a condom broke during anal sex, see what to do after a condom breaks, because you may also need HIV PEP, which is a separate medicine taken within 72 hours.

Frequently asked questions

How soon after sex should I take doxyPEP?

As soon as you reasonably can, ideally within 24 hours, and no later than 72 hours. The dose is 200 mg of doxycycline, no more than 200 mg in 24 hours.

Can I take doxyPEP before sex?

No. DoxyPEP is designed and studied as a dose taken after sex. Taking it beforehand isn't the recommended way to use it.

Does doxyPEP protect against HIV?

No. It only lowers the chance of the bacterial STIs syphilis, chlamydia and gonorrhea. Use PrEP, condoms or U=U for HIV prevention.

What if I have sex again the next day?

Take another 200 mg dose at least 24 hours after the first, and make sure your final dose comes after your last sex. Never take two doses within 24 hours.

Can women or straight men take doxyPEP?

Current CDC and BASHH guidance doesn't recommend it for cisgender women, straight men or trans men, because the only trial in women found no clear benefit. Talk to a clinic about other options such as condoms and regular testing.

Sources

Related reading

General information only, not medical advice. Always follow the instructions from your prescriber.