HIV PEP After Sex or a Needlestick: the 72-Hour Window, the 28-Day Course, Side Effects and Follow-Up Tests
⏰ A condom splits, a partner later says they are not sure of their HIV status, a nurse feels a needle go through her glove, or someone wakes up after an assault. In each case the same question comes up within hours: is there anything that can stop HIV now? There is, and it is called post-exposure prophylaxis, or PEP: a 28-day course of HIV medicines started as soon as possible and no later than 72 hours after the exposure. 📋 This guide explains which exposures really need PEP and which do not, what to do in the first minutes, where to get the first dose, the tablets used today (tenofovir, lamivudine and dolutegravir), side effects and interactions, the follow-up tests at 6 and 12 weeks, and how PEP differs from PrEP.
🛡️ What PEP is and what it is not
🧬 When HIV enters the body through a mucous membrane or a break in the skin, it does not spread through the blood at once. For the first one to three days the virus infects local immune cells and nearby lymph nodes. PEP works in that short window: it blocks the virus from copying itself before the infection becomes permanent. Animal studies and observational studies in health workers showed a large drop in infections when medicines were started early and taken for four weeks, and the benefit fell quickly with every hour of delay.
⚠️ PEP is an emergency measure, not a routine form of protection. It does not protect against exposures that happen after the course ends, and it does not treat an HIV infection that is already established. People who expect repeated exposures are better served by PrEP, the daily or on-demand preventive tablet taken before sex, which is covered later in this article.
⏱️ The 72-hour clock
🕒 Guidelines set 72 hours as the outer limit because studies found little or no benefit when medicines were started later. But 72 hours is a deadline, not a target: the best results come when the first dose is taken within a few hours, ideally within 24 hours. Waiting until a clinic opens on Monday, or until a partner can be asked about their status, wastes protection. If there is any doubt, the first dose can be started and stopped later if the source person turns out to be HIV negative.
📅 If more than 72 hours have passed, PEP is usually not started. Instead the person gets a testing plan, and a clinician discusses PrEP if the risk is likely to repeat. An exposure five days ago is still a good reason to see a sexual health service: tests for other infections, hepatitis B vaccination and emergency contraception may still help.
📊 Which exposures carry real risk
🔍 The chance of HIV passing in a single exposure depends on the type of contact, on the viral load of the source person and on factors such as other genital infections or bleeding. The figures below are average estimates per single exposure to a source with untreated HIV, used by public health agencies to guide PEP decisions. They look small, but they add up, and one exposure is enough to cause an infection.
| 🔎 Exposure | 📊 Average risk per act | 💊 PEP |
|---|---|---|
| Receptive anal sex | about 1 in 70 | Recommended |
| Sharing needles to inject drugs | about 1 in 160 | Recommended |
| Needlestick from a hollow needle with blood | about 1 in 430 | Recommended |
| Insertive anal sex | about 1 in 900 | Recommended |
| Receptive vaginal sex | about 1 in 1,250 | Recommended |
| Insertive vaginal sex | about 1 in 2,500 | Usually recommended |
| Oral sex, splash on intact skin | very low | Usually not needed |
🚫 When PEP is usually not needed
🙂 Many frightened people come to emergency departments after contact that cannot pass HIV. HIV does not spread through saliva, sweat, tears, urine without visible blood, hugging, kissing, sharing cups or toilets, or mosquito bites. Knowing this saves an unnecessary month of tablets and a lot of anxiety.
💬 The undetectable rule (often written as U=U, undetectable equals untransmittable) applies to sex when the partner has taken HIV treatment and kept an undetectable viral load for at least six months. If the partner is unsure about the last result, has missed doses or the exposure was a needle injury, a clinician may still advise PEP. A bite that breaks the skin carries HIV risk only if there was blood in the mouth of the biter, which is rare.
🩹 First aid in the first minutes
🧾 It helps to note the time of the exposure, what happened and anything known about the source person, such as HIV status, treatment and last viral load. After a sexual assault, people who may want forensic evidence collected should go to a specialist assault centre or emergency department before washing, but PEP should not be delayed for that.
🏥 Where to get the first dose tonight
🚚 The first doses must come from a clinic or emergency department the same day: no delivery service, from any pharmacy, is fast enough for the 72-hour window. Many services hand out a starter pack of 3 to 7 days and then supply the rest of the 28-day course at a follow-up visit, once baseline tests are back. Some people later need to fill the remaining weeks themselves, and that is where a reliable supply of the same medicine matters: switching brands of the same combination is fine, switching to a different regimen should be agreed with the prescriber.
🗣️ What the clinician asks about the source
🤝 In hospitals, the source patient of a needlestick injury is asked for consent to rapid HIV, hepatitis B and hepatitis C tests. A negative rapid test in the source often allows PEP to stop after a day or two, unless that person may be in the very early weeks of infection themselves.
🧪 Baseline tests before the first dose
💡 The baseline HIV test matters more than people expect. If it is positive, the infection happened earlier and the person needs full HIV treatment, not a 28-day course. A positive hepatitis B test also changes the plan, because stopping tenofovir and lamivudine after four weeks could cause a flare of hepatitis B, explained further below.
💊 The preferred regimen: tenofovir, lamivudine and dolutegravir
📖 Modern PEP uses three drugs from two classes. Two nucleoside reverse transcriptase inhibitors (tenofovir plus lamivudine or emtricitabine) form the backbone, and an integrase inhibitor, usually dolutegravir, is added. The World Health Organization lists tenofovir, lamivudine or emtricitabine and dolutegravir as the preferred PEP regimen for adults, and many national guidelines use the same combination or a close relative such as bictegravir-based or raltegravir-based tablets.
✅ Why this combination? Dolutegravir has a high barrier to resistance, works fast and is generally well tolerated; tenofovir and lamivudine are taken once a day and also act against hepatitis B. A single daily pill makes it far easier to finish all 28 days, and finishing the course is the main factor that people control.
🕰️ Why older zidovudine regimens fell out of use
📜 In the 1990s and 2000s, PEP was often based on zidovudine (AZT), usually combined with lamivudine in one tablet, sometimes with a third drug. It worked, but side effects were common enough that many people stopped before day 28. Today zidovudine-based PEP is used mainly when other options are unavailable or a specialist chooses it for a particular source virus.
📆 How to take the 28-day course
First dose, baseline tests, starter pack
Review results, rest of the course supplied
Daily tablet, same time, side effects settle
Last tablet, book the follow-up test
🍽️ The combined tablet can be taken with or without food. Choosing a fixed time linked to a daily habit, such as brushing teeth in the morning, and setting a phone alarm are the simplest ways to avoid missed doses. Keep a few spare tablets in a bag or at work in case you sleep elsewhere.
🔄 Missed doses and vomiting
⏰ If a dose is missed, take it as soon as you remember, unless the next dose is due within a few hours; then skip the missed one and carry on. Never take two doses together to catch up. One missed tablet does not ruin the course, but repeated gaps reduce protection, so call the clinic if several doses have been missed.
🤢 If you vomit within about an hour of taking the tablet, a repeat dose is usually advised; after that, the medicine has normally been absorbed. Taking the tablet with a light meal and, if needed, an anti-sickness medicine prescribed by the clinic helps most people through the first days.
🤕 Side effects and how to handle them
📋 Most people on dolutegravir-based PEP have no side effects or only mild ones in the first week. Serious reactions are rare, but a few signs need a call to the clinic the same day.
🧠 Dolutegravir can rarely worsen depression or cause suicidal thoughts in people with a history of mental illness. Anyone with past depression should mention it at the first visit, and anyone who feels very low during PEP should speak to a doctor promptly.
⚠️ Interactions: antacids, iron, calcium, metformin and more
🧪 Dolutegravir binds to minerals in the gut. Antacids, laxatives with magnesium, and iron, calcium or zinc supplements can block its absorption if taken at the same time. A few medicines also change its blood level, so every prescription and supplement should be listed at the first visit.
| 💊 Product or medicine | 📝 What happens | ✅ Usual advice |
|---|---|---|
| Antacids with magnesium or aluminium | Much less dolutegravir absorbed | Take dolutegravir 2 hours before or 6 hours after |
| Iron, calcium, zinc, multivitamins | Lower dolutegravir level | Take together with a meal, or separate as above |
| Metformin | Metformin level rises | Doctor may lower the metformin dose and check sugar |
| Rifampicin (tuberculosis) | Dolutegravir level falls | Extra 50 mg dolutegravir 12 hours later |
| Carbamazepine, phenytoin, St John wort | Dolutegravir level falls | Avoid or adjust with a specialist |
| Ibuprofen, diclofenac at high doses | Extra strain on kidneys with tenofovir | Prefer paracetamol for pain during PEP |
💊 For people who also need a short course of dolutegravir on top of the combined tablet because of rifampicin, a separate tablet such as Xapavir (Dolutegravir) is used, always on a clinician plan.
🫀 Kidneys, bones and hepatitis B
💧 Tenofovir disoproxil is cleared by the kidneys, and over four weeks it rarely causes problems in healthy adults. When kidney function is already reduced, the clinician either adjusts the doses of tenofovir and lamivudine or chooses a different backbone. Bone effects matter in long-term HIV treatment, not in a single month of PEP.
⚠️ Hepatitis B and stopping PEP:
🔹 Tenofovir and lamivudine suppress hepatitis B as well as HIV.
🔹 In someone with undiagnosed chronic hepatitis B, stopping them on day 28 can cause a flare of liver inflammation.
🔹 That is why the hepatitis B test at the first visit matters; if it is positive, a specialist plans what happens after PEP.
📖 More on reading hepatitis B blood results: chronic hepatitis B blood tests explained.
🤰 PEP in pregnancy and breastfeeding
👶 Pregnancy is not a reason to refuse PEP: HIV infection during pregnancy carries a high risk of passing the virus to the baby, and the preferred regimen can be used. An early safety signal about dolutegravir and neural tube defects, reported in 2018, became much smaller as more data came in, and dolutegravir is now recommended in pregnancy by major guidelines. Women who are trying to conceive or are in early pregnancy should discuss the choice with the clinician, and folic acid should be taken as usual.
🍼 During breastfeeding, a clinician weighs the small amount of drug in milk against the risk of HIV passing to the baby if the mother becomes infected in the following weeks. For planning a pregnancy when one partner already lives with HIV, see HIV and pregnancy on dolutegravir.
💉 Needlestick at work: occupational PEP
👩⚕️ Nurses, doctors, cleaners, laboratory staff, tattoo artists and waste workers face sharps injuries. Hollow needles that were in a vein or artery and deep injuries with visible blood carry the highest risk; solid suture needles and superficial scratches carry less. Every workplace should have a written plan and a 24-hour contact.
🚨 After sexual assault: PEP plus the rest of the care
💜 After an assault, HIV PEP is only one part of care: emergency contraception, prevention of other infections, injuries, safety and emotional support all matter. Specialist assault services can arrange all of this in one visit, and the person stays in control of every step, including whether to involve the police.
📋 A common antibiotic plan after assault combines a single injection of ceftriaxone for gonorrhea with a week of doxycycline, such as Vibramycin (Doxycycline), for chlamydia, and a week of metronidazole, such as Flagyl (Metronidazole), for trichomonas in women. When an injection is not available, oral cefixime, such as Suprax (Cefixime), is an alternative for gonorrhea that some guidelines accept. These antibiotics can be taken alongside HIV PEP. Metronidazole should not be mixed with alcohol. More on single infections: chlamydia treatment and urogenital trichomoniasis.
🧬 Hepatitis B and C after the same exposure
🧪 Blood and sexual exposures can also pass hepatitis B and hepatitis C, and hepatitis B is far more infectious than HIV through a needlestick. Hepatitis B is the one that can be prevented after the fact: a vaccine dose, with hepatitis B immunoglobulin when the source is positive, works best within 24 hours and up to 7 days. People who are already vaccinated and have a good antibody level need nothing more.
| 🦠 Virus | 🛡️ Prevention after exposure | 🧪 Follow-up |
|---|---|---|
| HIV | 28-day PEP within 72 hours | HIV test at about 6 and 12 weeks |
| Hepatitis B | Vaccine, immunoglobulin if not immune | Surface antigen and antibodies at 3 to 6 months |
| Hepatitis C | No preventive medicine | RNA test at a few weeks, antibody later; cure if infected |
| Syphilis, gonorrhea, chlamydia | Antibiotics in some cases | Repeat tests at 2 weeks and 3 months |
📖 For men who have sex with men and transgender women with repeated bacterial infections, a separate tool exists: doxy-PEP, a doxycycline dose after sex. It does not protect against HIV.
🏠 Life during the 28 days
💬 Using condoms and avoiding shared needles until the final test is negative protects partners if PEP were to fail. Health workers on PEP can usually continue working, including procedures, unless their workplace rules say otherwise. Talking to someone you trust, or to a counsellor at the clinic, helps many people with the anxiety of the waiting weeks.
🧪 Follow-up HIV tests: when and which
📅 HIV tests cannot show an infection on the day of exposure: the body needs time to make detectable antigen and antibodies. Most guidelines ask for an HIV antigen/antibody test at about 6 weeks after the exposure and a final one at 12 weeks, with some countries using a single test at 45 days or adding an RNA test. Your clinic will give the dates that match its local rules.
Baseline HIV, hepatitis, kidney, pregnancy
Kidney check if needed, STI retest
HIV antigen/antibody test
Final HIV test, hepatitis tests as advised
🧪 Home HIV tests sold in pharmacies detect antibodies and can be useful at the 12-week point, but a clinic test is more sensitive earlier. A positive home test always needs a laboratory test to confirm it.
🌡️ Warning signs of early HIV infection
🔎 If PEP fails, which is rare, the first weeks of HIV infection can cause a flu-like illness called acute retroviral syndrome. It usually appears 2 to 6 weeks after the exposure and lasts one to two weeks. These symptoms are not specific, but in someone who had an exposure they are a reason to test at once.
📞 Call the clinic and ask for an HIV RNA test rather than waiting for the planned date. When HIV is found early, starting full treatment at once protects the immune system and partners. What the first year of treatment looks like is described in starting HIV treatment: the first regimen and the first year.
🔁 From PEP to PrEP
💡 PEP and PrEP use some of the same medicines, but they answer different needs. PEP is a one-off emergency course after an exposure; PrEP is taken before exposures to prevent infection in people at ongoing risk. Someone who needs PEP more than once a year is usually a good candidate for PrEP.
After exposure, start within 72 hours, three drugs, 28 days
Before exposure, usually two drugs daily or around sex, or long-acting injections
Move straight from PEP to PrEP on day 28 if HIV negative and risk continues
📋 A direct switch avoids a gap during which a new exposure would be unprotected. An HIV test is done at the switch, because PrEP alone is not enough to treat an infection that PEP failed to stop. For people already living with HIV whose treatment needs a change, see HIV regimens, switching and drug resistance.
🗿 Myths about PEP
📋 Who should not wait and see
🚶 Some people hesitate because they feel embarrassed, fear judgement or think the risk was small. Clinics that give PEP see these situations every day, and the conversation is confidential. People who should go without delay include those after receptive anal sex without a condom, anyone injured by a used needle from a person with HIV or unknown status, survivors of sexual assault, and people who shared injecting equipment.
🚨 When to see a doctor urgently
⛔ Go to an emergency department or sexual health clinic now if:
🔹 You had a possible HIV exposure in the last 72 hours and have not started PEP.
🔹 You were sexually assaulted, injured or feel unsafe.
🔹 During PEP you develop a rash with fever, blistering, yellow skin or eyes, or severe abdominal pain.
🔹 You have fever, rash, sore throat and swollen glands within 6 weeks of the exposure.
🔹 You feel hopeless or have thoughts of harming yourself. In that case, contact emergency services or a crisis line now.
❓ Frequently asked questions
How soon after exposure should HIV PEP be started?
As soon as possible, ideally within a few hours and no later than 72 hours. Protection falls with every hour of delay.
How long is a course of PEP?
28 days without gaps. Shorter courses are not recommended, even if side effects are mild or the risk felt small.
Which medicines are used for PEP today?
Usually tenofovir with lamivudine or emtricitabine plus dolutegravir, often as one daily tablet. Some countries use bictegravir or raltegravir-based regimens.
How effective is PEP?
It greatly lowers the chance of infection when started early and taken for all 28 days. Failures are rare and usually linked to delay, missed doses or new exposures.
Do I need PEP if my partner has an undetectable viral load?
For sex, usually not, if the partner has stayed undetectable on treatment for at least six months. If the last result is uncertain, ask a clinician.
Can I take antacids or iron during PEP?
Yes, but take dolutegravir 2 hours before or 6 hours after antacids, and take iron or calcium together with a meal or separated in the same way.
When should I test for HIV after PEP?
Usually at about 6 weeks and again at 12 weeks after the exposure. Test sooner if you develop fever, rash and swollen glands.
Is PEP safe in pregnancy?
Yes. Dolutegravir-based PEP is recommended in pregnancy by major guidelines, and HIV infection during pregnancy is a far greater risk to the baby.
What is the difference between PEP and PrEP?
PEP is a 28-day emergency course after an exposure. PrEP is taken before exposures by people at ongoing risk, and you can switch from PEP to PrEP on day 28.
Do I need PEP after a needlestick from a needle found in a park?
Usually not for HIV, because the risk is very low. A clinician will still check tetanus and hepatitis B vaccination and clean the wound.
📑 Sources and editorial
- 📘 National and international guidelines on HIV post-exposure prophylaxis after sexual, injecting and occupational exposure
- 🌍 World health guidance on preferred PEP regimens and the 28-day course
- 📊 Public health estimates of HIV transmission risk per exposure type
- 💊 Product information for tenofovir, lamivudine, dolutegravir and zidovudine, including interactions
- 👩⚕️ Occupational health guidance on sharps injuries and blood-borne viruses
- 💜 Clinical guidance on care after sexual assault, emergency contraception and prevention of sexually transmitted infections
- 🧬 Reviews of hepatitis B post-exposure prophylaxis and of PEP to PrEP transition
- 📖 Related reading: starting HIV treatment, HIV regimens and switching, HIV and pregnancy, doxy-PEP, hepatitis B blood tests
- 🛒 Related products: Viropil (Dolutegravir, Lamivudine, Tenofovir), Xapavir (Dolutegravir), Epivir (Lamivudine), Combivir (Lamivudine, Zidovudine), Retrovir (Zidovudine), Vibramycin (Doxycycline), Flagyl (Metronidazole), Suprax (Cefixime)
- 🩺 RXshop Editorial Team — reviewed by Emily Chen, MD — Internal medicine
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.