The window period after unprotected sex is the time between possible exposure to an STD and when a test can accurately detect it. Testing too early — before this window closes — can return a false negative even when an infection is present. Knowing the right time to test for each STD gives you a clear, reliable answer. For a broader look at how these timelines work, the complete STD testing window guide covers each infection in detail.

Every STD has its own window period. Some infections become detectable within a week or two. Others take longer. The timeline depends on how the test works and how quickly your body responds to a particular infection.

What Is a Window Period?

After exposure to an STD, there’s a gap before a test can detect it. During this time, the infection may be present but the test won’t pick it up yet. That gap is the window period.

Tests for STDs work in different ways. Some look for the actual bacteria or virus. Others detect antibodies — proteins your immune system produces in response to an infection. Antibody-based tests take longer because your body needs time to produce enough antibodies for the test to register them.

Testing within the window period doesn’t mean you’re in the clear. It means the test wasn’t able to detect anything yet. Waiting until the window has passed gives you a result you can actually rely on.

STD Testing Timelines After Unprotected Sex

The table below shows how long to wait before testing for common STDs. These are general guidelines — individual factors like the type of test used can affect accuracy.

STD Earliest Accurate Testing Window Recommended Wait Time
Chlamydia 1 week after exposure 1–2 weeks
Gonorrhea 1 week after exposure 1–2 weeks
Syphilis 3 weeks after exposure 3–6 weeks
HIV (4th generation test) 18–45 days after exposure 45 days, with follow-up at 90 days
Herpes (HSV-2 antibody) 12–16 weeks after exposure 12–16 weeks for full accuracy
Hepatitis B 6 weeks after exposure 6 weeks
Hepatitis C 8–11 weeks after exposure 8–11 weeks
Trichomoniasis 5–28 days after exposure 1–4 weeks

Chlamydia and Gonorrhea Window Periods

Chlamydia and gonorrhea are two of the most common bacterial STDs. Both can be detected relatively quickly after exposure — usually within one to two weeks.

These tests look for the bacteria directly, which is why the window period is shorter compared to tests that rely on antibody detection. Waiting at least a week after potential exposure before testing gives you a result you can trust.

If you’ve recently had unprotected sex and want to get tested for chlamydia or gonorrhea, waiting seven to fourteen days from the date of potential exposure is generally enough for an accurate result.

Syphilis Window Period

Syphilis testing relies on antibody detection. After exposure, it typically takes three to six weeks for antibodies to reach a level the test can detect. Testing earlier than three weeks after exposure may return a false negative.

If your first test comes back negative but you tested within the three-to-six-week window, a follow-up test a few weeks later can confirm the result. Most people get a clear answer within six weeks of exposure.

HIV Window Period After Unprotected Sex

HIV testing has evolved considerably. The most widely used tests today are 4th generation tests, which detect both the p24 antigen and HIV antibodies. These tests can often detect HIV as early as 18 days after exposure, though 45 days is considered the point at which most people would test positive if infected.

Even after a negative result at 45 days, many testing guidelines suggest a confirmatory test at 90 days for complete certainty. This is especially relevant for NAT (nucleic acid) testing, which can detect HIV earlier but is less commonly used as a routine screening tool.

For more detail on how soon after sex can you test for STDs and what test type gives you the earliest reliable window, that page breaks it down clearly.

Herpes Window Period

Herpes testing is slightly different from other STDs. Antibody tests for herpes (specifically HSV-2 IgG tests) can take 12 to 16 weeks after exposure before they’re reliably accurate. Testing too soon after exposure often returns a false negative.

If you’ve had a visible sore or outbreak, a swab test of the sore can give faster and more direct results. For asymptomatic testing — when there’s no visible outbreak — waiting at least 12 weeks gives the most accurate picture.

Hepatitis B and Hepatitis C Window Periods

Hepatitis B has a window period of around six weeks. Most people who have been exposed will test positive within this timeframe. Hepatitis C takes a little longer — tests typically become accurate between 8 and 11 weeks after exposure.

