Lab results in 1–2 days 4,500+ partner labs in the US
Independent guide · Fact-checked against CDC guidance
Which test do I need?
Guide

STD Testing After Unprotected Sex: What to Do and When to Test

Fact-checked against CDC and HIV.gov guidanceLast checked Nov 9, 2026By the Editorial Desk
Calendar with one date circled next to a phone, planning when to get tested
On this page
  1. How big was the risk after unprotected sex?
  2. What should I do in the first 72 hours?
  3. Which STD tests do I need after unprotected sex?
  4. What day should I test after unprotected sex?
  5. What symptoms should I watch for in the meantime?
  6. Should I talk to my partner?
  7. What does STD testing after unprotected sex cost?
  8. FAQ

STD testing after unprotected sex starts with one urgent step, and it is only for HIV. If there was a real HIV risk, ask about PEP at an ER or urgent care within 72 hours. Test for chlamydia and gonorrhea about 2 weeks later, take a lab HIV test at 45 days, and check syphilis by 90 days. If you get symptoms, see a clinic right away.

Possible HIV exposure in the last 72 hours? No test can find HIV this soon. Go to an ER or urgent care today and ask about PEP, medicine that can prevent HIV if it is started quickly.

What to do, in short

  • First 72 hours: PEP if HIV is a real risk. Emergency contraception if pregnancy is possible. Ask a clinician about doxy-PEP and the hepatitis B vaccine if they fit you.
  • Day 14: chlamydia and gonorrhea test, with a throat or rectal swab if you had oral or anal sex.
  • Day 45: lab HIV test and syphilis, or a full panel.
  • Day 90: syphilis again if the risk was high.
  • Any day: symptoms mean a clinic visit now, not a calendar date.

How big was the risk after unprotected sex?

The HIV risk from one act of unprotected sex is usually much lower than people fear, but chlamydia and gonorrhea pass much more easily, so testing still matters. Most people who search this are scared, and many are more scared than they need to be. So it helps to put the risk in real numbers.

For HIV, the CDC estimates the chance of getting HIV from one act of sex with a partner who has HIV and is not on treatment, with no condom:

Type of sex Risk per 10,000 acts About 1 in
Receptive anal sex (bottom) 138 72
Insertive anal sex (top) 11 909
Receptive vaginal sex 8 1,250
Insertive vaginal sex 4 2,500
Oral sex, giving or receiving Low Too low to measure well

Source: CDC HIV Risk and Prevention Estimates, based on Patel and others, AIDS, 2014.

Two things matter here. First, these numbers are for a partner who has HIV. Most people in the US do not have HIV, so if you do not know your partner’s status, your real risk is usually much lower than the table. Second, the risk goes up a lot if the partner has a new HIV infection, and it falls to almost zero if the partner has HIV but is on treatment with an undetectable viral load.

Other STDs are different. Chlamydia, gonorrhea and trichomoniasis pass much more easily in one act of sex than HIV does, and oral sex can pass gonorrhea, syphilis and herpes. So even when the HIV risk is small, testing for the other STDs still makes sense. You can read more on the chlamydia, gonorrhea, syphilis and HIV pages.

What should I do in the first 72 hours?

In the first 72 hours after unprotected sex, only a few things cannot wait. These are PEP if HIV is a real risk, emergency contraception if pregnancy is possible, and a talk with a clinician about doxy-PEP and the hepatitis B vaccine if they apply to you. Everything else can follow the test calendar.

  1. Decide about PEPIf your partner has HIV or might have it, and it was anal or vaginal sex without a condom, go to an urgent care or ER and ask about PEP. It must start within 72 hours, and CDC guidance says ideally within 24. Many ERs can start PEP, but not every ER or urgent care keeps it in stock, so call ahead if you can and go to a sexual health clinic or a larger hospital if the first place cannot help in time.
  2. Think about pregnancyEmergency contraception works best the sooner it is taken. Levonorgestrel tablets (like Plan B) are sold over the counter and are labeled for use within 72 hours. Ulipristal (ella) needs a prescription and works up to 5 days. A copper IUD placed within 5 days is the most effective option.
  3. Ask about doxy-PEPDoxy-PEP is the antibiotic doxycycline taken within 72 hours after sex to lower the risk of syphilis, chlamydia and gonorrhea. The CDC recommends it for gay and bisexual men and transgender women who had one of these infections in the past 12 months. For cisgender women and heterosexual men, the CDC makes no recommendation either way, because the evidence is limited. A clinician decides if it fits you.
  4. Check your hepatitis B vaccineIf you were never vaccinated and your partner may have hepatitis B, the vaccine, and sometimes a medicine called HBIG, works best within 24 hours. For sex, HBIG should not be given later than 14 days after. See the hepatitis B page for more.
  5. Write down the dateEvery test window counts from this day. Put it in the calculator below.
  6. Do not test for this exposure yetA test today only shows infections from earlier sex. It cannot see this one yet.
  7. Protect partners for nowUse condoms with your regular partner until your tests are done, so nothing passes on if you did get an infection.

