How soon after exposure to unprotected sex can you test for Human Immunodeficiency Virus (HIV)?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 7, 2025View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

HIV Testing Timeline After Unprotected Sexual Exposure

HIV testing should be performed at baseline (immediately after exposure), at 4-6 weeks, and at 12 weeks after potential exposure to HIV through unprotected sex. 1

Initial Testing (Baseline)

  • A rapid HIV test or laboratory-based antigen/antibody combination test should be performed as soon as possible after the potential exposure 1
  • This baseline testing helps determine if the person already had HIV infection prior to the exposure 1
  • If rapid tests are not available, treatment decisions should be made assuming the person is not infected, pending test results 1

Follow-Up Testing Schedule

  • Interim HIV testing should be performed 4-6 weeks after exposure using both:
    • Laboratory-based HIV antigen/antibody test
    • HIV nucleic acid test (NAT) 1
  • Final HIV testing should be conducted at 12 weeks after exposure using:
    • Laboratory-based HIV antigen/antibody combination immunoassay
    • Diagnostic HIV nucleic acid test 1

Special Considerations

  • For individuals who started post-exposure prophylaxis (PEP) within 24 hours of exposure and did not miss any doses, the 4-6 week testing may be deferred 1
  • For persons with recent exposure to long-acting injectable PrEP medications, diagnostic HIV nucleic acid testing is recommended at the initial evaluation in addition to antibody testing 1

Post-Exposure Prophylaxis (PEP) Considerations

  • If the exposure occurred within 72 hours, PEP should be considered and initiated as soon as possible 1
  • PEP is a 28-day course of antiretroviral medications 1
  • PEP is less likely to be effective if started more than 72 hours after exposure 1
  • Patients on PEP should be monitored for medication side effects and adherence 1

Important Caveats

  • The window period (time between HIV infection and when it can be detected by tests) varies depending on the type of test used 1
  • Patients should be counseled about signs and symptoms of acute HIV infection (especially fever and rash) and advised to return for evaluation if these occur 1
  • Patients should practice protective behaviors (abstinence or consistent condom use) throughout the testing period to prevent potential transmission to others 1
  • Limited awareness of proper PEP timing remains a significant barrier to effective HIV prevention, with only 24% of at-risk individuals aware of the correct timing for effective PEP treatment 2

Additional Testing Recommendations

  • Testing for other sexually transmitted infections, hepatitis B and C, and pregnancy (if applicable) should be offered at the time of HIV testing 1
  • For individuals with ongoing risk behaviors, transition to pre-exposure prophylaxis (PrEP) should be considered after completing the testing period 1

References

Guideline

Guideline Directed Topic Overview

Dr.Oracle Medical Advisory Board & Editors, 2025

Research

Limited awareness of the effective timing of HIV post-exposure prophylaxis among people with high-risk exposure to HIV.

European journal of clinical microbiology & infectious diseases : official publication of the European Society of Clinical Microbiology, 2019

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.