Sexual health

How Well PEP Prevents HIV — and What Undercuts It

Save

PEP works, but it is unforgiving about timing and follow-through. Started within hours of an exposure and taken every day for four weeks, it sharply lowers the odds of HIV taking hold. Started late, taken erratically, or stopped early, it is far less reliable — which is why speed and completion matter more than any single effectiveness figure a person might search for.

Last updated: July 2026

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

How effective is PEP at preventing HIV?

PEP is highly effective when it is started quickly and taken exactly as prescribed. It is a 28-day course of HIV medicines meant for a single, recent possible exposure, and the guidelines describe its effectiveness less as one guaranteed percentage than as a function of two things you control: how soon you start and whether you finish 1. Started within hours and completed fully, it stops most infections from establishing.

That framing is deliberate, and it is honest. There is no responsible way to promise a specific number to any one person, because the same course of pills protects very differently depending on timing and adherence. What the evidence supports is a clear direction: the faster and more completely PEP is taken, the more it works. The rest of this page is about what shifts the odds.

The 72-hour window is a hard limit

Timing is the first thing that decides whether PEP can work at all. The first dose should ideally be taken within 24 hours of the exposure and no later than 72 hours 1. Guidance is explicit that PEP is for emergency, one-time exposures and must be started as soon as possible within that window 2. This is the pep window people search for, and it is not flexible.

After 72 hours, PEP is generally not offered, because by then the virus may already have established itself and the medicine is unlikely to prevent infection. That is why a possible exposure — a condom failure, a needle, an assault — is treated as time-sensitive. If you are wondering whether a condom broke should i get pep, the answer is to be evaluated quickly rather than to wait and see, since the clock is the part you cannot get back.

Sooner is better, and 72 hours is the outer edge — after that, PEP is generally not started.

What undercuts PEP: missed doses and stopping early

Even started on time, PEP only delivers its protection if the full 28 days are completed. It is taken every day for four weeks 1, and the medicines have to stay in the body continuously to block the virus from replicating. Skipped doses and early stopping are the most common reasons PEP fails when it fails — not the drug itself.

Adherence is genuinely the hard part. The pills can cause nausea, fatigue, and headache, and four weeks is long enough for motivation to fade once the fear of the exposure recedes. That is a well-known challenge, and understanding pep side effects ahead of time — and knowing they can often be managed rather than endured silently — is part of finishing the course. A clinician can adjust the regimen if the side effects are hard to tolerate, which is far better than quietly stopping.

PEP protects one exposure — not the days before or after

PEP is a backstop for a specific event that already happened; it does nothing for exposures that come later. If risk is ongoing rather than a one-time event, the guidelines call for planning a transition from PEP to PrEP — pre-exposure prophylaxis — as the course finishes 1. The two tools are built for different situations and are strongest when the right one is matched to the risk.

This matters because PrEP, taken as prescribed, reduces the risk of getting HIV from sex by about 99% 3 — a level of steady, before-the-fact protection that a 28-day emergency course is not designed to provide. If you find yourself needing PEP more than once, that is usually the signal to read about how well does prep work and to talk with a clinician about ongoing prevention instead of repeated emergency courses.

How you confirm it worked: testing and follow-up

PEP comes with a testing schedule, and following it is how you and a clinician confirm the outcome. A baseline HIV test is done when PEP starts, with follow-up testing after the course — commonly around 4-6 weeks and again at 12 weeks 1. The follow-up is not a formality; it is how an infection would be caught early if PEP did not fully work.

The reason for the spacing is the test window period — the gap between exposure and when a test can reliably detect HIV. Depending on the test, that window runs from about 10 days for a nucleic-acid test to as long as 90 days for some rapid antibody tests 4. A single early negative is reassuring but not final, which is why the later test matters. HIV testing can be done confidentially, and knowing that ahead of time removes one barrier to following through.

Where and how fast to get PEP

Because the window is measured in hours, where you go matters as much as the decision to go. Emergency rooms, urgent-care clinics, and sexual-health clinics can all evaluate an exposure and start PEP, and after a sexual assault an emergency room can provide it alongside other care. The first dose should be taken as soon as possible within 72 hours 1, so the practical goal is to be seen the same day rather than waiting for an appointment that suits your schedule.

If one clinic cannot start PEP quickly, it is reasonable to ask directly where the fastest option is, since some settings keep the medicines on hand and others do not. PEP is built for exactly this kind of emergency, one-time exposure 2. Cost and confidentiality are common worries, and they are worth raising up front — but neither is a reason to let the 72-hour clock run out while deciding, since assistance and confidential options usually exist.

PEP within the wider set of HIV prevention

