How Long After Unprotected Sex to Get Tested for STDs?

The right time to get tested depends on which STD you’re concerned about, because each infection has a different “window period,” the gap between exposure and when a test can reliably detect it. Testing too early can produce a false negative, giving you a clean result when you’re actually infected. Most common STDs can be accurately detected within one to four weeks, but some take longer.

Why Timing Matters

After an infection enters your body, it takes time to multiply enough for a test to pick it up. Some tests look for the organism itself, while others look for your immune system’s response (antibodies), which takes even longer to develop. If you test during this blind spot, you could get a negative result and unknowingly pass the infection to someone else. The timelines below reflect when each test becomes reliable, not when symptoms appear. Many STDs cause no symptoms at all, which is exactly why testing matters.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These two bacterial infections have the shortest wait. A urine sample or swab test can detect chlamydia or gonorrhea about one week after exposure in most cases. Waiting two weeks catches almost all infections. If you’re testing at the one-week mark and the result comes back negative but you still have reason to worry, repeating the test a week later gives you near-complete certainty.

Both infections can occur in the throat and rectum, not just the genitals. If you had oral or anal contact, let your provider know so they can swab the right sites. A urine test alone won’t catch an infection in those locations.

If you do test positive and get treated, the CDC recommends retesting three months later. This isn’t to check whether the treatment worked (it almost always does). It’s to catch reinfection, which is common, especially if your partner wasn’t treated at the same time.

Syphilis: 3 to 6 Weeks

Syphilis takes longer to show up on blood tests because the standard screening looks for antibodies your body produces in response to the infection. Those antibodies can take up to two weeks to develop after symptoms first appear, and the initial sore (called a chancre) typically shows up around three weeks after exposure, with a range of 10 to 90 days. As a practical guideline, testing at three to four weeks will catch many cases, but a six-week test gives much higher confidence.

Syphilis is worth taking seriously because the initial sore is painless and often hidden (inside the vagina or rectum), so many people miss it entirely. Left untreated, syphilis progresses through stages that can eventually damage the heart and brain. Early-stage syphilis is easy to cure, which makes timely testing all the more valuable.

HIV: 10 Days to 3 Months

HIV testing timelines vary more than any other STD because several different test types exist, each with its own window period:

  • Nucleic acid test (NAT): Detects the virus’s genetic material directly. Reliable 10 to 33 days after exposure. This is the earliest possible detection method but is typically used only in high-risk situations.
  • Lab-based antigen/antibody test (blood draw from a vein): Reliable 18 to 45 days after exposure. This is the most common test ordered by clinics and hospitals.
  • Rapid antigen/antibody test (finger prick): Reliable 18 to 90 days after exposure.
  • Antibody-only tests (including most home self-tests): Reliable 23 to 90 days after exposure.

The wide ranges exist because people’s immune systems respond at different speeds. If you use a rapid or home test and get a negative result within the first month, you should retest after the 90-day mark to be sure. A lab-based blood draw from a vein narrows your window of uncertainty considerably.

If You Think You Were Exposed to HIV

Don’t wait for testing. Post-exposure prophylaxis (PEP) is a course of medication that can prevent HIV infection if started within 72 hours of exposure. The sooner you start, the better it works. One major study found an 81% reduction in infection among people who received PEP compared to those who didn’t. After 72 hours, PEP is unlikely to be effective. If you’re within that window, go to an emergency room or urgent care clinic and ask for it directly.

Hepatitis B: 3 to 12 Weeks

Hepatitis B is detectable through a blood test that looks for a protein on the surface of the virus. On average, this marker becomes detectable about three weeks after infection, but the range extends from one week to as long as 12 weeks. Testing at six weeks is a reasonable starting point, with a follow-up test at three months if your initial result was negative and you have ongoing concern.

If you weren’t vaccinated against hepatitis B as a child or young adult, this is one more reason to bring it up with a provider. The vaccine is highly effective and eliminates this particular worry for future exposures.

Hepatitis C: 2 to 6 Months

Hepatitis C has one of the longest detection windows. A test that looks for the virus’s genetic material (RNA) can detect infection as early as one to two weeks after exposure. However, the more commonly used antibody test can take up to six months to turn positive. If your provider orders an RNA-based test, you can get a reliable result much sooner, typically within a few weeks.

Hepatitis C is transmitted primarily through blood-to-blood contact, so the risk from vaginal or oral sex alone is low compared to other STDs. The risk rises with anal sex, sex during menstruation, or if either partner has open sores or cuts. Sharing needles is the highest-risk activity for hepatitis C.

Herpes and HPV: A Different Situation

Herpes (HSV) and human papillomavirus (HPV) don’t fit neatly into the “get tested at X weeks” framework. There is no routine screening blood test recommended for herpes in people without symptoms. If you develop sores or blisters, a provider can swab and test the lesion directly. Blood tests for herpes antibodies exist but produce frequent false positives, which is why most guidelines discourage routine screening.

HPV testing is available for women through cervical screening (Pap smears and HPV co-testing), but there is no approved HPV test for men. Most HPV infections clear on their own within one to two years. The HPV vaccine, if you haven’t already received it, prevents the strains most likely to cause cancer and genital warts.

A Practical Testing Timeline

If you want to cover your bases after a single unprotected encounter, here’s a straightforward approach. At the two-week mark, test for chlamydia, gonorrhea, and trichomoniasis. At four to six weeks, add syphilis and consider hepatitis B. For HIV, a lab-based blood draw at four to six weeks will catch most infections, but a confirmatory test at three months rules out the remaining edge cases. Hepatitis C antibody testing, if relevant to your risk, is most reliable at three to six months.

You don’t need to wait until the latest possible date if anxiety is eating at you. An early test that comes back negative can offer partial reassurance, as long as you follow up at the appropriate window to confirm. Many sexual health clinics offer panel testing that covers multiple STDs in a single visit, which simplifies the process considerably.