PEP, or post-exposure prophylaxis, works by placing a barrier of antiretroviral drugs in the body during the narrow window before HIV can establish a permanent reservoir. The drugs block the virus from copying its genetic material and from inserting it into the DNA of immune cells. Started within 72 hours of exposure, a 28-day course can prevent infection. PEP is not a morning-after pill for HIV; it is a time-critical medical intervention that becomes less effective with every hour of delay.
The three-step molecular blockade
HIV enters the body as free virus or inside infected cells. To cause lasting infection, it must complete a sequence: attach to a target cell, reverse-transcribe its RNA genome into DNA, and integrate that DNA into the host chromosome. PEP drugs attack this sequence at multiple points, and the combination matters because a single drug leaves escape routes.
Most PEP regimens pair two nucleoside reverse transcriptase inhibitors with a third agent, often an integrase strand transfer inhibitor. The nucleoside pair acts as a chain terminator. HIV reverse transcriptase reads the drug as a normal DNA building block, incorporates it, and then cannot add the next link. The viral DNA synthesis stalls.
The integrase inhibitor blocks the final step. After reverse transcription, HIV DNA must be inserted into the host genome by the integrase enzyme. Integrase inhibitors bind the enzyme and prevent that insertion. Without integration, the viral DNA cannot direct production of new virus.
Why timing matters at the molecular level: PEP must be present before the virus completes enough replication cycles to seed long-lived reservoir cells. The first infectious cycle takes hours to days. Each subsequent cycle amplifies the number of infected cells and pushes virus into anatomical compartments, including lymph nodes and the central nervous system, where drug penetration is harder. Early drug levels intercept the virus while the population is small and contained.
A counterintuitive detail: PEP does not kill HIV directly. It creates a chemical environment in which the virus cannot complete its life cycle. The immune system clears stalled or abortive infection events, and the drugs hold the line until that clearance is complete. This is why adherence for the full course matters even after the virus becomes undetectable.
How much time you actually have
The widely cited 72-hour window rests on observational data and biological plausibility, not on randomized trials. The World Health Organization recommends starting PEP as soon as possible and no later than 72 hours after exposure. Earlier is better: animal and observational data suggest protection declines substantially when the first dose is delayed beyond 24 to 36 hours.
The 28-day duration reflects the time needed to suppress any residual viral replication through multiple cell cycles. Shorter courses are associated with higher failure rates in observational cohorts. The CDC states that a 28-day course is standard and that completion should be encouraged even when side effects occur.
Concrete anchoring numbers: the 72-hour outer limit, the 28-day course, and the recommendation to start within hours rather than days. These three thresholds are the core of every PEP protocol. A fourth threshold applies to baseline testing: HIV testing should occur at baseline, and follow-up testing is typically done at 4 to 6 weeks and again at 3 to 6 months after exposure, depending on the testing assay used.
There is no single hour at which PEP stops working and no single hour at which it is guaranteed to work. The relationship is a gradient. Reconcile the thresholds this way: 72 hours is the outer clinical cutoff, 24 to 36 hours is the practical target, and immediate initiation is the standard of care.
When PEP is indicated and when it is not
PEP is indicated after occupational exposure, such as a needlestick in a health care setting, and after non-occupational exposure, including condomless sex, condom breakage, sexual assault, and sharing injection equipment. Risk stratification guides whether PEP is recommended, offered, or not warranted.
| Exposure scenario | PEP recommendation | Notes |
|---|---|---|
| Needlestick from a known HIV-positive source with detectable viral load | Recommended | Start immediately; baseline testing required |
| Condomless receptive anal sex with a partner of unknown status | Recommended | Highest-risk sexual exposure type |
| Condomless insertive vaginal sex with unknown-status partner | Consider | Risk lower but nonzero; shared decision with clinician |
| Condom breakage during oral sex | Rarely indicated | Saliva inactivates HIV; risk extremely low |
| Sharing injection equipment | Recommended | Blood-borne exposure; escalate to emergency care |
| Exposure older than 72 hours | Not recommended | Window closed; testing and monitoring instead |
The counterintuitive caveat: a detectable viral load in the source does not automatically mean PEP will fail, and an undetectable source does not mean PEP is unnecessary in every protocol. Source viral load, exposure type, and elapsed time all interact. Clinicians weigh these factors rather than applying a single rule.
What PEP does not do
PEP is not a vaccine and does not create lasting immunity. It does not protect against future exposures. It does not eliminate the need for condoms or other prevention methods during and after the course. It does not replace regular testing.
PEP is also not a substitute for emergency care after sexual assault. Survivors should receive PEP consideration, baseline testing for HIV and other sexually transmitted infections, and supportive services. The 72-hour window applies here as well, and every hour of delay reduces the chance of success.
A common misconception is that PEP and PrEP are interchangeable. PrEP is taken before exposure and maintains drug levels continuously. PEP is started after exposure and relies on rapid initiation. A person on PrEP who experiences a high-risk exposure may need assessment for resistance and possible regimen adjustment, not simply a PEP course.
Another misconception: side effects mean the drugs are not working or that the course should stop. Modern integrase-based regimens are generally well tolerated, but nausea, headache, and fatigue are common in the first weeks. Discontinuation before 28 days is a risk factor for failure. Clinicians manage side effects rather than stopping therapy.
Practical steps and red flags
Action steps after a potential exposure:
Seek care immediately at an emergency department, urgent care, or HIV clinic. Do not wait to see whether symptoms appear. State the exposure type and timing plainly. Clinicians need elapsed hours to decide whether PEP is still indicated. Expect baseline HIV testing and testing for hepatitis B and C, and other sexually transmitted infections where indicated. Expect a 28-day prescription with follow-up testing at the recommended intervals. Take the medication consistently and report severe side effects rather than stopping on your own. Use condoms or other barrier methods until follow-up testing is complete.
Red-flag warnings as bullets:
Starting PEP after 72 hours is outside the recommended window; clinicians may still evaluate but should not present it as standard prophylaxis. Missing doses in the first week may undermine the entire course. A negative baseline test does not rule out existing infection; follow-up testing is essential. PEP does not prevent other sexually transmitted infections or pregnancy; address those needs separately. Severe rash, jaundice, or signs of liver injury warrant urgent medical review.
Timeline of a PEP course
| Time point | What happens |
|---|---|
| Hour 0 (exposure) | Clock starts; seek care immediately |
| Within 0 to 72 hours | Baseline HIV test; PEP initiated if indicated |
| Days 1 to 28 | Full course taken; side effects monitored |
| Week 4 to 6 | Follow-up HIV testing (assay-dependent) |
| Month 3 to 6 | Final follow-up testing to confirm no seroconversion |
| After course | Prevention counseling; PrEP discussion if ongoing risk |
What the evidence can and cannot promise
PEP efficacy estimates come largely from observational studies and animal models, not from randomized controlled trials in humans. The strongest human data come from perinatal transmission studies, where antiretroviral prophylaxis reduced transmission substantially, and from observational cohorts of occupational and non-occupational exposures. These studies consistently show that earlier initiation and full-course adherence improve outcomes.
The absolute risk reduction depends on the exposure type, the source's viral load, and the elapsed time. A needlestick from a source with high viral load carries a different baseline risk than a single condomless encounter with a partner of unknown status. This is why clinicians individualize rather than quote a single efficacy number.
What the evidence cannot do is guarantee protection in any individual case. PEP reduces risk; it does not eliminate it. Follow-up testing remains necessary. Anyone who completes PEP and tests negative at the recommended intervals can be reassured, but the testing schedule exists precisely because failures, though uncommon, occur.
Cost and availability vary by country and insurance status. In the United States, PEP may be covered by insurance or available through public health programs; out-of-pocket costs vary widely. State health departments and community clinics are the most reliable sources for local access information. Cost should never delay initiation, and emergency departments are required to evaluate and stabilize patients regardless of ability to pay under federal law.
The honest bottom line: PEP is a highly effective, time-sensitive intervention with a clear biological rationale. It works best when started within hours, taken for the full 28 days, and followed by testing. It is not a guarantee, and it is not a substitute for ongoing prevention.