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
- CDC 2024: recommended for gay/bi men and trans women with a bacterial STI in the past 12 months
- Trials: syphilis and chlamydia down by more than 70%, gonorrhea by about 50%
- Does not prevent HIV, herpes, HPV or mpox
- Test for STIs and HIV every 3 to 6 months while using it
Last updated 13 Nov 2026
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:
- HIV PEP or PrEP. DoxyPEP does nothing against HIV. PrEP, condoms and an undetectable viral load (see our U=U guide) do that job.
- Protection against viral STIs. Herpes, HPV, hepatitis and mpox aren't affected. Vaccines exist for HPV, hepatitis A and B and mpox.
- A cure. If you already have an STI, you need proper testing and treatment, which may be a different dose or a different antibiotic.
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?
- United States (CDC, 2024): gay, bi and other men who have sex with men, and trans women, who have had syphilis, chlamydia or gonorrhea in the past 12 months. Clinicians may also discuss it with men in these groups who haven't had an STI but expect sex with a higher chance of one.
- United Kingdom (BASHH, 2025): gay, bi and other men who have sex with men and trans women at higher risk of syphilis, for example a bacterial STI in the past year or several new or casual partners in the past three months. The UK guideline focuses mainly on preventing syphilis.
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
- Take 200 mg of doxycycline (usually two 100 mg tablets or capsules) after oral, anal or vaginal sex without a condom.
- 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.
- 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:
- Sex more than once in one day: one 200 mg dose afterwards covers it. Don't double up.
- Sex on several days in a row (a weekend, a holiday): take one 200 mg dose each day, at least 24 hours apart, and make sure your last dose comes after the last time you had sex.
- Missed the 24-hour window? Take it anyway if you're still within 72 hours.
- Over 72 hours? Don't take it late. Book an STI test instead, around two weeks after the sex for chlamydia and gonorrhea and with a blood test for syphilis as your clinic advises.
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:
- Swallow it with a full glass of water (at least 8 oz / 240 ml) and some food.
- Stay upright for an hour afterwards. Don't take it right before lying down to sleep. Tablets that sit in the oesophagus can cause painful ulcers.
- Keep a two-hour gap from dairy, antacids and supplements with iron, calcium or magnesium, which stop doxycycline being absorbed.
- Use sunscreen and cover up, because doxycycline makes skin burn more easily.
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:
- Test every 3 to 6 months for HIV, syphilis, gonorrhea and chlamydia, including throat and rectal swabs for the sites you use. Many infections have no symptoms.
- Keep condoms in the mix when you want extra protection, and keep up with PrEP if you're HIV-negative.
- Get vaccinated against hepatitis A and B, HPV and mpox if you haven't already.
- Don't share pills or buy antibiotics without a prescriber. Online pills of unknown quality and leftover courses at the wrong dose are a fast route to resistance.
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
- CDC: Doxy PEP for bacterial STI prevention (clinical overview)
- Bachmann LH, et al. CDC clinical guidelines on the use of doxycycline post-exposure prophylaxis for bacterial STI prevention. MMWR Recomm Rep, 2024
- BASHH: UK-first national guideline on doxyPEP for the prevention of syphilis, 2025
- Luetkemeyer AF, et al. Postexposure doxycycline to prevent bacterial sexually transmitted infections. N Engl J Med, 2023
- Stewart J, et al. Doxycycline prophylaxis to prevent sexually transmitted infections in women. N Engl J Med, 2023
- CDC: About STI risk and oral sex
Related reading
- PrEP, doxyPEP and safer sex for gay and bi men
- Condom broke or slipped during anal sex: what to do
- U=U: dating when a partner is undetectable
- How to ask your partner to get STI tested
- Opening a relationship: a guide for gay couples
General information only, not medical advice. Always follow the instructions from your prescriber.