Treatment and dose are decided by a doctor or clinic, and this site does not give treatment advice.

Which STD tests do I need after unprotected sex?

The STD tests you need after unprotected sex depend on what kind of sex it was, because each test only checks the body site it samples. Oral and anal sex need swabs that a urine test cannot replace.

What happened Tests to plan Sample
Vaginal or penile sex Chlamydia and gonorrhea at day 14. HIV at day 45. Syphilis by day 90. Trichomoniasis for women or if symptoms. Urine, or a vaginal swab, plus blood
Receptive anal sex Same as above, plus rectal chlamydia and gonorrhea. Consider an early HIV RNA test, as the HIV risk is highest here. Rectal swab at a clinic, plus blood
Insertive anal sex Chlamydia and gonorrhea at day 14. HIV at day 45. Syphilis by day 90. Urine plus blood
Giving oral sex Throat gonorrhea and chlamydia at day 14. Syphilis by day 90. HIV risk is very low. Throat swab at a clinic, plus blood
Receiving oral sex Chlamydia and gonorrhea at day 14. Syphilis if a sore appears. Urine, plus blood if needed

Most online lab services collect urine and blood at a lab. Some home kits and other services do offer throat or rectal swabs, so check which body sites a test covers before you order. For a swab you cannot find online, a health department or sexual health clinic is the place, and many are free.

What day should I test after unprotected sex?

Each infection has its own window period, so there is no single best day. This calculator turns the date of the unprotected sex into a test date for each STD, with the first date a test can find an infection and the date a negative becomes reliable. You can print the dates.

May detectReliable
day 0306090120

Nothing you enter is stored or sent anywhere. A negative result before the reliable date should be repeated. Windows: CDC and HIV.gov.

For most people this works out to two lab visits, one around day 14 and one at day 45. At day 45 a full STD panel covers most things in one blood draw. If HIV is the main worry and you cannot wait, an HIV RNA test can give an early answer from day 10. The window period pages explain the timing for chlamydia, gonorrhea, syphilis and HIV, and the when to test hub lists them all.

Partner link. We earn a commission if you order. It does not change our advice.

Order a chlamydia and gonorrhea test for day 14

Code 10OffOrder at STDcheck

What symptoms should I watch for in the meantime?

Burning when you pee, new discharge, a sore, belly or testicle pain, or a flu-like illness 2 to 4 weeks after sex are reasons to see a clinic without waiting for a test date. Many STDs cause no symptoms, so feeling fine does not mean you are clear. Watch for:

  • Burning when you pee, or new discharge from the penis or vagina, often 2 days to 3 weeks after sex.
  • A sore, blister or bump on the genitals, mouth or anus.
  • Pain in the belly, pelvis or testicles.
  • Fever, rash, sore throat or swollen glands 2 to 4 weeks after sex, which can be early HIV.

Our symptoms guide explains what each sign can mean and which test to take.

Should I talk to my partner?

Talking to the partner after unprotected sex is the fastest way to know your real risk, so if you can, yes. If your partner tested negative recently and has not had other partners since, your risk is much lower. If your partner has HIV and is on treatment with an undetectable viral load, they cannot pass HIV through sex. And if your partner tests positive for something, you can get treated sooner, sometimes even before your own result. The partner tested positive guide explains what happens then.