Both hepatitis B and hepatitis C can be detected through blood tests. If you’ve had a potential exposure and want to test, waiting at least six weeks for hepatitis B and around eleven weeks for hepatitis C gives the most reliable result.

What Affects Your Window Period?

The type of test used is the biggest factor. Some tests look for genetic material from the virus or bacteria (nucleic acid tests), which can detect infections earlier. Others look for your body’s immune response, which takes longer to develop.

The type of exposure also plays a role. The concentration of virus or bacteria involved, and how your immune system responds, can influence how quickly an infection becomes detectable. But for practical purposes, the testing timelines in the table above reflect what the majority of testing methods require.

Individual immune response varies slightly from person to person, but the published window periods account for this variation. Waiting until the recommended time means the test has a reliable window to work within.

Testing Before the Window Period Closes

A negative result before the window period ends doesn’t confirm you don’t have an infection. It means the test couldn’t detect it yet. This is called a false negative.

If you test early and get a negative result, a follow-up test after the full window period has passed gives you a definitive answer. This is common with HIV testing in particular, where an early negative at two weeks is often followed by a confirmatory test at 45 or 90 days.

There’s no need to feel uncertain about this process. Testing twice is a normal part of getting accurate results for some STDs, and it’s built into how standard testing protocols work.

Frequently Asked Questions

How long after unprotected sex should I wait to get tested for STDs?

It depends on which STD you’re testing for. Chlamydia and gonorrhea can be accurately tested one to two weeks after exposure. HIV testing is most reliable at 45 days with modern 4th generation tests. Syphilis typically requires three to six weeks. Waiting until the recommended window for each infection has passed gives you the most accurate result.

What happens if I test too early?

Testing before the window period closes can return a false negative — meaning the infection is present but not yet detectable. If this happens, a follow-up test after the full window period gives you a reliable result. Early testing isn’t harmful, but it may not give you a definitive answer.

Can I get an accurate HIV test two weeks after unprotected sex?

Some 4th generation tests can detect HIV as early as 18 days, but the 45-day mark is considered the point at which results are highly reliable. Testing at two weeks gives an early indication, but a follow-up test at 45 days — and sometimes 90 days — is often recommended for certainty.

Is a negative STD test always accurate?

A negative test is accurate when it’s taken after the full window period for the specific STD being tested. If you test within the window period and receive a negative result, that result may not fully reflect your status. Retesting after the window has closed confirms the result.

Do all STDs have the same window period?

No. Each STD has its own window period depending on how the infection develops and what the test detects. Chlamydia and gonorrhea have shorter windows of one to two weeks. Herpes antibody tests can take 12 to 16 weeks. HIV falls somewhere in between, with the most accurate results at 45 to 90 days.

Should I get tested more than once after unprotected sex?

For some STDs, testing twice makes sense. An initial test can give early information, while a follow-up test after the full window period confirms the result. HIV is the most common example where a follow-up test at 90 days is recommended after an initial test at 45 days.

Does the type of sexual activity affect the window period?

The window period itself doesn’t change based on the type of sexual activity. What varies is the likelihood of exposure, which is separate from when a test becomes accurate. Once exposure has occurred, the testing timeline follows the standard window period for each specific infection.

What if I have symptoms before the window period ends?

Symptoms can appear before the window period for antibody-based tests closes. If you’re experiencing symptoms, testing is still a reasonable step — and some tests, like swab tests for herpes outbreaks or urine tests for chlamydia, can detect infections through direct methods rather than antibodies. A healthcare provider can help determine which test is most appropriate based on what you’re experiencing.

Understanding your window period takes a lot of the guesswork out of STD testing. Once you know how long to wait for each infection, getting a reliable result is a clear, manageable process. Testing at the right time gives you a result you can actually rely on — and that clarity is what testing is for.

Confidential, Private and Affordable STD Testing

Not sure when to test? Understanding your STD testing window period helps you get accurate results. When you're ready, find confidential STD testing clinics near you — same day appointments, no referral needed, results in 3 business days.