How Long After Sex Can You Get Tested for STDs?

The wait time depends on which STD you’re testing for. Some infections are detectable within a few days, while others take weeks or even months to show up on a test. Testing too early can produce a false negative, meaning you’re infected but the test misses it because your body hasn’t produced enough of the virus, bacteria, or antibodies for the test to pick up.

This gap between exposure and reliable detection is called the “window period,” and it’s different for every infection.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These two bacterial infections are among the fastest to become detectable. Most clinics test for both at the same time using a urine sample or swab. The bacteria need time to multiply at the infection site before there’s enough genetic material for the test to identify. Testing at around 14 days after exposure gives the most reliable results, though some providers will test as early as 5 to 7 days if you have symptoms like unusual discharge, burning during urination, or pelvic pain.

If you test negative but the encounter was very recent, retesting after the full two-week window is worth considering.

Syphilis: 2 to 4 Weeks

Syphilis is detected through blood tests that look for antibodies your immune system produces in response to the infection. Those antibodies can take up to two weeks to appear after initial infection, and in some cases longer. A painless sore (called a chancre) at the site of contact is the earliest physical sign and typically shows up 10 to 21 days after exposure.

If you notice an unusual sore, getting tested at that point is reasonable even if it’s been less than two weeks. But if you have no symptoms and are testing as a precaution, waiting at least three to four weeks improves the accuracy of your results.

HIV: 18 Days to 3 Months

HIV has the widest testing window of the common STDs, and the timeline depends heavily on which type of test is used. There are three main categories:

  • Lab blood draw (antigen/antibody test): This is the most sensitive option. Blood drawn from a vein and sent to a lab can usually detect HIV 18 to 45 days after exposure.
  • Rapid finger-prick test (antigen/antibody): Available at many clinics and community testing sites, this version detects HIV 18 to 90 days after exposure.
  • Antibody-only tests: These include most home test kits and some rapid tests. They detect HIV 23 to 90 days after exposure.

The lab blood draw is the gold standard for early detection. If you’re testing within the first month after a potential exposure, request this version specifically. A negative result on a lab antigen/antibody test at 45 days is highly reliable. With antibody-only tests, you’d need to wait the full 90 days (about three months) to confidently rule out infection.

If the Exposure Was Very Recent

If you believe you were exposed to HIV within the last 72 hours, post-exposure preventive medication (PEP) can significantly reduce your risk of infection. This is a 28-day course of antiviral medication that must be started as soon as possible. After 72 hours, it’s unlikely to be effective. Emergency rooms and sexual health clinics can prescribe it.

Hepatitis B: 3 to 6 Weeks

Hepatitis B is a viral infection that attacks the liver. The surface protein the test looks for usually appears about four weeks after exposure, though it can sometimes be detected as early as one week. For a reliable result, most providers recommend testing at six weeks or later. If you were vaccinated against hepatitis B, you likely already have protection, but a blood test can confirm whether your immunity is still active.

Herpes: Up to 4 Months

Herpes testing is different from other STDs because the standard approach is to test active sores directly with a swab. If you develop blisters or sores, getting them swabbed while they’re fresh gives the most accurate result.

Blood tests for herpes look for antibodies that can take 2 to 12 weeks to develop, sometimes up to 16 weeks. This makes herpes one of the harder infections to confirm early. Blood tests also can’t tell you where on the body the infection is located or when you were infected, which limits their usefulness for people without symptoms.

What a Practical Testing Timeline Looks Like

If you had a single encounter you’re concerned about, a staged approach covers your bases most efficiently. At around two weeks, you can test for chlamydia, gonorrhea, and syphilis. At six weeks, you can add hepatitis B and get an early HIV test via lab blood draw. If your initial HIV test was negative, a follow-up at three months with any test type gives you a definitive answer.

Many sexual health clinics offer full panels that test for multiple infections at once. When you go in, let the provider know when the exposure happened so they can advise on which tests are worth running that day and which ones you should come back for.

Why Retesting Matters

A single negative result right at the edge of a window period isn’t always conclusive. If you tested early and the result was negative but you’re still within the window for one or more infections, retesting after the full window has passed gives you a reliable answer. For people with ongoing risk factors, such as new or multiple partners, annual screening for chlamydia, gonorrhea, and HIV is a reasonable baseline. Those at higher risk may benefit from testing every three to six months.

Symptoms are not a reliable indicator of infection status. Many STDs, especially chlamydia, gonorrhea, and HIV, frequently cause no symptoms at all in the early stages. Testing based on timing rather than waiting for symptoms is the more dependable approach.