How Long After STD Treatment Can You Have Sex? A Doctor’s Timeline

Published: Updated: Last reviewed: 7 min readDr. Michael Thompson
Doctor reviewing a treatment timeline with a patient after an STI diagnosis.
On this page

It depends on the infection. For chlamydia and gonorrhea, wait 7 days after single-dose treatment, or until you finish a 7-day course, and until partners are treated. For trichomoniasis, wait until you and your partners finish treatment and symptoms clear. For syphilis and herpes, wait until sores fully heal. With HIV, an undetectable viral load prevents sexual transmission.

"When can I have sex again?" is usually the second question patients ask me after "How did I get this?" There's no single universal number, and getting it wrong in either direction matters. Resuming too early risks passing the infection on or getting it right back from an untreated partner. Waiting longer than needed adds stress without any health benefit. Below is the timeline I walk patients through, infection by infection, based on current CDC guidance.

InfectionWhen it's generally safe to resume sexFollow-up testing
Chlamydia
7 days after single-dose treatment, or after finishing a 7-day doxycycline course and symptoms resolve; partners treated
Retest about 3 months later
Gonorrhea
7 days after treatment; partners treated
Retest about 3 months later; test of cure 7–14 days after treatment for throat infection
Trichomoniasis
After you and your partners finish treatment and symptoms resolve
Women: retest about 3 months later
Syphilis
After treatment and once all sores or rash have fully healed; ask your clinician
Blood tests at 6 and 12 months
Herpes
Once sores fully heal; avoid sex during warning symptoms too
No cure test; suppressive therapy can lower transmission
HIV
Undetectable viral load on treatment prevents sexual transmission (usually reached within 6 months)
Regular viral load checks

Sources: CDC STI Treatment Guidelines (2021); HIV.gov. Your clinician may adjust this advice for your situation.

Chlamydia and Gonorrhea: 7 Days

For chlamydia, the CDC's 2021 guidelines say to avoid sex for 7 days after single-dose treatment, or until you've completed a 7-day course and your symptoms are gone. Since the recommended treatment for most adults is a 7-day course of doxycycline, that usually means no sex until you've taken the last dose. For gonorrhea, the CDC guidance is to avoid sex for 7 days after treatment. "Sex" here includes oral and anal sex.

The partner rule matters just as much as the clock:

  • Partners from the last 60 days before your symptoms or diagnosis should be tested and treated.
  • Wait until they've finished treatment too. If an untreated partner still has the infection, you can get it right back.
  • Retest about 3 months later. The CDC notes that most infections after treatment are reinfections, not treatment failures.

For more detail on chlamydia specifically, see sex after chlamydia treatment and our chlamydia treatment guide. For gonorrhea, see the complete gonorrhea treatment guide.

Syphilis: Until Sores Are Fully Healed

Syphilis spreads through direct contact with a sore or rash. The CDC guidelines note that sexual transmission is thought to happen only when these skin or mucous membrane lesions are present. In practice, I advise patients to wait until treatment is complete and every sore, rash, or mouth patch has fully healed. Partners exposed in the 90 days before diagnosis of early syphilis should be treated even if their blood test is negative.

Follow-up is part of the plan. The CDC recommends repeat blood tests at 6 and 12 months after treatment to confirm the infection responded. Read more in our guide to current CDC syphilis treatment guidelines.

Herpes: Until the Outbreak Resolves

During an outbreak, avoid all sexual contact until the sores have completely healed and the skin looks normal again. The CDC herpes guidelines also advise avoiding sex when warning signs such as tingling, burning, or pain appear, because an outbreak may be starting.

Herpes is a lifelong infection, so there's no "all clear" date. The virus can spread even without symptoms, especially in the first year after infection. To lower the risk in an ongoing relationship:

  • Daily suppressive antiviral medicine lowers the chance of passing herpes to a partner.
  • Condoms reduce, but don't eliminate, transmission.
  • Avoid sex during outbreaks and warning symptoms.

See how long a herpes outbreak lasts for typical healing times.

HIV: U=U Applies

For HIV, the question isn't "how many days," but "is my viral load undetectable?" According to HIV.gov, people who take HIV medicine as prescribed and keep an undetectable viral load do not pass HIV to partners through sex. This is known as Undetectable = Untransmittable, or U=U. Most people reach an undetectable level within six months of starting treatment.

Until then, condoms and PrEP for HIV-negative partners are the main protection. Keep in mind that U=U prevents only HIV, not other STIs.

Trichomoniasis: Until You and Your Partners Finish Treatment

The CDC trichomoniasis guidelines advise avoiding sex until you and your partners have completed treatment and any symptoms have resolved. Women usually take a 7-day course of metronidazole; men usually take a single dose. Your provider will determine the right regimen and dose.

Reinfection is common, so treating all partners at the same time is vital. The CDC recommends that women be retested about 3 months after treatment. Our trichomoniasis treatment guide explains more.

When to Seek Urgent Care

Go to the ER immediately if you have:

  • Severe pelvic or lower belly pain with fever, nausea, or vomiting after chlamydia or gonorrhea treatment
  • Sudden, severe testicular pain or swelling
  • Fever with painful, swollen joints or a rash of small red spots or pus-filled bumps
  • New vision changes, severe headache, or confusion with known syphilis

See a clinician within 24 hours if:

  • Your symptoms come back or get worse after finishing treatment
  • A partner tells you they tested positive after you've already resumed sex
  • Syphilis sores haven't healed several weeks after treatment
  • You had a possible HIV exposure: PEP must be started within 72 hours, according to the CDC

Frequently Asked Questions

How long after chlamydia treatment can you have sex?

Wait 7 days after a single-dose treatment, or until you've finished the full 7-day doxycycline course and symptoms have cleared. Your partners also need to finish their treatment before you have sex again, or you can be reinfected. I recommend retesting about 3 months later.

If I feel completely better, can I have sex sooner?

No. Feeling better doesn't mean the infection is gone or that you can't pass it on. Symptoms often fade before treatment is finished. Stick to the full waiting period for your infection.

Do I need to use condoms once treatment is finished?

After you and your partner have both been treated for a curable infection like chlamydia, gonorrhea, or trichomoniasis, condoms aren't required to prevent that same infection. They're still a good idea with new or untested partners. With herpes or HIV, ongoing protection steps still apply.

What if my partner refuses to get tested or treated?

This is a real clinical and relationship problem. Having sex with an untreated partner makes reinfection very likely. Expedited partner therapy (EPT), where your clinician gives you medicine to pass on, is legal in most states for chlamydia and gonorrhea, according to the CDC. Our guide to telling a partner may help with the conversation.

Can I have sex while taking antibiotics for an STD?

No. You can still pass the infection on during treatment, and your partner can reinfect you. Wait until treatment is finished and the recommended waiting period has passed. If you're unsure about retesting, see when to retest after STD treatment.

Ready to confirm you're in the clear? Order a private follow-up STD test, or find local testing in Los Angeles, Dallas, Tampa, Columbus, and Las Vegas.

This article is for informational purposes only and does not replace advice from your healthcare provider.

Dr. Michael Thompson is an expert in sexually transmitted diseases with extensive clinical and research experience. He leads campaigns advocating for early diagnosis and prevention of diseases like HIV and gonorrhea. He collaborates with local organizations to educate both youth and adults about sexual health.