The right time to get tested depends on which infection you’re concerned about, because each one has a different “window period,” the gap between exposure and when a test can actually detect it. Testing too early can give you a false negative. For the most common bacterial STIs like chlamydia and gonorrhea, one week is the minimum wait. For HIV and syphilis, you may need to wait several weeks or even months for a fully reliable result.
Why You Can’t Test Right Away
After exposure, an infection needs time to establish itself in your body before a test can pick it up. Bacterial infections like chlamydia and gonorrhea need days to multiply enough for a swab or urine test to detect their genetic material. Blood-borne infections like HIV and syphilis require your immune system to produce antibodies, or the virus itself needs to reach detectable levels in your blood. Testing during this window period can come back negative even if you were infected.
Chlamydia and Gonorrhea: 1 to 2 Weeks
These two bacterial infections have the shortest window periods. A urine or swab test will detect most cases after just one week. Waiting two weeks catches nearly all infections. If you’re worried specifically about chlamydia or gonorrhea, getting tested at the two-week mark gives you a highly reliable result. Both infections can also occur in the throat or rectum depending on the type of contact, and the same timeline applies to swab tests at those sites.
Many people with chlamydia or gonorrhea never develop symptoms, so a negative result at two weeks is genuinely reassuring, and a lack of symptoms doesn’t mean you’re in the clear.
HIV: 2 Weeks to 3 Months
HIV testing timelines vary significantly depending on the type of test used. A lab-based blood draw (the kind taken from a vein) that looks for both the virus’s proteins and your antibodies can detect HIV 18 to 45 days after exposure. This is the most sensitive option available early on. A rapid finger-stick test, which also checks for both antigens and antibodies, has a wider window of 18 to 90 days. Oral swab tests are the least sensitive early on: they catch most infections by one month but need a full three months to be considered conclusive.
If you want the earliest possible answer, ask for a lab-based blood test. A negative result at 6 weeks with this method is very reliable. If you used a rapid test or oral swab, a negative at one month is encouraging but should be confirmed with a follow-up test at three months.
If You Think You Were Exposed to HIV
Before worrying about testing timelines, know that a preventive medication called PEP can dramatically reduce your chances of becoming infected, but only if you start it within 72 hours of exposure. In studies, PEP reduced HIV infection by about 81%. The sooner you start, the better it works, and it’s not recommended after the 72-hour mark because effectiveness drops sharply. You can get PEP at emergency rooms, urgent care clinics, and sexual health clinics. This is a time-sensitive decision that comes before any testing timeline.
Syphilis: 1 to 3 Months
Syphilis takes longer to show up on blood tests because your body needs time to produce detectable antibodies. The standard blood test catches most infections by about one month, but it can take up to three months to catch nearly all cases. Antibodies can begin developing as early as two weeks after infection, but testing that early will miss a significant number of cases. For a confident result, plan to test at the three-month mark.
Hepatitis B: 4 Weeks or Longer
Hepatitis B, which can spread through sexual contact, has a variable detection window. The main screening marker becomes detectable in blood at roughly four weeks after infection, though it can appear anywhere from one to nine weeks out. If you’re concerned about hepatitis B exposure and haven’t been vaccinated, testing at six weeks provides a more reliable picture. Your provider can also check for early immune responses that typically appear within six to eight weeks.
Pregnancy: 3 Weeks Minimum
If pregnancy is also a concern, home tests are most reliable starting on the first day of a missed period. If your cycle is irregular or you’re unsure when your period is due, wait at least 21 days after unprotected sex before testing. Pregnancy tests detect a hormone that starts being produced about six days after fertilization, but levels need to rise enough for a test strip to pick up. Some sensitive tests may work a few days before a missed period, but testing too early is the most common reason for false negatives.
Emergency Contraception Has a Separate Clock
Emergency contraception pills work best when taken as soon as possible and can be used up to five days (120 hours) after unprotected sex. Within the first three days, the two main pill options (levonorgestrel and ulipristal) are similarly effective. Between days three and five, ulipristal (sold as ella) maintains its effectiveness better, while levonorgestrel (Plan B and generics) becomes somewhat less reliable. A copper IUD, placed by a provider within five days, is the most effective emergency contraception option available.
A Practical Testing Schedule
Because different infections have different windows, a single test at one point in time won’t cover everything. Here’s a practical approach:
- At 2 weeks: Test for chlamydia and gonorrhea. This timing catches nearly all cases of both.
- At 4 to 6 weeks: Get a lab-based blood test for HIV (antigen/antibody from a vein draw). Test for syphilis, understanding that a negative may need confirmation later. Test for hepatitis B if relevant.
- At 3 months: Retest for HIV if your earlier test was a rapid or oral test. Retest for syphilis if your earlier result was negative but risk was significant.
Some clinics will consolidate this into two visits: one at two weeks for bacterial infections and one at six weeks to three months for blood-borne infections. If you visit a sexual health clinic, they can tailor the schedule based on the specific type of exposure you had.
Symptoms Are Not a Reliable Guide
Many STIs produce no symptoms at all, especially in the early stages. Chlamydia is often called a “silent” infection for this reason. HIV can cause a brief flu-like illness two to four weeks after exposure, but many people experience nothing. Syphilis may cause a painless sore that’s easy to miss. Waiting for symptoms before getting tested means infections can go undetected for months, during which time they can cause complications or be passed to others. The testing windows above apply whether or not you notice anything unusual.