PEP is one layer among several, and the layers work best together rather than in competition. Consistent, correct condom use is itself highly effective at preventing HIV 5, and it also covers other infections that PEP and PrEP do not touch. For couples where one partner has HIV, an undetectable viral load on treatment means effectively no risk of passing HIV to a partner through sex — the principle known as undetectable equals untransmittable 6.

Seen together, the pieces cover different moments: condoms and U=U reduce risk during sex, PrEP protects a person at ongoing risk before exposure, and PEP is the emergency option after a specific exposure. None of them replaces the others. PEP's job is narrow and time-bound, and it does that job well when it is started fast and finished in full.

Common questions

No. PEP is highly effective when started within 72 hours and taken for the full 28 days, but no one can promise a specific outcome for an individual. Its protection depends heavily on how quickly it starts and whether every dose is taken. Follow-up HIV testing after the course is how you confirm the result rather than assuming it.

As soon as possible — ideally within 24 hours, and no later than 72 hours after the possible exposure. Every hour of delay lowers the chance it will work, and after 72 hours it is generally not started because the virus may already be established. Treat a possible exposure as urgent and seek evaluation the same day if you can.

Missed doses lower PEP's protection, because the medicines have to stay in the body continuously across the full 28 days to block the virus. If you miss a dose, take it as soon as you remember and continue the course rather than stopping, and tell your clinician. Persistent side effects that make adherence hard can often be managed with a regimen change.

No. PEP is an emergency 28-day course taken after a single possible exposure, while PrEP is ongoing medication taken before exposure by someone at continuing risk. PrEP taken as prescribed reduces the risk of getting HIV from sex by about 99%. If you find yourself needing PEP more than once, that is usually a reason to discuss switching to PrEP.

Generally no. PEP is not started after 72 hours because it is unlikely to prevent infection once that window has passed. If you are outside the window, a clinician can still help — with HIV testing on the right schedule, evaluation for other infections, and a conversation about PrEP for future protection. Being seen is still worthwhile even if PEP itself is off the table.

Related

Say it back

How would you explain this to someone you love?

Two or three sentences, just as you’d say it. Gale reflects back what you focused on — a mirror, not a quiz.

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

PEP is time-sensitive — act within 72 hours

  • A possible HIV exposure — condom failure, shared needle, or sexual assault — within the last 72 hours
  • It has been close to 72 hours since a possible exposure and PEP has not yet started
  • Fever, sore throat, rash, and swollen glands in the weeks after an exposure — possible acute HIV symptoms that need testing
  • Side effects during PEP severe enough that you are considering stopping the course

A possible HIV exposure is time-sensitive: seek care the same day — an emergency room, urgent care, or sexual-health clinic can start PEP within the 72-hour window. After a sexual assault, an emergency room can provide PEP along with other care.

This is general health information, not medical advice. Whether PEP is right for a specific exposure, and which regimen to use, is a decision for a clinician who can evaluate the situation promptly.

References

  1. 1.Centers for Disease Control and Prevention (2025). Antiretroviral Postexposure Prophylaxis After Sexual, Injection Drug Use, or Other Nonoccupational Exposure to HIV - CDC Recommendations, United States, 2025. MMWR Recommendations and Reports, Vol. 74, No. 1. doi:10.15585/mmwr.rr7401a1That the first PEP dose should ideally be within 24 hours and no later than 72 hours after exposure, that PEP is a 28-day course with baseline HIV testing and follow-up at 4-6 and 12 weeks, and that transition to PrEP is planned for ongoing risk.
  2. 2.Centers for Disease Control and Prevention (2024). Clinical Guidance for PEP. CDC HIV Nexus. linkThat PEP must be started as soon as possible and within 72 hours of exposure, is taken for 28 days, and is for emergency one-time exposures rather than ongoing prevention.
  3. 3.Centers for Disease Control and Prevention (2024). Clinical Guidance for PrEP. CDC HIV Nexus. linkThat PrEP taken as prescribed reduces the risk of getting HIV from sex by about 99% and is ongoing before-exposure prevention distinct from PEP.
  4. 4.Centers for Disease Control and Prevention (2024). Clinical Testing Guidance for HIV. CDC HIV Nexus. linkThat HIV test window periods vary by test type, from about 10-33 days for a nucleic-acid test to as long as 90 days for some rapid antibody tests.
  5. 5.Centers for Disease Control and Prevention (2024). Condom Use: An Overview. CDC (cdc.gov/condom-use). linkThat consistent, correct condom use is highly effective at preventing HIV and infections spread by genital fluids.
  6. 6.Centers for Disease Control and Prevention (2024). Undetectable = Untransmittable. CDC Global HIV and TB. linkThat a person with HIV who maintains an undetectable viral load on treatment has effectively no risk of sexually transmitting HIV to partners.

6 sources, numbered by first appearance. General health information, not medical advice. AI-assisted editorial content — citations link their sources. Editorial policy