Preventing STDs comes down to a layered approach: barrier methods, vaccines, medication, testing, and honest conversations with partners. No single strategy is perfect on its own, but combining several of them dramatically lowers your risk. Here’s what actually works, how well it works, and how to put it into practice.
Condoms: Strong Protection With Limits
External (male) condoms reduce HIV transmission by roughly 85% when used consistently and correctly, and they offer more than 90% protection against gonorrhea in ideal use. For chlamydia, the picture is a bit messier: studies show anywhere from 33% to 90% risk reduction depending on the population studied and how consistently people used them. The takeaway is that condoms are highly effective against infections transmitted through bodily fluids (HIV, gonorrhea, chlamydia), but less so against infections spread by skin-to-skin contact.
That skin-to-skin category includes herpes, syphilis, and HPV. Condoms only protect the area they cover, so if a sore, ulcer, or infected patch of skin sits outside that zone, transmission can still happen. The CDC describes condom protection against these infections as “limited.” This doesn’t mean condoms are useless for herpes or syphilis. They still reduce risk. But they can’t eliminate it the way they nearly can for HIV.
For condoms to do their job, they need to go on before any genital contact, stay on the entire time, and be used with compatible lubricant (water- or silicone-based for latex). Internal (female) condoms and dental dams offer similar barrier protection for vaginal and oral sex, respectively.
Vaccines That Eliminate Risk
Two STDs have highly effective vaccines: HPV and hepatitis B.
The HPV vaccine is routinely recommended at age 11 or 12, though it can start as early as 9. If you start the series before turning 15, you only need two doses spaced 6 to 12 months apart. Starting at 15 or older requires three doses over six months. The vaccine protects against the strains of HPV responsible for most cervical cancers, genital warts, and several other cancers. Catch-up vaccination is recommended through age 18, and adults up to 26 (sometimes older, after discussing with a provider) can still benefit.
Hepatitis B vaccination typically happens in infancy as a three-dose series, but if you missed it, catch-up options exist for adolescents and adults. Teens aged 11 to 15 can complete a two-dose schedule, and adults 18 and older have several approved options, including a two-dose series spaced at least four weeks apart. If you’re unsure whether you were vaccinated as a child, a blood test can check your immunity.
PrEP: Daily or Injectable HIV Prevention
Pre-exposure prophylaxis, or PrEP, is a medication regimen for people who don’t have HIV but are at higher risk of getting it. Taken as a daily pill, PrEP reaches maximum protection for receptive anal sex after about 7 days. For vaginal sex and injection drug use, it takes about 21 days of daily use to reach full effectiveness. An injectable form is also available, given every two months, though researchers haven’t yet pinpointed how quickly the shot reaches peak protection.
PrEP is specifically for HIV. It does nothing against other STDs like gonorrhea or chlamydia, which is why it works best as one layer in a broader prevention strategy.
PEP: Emergency HIV Prevention
If you’ve had a potential HIV exposure (a condom broke, you had unprotected sex with someone whose status you don’t know, or you shared injection equipment), post-exposure prophylaxis can prevent infection. PEP must be started within 72 hours of exposure, and the sooner the better. It’s a 28-day course of antiretroviral medication. After 72 hours, it’s no longer recommended because effectiveness drops significantly. Think of PEP as an emergency option, not a routine strategy.
Doxy-PEP: A Newer Option for Bacterial STDs
In 2024, the CDC released guidelines for doxycycline post-exposure prophylaxis, commonly called doxy-PEP. It works like this: you take a single 200 mg dose of the antibiotic doxycycline within 72 hours after having oral, vaginal, or anal sex. Across three large clinical trials, this approach reduced syphilis and chlamydia infections by more than 70% and gonorrhea infections by about 50%.
Doxy-PEP is currently recommended for men who have sex with men and transgender women who’ve had a bacterial STD in the past year or are on HIV PrEP. It’s not a blanket recommendation for everyone, partly due to concerns about antibiotic resistance with widespread use. If you think you’re a candidate, it’s worth bringing up at your next sexual health visit. The maximum dose is 200 mg in any 24-hour period.
Regular Testing Catches What Prevention Misses
Many STDs produce no symptoms at all, especially in the early stages. Chlamydia and gonorrhea are notorious for this. Routine testing is the only way to know your status and avoid unknowingly passing an infection to someone else.
How often you should test depends on your risk level. Men who have sex with men are advised to screen for chlamydia, gonorrhea, syphilis, and HIV at least once a year, with every 3 to 6 months recommended for those on PrEP, living with HIV, or with multiple partners. People with HIV should be screened at their first evaluation and annually thereafter, including for hepatitis C and trichomonas (for women). Sexually active women under 25 are generally advised to test for chlamydia and gonorrhea annually.
Timing matters, too. Tests taken too soon after exposure can miss an infection entirely. For HIV, a blood test (antigen/antibody method) catches most infections by 2 weeks, with near-complete accuracy by 6 weeks. An oral swab takes longer: most infections are detectable at 1 month, with almost all caught by 3 months. Syphilis blood tests follow a similar timeline, catching most cases by 1 month and nearly all by 3 months. Hepatitis C takes the longest: 2 months catches most infections, but full confidence requires waiting 6 months.
Undetectable Equals Untransmittable
If your partner is living with HIV and maintaining an undetectable viral load through treatment, the risk of sexual transmission is zero. This isn’t a rough estimate. Multiple large studies have confirmed that people with HIV who stay on effective treatment and keep their viral load undetectable cannot transmit the virus to sexual partners. The concept, known as U=U, is endorsed by the CDC and major public health organizations worldwide.
This means a partner’s HIV-positive status, by itself, doesn’t tell you much about risk. What matters is whether they’re on treatment and their viral load is suppressed. Asking about this directly is a reasonable and important part of any conversation about sexual health.
Partner Communication and Treatment
Prevention doesn’t happen in isolation. Talking openly with partners about testing, status, and protection methods is one of the most effective (and most overlooked) tools available. If you test positive for a bacterial STD, notifying recent partners allows them to get treated before they spread the infection further or pass it back to you.
Expedited partner therapy makes this easier. It allows your provider to prescribe treatment for your sexual partner without requiring them to come in for a separate exam. A meta-analysis of randomized trials found that this approach reduces reinfection rates by 20 to 29%, depending on the infection, and results in more partners actually getting treated compared to simply asking patients to tell their partners to visit a clinic.
Layering Methods for Real-World Protection
No single method covers every STD in every situation. Condoms are excellent for HIV but imperfect for herpes. Vaccines eliminate HPV risk but don’t touch chlamydia. PrEP handles HIV but nothing else. The most effective approach combines several layers based on your specific situation: condoms plus vaccination, or PrEP plus regular testing plus doxy-PEP, for example.
Think of it less like choosing the “right” method and more like building a kit. Your kit might look different from someone else’s depending on the types of sex you’re having, the number of partners, and what infections are most common in your community. The goal isn’t perfection. It’s reducing risk enough that the math works in your favor, consistently, over time.