How Long After Sex Should You Get Tested for STDs?

Quick answer

It depends on the infection, because each has its own window period. For HIV, CDC says a NAT can usually detect it 10 to 33 days after exposure, a lab blood test 18 to 45 days, and antibody and finger-prick tests up to 90 days. For most other STDs without symptoms, the NHS says it can take up to 7 weeks to show on a test. If you might have been exposed to HIV in the last 72 hours, do not wait for a test: go to urgent care or an ER now and ask about PEP.

Your testing days

Chlamydia: NAATRetest if negative before day 49

HIV: Antigen/antibody lab testReliable by day 45

Syphilis: Blood testsRetest if negative before day 49

Too earlyMay detect; retest if negativeReliable

Counted from your most recent exposure. CDC gives no single window for chlamydia, gonorrhea, trich or syphilis; the cautious date uses the NHS "up to 7 weeks". Work out your own dates

Possible HIV exposure in the last 72 hours? Don’t wait to test. Post-exposure prophylaxis (PEP) is an emergency treatment that must be started within 72 hours. Go to urgent care or an emergency room now and ask for PEP. Test later.

There is no single waiting time that works for every STD. A test can only find an infection once there is enough of the germ, or enough of your body’s response to it, to detect. That gap is the window period, and it differs by infection and by test type.

How long after unprotected sex should I get tested?

The honest answer is “twice, if you want to be sure”: once soon, and once after the longest relevant window has passed. Here is how the main windows look, using CDC figures where CDC gives them.

  • HIV. CDC says a NAT can usually detect HIV 10 to 33 days after exposure, a lab blood test for antigens and antibodies 18 to 45 days, a finger-prick antigen/antibody test 18 to 90 days, and antibody tests (including home self-tests) 23 to 90 days.
  • Herpes blood test. CDC says repeat type-specific testing 12 weeks after the presumed time of exposure is indicated, because an earlier test can be falsely negative.
  • Hepatitis C. CDC says antibodies usually take 8 to 11 weeks to become detectable, and an RNA test can find the virus as early as 1 to 2 weeks after exposure.
  • Chlamydia, gonorrhea, trichomoniasis and syphilis. CDC does not publish one waiting time for these. The NHS says STIs can take up to 7 weeks to show on a test, and advises waiting that long if you have no symptoms. With symptoms, test now.

When in doubt, use the longer window. The full chart is on the window periods by infection page.

What should I do in the first 72 hours?

If the sex was with a partner who has HIV or whose status you don’t know, HIV is the time-sensitive risk. CDC says PEP is for emergencies and must be started within 72 hours, and its clinical guidance says to start as soon as possible, ideally within 24 hours. A clinician decides whether PEP makes sense for your exposure.

Pregnancy is also time-sensitive if you could become pregnant. Emergency contraception is time-limited too. Women’s Health (a US government site) says some pills work within three days of sex and others within five, so ask a pharmacist or clinician promptly. It does not protect against STIs.

Should I test now or wait?

Do both, if you can:

  1. Test now if you have symptoms, or want to know where you stand. A result now mostly reflects older infections, not this exposure.
  2. Test again after the window passes. CDC says that after a possible HIV exposure, a negative result should be followed by another test once the window period for that test has passed.

If you are on PEP, CDC says follow-up HIV testing is at 4 to 6 weeks and 12 weeks.

What if I tested negative too early?

A negative inside the window isn’t a clearance. It means nothing was found yet. Repeat the test after the window for that infection. If you can’t tell which window applies, choose the later one, and ask a clinician if you are unsure.

Which test should I ask for?

For most exposures a mix works: a urine or swab test for chlamydia and gonorrhea, blood tests for HIV, syphilis and hepatitis, and a swab for any throat or rectal exposure. If you are unsure, the test finder on this site helps you pick, and a clinician can tailor it to your sex and the body sites involved.

Where can I get tested?

A clinic, urgent care, doctor’s office or health department can all test. The CDC’s GetTested site finds free or low-cost, confidential options. You can also order online and visit a partner lab, which is covered on our other pages. Whichever route you take, tell them the date of the exposure so they can pick the right test.

Get care now if

  • You may have been exposed to HIV in the last 72 hours. Go to an emergency room or urgent care now and ask for PEP.
  • You were sexually assaulted. Seek urgent care promptly and ask about PEP and other preventive care.
  • Severe pelvic, lower belly or testicular pain
  • A fever, new rash or sores after a possible exposure

Call 911 for a medical emergency. Otherwise, an urgent care clinic, sexual health clinic or your doctor can see you.

When to test

  1. Within 72 hours, if HIV is a concernCare first, test later. Go to an emergency room or urgent care now and ask about PEP. The CDC says it must start within 72 hours of exposure and that every hour counts.
  2. Right away, if you have symptomsDon't wait out a window period. Get tested now, and expect that a clinician may suggest repeating the test later.
  3. About 6 to 7 weeks after sexA good point to test for most infections if you have no symptoms. The NHS says STIs can take up to 7 weeks to show on a test, and by 45 days a lab HIV test can usually detect HIV (CDC).
  4. About 3 months (12 to 13 weeks) after sexThis closes the longer windows. CDC says HIV antibody and finger-prick tests can take up to 90 days, and a herpes blood test may need repeating 12 weeks after a possible exposure.

Common questions

Can I test the next day after unprotected sex?

A test the next day can't rule anything out, because no STD test can find an infection that fast. Do go to care now if HIV is a worry, since PEP must start within 72 hours. For other infections, plan a test at the time points above, or sooner if you have symptoms.

If I test negative early, do I need to test again?

Usually yes. For HIV, CDC says to test again after the window period for the test you took has passed. A negative result only covers exposures older than the test's window.

Do I need to wait for symptoms before testing?

No. The NHS says many STIs have no symptoms, so you can have one and pass it on without knowing. Test on the schedule above, and sooner if symptoms appear.

What if I'm not sure which date to use?

Use the date of your most recent unprotected sex, and if you have had more than one partner or exposure since your last test, count from the latest. The window-period calculator on this site works out dates for you.

Next: match the test to what happened.

The test finder suggests tests and dates in under a minute. Nothing you enter is stored.

Sources

This guide is general information written by a patient advocate using public health sources. It is not a diagnosis. Only a clinician or a lab test can tell you whether you have an infection. Read how we write and check our guides.