
Prevention & transmission
How to Prevent STDs: What Actually Works and Why
Published: Updated: Last reviewed: 7 min readDr. Michael Thompson

On this page ⌄
The most effective way to prevent STDs is to layer several methods: use condoms correctly every time, get vaccinated against HPV and hepatitis B, test regularly with your partners, and limit partners whose status you don't know. If you're at higher risk for HIV, PrEP adds strong protection. Only abstinence removes the risk completely.
Patients often ask me for the single best way to avoid STDs. The honest answer is that no one method covers everything. Each tool protects against some infections better than others, and the real protection comes from combining them. The good news is that the habits that work are simple, and most people can build them into their lives without much effort.
STDs remain very common. According to the CDC's provisional 2024 surveillance data, more than 2.2 million cases of chlamydia, gonorrhea, and syphilis were reported in the U.S. in 2024. That's down about 9% from 2023, but still a large number, and many infections are never diagnosed.
Which STD Prevention Methods Actually Work?
| Method | Best protection against | Limits |
|---|---|---|
| Method Condoms (external or internal) | Best protection against HIV, gonorrhea, chlamydia, trichomoniasis | Limits Less protection for herpes, HPV, and syphilis, which spread by skin contact |
| Method HPV vaccine | Best protection against HPV types that cause most genital warts and HPV-related cancers | Limits Doesn't protect against other STDs |
| Method Hepatitis B vaccine | Best protection against Hepatitis B | Limits Doesn't protect against other STDs |
| Method Regular testing | Best protection against Stops the spread of infections you didn't know you had | Limits Doesn't prevent infection on its own |
| Method PrEP | Best protection against HIV | Limits No protection against other STDs or pregnancy |
| Method Doxy-PEP | Best protection against Syphilis, chlamydia, and in some studies gonorrhea | Limits Recommended only for specific groups (see below) |
| Method Fewer partners / mutual monogamy with a tested partner | Best protection against All STDs | Limits Works only if both partners were tested and stay monogamous |
Sources: CDC – How to Prevent STIs (2026); CDC – Condom Use; CDC – PrEP; CDC – Doxy PEP guidance (2024).
How Do I Use Condoms the Right Way?
Condoms are still the most practical everyday tool. The CDC's condom use overview states that consistent use is highly effective at preventing HIV and protects against infections spread through genital fluids, such as gonorrhea and chlamydia. Protection is lower for infections spread by skin-to-skin contact, because a condom doesn't cover every area.
In my experience, condoms rarely fail on their own. Most "failures" are about how they're used. A few rules make a big difference:
- Use a new condom for every act of vaginal, anal, or oral sex, from start to finish.
- Pinch the tip to leave space, and unroll it all the way to the base.
- Use only water- or silicone-based lubricant with latex. Oil-based products weaken latex.
- Hold the rim when withdrawing, and use a fresh condom if one breaks.
- Consider internal condoms, which the receptive partner can insert ahead of time, and dental dams for oral sex. See our practical guide to dental dams.
Which Vaccines Help Prevent STDs?
Two vaccines directly prevent sexually transmitted infections:
- HPV vaccine: the CDC recommends routine vaccination at ages 11–12, starting as early as 9, with catch-up through age 26. Some adults aged 27–45 may choose vaccination after talking with a clinician, although the benefit is smaller because many have already been exposed.
- Hepatitis B vaccine: recommended for unvaccinated adults, and especially important for sex partners and household contacts of someone with hepatitis B.
Our overview of vaccines that help prevent STDs covers schedules, and what is HPV? explains why the vaccine matters even if you're already sexually active.
How Often Should I Get Tested?
Testing is prevention, because most chlamydia and gonorrhea infections cause no symptoms. When you find and treat an infection, you stop passing it on. The CDC recommends yearly chlamydia and gonorrhea screening for sexually active women under 25, and more frequent testing for people with new or multiple partners and for gay and bisexual men. Our CDC-backed testing guide lays out the schedule by group.
I always tell patients to test together with a new partner before stopping condoms, and to share results. If either of you tests positive, both of you should be treated and wait until treatment is finished before having sex again, so you don't pass the infection back and forth.
Should I Consider PrEP or Doxy-PEP?
PrEP is medication taken to prevent HIV, either as daily pills or as an injection. The CDC's PrEP page says it greatly reduces the chance of getting HIV from sex or injection drug use. Oral PrEP reaches maximum protection after about 7 days of daily use for receptive anal sex and about 21 days for receptive vaginal sex. PrEP doesn't protect against other STDs. Learn more in our guide to preventing HIV.
Doxy-PEP is a single dose of the antibiotic doxycycline taken within 72 hours after sex. The CDC's doxy-PEP guidance recommends discussing it with gay and bisexual men and transgender women who have had a bacterial STI in the past 12 months. There isn't enough evidence yet to recommend it for cisgender women. Your clinician will decide whether it fits and what dose to prescribe.
What Doesn't Prevent STDs?
Some common beliefs give people false confidence:
- Withdrawal ("pulling out"): STDs spread through pre-ejaculate and skin contact, not just semen.
- Washing, urinating, or douching after sex: none of these reliably removes infection, and douching can irritate tissue.
- Leftover antibiotics: random doses don't prevent STDs and can make later testing harder to interpret.
- "I'd know if I had something": many infections cause no symptoms for months or years.
- Hormonal birth control: it prevents pregnancy, not infection.
Key point: If a condom breaks or you had sex with someone whose status worries you, time matters. HIV PEP must start within 72 hours. Our guide to what to do in the first 72 hours after STD exposure walks you through it.
When to Seek Urgent Care
Go to the ER or urgent care immediately if:
- You had a possible HIV exposure (condom break, sexual assault, shared needles) in the last 72 hours and need PEP
- You have severe pelvic or abdominal pain with fever
- You have sudden, severe testicular pain or swelling
See a clinician within 24 hours if:
- A partner tells you they tested positive for an STD
- You notice discharge, burning when you urinate, sores, or a new rash
- You're pregnant and think you may have been exposed
Frequently Asked Questions
Which STD prevention method is most effective?
No single method works best for every infection. Condoms protect well against infections spread through fluids, vaccines are the most effective protection against HPV and hepatitis B, and PrEP is a highly effective option for HIV. Combining methods, plus regular testing, gives the strongest protection.
Can I rely on withdrawal to prevent STDs?
No. Infections can spread through pre-ejaculate and skin-to-skin contact long before ejaculation. Withdrawal offers no meaningful STD protection.
If I'm vaccinated against HPV, do I still need condoms?
Yes. The HPV vaccine covers the types that cause most warts and HPV cancers, but not every type, and it doesn't protect against any other STD. People with a cervix still need routine cervical screening after vaccination.
Does PrEP protect against all STDs?
No. PrEP protects only against HIV. People on PrEP should keep using condoms for broader protection and get tested for other STDs regularly, as their clinician recommends.
Is it safe to stop using condoms with a long-term partner?
It can be, if you both test first, share results, treat anything that's found, and agree to be monogamous. Some infections, like herpes, aren't on standard panels, so talk with your clinician about what makes sense for you.
Prevention starts with knowing where you stand. Order a private STD test and share results with your partner.
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.



