How to Not Get STDs: Condoms, Vaccines, and More

Avoiding sexually transmitted infections comes down to layering several strategies together, because no single method eliminates all risk. Globally, there are an estimated 374 million new infections each year from just four curable STIs (chlamydia, gonorrhea, syphilis, and trichomoniasis), so the threat is real regardless of age, gender, or orientation. Here’s what actually works and how to combine these tools for the strongest protection.

Condoms Work, but They Have Gaps

Condoms are still the single most effective barrier method during sex. They significantly reduce transmission of HIV, chlamydia, and gonorrhea when used correctly every time. But they don’t cover all exposed skin, which matters for infections that spread through skin-to-skin contact like herpes (HSV-2) and HPV.

Herpes is a good example of this limitation. Condoms cover the shaft of the penis but leave vulvar and perianal areas exposed, which are common sites of viral shedding in women. Research on discordant couples (one partner positive, one negative) found that condoms markedly reduced a woman’s risk of acquiring HSV-2 from a male partner, but did not significantly protect men from acquiring it from a female partner, precisely because of that skin left uncovered. HPV follows a similar pattern: it can live on genital skin that a condom doesn’t reach.

This doesn’t mean condoms aren’t worth using. They are. It means condoms are one layer in a larger strategy, not the whole strategy.

Get Vaccinated Against HPV and Hepatitis B

Two STIs have highly effective vaccines, and getting them is the easiest prevention step you can take.

The 9-valent HPV vaccine protects against nine strains of human papillomavirus, including the ones responsible for most cervical cancers, genital warts, and several other cancers. In clinical trials, the vaccine showed roughly 88% efficacy against persistent infection and related lesions in women aged 27 to 45, and over 99% of women in both younger and older age groups developed antibodies to all nine targeted strains. The CDC recommends routine HPV vaccination at age 11 or 12, with catch-up vaccination through age 26. If you’re between 27 and 45 and weren’t vaccinated earlier, you can still get it through a shared decision with your provider. The vaccine is not approved for adults over 45.

Hepatitis B vaccination is part of the standard childhood schedule but worth checking if you missed it. A simple blood test can confirm whether you have immunity.

PrEP for HIV Prevention

Pre-exposure prophylaxis, or PrEP, is a prescription medication that prevents HIV infection before exposure. It’s available as a daily oral pill or as a long-acting injection given every two months. When taken consistently, daily oral PrEP reduces HIV risk by about 99%. The injectable form has shown similar or superior effectiveness in clinical trials, and it removes the challenge of remembering a daily pill.

PrEP is specifically for HIV. It does nothing against other STIs. But for anyone at elevated risk of HIV, whether through partner status, number of partners, or type of sex, it’s one of the most powerful prevention tools available.

Doxy-PEP for Bacterial STIs

A newer tool called doxy-PEP uses a single dose of the antibiotic doxycycline taken within 72 hours after sex to prevent bacterial STIs. The CDC issued clinical guidelines for it in 2024. The recommended dose is 200 mg taken as soon as possible after exposure, with a maximum of 200 mg in any 24-hour period.

The results from clinical trials are striking. Across multiple studies, doxy-PEP reduced chlamydia infections by 70% to nearly 90%, syphilis by roughly 73% to 79%, and gonorrhea by about 50% to 55%. Gonorrhea protection was lower, likely due to growing antibiotic resistance in that organism. Current CDC guidelines recommend doxy-PEP primarily for men who have sex with men and transgender women who have had a bacterial STI in the past 12 months. If you think you might benefit, it’s worth asking about.

Fewer Partners and Mutual Monogamy

The math is simple: every additional sexual partner increases your cumulative exposure. Research on herpes transmission found that each additional sex act per week increased the likelihood of acquiring HSV-2, and younger age further amplified that risk. Reducing the total number of partners you have, especially concurrent ones, lowers your odds.

Mutual monogamy, where both partners have tested negative and neither has outside sexual contact, is one of the lowest-risk arrangements possible. The key word is “mutual.” Serial monogamy (one exclusive partner after another) still carries risk if you’re not testing between relationships, because some infections have no symptoms for weeks or months.

Interestingly, research from a large national survey found that people in openly non-monogamous relationships actually used condoms significantly more often than people in monogamous ones and were two to three times more likely to get tested for STIs. People in monogamous relationships reported the lowest condom use for vaginal sex. The takeaway isn’t that monogamy is risky. It’s that people in monogamous relationships often drop their guard on testing and barriers, which becomes a problem if the relationship isn’t actually exclusive on both sides.

Regular Testing and Window Periods

Many STIs cause no symptoms at all, especially in the early stages. Chlamydia and gonorrhea are frequently silent in women. Syphilis can present as a painless sore that heals on its own before the infection progresses. HIV may cause only mild flu-like symptoms weeks after infection. Without testing, you can carry and transmit an infection for months without knowing.

How often you should test depends on your situation. If you have new or multiple partners, testing every three to six months is reasonable. If you’re entering a new monogamous relationship, both partners getting a full panel before dropping condoms gives you a real baseline.

Timing matters because every infection has a window period, the gap between exposure and when a test can reliably detect it:

  • Chlamydia: Detectable in most cases at 1 week, nearly all by 2 weeks
  • HIV (blood antigen/antibody test): Catches most infections at 2 weeks, nearly all by 6 weeks
  • HIV (oral swab): Catches most at 1 month, nearly all by 3 months
  • Syphilis: Catches most at 1 month, nearly all by 3 months
  • Hepatitis C: Catches most at 2 months, nearly all by 6 months

If you test too early after a possible exposure, you can get a false negative. If you’re concerned about a specific encounter, the safest approach is to test at the earliest reliable window and then retest at the outer window to confirm.

Talking to Partners Before Sex

This is the step most people skip, and it’s one of the most effective. A direct conversation about STI status and recent testing before sex gives both of you information you need to make real decisions about risk.

Research on disclosure consistently finds that most people believe the right time to share STI status is before first having sex, not after. The biggest barriers to honesty are fear of embarrassment and rejection. People are far more likely to disclose when they feel the conversation is happening in a safe, nonjudgmental environment.

You don’t need a script. A straightforward approach works: “When were you last tested? What were you tested for? Here’s my situation.” Asking the question normalizes it. If a partner reacts badly to a reasonable conversation about sexual health, that’s useful information too.

Layering Protection Together

No single method is 100% effective against all STIs. The strongest approach combines several layers based on your circumstances. Someone with multiple partners might use condoms consistently, take PrEP for HIV, stay current on HPV vaccination, test regularly, and discuss doxy-PEP with their provider. Someone entering a new relationship might get a full STI panel together, confirm HPV vaccination, and use condoms until results are back.

The specific combination depends on your life, your partners, and the types of sex you’re having. Oral sex carries lower but real risk for gonorrhea, syphilis, and herpes. Anal sex carries higher risk for most infections than vaginal sex. Knowing which activities carry which risks lets you choose your layers intelligently rather than relying on a single tool and hoping for the best.