
Testing & results
STD Exposure: What to Do in the First 72 Hours
Published: Updated: Last reviewed: 7 min readDr. Michael Thompson

On this page ⌄
After a possible STD exposure, the first 72 hours matter most for HIV. PEP, a 28-day course of HIV medication, must start within 72 hours, and sooner is better. Some people may also qualify for doxy-PEP to lower bacterial STD risk. Testing right away is usually too early, so plan follow-up tests at the right times.
A broken condom, a hookup you're now worried about, a partner who just told you they tested positive: patients often reach me in exactly this moment, anxious and unsure what to do first. I always tell them the same thing. The most time-sensitive question is whether you need HIV prevention medication. Everything else, including most testing, can follow a calmer schedule.
How Risky Was the Exposure?
Not every exposure carries the same risk. The type of sex, condom use, and what you know about your partner all matter. Higher-risk situations for HIV include:
- Condomless receptive anal sex, which carries the highest risk of HIV from sex
- Condomless vaginal or anal sex with a partner who has HIV and isn't on effective treatment, or whose status is unknown
- A condom that broke or slipped off
- Sharing needles or other injection equipment
- Sexual assault
Oral sex carries much lower HIV risk but can still spread gonorrhea, syphilis, and herpes. If a partner with HIV has a sustained undetectable viral load, the CDC states that an undetectable viral load prevents HIV transmission through sex. If you're unsure, let a clinician help you weigh it.
Do I Need HIV PEP?
PEP (post-exposure prophylaxis) is HIV medication taken after a possible exposure to prevent infection. According to the CDC's PEP guidance, it must be started within 72 hours, and the sooner the better. Once prescribed, it's taken daily for 28 days.
- Where to get it: an emergency room, urgent care, sexual health clinic, or your own clinician. Calling ahead to urgent care can save time.
- Who it's for: people with a single recent possible exposure, such as a broken condom, sexual assault, or shared needles.
- Who it's not for: people exposed regularly. If that's you, ask about PrEP, which prevents HIV before exposure.
Your clinician will choose the specific medications and do baseline testing at the first visit. If you're pregnant, tell them, since PEP decisions account for pregnancy. Our HIV overview has more background.
What Is Doxy-PEP, and Could It Help?
Doxy-PEP is a single dose of the antibiotic doxycycline taken within 72 hours after sex to lower the risk of bacterial STDs. The CDC's doxy-PEP guidance (2024) says it has been shown to reduce syphilis and chlamydia, and in some studies gonorrhea, in gay and bisexual men and transgender women. CDC recommends discussing it with people in those groups who've had a bacterial STI in the past 12 months.
There isn't yet enough evidence to recommend doxy-PEP for cisgender women or heterosexual men. It's also not a treatment for an existing infection, and it doesn't protect against HIV, herpes, or HPV. Your clinician will decide whether it fits you and what dose to prescribe.
Should I Get Tested Right Away?
Testing within 72 hours can't show whether this exposure infected you, because infections need time to become detectable. That window varies by infection and test type. A baseline test is still useful, especially if you're starting PEP, because it shows whether you already had an infection before this exposure.
| Infection | When a test is usually reliable | Notes |
|---|---|---|
| Infection Chlamydia and gonorrhea (NAAT) | When a test is usually reliable About 1–2 weeks after exposure | Notes Test the sites you were exposed: genital, throat, rectum |
| Infection Trichomoniasis (NAAT) | When a test is usually reliable About 1–4 weeks | Notes Often not on standard panels; ask for it |
| Infection HIV – lab antigen/antibody test | When a test is usually reliable 18–45 days | Notes CDC window period for blood drawn from a vein |
| Infection HIV – rapid finger-stick antigen/antibody | When a test is usually reliable 18–90 days | Notes Retest after the window if negative |
| Infection HIV – nucleic acid test (NAT) | When a test is usually reliable 10–33 days | Notes Used for recent exposures with symptoms |
| Infection Syphilis (blood test) | When a test is usually reliable Several weeks; retest at about 3 months | Notes Earlier testing may miss it |
HIV windows: CDC – Getting Tested for HIV. Other intervals are typical clinical guidance; your clinician may adjust them.
The CDC advises that a negative HIV test after an exposure should be repeated once the window period for that test has passed. For details by infection, see our complete STD window period guide, the HIV window period, and the syphilis window period.
What Should I Avoid in the First 72 Hours?
- Don't take leftover antibiotics. Random doses don't reliably prevent STDs and can make later results harder to interpret.
- Don't wait for symptoms before deciding about PEP. By the time symptoms appear, the PEP window has usually closed.
- Don't douche or scrub the genitals or rectum. It doesn't remove infection and can irritate tissue.
- Avoid sex, or use condoms, until follow-up testing is done, so you don't pass anything on.
- Don't rely on an early negative test as the final answer.
Key point: If you're past 72 hours, PEP is generally no longer an option, but testing at the right times and getting treatment if needed still protects your health.
When to Seek Urgent Care
Go to the ER or urgent care immediately if:
- It's been less than 72 hours since a possible HIV exposure and you haven't started PEP
- You were sexually assaulted. Emergency care can provide PEP, STD prevention, emergency contraception, and evidence collection if you want it.
- You develop a severe rash, trouble breathing, or swelling of the face or throat after starting a new medication
See a clinician within 24 hours if:
- A partner tells you they tested positive for an STD
- You develop discharge, burning, sores, or a new rash
- You develop fever, sore throat, rash, and swollen glands 2–4 weeks after an exposure, which can be early HIV symptoms
- You're pregnant and had a possible exposure
Frequently Asked Questions
What counts as a high-risk exposure for HIV PEP?
Condomless anal or vaginal sex with a partner who has HIV and isn't virally suppressed, or whose status is unknown, is the classic example. Receptive anal sex carries the highest risk. A broken condom, shared needles, and sexual assault also qualify. When in doubt, get evaluated quickly and let the clinician decide.
Can I get PEP at urgent care or do I need an ER?
Many urgent care centers and sexual health clinics can prescribe PEP, so call ahead to confirm. After hours or on weekends, an emergency room is usually the fastest option. Don't wait for a regular appointment.
Is doxy-PEP the same as treating an infection?
No. Doxy-PEP is a preventive dose taken after sex, before an infection is established. A confirmed infection needs full treatment as directed by your clinician. You can read about standard treatment in our doxycycline for chlamydia guide.
What if I waited more than 72 hours?
HIV PEP generally isn't recommended after 72 hours. Focus on testing at the right intervals and treating anything that turns up. If you test negative early, our article on what a negative STD test means explains when to retest.
Should I tell my recent partners now?
If you've been diagnosed, yes. If you're only worried about an exposure, wait for results, but avoid sex or use condoms in the meantime. If a test comes back positive, see what to do after a positive STD test.
Mark your follow-up dates now, then order a private STD test for when the window period has passed.
This article is for informational purposes only and does not replace advice from your healthcare provider.
✓ Free • 2 min • No signup
When Should You Get Tested?
Testing too early can give a false negative. Answer 4 questions and we'll tell you when each test becomes accurate.
Question 1 of 4
What type of exposure are you concerned about?
This tool provides general guidance based on CDC-recommended window periods. It is not medical advice. Consult a healthcare provider for personalized recommendations. If you're within 72 hours of HIV exposure, ask about PEP immediately.

Dr. Michael Thompson is an expert in sexually transmitted diseases with extensive clinical and research experience. He leads campaigns advocating for early diagnosis and prevention of diseases like HIV and gonorrhea. He collaborates with local organizations to educate both youth and adults about sexual health.



