HIV PEP After Sex: The 72-Hour Window Explained for Gay and Bi Men
Start HIV PEP as soon as possible and within 72 hours of a possible exposure, ideally within 24 hours. It is a 28-day course of HIV medicine from a sexual health clinic or, out of hours, A&E, an emergency room or urgent care. PEP is not recommended after oral sex, or if the partner has HIV with an undetectable viral load.
Key facts
- The CDC says PEP must be started within 72 hours and 'every hour counts'
- Terrence Higgins Trust says PEP should ideally be started within 24 hours and taken for 28 days
- CDC per-act estimate with a partner who has HIV: 138 per 10,000 for receptive anal sex vs 11 per 10,000 for insertive
- CDC 2025 guidelines recommend HIV tests 4 to 6 weeks and 12 weeks after exposure
Last updated 20 Nov 2026
Short answer: PEP (post-exposure prophylaxis) is a 28-day course of HIV medicine that can stop HIV taking hold after a possible exposure, such as a condom breaking during anal sex with a partner whose HIV status you don't know. It must be started within 72 hours, and the sooner the better: UK guidance says ideally within 24 hours, and the CDC says "every hour counts." Go to a sexual health clinic, or to A&E, an emergency room or urgent care if the clinic is closed. If your partner has HIV and has had an undetectable viral load on treatment, you don't need PEP.
Most gay and bi men will never need PEP, especially those using condoms consistently or taking PrEP. But condoms do sometimes break or slip, and people sometimes have sex they didn't plan. Knowing exactly what to do in the first few hours removes a lot of panic. This guide covers what PEP is, when it is and isn't recommended, how to get it in the UK and the US, and what happens afterwards.
What is PEP?
PEP is a combination of HIV medicines taken every day for 28 days after a possible exposure. Terrence Higgins Trust (THT) describes it as a treatment that "can stop the virus taking hold" after it has entered the body. It is an emergency measure, not a regular prevention method.
- It is not a morning-after pill for HIV. THT points out it is not guaranteed to work, and it works best when started early and taken exactly as prescribed.
- It does not protect against other STIs or pregnancy. You may also need STI testing, and in some cases doxy-PEP or treatment for other infections.
- It is different from PrEP. PrEP is taken before sex, on an ongoing basis. PEP is taken after a single risk. If you find yourself needing PEP more than once, PrEP is usually the better option.
Why the 72-hour window matters
The CDC says PEP must be started within 72 hours (3 days) of a possible exposure. THT adds that it should be started as soon as possible, ideally within 24 hours, because it is more likely to work the sooner it's taken. The UK guideline from the British Association for Sexual Health and HIV (BASHH, 2021) gives the same advice: start as soon as possible, preferably within 24 hours, and up to 72 hours.
Practical points:
- Don't wait for the morning or for Monday. If your clinic is closed, go to A&E (UK) or an emergency room or urgent care centre (US).
- Don't wait to "see if you feel ill." There is no way to know from symptoms in the first days.
- The first dose should not be delayed for tests. Under the CDC's 2025 guidelines, clinicians should give the first dose as soon as possible and not hold it back while waiting for lab results.
What if it's been more than 72 hours?
PEP is not started after 72 hours because it is not expected to work. If you've missed the window, still contact a sexual health clinic. They will arrange HIV and STI testing at the right times, talk about early signs to watch for, and discuss PrEP to protect you going forward.
When is PEP recommended?
A clinician will ask about the type of sex, who it was with and what is known about their HIV status. THT lists the questions you are likely to be asked: who the partner was and the chance they had HIV, what kind of sex you had, and, if they have HIV, their viral load.
In broad terms, the 2021 BASHH guideline says:
- PEP is recommended after condomless receptive anal sex (you were the bottom) with a partner whose HIV status is unknown, or who has HIV with an unknown or detectable viral load.
- Other exposures are weighed up case by case, such as insertive anal sex (you were the top) with a partner of unknown status.
- PEP is not recommended after oral sex, with or without ejaculation, because the risk is too low to outweigh the side effects of a month of medicine.
- PEP is not recommended if the partner has HIV and is on effective treatment with an undetectable viral load for at least 6 months and good adherence. THT puts it simply: if your partner has an undetectable viral load, "you will not need PEP." This is U=U (undetectable = untransmittable).
Why receptive anal sex is the main concern: the CDC's per-act estimates for a single exposure to a partner with HIV, without a condom or PrEP, are 138 per 10,000 for receptive anal sex, 11 per 10,000 for insertive anal sex and "low" for oral sex. Those figures assume the partner has HIV; with someone whose status you don't know, the actual chance depends on whether they have HIV at all and whether it is treated. But because PEP works best early, it is better to ask quickly than to wait and worry.
If you're unsure whether your situation counts, go anyway. Clinic staff would far rather assess you and say "you don't need it" than see you miss the window.
Where to get PEP
UK: PEP is free on the NHS for people who meet the guidelines. THT advises going to a sexual health or HIV clinic, or to A&E out of hours or at weekends. It is not normally available from GPs. THT Direct can help on 0808 802 1221.
US: the CDC advises talking right away to your healthcare provider, an emergency room doctor or an urgent care provider. The CDC also has a PEP locator, and if cost is a barrier, providers can apply for free medicine through manufacturer assistance programmes, often urgently.
Elsewhere: sexual health or infectious disease clinics and hospital emergency departments are the usual places. Bring a list of any other medicines and supplements you take.
What happens at the appointment
- Questions about the exposure, as above. Be honest about what happened, including any chems or alcohol. Staff have heard it all, and the details change the advice.
- An HIV test. This checks you don't already have HIV. THT explains that a negative test on the day doesn't show whether you were exposed this time; it reflects earlier months.
- Other tests and care such as STI tests, hepatitis B checks and kidney function blood tests, and sometimes vaccines.
- Your first dose, ideally there and then, and a supply to take home.
Taking the 28-day course
The exact medicines depend on where you are. THT says the current UK regimen is three tablets a day: one tablet of tenofovir disoproxil/emtricitabine plus two tablets of raltegravir. The CDC's 2025 guidelines list bictegravir/emtricitabine/tenofovir alafenamide, or dolutegravir plus two other HIV medicines, as preferred regimens for most adults in the US.
- Take every dose for the full 28 days. THT advises not to skip doses or stop early, and not to double up after a missed dose.
- Missed a dose? THT's advice: if you remember within 24 hours, take it then; if it's nearly time for the next one, skip the missed dose. If you miss more than 48 hours, contact the clinic.
- Side effects are usually mild, such as nausea, headaches or tiredness, and settle in the first few days. A rash or flu-like illness during PEP needs a call to the clinic, because it can be a reaction or a sign of HIV infection.
- Interactions: with raltegravir, THT advises avoiding antacids containing aluminium, magnesium or calcium, multivitamins and iron supplements. Tell the clinician about everything you take.
Sex during and after PEP
While you're on PEP and until your follow-up tests are done, use condoms or avoid sex that could pass HIV on. PEP lowers the risk a lot but isn't a guarantee, and a new exposure during the course adds risk. Our guide on how to ask a partner to get STI tested can help with the conversation.
Follow-up tests
Follow-up testing confirms PEP worked. The CDC's 2025 guidelines recommend HIV testing 4 to 6 weeks after the exposure and a final test at 12 weeks; the 4 to 6 week test can be skipped only if PEP started within 24 hours, every dose was taken and you aren't starting PrEP. UK clinics follow a similar plan and will tell you when to come back.
Moving from PEP to PrEP
The CDC recommends that people prescribed PEP who may have repeat exposures are offered PrEP, ideally moving straight on to it once the PEP course ends. Our guide to PrEP and safer sex for gay and bi men explains daily and event-based options. If you've had a bacterial STI in the past year, the CDC also suggests asking about doxy-PEP.
If the sex wasn't consensual
If you were assaulted, PEP is still urgent, and so is your wellbeing. In the UK, sexual assault referral centres (SARCs) can arrange PEP and STI care whether or not you report to the police, and Galop's helpline for LGBT+ survivors is 0800 999 5428. In the US, RAINN's hotline is 800-656-4673. See also our hookup app safety guide.
Frequently asked questions
How soon do I need to take PEP after sex?
As soon as possible and within 72 hours. UK guidance says ideally within 24 hours, and the CDC says every hour counts, so go the same day if you can.
Can I get PEP after 72 hours?
No. PEP isn't started after 72 hours because it isn't expected to work. Still contact a sexual health clinic for testing at the right times and to talk about PrEP.
Do I need PEP after oral sex?
UK guidelines don't recommend PEP after oral sex, with or without ejaculation, because the risk of HIV is very low. A clinic can still check you for other STIs.
Do I need PEP if my partner is undetectable?
No. If your partner has HIV and has had an undetectable viral load on treatment, HIV can't be passed on through sex, and THT says you will not need PEP.
Where can I get PEP at the weekend?
In the UK, go to A&E if sexual health clinics are closed; PEP isn't normally available from GPs. In the US, go to an emergency room or urgent care centre.
How long do I take PEP for?
Every day for 28 days. Missing doses or stopping early makes it less likely to work, and you'll have HIV tests afterwards to confirm it worked.
Related reading
- Condom broke or slipped during anal sex? What to do next
- PrEP and safer sex for gay and bi men
- U=U: dating with undetectable HIV
- Doxy-PEP dosing: when to take it
- Sexual health checks for gay men over 50
- Newly diagnosed with HIV: sex and dating
Sources
- CDC: Preventing HIV with PEP, accessed November 2026
- CDC: Antiretroviral postexposure prophylaxis after sexual, injection drug use, or other nonoccupational exposure to HIV, United States, 2025 (MMWR Recommendations and Reports, vol 74)
- CDC: HIV risk and prevention estimates (updated 5 November 2024)
- Terrence Higgins Trust: PEP (post-exposure prophylaxis for HIV), reviewed 11 June 2026
- Cresswell F, et al. UK guideline for the use of HIV post-exposure prophylaxis 2021 (BASHH/BHIVA). HIV Medicine, 2022
- Galop: Get help
General information only, not medical advice. If you think you've been exposed to HIV, contact a sexual health clinic or emergency department today.