It can feel awkward, but it can be simple: “I am getting tested after we were together, would you also get tested?” Many health departments also offer free, anonymous partner notification if you do not want to have that talk yourself.

What does STD testing after unprotected sex cost?

STD testing after unprotected sex can be free at a health department clinic, often $0 with insurance for HIV screening, or paid at an online lab service. Three common routes are below.

  • Free: health department and Title X clinics, often with swabs and same-day treatment.
  • With insurance: HIV screening is covered at $0 for ages 15 to 65, and chlamydia screening for younger women. Other tests may have a copay.
  • Online lab service: Quest, Labcorp OnDemand and Everlywell all sell STD tests, and our partner prices start at chlamydia and gonorrhea from $105 (incl. $6 physician fee), a full panel from $145 (incl. $6 physician fee), and an HIV RNA test from $135 (incl. $6 physician fee).

The biggest money saver is timing. A test done too early often has to be paid for again. More on this in our cost guide and the page on free STD testing.

Prefer a free test?

Many health departments and community clinics offer free or low-cost STD and HIV testing.

Find free testing (CDC)

FAQ

How soon after unprotected sex can I get tested?

Chlamydia and gonorrhea from about 1 week, reliable at 2 weeks. HIV from day 10 with an RNA test, reliable at day 45 with a lab 4th generation test. Syphilis from about 1 month, reliable at 3 months.

Should I get tested the next day?

A test the next day cannot see this exposure. It only shows infections from earlier sex. The thing to do in the first 72 hours is PEP, if HIV is a real risk.

Is it worth testing 1 week after unprotected sex?

Only for chlamydia and gonorrhea, and only as an early check. Many infections show by day 7, but the reliable result is from day 14. For HIV, 1 week is too early for any test.

What are the chances of getting an STD from one time?

It depends on the infection, the type of sex and if your partner has it. For HIV, the CDC estimate for receptive vaginal sex with a partner who has HIV is about 1 in 1,250 per act. Chlamydia and gonorrhea pass much more easily, which is why testing matters even after one time.

Is oral sex without a condom risky?

The HIV risk from oral sex is very low. But gonorrhea, chlamydia, syphilis and herpes can pass through oral sex, and throat infections need a throat swab to be found.

Can I get PEP at urgent care?

Some urgent care centers can start PEP, and many ERs can, but not every one keeps it in stock. Call ahead if you can, and go to an ER or a sexual health clinic if urgent care cannot help within the 72 hours.

We both tested negative before. Do we still need to test?

If both of you tested after your last sex with anyone else, and each test was past its window period, you do not need new tests for sex with each other. If either test was too early, or there was another partner since, test again.

The condom broke. Is that the same as no condom?

For testing, yes, treat it the same way. Read our guide on what to do when the condom broke.

Can I have sex with my regular partner before my results?

It is safer to use condoms until your tests are done, especially until the day 45 results.

Sources

  1. CDC: HIV Risk and Prevention Estimates
  2. CDC HIV Risk Reduction Tool: About the Data
  3. HIV.gov: Post-Exposure Prophylaxis (PEP)
  4. CDC: Nonoccupational PEP Recommendations, 2025
  5. CDC: Clinical guidelines on doxycycline post-exposure prophylaxis, 2024
  6. CDC: Postexposure prophylaxis for hepatitis B, ACIP recommendations
  7. NIH LiverTox: Emergency Contraceptives
  8. American Family Physician: Emergency Contraception
  9. HIV.gov: HIV Testing Overview
  10. CDC: Getting Tested for STIs
  11. HIV.gov: Viral Suppression and an Undetectable Viral Load
  12. University of Oregon Health Center: STI Screening Timetable (CDC data)
How we checked this page
  • Every medical number on this page comes from the CDC, HIV.gov or another public health source listed under Sources.
  • We last checked the facts on Nov 9, 2026.
  • Written by the Editorial Desk. We are an independent guide, not a clinic, and no doctor reviews our pages. Our editorial policy.

Found something wrong or out of date? Tell us, and see our corrections log.