How Soon After Unprotected Sex Can I Test for STDs?

How soon you can test depends on the STI. Some infections are detectable within a week, while others take several weeks or even months to show up on a test. Testing too early can give you a false negative, meaning the infection is there but the test misses it because your body hasn’t produced enough of the markers the test looks for. Here’s a practical breakdown of when each test becomes reliable.

Why Testing Too Early Gives False Negatives

Every STI has a “window period,” which is the gap between the moment you’re exposed and the moment a test can actually pick up the infection. During this window, you may already be infected, but the levels of the virus, bacteria, or antibodies in your body are still too low for the test to detect. If you test during this window and get a negative result, it doesn’t necessarily mean you’re in the clear. It means you may need to retest once the window period has passed.

The window period is different from the incubation period. The incubation period is how long it takes for symptoms to appear, which can be longer or shorter than the testing window. You don’t need to wait for symptoms to get tested. In fact, many STIs never cause noticeable symptoms at all.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These two bacterial infections have the shortest wait times. A urine test or swab can detect chlamydia or gonorrhea about one week after exposure in most cases. Waiting two weeks catches nearly all infections. If you’re tested at the one-week mark and get a negative result but still have concerns, retesting at two weeks gives you a more definitive answer.

Both infections can occur in the throat and rectum as well as the genitals, so let your provider know what type of contact you had. A urine test alone won’t catch an oral or rectal infection.

Syphilis: 3 to 6 Weeks

Syphilis takes longer to become detectable. The first sign of infection, a painless sore called a chancre, typically appears about three weeks after exposure, though it can take anywhere from 10 to 90 days. Blood tests look for antibodies your immune system produces in response to the bacteria, and those antibodies can take up to two weeks after the sore appears to reach detectable levels. In practice, this means testing at about three to four weeks after exposure is reasonable, but a six-week test provides higher confidence. If a sore appears before then, a provider can sometimes diagnose syphilis by examining it directly.

HIV: 10 Days to 3 Months

HIV has a wider range of detection windows depending on which test is used. The most sensitive option, a nucleic acid test (NAT) that looks for the virus itself in your blood, can detect HIV as early as 10 to 33 days after exposure. This test is not used for routine screening but may be available when there’s a strong reason to suspect recent infection.

The standard lab test at most clinics is a fourth-generation antigen/antibody test drawn from a vein. It detects both the virus’s proteins and your body’s immune response, and it’s reliable 18 to 45 days after exposure. A rapid version of this test done with a finger stick has a wider window of 18 to 90 days. Older antibody-only tests, including most home test kits, can take 23 to 90 days to turn positive.

If you get a negative result within the first few weeks, retesting at the 45-day mark (for a lab-drawn antigen/antibody test) or at 90 days (for a rapid or antibody-only test) is the way to confirm that result.

PEP: A Time-Sensitive Option

If you believe you were exposed to HIV, post-exposure prophylaxis (PEP) is a course of medication that can prevent infection, but it must be started within 72 hours of exposure. It is not effective after that window. If this applies to you, seek care as quickly as possible rather than waiting to test.

Herpes: Depends on the Test Type

Herpes testing works in two very different ways, and the timeline depends on which one is used. If you develop blisters or sores, a provider can swab the lesion directly. This works best when the sore is fresh and hasn’t started crusting over, and there’s no set waiting period since it depends on when symptoms appear.

Blood tests for herpes look for antibodies rather than the virus itself, and those antibodies develop slowly. It can take up to 16 weeks or more after exposure for a blood test to accurately detect herpes. This makes blood testing unreliable for diagnosing a recent exposure. If you have no symptoms, a blood test taken too early can easily miss a new infection.

Hepatitis B and C: 2 to 11 Weeks

Hepatitis C can be detected with an RNA test (which looks for the virus directly) as early as one to two weeks after exposure. Antibody tests for hepatitis C have a longer window of about 8 to 11 weeks. If you’re being tested specifically because of a recent exposure, ask whether an RNA test is available, since it gives answers much sooner.

Hepatitis B surface antigen testing generally becomes reliable within a few weeks of exposure, though the exact window can vary. A provider can advise on timing based on your vaccination status and the nature of the exposure.

A Practical Testing Timeline

If you’ve had a single unprotected encounter and want to cover the most common STIs efficiently, here’s a general schedule:

  • 2 weeks after exposure: Test for chlamydia, gonorrhea, and (if available) hepatitis C RNA. This catches the infections with the shortest windows.
  • 4 to 6 weeks after exposure: Test for syphilis and HIV with a fourth-generation antigen/antibody lab test. This is also a reasonable time for a hepatitis C antibody test if RNA testing isn’t available.
  • 3 months after exposure: Retest for HIV if your earlier test was negative and you used a rapid or antibody-only test. This is also when a hepatitis C antibody test is most reliable. Herpes blood testing, if warranted, becomes more meaningful around 12 to 16 weeks.

You don’t necessarily need to make three separate trips. Many people test at two weeks for bacterial infections and then return once at the six-week or three-month mark for everything else. Your provider can help you decide what makes sense based on the type of exposure, your symptoms, and which tests are available.

What if You Have Symptoms Before the Window Closes

If you develop symptoms like unusual discharge, burning during urination, sores, rashes, or swollen lymph nodes, get tested right away regardless of timing. A symptomatic infection is often detectable earlier than the general window periods suggest, because the symptoms themselves mean the infection has progressed enough to find. Providers can also sometimes diagnose infections like syphilis or herpes by examining visible sores directly, without relying on blood work.

A negative test taken early doesn’t rule out infection. If your initial results come back clean but you tested before the full window period passed, a follow-up test at the appropriate time is the only way to be confident in the result.