Clinical KnowledgeA–Z topicsExams ▾Start free

Clinical Knowledge › Internal medicine › Infectious diseases › HIV and opportunistic infections

HIV pre- and post-exposure prophylaxis

Antiretroviral prophylaxis prevents HIV acquisition in HIV-negative people. Pre-exposure prophylaxis (PrEP) is taken before and during periods of risk: daily oral tenofovir disoproxil with emtricitabine (or event-driven '2-1-1' dosing for anal sex), and long-acting injectables, cabotegravir every 2 months and lenacapavir twice yearly, which WHO recommended in 2025 after near-complete protection in trials. Post-exposure prophylaxis (PEP) is a 28-day course of three antiretrovirals started as soon as possible, ideally within 24 hours and no later than 72 hours, after a significant exposure such as condomless receptive anal sex with a partner of unknown or detectable viral load, sharing injecting equipment or a needlestick from a viraemic source. PEP is not needed when the source has a sustained undetectable viral load (undetectable = untransmittable). Before starting either, exclude HIV infection, check hepatitis B and kidney function, screen for STIs and pregnancy, and arrange follow-up HIV testing and transition from PEP to PrEP when risk continues.

Full interactive lesson
Patient case, mechanism, investigations, management, flashcards and exam-style questions.
Open the lesson →
HIV PEP timeline and PrEP options
HIV PEP timeline and PrEP options PEP starts ideally within 24 h and no later than 72 h, runs 28 days and needs follow-up testing; PrEP options are daily oral, 2-1-1, cabotegravir and lenacapavir. · MedEd World original teaching diagram

Key facts

Differential diagnosis

ConditionCluesKey test
Acute HIV infection at PrEP startRecent exposure with fever, rash, sore throat or lymphadenopathyHIV antigen/antibody test plus HIV RNA
Established undiagnosed HIVPrevious risk without testing; weight loss or oral thrushFourth-generation HIV test before starting prophylaxis
Hepatitis B infectionRisk factors shared with HIV; flare when tenofovir stoppedHBsAg, anti-HBs, anti-HBc
Other STI after exposureDischarge, ulcer or proctitis after condomless sexNAAT for gonorrhoea and chlamydia; syphilis serology
PEP drug adverse effectNausea, diarrhoea, headache in first weekClinical; renal function
Low-risk exposure not needing PEPOral sex, kissing, or source with undetectable viral loadRisk assessment and source testing

Exam pearls

Ask about the source: a known partner with HIV who has an undetectable viral load on ART does not transmit HIV sexually, so PEP is not indicated.
Event-driven PrEP is not recommended for vaginal or front-hole sex or for people with hepatitis B, because tissue levels and HBV control need daily dosing.
Breakthrough infection on cabotegravir or lenacapavir can be detected late by antibody tests; HIV RNA testing is used with long-acting PrEP.
If a person on PEP will keep having risk, move straight from PEP to PrEP at day 28 after a negative HIV test (no gap).
Tenofovir alafenamide has less renal and bone toxicity than tenofovir disoproxil, but TAF/FTC PrEP is not licensed for receptive vaginal sex.
Combine prophylaxis with STI screening, hepatitis B and HPV vaccination and, where offered, doxycycline PEP for bacterial STIs.

Guideline

CDC Antiretroviral PEP after sexual, injection drug use or other nonoccupational exposure to HIV (2025); BHIVA/BASHH UK guideline for HIV post-exposure prophylaxis (2021); BHIVA/BASHH PrEP guidelines (2025); WHO guideline on lenacapavir for HIV prevention (2025); CDC PrEP clinical practice guideline (2021 update)

References

  1. Centers for Disease Control and Prevention. Antiretroviral postexposure prophylaxis after sexual, injection drug use, or other nonoccupational exposure to HIV — CDC recommendations, United States, 2025. MMWR Recomm Rep 2025.
  2. British HIV Association and British Association for Sexual Health and HIV. UK guideline for the use of HIV post-exposure prophylaxis. BHIVA/BASHH 2021.
  3. British HIV Association and British Association for Sexual Health and HIV. BHIVA/BASHH guidelines on the use of HIV pre-exposure prophylaxis (PrEP). BHIVA/BASHH 2025.
  4. World Health Organization. Guidelines on lenacapavir for HIV prevention and testing strategies for long-acting injectable pre-exposure prophylaxis. WHO, Geneva 2025.
  5. Centers for Disease Control and Prevention. Preexposure prophylaxis for the prevention of HIV infection in the United States — 2021 update: a clinical practice guideline. CDC 2021.
  6. Bekker LG, Das M, Abdool Karim Q, et al.. Twice-yearly lenacapavir or daily F/TAF for HIV prevention in cisgender women. N Engl J Med 2024.

Related topics

HIV infectionAcute HIV (seroconversion)AIDS-defining illnessesCerebral toxoplasmosisCryptococcal meningitisCMV diseaseMAC infectionPMLKaposi sarcomaIRIS

By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.