PEP, short for post-exposure prophylaxis, is a short course of HIV medicines taken after a possible exposure to stop the virus from establishing a permanent infection. HIV does not become a lifelong infection the instant it enters the body. It takes time to spread from the site of exposure, and PEP works by stepping into that gap and blocking the virus before it can settle in for good. That makes it a race against the clock rather than a cure. PEP lowers the risk sharply without guaranteeing protection, and it is not a substitute for ongoing prevention.
What Happens in the First Days After HIV Exposure
After sexual exposure, HIV is first picked up by immune cells in the lining of the genitals, rectum or skin.1PubMed Central. Prevention of HIV/AIDS: Post-Exposure Prophylaxis (including Healthcare Workers) In animal studies the virus stayed near the exposure site with those cells for about the first 24 hours.1PubMed Central. Prevention of HIV/AIDS: Post-Exposure Prophylaxis (including Healthcare Workers) Over the next 24 to 48 hours those cells carried the virus to nearby lymph nodes, where it met the immune cells it prefers to infect.1PubMed Central. Prevention of HIV/AIDS: Post-Exposure Prophylaxis (including Healthcare Workers) In animals, the virus showed up in the bloodstream within about 5 days.1PubMed Central. Prevention of HIV/AIDS: Post-Exposure Prophylaxis (including Healthcare Workers)
The lining of the genitals or rectum is a partial barrier, so only some of the virus that arrives gets through. Infection builds in stages from a small starting group of cells, and the earliest hours and days are when medicine has the best chance.
That is also what “stopping infection before it is permanent” means. Once HIV writes its genes into many of your cells, medicine can control it but cannot remove it. PEP aims to act while only a few cells are involved, so the infection never becomes permanent.
Estimates put the window at roughly 72 hours for sexual exposures.2Preprints. The Prevention Theorem: Time-Dependent Constraints on Post-Exposure Prophylaxis for HIV For exposures straight into the blood, such as a needle, the window may shrink to about 12 to 24 hours because the virus skips the body’s first barriers.2Preprints. The Prevention Theorem: Time-Dependent Constraints on Post-Exposure Prophylaxis for HIV
This timing is a guide to how fast things move, not an exact clock for any one person. The practical lesson is that earlier is better.
How Fast You Need to Start PEP
Modelling suggests modern 3-drug PEP stays highly effective even if the first dose is delayed by 24 hours.3HIV i-Base. Importance of rapid PEP: predicting impact of delay and duration of 2- and 3-drug PEP Started between 24 and 48 hours, a 4-week course is estimated to be about 88% effective.3HIV i-Base. Importance of rapid PEP: predicting impact of delay and duration of 2- and 3-drug PEP Started at 72 hours, the estimate drops to about 50%.3HIV i-Base. Importance of rapid PEP: predicting impact of delay and duration of 2- and 3-drug PEP A simpler 2-drug course would need to start within about an hour to work well, which is one reason 3 drugs are standard.3HIV i-Base. Importance of rapid PEP: predicting impact of delay and duration of 2- and 3-drug PEP So 72 hours is the outer limit, not a target, and clinics generally will not start PEP after it. If you are unsure whether to go now or in the morning, going now is the better choice.
Go to an emergency department, urgent care, sexual health clinic, or a pharmacy that offers PEP rather than waiting for a regular appointment. Say plainly that you had a possible HIV exposure and need PEP, and give the time it happened. Many of these places can give a first dose or a starter pack the same day. Nights and weekends are when emergency departments matter most, because the clock keeps running when clinics are closed.
One common mistake is waiting to see whether you test positive. An HIV test right after an exposure cannot show an infection from that exposure; it is too early. The baseline test checks that you did not already have HIV, not whether you need PEP.
Early starts have a long track record. In healthcare workers with needlestick injuries, a single older HIV drug taken mostly within 4 hours cut infection risk by about 81%.4National HIV Curriculum. Core Concepts – HIV Nonoccupational Postexposure Prophylaxis – Prevention of HIV
What PEP Medicines Do to the Virus
HIV infects a type of immune cell and uses the cell’s machinery to make copies of itself.5STAR #GetMeOnPrEP. Understanding How PEP Works for HIV Prevention To do this it first copies its genetic material into DNA using a tool called reverse transcriptase.5STAR #GetMeOnPrEP. Understanding How PEP Works for HIV Prevention Two of the PEP drugs mimic DNA building blocks and jam that copying step.6PubMed Central. Current drugs for HIV-1: from challenges to potential in HIV/AIDS
The virus then needs a second tool, integrase, to stitch its DNA into the cell’s own DNA.7OpenHouse Clinic. How PrEP and PEP Work to Prevent HIV Infection The third drug, an integrase inhibitor, blocks that stitching so the virus cannot become a permanent part of the cell.7OpenHouse Clinic. How PrEP and PEP Work to Prevent HIV Infection Blocking both steps means HIV can neither make new viral DNA nor lock in any it has already made, so the small amount of virus present cannot build up into an established infection.7OpenHouse Clinic. How PrEP and PEP Work to Prevent HIV Infection Because these drugs act on steps inside infected cells, they need to be in your blood already when the virus reaches those cells.
Three drugs work better than one because each blocks the virus in a different way, leaving fewer escape routes if it changes slightly. Combinations are how HIV has been controlled since the 1990s, and PEP borrows that approach. Two of the three drugs usually come together in one pill, so the pill count stays small.
PEP does not protect against other infections such as syphilis or hepatitis C, so ask about testing for those too, and it does not protect against future exposures once the course ends; that takes ongoing prevention such as condoms or PrEP.
Which Pills and For How Long
Current guidance prefers an integrase inhibitor plus two reverse transcriptase blockers for people 12 and older.4National HIV Curriculum. Core Concepts – HIV Nonoccupational Postexposure Prophylaxis – Prevention of HIV In the US, a common choice is a single daily pill combining bictegravir, emtricitabine and tenofovir alafenamide, sold as Biktarvy.8Centers for Disease Control and Prevention. Clinical Guidance for PEP The other preferred option is dolutegravir with a tenofovir-plus-emtricitabine or lamivudine pill.8Centers for Disease Control and Prevention. Clinical Guidance for PEP If you have kidney problems, the drugs and doses are chosen to suit your kidney function.8Centers for Disease Control and Prevention. Clinical Guidance for PEP Pregnancy and breastfeeding do not rule out PEP, though drug choice may need extra care.8Centers for Disease Control and Prevention. Clinical Guidance for PEP
The ideal length of a course has never been proven in a trial.9PubMed Central. Current perspectives in HIV post-exposure prophylaxis Animal studies pointed to 28 days, and some healthcare workers who stopped early became infected.9PubMed Central. Current perspectives in HIV post-exposure prophylaxis So the standard is a full 4 weeks, and you should not stop because you feel fine.
Take the pill at the same time each day, and set a phone alarm for all 28 days, since the course is easy to lose track of once you feel normal. If you miss a dose, take it when you remember unless it is nearly time for the next one, and do not double up; then call the clinic for advice. Check that you have enough pills for the full course before the starter pack runs out.
Side Effects and Finishing the Course
On one modern single-pill regimen, the most common complaints were stomach discomfort or bloating (42%), diarrhea (38%), and tiredness and nausea (28% each).10PubMed Central. Excellent HIV Post-Exposure Prophylaxis Regimen Completion with Single Tablet Daily Elvitegravir/Cobicistat/Tenofovir Disoproxil Fumarate/Emtricitabine Compared to More Frequent Dosing Regimens Headache affected 14% and dizziness 6%.10PubMed Central. Excellent HIV Post-Exposure Prophylaxis Regimen Completion with Single Tablet Daily Elvitegravir/Cobicistat/Tenofovir Disoproxil Fumarate/Emtricitabine Compared to More Frequent Dosing Regimens Most symptoms were mild, short-lived and did not make people stop.10PubMed Central. Excellent HIV Post-Exposure Prophylaxis Regimen Completion with Single Tablet Daily Elvitegravir/Cobicistat/Tenofovir Disoproxil Fumarate/Emtricitabine Compared to More Frequent Dosing Regimens In that group, 71% took every dose.10PubMed Central. Excellent HIV Post-Exposure Prophylaxis Regimen Completion with Single Tablet Daily Elvitegravir/Cobicistat/Tenofovir Disoproxil Fumarate/Emtricitabine Compared to More Frequent Dosing Regimens
Across many studies, mostly of older regimens, about 6 in 10 people had side effects and about a third of those stopped because of them.11PubMed Central. Adherence, adverse drug reactions, and discontinuation associated with adverse drug reactions of HIV post-exposure prophylaxis: a meta-analysis based on cohort studies Some drug combinations cause more nausea, and multi-pill schedules are harder to keep up.12PubMed Central. Adherence to post-exposure prophylaxis for non-forcible sexual exposure to HIV: A systematic review and meta-analysis If side effects are making you want to quit, call the clinic about switching rather than stopping.
Taking the pill with food often eases nausea, if your regimen allows it. Over-the-counter remedies for diarrhea or headache are usually fine, but check with the pharmacist first.
A rash, yellowing of the skin or eyes, or severe vomiting needs a call to the clinic the same day. Vomiting soon after a dose can mean the medicine was not absorbed, so ask whether to repeat it. Do not simply stop the pills to see if you feel better; ask the clinic first.
Testing During and After PEP
Follow-up HIV testing is usually done 4 to 6 weeks and 12 weeks after the first visit.4National HIV Curriculum. Core Concepts – HIV Nonoccupational Postexposure Prophylaxis – Prevention of HIV A 6-month test is added if you also need follow-up for hepatitis B or C.4National HIV Curriculum. Core Concepts – HIV Nonoccupational Postexposure Prophylaxis – Prevention of HIV In one large clinic, about 3 in 1,000 people starting PEP already had a very new HIV infection the starting test missed.13PubMed. Acute HIV at the Time of Initiation of Pre-exposure or Post-exposure Prophylaxis: Impact on Drug Resistance and Clinical Outcomes That is part of why later tests matter even if you feel fine.
PEP can also fail. Among men who have sex with men prescribed PEP worldwide, about 2.6% later tested positive, often linked to ongoing exposures after PEP.14PubMed. HIV Nonoccupational Postexposure Prophylaxis Among Men Who Have Sex with Men: A Systematic Review and Meta-Analysis of Global Data In one healthcare worker who started PEP immediately, the virus still emerged 11 weeks later, apparently having stayed hidden rather than multiplying.15PubMed Central. Molecular Mechanisms of HIV Type 1 Prophylaxis Failure Revealed by Single-Genome Sequencing A negative test while still on PEP is not the final answer.
A flu-like illness with fever, rash, sore throat or swollen glands weeks after an exposure can be early HIV. Report these right away rather than waiting for the next scheduled test. Use condoms during PEP and until your final test so a new exposure does not muddy the picture.
Was My Exposure Risky Enough for PEP
Receptive anal sex carries the highest sexual risk, about 138 infections per 10,000 exposures with a partner who has HIV.16PubMed Central. Estimating per-act HIV transmission risk: a systematic review Oral sex carries very low risk.16PubMed Central. Estimating per-act HIV transmission risk: a systematic review Risk is much higher when the partner was recently infected, several times higher than in the stable middle phase.17PubMed Central. Heterosexual risk of HIV-1 infection per sexual act: a systematic review and meta-analysis of observational studies Condoms plus effective HIV treatment in the partner cut sexual risk by about 99%.16PubMed Central. Estimating per-act HIV transmission risk: a systematic review If your partner has HIV and has had an undetectable viral load on treatment, the risk of sexual transmission is effectively zero, so ask a clinician whether you need PEP at all. The figure of 138 per 10,000 is an average, not a prediction for you, and it applies only if the partner actually has HIV.
Because oral sex carries such low risk, many clinicians will not recommend PEP for oral sex alone, but the decision may change with factors such as a known partner with HIV and detectable virus, so describe exactly what happened and ask rather than ruling PEP out yourself.
Unknown status is the most common situation. Clinicians weigh the type of contact and local HIV rates, and decisions are made quickly, so uncertainty is a reason to ask, not to wait.
Moving From PEP to PrEP
PrEP is HIV medicine taken before exposure to prevent infection. After 28 days of PEP, you can move straight onto PrEP with no gap if you are still HIV negative and otherwise qualify.18PrepWatch. Linking PEP and PrEP Services Job Aid for Providers Before the 28 days end, tell the clinic you want to continue so the prescription is ready. On the last day of PEP you have an HIV test, and if it is negative you start PrEP at once.
Anyone who has needed PEP more than once should consider PrEP, since repeat exposures suggest ongoing risk. People with partners of unknown status or regular condomless sex are good candidates. Cost and insurance are a real barrier for many, so ask about coverage and assistance programs. In one prevention clinic, about 31% of people on PEP met guidelines for PrEP, so one exposure does not automatically mean you need it.19PubMed. Transitioning to HIV Pre-Exposure Prophylaxis (PrEP) from Non-Occupational Post-Exposure Prophylaxis (nPEP) in a Comprehensive HIV Prevention Clinic: A Prospective Cohort Study In one study of immediate switches, only about half were still on PrEP months later, so plan how you will keep up visits and refills.20PubMed Central. Immediate PrEP after PEP: Results from an Observational Nurse-Led PEP2PrEP Study

