How Long After Sex Should I Get Tested for STDs?

It depends on which STI you’re concerned about, because each infection has a different “window period,” the minimum time your body needs before a test can detect it. Testing too early can produce a false negative, giving you a clean result when you’re actually infected. For the most common STIs, you’re looking at anywhere from one week to three months before testing is reliable.

Why You Can’t Test Right Away

After exposure, an infection needs time to either multiply enough to be detected directly or trigger your immune system to produce antibodies that a blood test can pick up. This gap between exposure and detectability is the window period. If you test during this window, the infection may be present but invisible to the test. A negative result taken too early doesn’t mean you’re in the clear.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These two bacterial infections have the shortest window periods. A urine test or swab can detect most chlamydia and gonorrhea infections after just one week. Waiting two weeks catches nearly all cases. If you had unprotected oral, anal, or vaginal sex and want to rule these out, two weeks is the sweet spot for a reliable result.

Keep in mind that most people with chlamydia and many with gonorrhea never develop symptoms. So the absence of discharge, burning, or pain doesn’t mean you’re negative. Testing is the only way to know.

HIV: 2 Weeks to 3 Months

HIV testing timelines vary significantly depending on the type of test used. A lab-based blood draw that looks for both the virus itself and your body’s immune response to it can detect most infections 18 to 45 days after exposure. By six weeks, this type of test catches almost all cases.

Rapid tests and oral swab tests take longer to become accurate. They rely solely on antibody detection, which means most infections show up around one month, but you need to wait a full three months for the highest confidence in a negative result.

The fastest option is a specialized test that detects the virus’s genetic material directly in your blood, which can identify HIV as early as 10 to 33 days after exposure. This test is typically reserved for high-risk situations or early symptom evaluation rather than routine screening.

If You Think You Were Exposed to HIV

Post-exposure prophylaxis (PEP) is a 28-day course of HIV medication that can prevent infection, but it must be started within 72 hours of exposure. Every hour matters. If you’re within that window and believe the risk was real, go to an emergency room or urgent care immediately. Don’t wait for a test result first.

Syphilis: 1 to 3 Months

Syphilis antibodies can take up to two weeks to develop after the initial infection, but standard blood screening catches most cases by one month. For maximum reliability, wait three months. Syphilis often starts as a painless sore that can appear on the genitals, anus, or mouth, and it’s easy to miss entirely. If you notice an unusual sore, get tested regardless of timing.

Hepatitis B: 3 to 6 Weeks

Hepatitis B antibody testing becomes reliable between three and six weeks after exposure. If you haven’t been vaccinated against hepatitis B (many people were vaccinated as children), this is worth including in your screening panel after a higher-risk encounter.

Hepatitis C: 2 Weeks to 6 Months

The timeline here depends on the test. A test that looks for the virus’s genetic material can detect hepatitis C as early as one to two weeks after exposure. The more common antibody blood test takes longer: most infections are detectable by two months, but it can take up to six months for antibodies to reach detectable levels. Sexual transmission of hepatitis C is less common than for other STIs but does occur, particularly with anal sex.

Herpes: Up to 3 to 6 Months

Herpes is one of the trickiest infections to test for by timeline. Blood tests look for antibodies, and those can take three to six months to develop after exposure. If you have an active sore or blister, a swab of the lesion can confirm herpes much sooner. But if you have no symptoms and want a blood test to check your status, waiting at least three months gives the most meaningful result. Even then, a negative antibody level doesn’t always rule out a recent infection, especially if antiviral medication was taken early.

A Practical Testing Schedule

If you want to be thorough after a single concerning encounter, here’s a reasonable approach:

  • At 2 weeks: Test for chlamydia and gonorrhea. These are the most common STIs and can be reliably detected by this point.
  • At 6 weeks: Add a lab-based HIV test and hepatitis B. Syphilis may also be detectable, though retesting later improves accuracy.
  • At 3 months: Retest for HIV (especially if you used a rapid or oral test earlier), syphilis, and herpes if desired. This is the point where most STIs are definitively detectable.

You don’t necessarily need every test on this list. The infections worth screening for depend on the type of sexual contact, whether a condom was used, and your partner’s known status. A provider can help you narrow it down.

What if You Already Got a Negative Result?

If you tested before the recommended window closed and got a negative result, that result isn’t fully reliable. For chlamydia and gonorrhea, retesting after two weeks is usually sufficient. For HIV, syphilis, and hepatitis, retesting at the three-month mark gives much higher confidence. A single early negative is reassuring but not definitive for infections with longer window periods.

If you were treated for chlamydia or gonorrhea, retesting about three months after treatment is recommended to check for reinfection, which is common. Retesting earlier than four weeks after treatment can produce a false positive because remnants of the dead bacteria may still trigger the test.