How Soon After Sex Should You Get Tested for STDs?

The short answer: it depends on which infection you’re testing for, but most common STIs can be reliably detected within one to three weeks after exposure. HIV takes longer. Testing too early can produce a false negative, meaning the infection is there but hasn’t built up enough in your body for the test to catch it. This gap between exposure and reliable detection is called the window period, and it varies for every STI.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These are the two most commonly tested STIs, and fortunately they have the shortest window periods. Modern tests that look for the genetic material of the bacteria (rather than waiting for your immune system to respond) can detect both infections about one week after exposure most of the time. Waiting two weeks catches almost all cases. If you test at one week and get a negative result but still have concerns, retesting at the two-week mark gives you a high degree of confidence.

Both infections are tested the same way: a urine sample or a swab of the vagina, rectum, or throat, depending on the type of sexual contact. Worth noting, many people with chlamydia or gonorrhea never develop symptoms, so testing based on timing rather than waiting for symptoms to appear is the more reliable approach.

HIV: 18 Days to 3 Months

HIV testing windows vary more than any other STI because there are several types of tests, each detecting a different marker.

  • Lab-based blood draw (antigen/antibody test): This is the most sensitive standard test. It can usually detect HIV 18 to 45 days after exposure. Blood is drawn from a vein and sent to a laboratory.
  • Rapid finger-stick test (antigen/antibody): Gives results in minutes, but has a wider window of 18 to 90 days after exposure.
  • Antibody-only tests (including most at-home self-tests): These detect only your immune response, not the virus itself, so they take longer. The window is 23 to 90 days.
  • Nucleic acid test (NAT): Looks directly for the virus in your blood. It has the shortest window at 10 to 33 days, but it’s expensive and not routinely used for screening.

If you’re getting a standard lab test with blood drawn from your arm, testing at about three weeks after exposure is reasonable for an initial screen. However, a negative result at three weeks isn’t fully conclusive. To definitively rule out HIV, you’d need to test again after the full window period for whatever test type you used has passed. For most people using a rapid or antibody test, that means retesting at the three-month mark.

If You Think Exposure Was High-Risk

Post-exposure prophylaxis (PEP) is a course of medication that can prevent HIV infection if started within 72 hours of exposure. That’s a hard cutoff. If you believe you were exposed to HIV through unprotected sex with someone who is positive or whose status you don’t know, getting to a clinic or emergency room quickly matters more than waiting for a test. PEP works best the sooner it’s started.

Syphilis: 2 to 4 Weeks

Syphilis is detected through blood tests that look for antibodies your immune system produces in response to the bacteria. Those antibodies can take up to two weeks after initial infection to reach detectable levels, according to CDC laboratory guidelines published in 2024. In practice, most clinicians recommend testing at three to four weeks after exposure for the most reliable results.

Syphilis sometimes produces a painless sore (called a chancre) at the site of infection within a few weeks, but the sore can appear in places you can’t easily see, like inside the vagina or rectum. Blood testing is far more reliable than waiting for visible symptoms.

Hepatitis C: 2 to 11 Weeks

Hepatitis C has two testing approaches with very different timelines. A test that looks for the virus’s genetic material in your blood can detect infection approximately one to two weeks after exposure. Antibody tests, which are more commonly used in routine screening, have a wider window of about 8 to 11 weeks. For the first eight weeks after exposure, an antibody test may not pick up the infection even if it’s present.

If you’re specifically concerned about hepatitis C exposure, ask your provider for the direct viral detection test rather than the antibody screen, especially if you’re testing early.

Herpes (HSV): Up to 12 Weeks

Herpes blood tests look for antibodies, and these can take several weeks to develop. Most guidelines suggest waiting at least three to four weeks, with some recommending up to 12 weeks for the most accurate antibody result. If you have an active sore or blister, a provider can swab it directly for a faster and more definitive answer, no waiting period needed.

Herpes testing is not included in most standard STI panels unless you specifically request it or have symptoms. If herpes is your concern, you’ll likely need to ask for it by name.

A Practical Testing Timeline

If you had a single encounter and want to cover the most common infections efficiently, here’s a realistic approach. At two weeks, you can get reliable results for chlamydia and gonorrhea. At three to four weeks, add syphilis and an initial HIV screen. If all of those come back negative but you want full confidence, retest for HIV at three months, and test for hepatitis C antibodies around that time as well if it’s a concern.

Testing too early is the most common mistake. A negative result during the window period doesn’t mean you’re in the clear. It means the test may not have had enough to detect yet. If you test early and get a negative, treat it as preliminary and plan to retest once the full window has passed.

Rapid Tests vs. Lab Tests

Rapid tests give you results in under 30 minutes, which is a huge advantage for peace of mind. Traditional lab-based tests require sending your sample out for analysis, which typically takes five to seven days for results. Both are accurate when used within their proper window periods, but there’s a tradeoff: rapid tests, particularly for HIV, often have longer window periods than their lab-based counterparts. A lab HIV test can detect infection weeks earlier than a rapid finger-stick version.

If you’re testing close to the edge of a window period, a lab test is generally the better choice. If you’re testing well past the window, a rapid test is just as reliable and far more convenient.

Retesting After Treatment

If you do test positive for something treatable like chlamydia or gonorrhea, getting retested after treatment is important. CDC guidelines recommend retesting approximately three months after treatment to make sure the infection is gone and that you haven’t been reinfected. For chlamydia during pregnancy, a test to confirm the infection has cleared is recommended four weeks after treatment, with another retest within three months.