How Long After Sex Should You Get Tested for STDs?

There’s no single answer because every sexually transmitted infection has its own detection timeline. Testing too early can produce a false negative, meaning you’re infected but the test doesn’t pick it up yet. The shortest wait is about one to two weeks for some infections, while others need up to three months before a test is reliable.

The gap between exposure and when a test can detect the infection is called the “window period.” Here’s what that looks like for each major STI.

Chlamydia and Gonorrhea

These two bacterial infections have the shortest window periods and are the most commonly tested STIs. Nucleic acid amplification tests (the standard urine or swab tests) can reliably detect both infections about two weeks after exposure. Testing before that point risks a false negative. If you test positive and get treated, the CDC recommends retesting three months later, since reinfection is common.

HIV

HIV testing timelines depend on which type of test is used. A lab-based blood draw that looks for both the virus and your body’s immune response can detect HIV 18 to 45 days after exposure. A more sensitive test that searches directly for viral genetic material can detect it even sooner, typically 10 to 33 days after exposure. Rapid finger-prick tests and home tests are less sensitive and may take longer to turn positive.

Most clinicians consider a negative lab-based blood test at 45 days to be highly reliable. Some guidelines suggest confirming with a follow-up test at the three-month mark for complete certainty, particularly after a high-risk exposure.

If You Think You Were Exposed to HIV

Post-exposure prophylaxis (PEP) is a 28-day course of medication that can prevent HIV infection, but it only works if started within 72 hours of exposure. If you had condomless sex with someone who has HIV or whose status you don’t know and the encounter was high-risk, getting to a clinic or emergency room quickly matters more than waiting to test. PEP is not effective if started more than 72 hours after exposure.

Syphilis

Syphilis blood tests look for antibodies your immune system produces in response to the bacteria. These antibodies typically become detectable three to six weeks after exposure. Testing at the one-week mark will almost certainly miss an early infection. If you have a visible sore (called a chancre), a provider can sometimes test it directly, but blood testing remains the standard.

Anyone who tests positive for syphilis should also be tested for HIV, since the two infections share risk factors and a syphilis sore makes HIV transmission easier.

Hepatitis B and C

Hepatitis C has two testing options with very different timelines. A test that looks for the virus’s genetic material can detect infection as early as one to two weeks after exposure. The standard antibody test takes longer: 8 to 11 weeks before the immune response is strong enough to show up. If you’re being tested after a specific known exposure, ask your provider which test type they’re ordering.

Hepatitis B surface antigens generally become detectable four to ten weeks after exposure, though the timeline varies. Many adults were vaccinated against hepatitis B as children, which changes how results are interpreted. Let your provider know your vaccination history.

Herpes (HSV-1 and HSV-2)

Herpes blood tests detect antibodies that take 2 to 12 weeks to develop after infection. That’s a wide range, and it’s one reason herpes testing is less straightforward than other STIs. Tests for HSV-1 (the type more commonly associated with oral herpes) tend to be 5% to 10% less sensitive than HSV-2 tests and may take longer to turn positive.

If you have visible sores or blisters, a swab test of the sore itself is more accurate than a blood test and doesn’t require waiting. Without symptoms, blood testing at the 12-week mark gives the most reliable result. Routine herpes screening isn’t recommended for people without symptoms because of the high rate of false positives with current blood tests.

Trichomoniasis

Trichomoniasis, caused by a parasite rather than a bacterium or virus, can be detected as early as one to two weeks after exposure through a swab or urine test. Like chlamydia and gonorrhea, retesting three months after treatment is recommended for anyone who tests positive.

A Practical Testing Timeline

If you had a single encounter and want to cover the major infections efficiently, here’s a reasonable approach:

  • Two weeks after exposure: Test for chlamydia, gonorrhea, and trichomoniasis. These are reliable at this point.
  • Four to six weeks after exposure: Test for HIV (lab-based blood test) and syphilis. Both are likely detectable by now, though a negative HIV result at this stage isn’t completely conclusive.
  • Three months after exposure: This is the point where nearly all infections are detectable. A negative HIV test, syphilis test, and hepatitis C antibody test at 12 weeks can be considered reliable. Herpes antibodies are also most likely to show up by now.

You don’t necessarily need to visit the clinic three separate times. Many providers will run a full panel at the six-week mark and then recommend a follow-up at three months only for HIV, hepatitis, or herpes if those are concerns. The right schedule depends on what you were potentially exposed to and the type of sexual contact involved. A conversation with your provider about the specific encounter helps them choose the right tests and timing.

Why Timing Matters More Than You’d Think

A negative result taken too early can be genuinely misleading. If you test at five days and get all-clear results, that tells you almost nothing. Every major STI needs at least one to two weeks before the earliest possible detection, and most need longer. Testing too early and assuming you’re negative is one of the most common ways infections go undiagnosed and get passed to partners.

On the other hand, you don’t need to wait months for everything. Bacterial infections like chlamydia and gonorrhea, which are the most common STIs, are reliably detected at two weeks. If those are your primary concern, there’s no reason to delay testing longer than that.