How Soon After Sex Should You Get Tested for STDs?

There’s no single answer because every sexually transmitted infection has a different “window period,” the time between exposure and when a test can actually detect it. Testing too early gives you a false negative, which is worse than not testing at all because it creates a false sense of security. For most common STIs, you’ll want to wait at least 1 to 2 weeks, but some infections need several weeks or even months before a test becomes reliable.

Why Testing Too Early Doesn’t Work

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. If you walk into a clinic the morning after a concerning encounter, most tests will come back negative regardless of whether you were infected. The bacteria or virus simply hasn’t had enough time to reach detectable levels.

This doesn’t mean the days right after exposure are wasted time. If you’re concerned about HIV specifically, post-exposure prophylaxis (PEP) can reduce your risk by more than 80%, but it must be started within 72 hours of exposure. Every hour counts. This is the one situation where getting to a clinic immediately matters, not for testing, but for prevention.

Chlamydia and Gonorrhea: 1 to 2 Weeks

These two bacterial infections are the most commonly tested STIs, and they have the shortest window periods. Modern tests that detect genetic material from the bacteria (run on urine samples or swabs) can pick up an infection roughly 1 to 2 weeks after exposure. If you test at the 2-week mark and get a negative result, that’s generally reliable. Symptoms, if they appear at all, typically show up in a similar timeframe, but many people with chlamydia or gonorrhea never develop noticeable symptoms.

HIV: 18 Days to 3 Months

HIV testing timelines depend heavily on which type of test you get. A lab-based blood draw that looks for both the virus’s proteins and your antibodies can usually detect HIV 18 to 45 days after exposure. A rapid finger-stick version of the same test has a wider window of 18 to 90 days. No HIV test can detect the virus immediately after infection.

If you get a negative result within the first few weeks, you may need a follow-up test at the 45-day or 90-day mark depending on which test was used. A negative lab-based test at 45 days is considered highly reliable. A negative rapid test may need confirmation closer to the 3-month mark to be conclusive.

Syphilis: 1 to 3 Months

Syphilis has a longer and more variable window. A blood test at the 1-month mark catches most infections, but it takes up to 3 months to catch almost all of them. Symptoms can appear anywhere from 10 to 90 days after exposure, with 21 days being the average. The earliest sign is usually a painless sore at the site of contact, which is easy to miss. If you notice a sore, get tested right away regardless of timing. Otherwise, testing at 4 weeks with a follow-up at 12 weeks if the first result is negative covers your bases.

Hepatitis C: 1 to 11 Weeks

Hepatitis C testing has two options with very different timelines. A test that looks for the virus’s genetic material directly can detect infection as early as 1 to 2 weeks after exposure. The more common antibody test takes much longer, typically 8 to 11 weeks, because your immune system needs that time to produce detectable antibodies. If you’re specifically concerned about hepatitis C exposure, ask for the direct viral test rather than the antibody screen if you want earlier results.

Herpes: Up to 4 Months

Herpes has the longest and most frustrating window period of the common STIs. Blood tests look for antibodies, and it can take up to 16 weeks or more after exposure for current tests to detect an infection. This means a blood test taken a few weeks after a possible exposure is essentially meaningless if it comes back negative.

The exception is if you develop visible sores or blisters. A swab taken directly from an active lesion can confirm herpes at any point, regardless of antibody status. If you have symptoms, get the sore swabbed rather than relying on a blood test.

A Practical Testing Timeline

If you had a single encounter that’s causing concern and you want to be thorough, here’s a realistic schedule:

  • Within 72 hours: If HIV exposure is a possibility, talk to a provider about PEP immediately.
  • At 2 weeks: Test for chlamydia and gonorrhea. Results at this point are generally reliable.
  • At 4 to 6 weeks: Test for HIV (lab-based blood draw) and syphilis. An HIV result from a lab test at 45 days is considered highly reliable. A syphilis test at this point catches most cases.
  • At 3 months: Follow-up testing for HIV (if you used a rapid test earlier), syphilis (to catch any remaining cases), and hepatitis C (antibody test). This is also the earliest point where a herpes blood test starts to become meaningful, though full reliability requires waiting closer to 4 months.

You don’t necessarily need every test at every interval. What you test for depends on the type of exposure, your partner’s status if known, and your own risk factors. A provider can help you figure out which tests make sense for your situation.

If Your First Test Is Negative

A negative result only means you were negative at the time of testing, factoring in the window period. For infections with shorter windows like chlamydia and gonorrhea, a single negative test at 2 weeks is usually enough. For HIV, syphilis, and hepatitis C, a negative result taken early in the window period should be followed up with a second test once the full window has passed. This is especially true if you had a high-risk exposure or are experiencing symptoms that don’t match your test results.

Routine screening is also worth considering separately from event-based testing. The WHO recommends at least annual screening for people with ongoing risk factors, with more frequent testing (every 6 months) for those at higher risk. Testing after a specific encounter is important, but it doesn’t replace regular screening if you’re sexually active with new or multiple partners.