How Do You Get Sexually Transmitted Diseases?

Sexually transmitted diseases (also called sexually transmitted infections, or STIs) spread primarily through vaginal, anal, and oral sex. Some also pass through skin-to-skin contact, shared needles, or from parent to child during birth or breastfeeding. The specific route depends on the type of infection, and understanding the differences helps you assess your own risk more accurately.

Vaginal and Anal Sex

Vaginal and anal intercourse are the highest-risk activities for STI transmission. During these types of sex, body fluids like semen, vaginal secretions, and blood can pass between partners. Infections such as chlamydia, gonorrhea, HIV, hepatitis B, and trichomoniasis all travel through fluid exchange. The lining of the rectum is thinner and more prone to small tears than vaginal tissue, which is one reason anal sex carries a particularly high risk for HIV and other infections.

Condoms remain the most effective method for preventing most STIs during penetrative sex. They work by blocking the exchange of body fluids and creating a barrier against contact with infected secretions or sores. That said, condoms don’t cover all genital skin. Infections like herpes and HPV, which live on skin surfaces, can still spread through areas a condom doesn’t protect.

Skin-to-Skin Contact

Not every STI requires fluid exchange. Herpes (HSV) and HPV (the virus behind genital warts and certain cancers) spread through direct skin-to-skin contact. If someone has an active herpes sore or an HPV-infected area of skin, touching that area with your own skin can be enough to pick up the virus. This can happen during sex, but also during heavy petting or other intimate physical contact that doesn’t involve penetration.

Herpes is especially tricky because the virus can shed from the skin even when no visible sore is present. This is called asymptomatic shedding, and it’s a major reason herpes spreads so widely. HPV is similarly common. Most sexually active people will contract at least one strain of HPV at some point, though the body clears many infections on its own.

Oral Sex

Oral sex is lower risk than vaginal or anal sex for HIV, but it’s not low risk across the board. You can get chlamydia, gonorrhea, syphilis, herpes, HPV, and HIV through oral contact with a partner’s genitals. Gonorrhea of the throat, for instance, is a well-documented result of giving oral sex to an infected partner.

Oral-anal contact (sometimes called rimming) carries its own set of risks beyond traditional STIs. It can transmit hepatitis A and B, along with intestinal infections caused by bacteria like E. coli and Shigella, or parasites like Giardia. These aren’t always classified as STIs in the traditional sense, but they spread readily through this type of sexual contact.

Comparing the exact risk of oral sex to penetrative sex is difficult. Most people who have oral sex also have vaginal or anal sex, making it hard for researchers to isolate which activity caused a given infection. What is clear: oral sex is not a risk-free alternative.

Non-Sexual Routes

Several STIs can spread without sex. Sharing needles for drug injection, tattooing, or piercing transmits blood-borne infections like HIV, hepatitis B, and hepatitis C. A parent with an active infection can pass certain STIs to their baby during vaginal delivery. Herpes, gonorrhea, chlamydia, syphilis, and HIV can all transfer this way. HIV and, less commonly, hepatitis B can also transmit through breastfeeding.

Casual contact like hugging, sharing food, or sitting on a toilet seat does not spread STIs. These infections need specific conditions to survive and transfer, typically involving mucous membranes (the moist tissue lining the genitals, mouth, and rectum) or direct entry into the bloodstream.

Why Many STIs Go Unnoticed

One of the most important things to understand about STI transmission is that many infected people have no symptoms at all. Chlamydia is often called a “silent” infection because most people who carry it feel perfectly fine. Gonorrhea, HPV, herpes, and even HIV can all be present without obvious signs, sometimes for months or years.

Each infection has its own incubation period, the gap between exposure and the first possible symptoms. Chlamydia symptoms, if they appear, typically show up within 7 to 21 days. Gonorrhea can surface in as few as 1 to 14 days. Syphilis takes 10 to 90 days, with an average of about 21 days. Herpes sores usually appear within 2 to 12 days but can take months or even years to become noticeable. HIV may cause mild flu-like symptoms within 2 to 4 weeks, then go quiet for years. Genital warts from HPV can take anywhere from 2 weeks to 8 months to appear.

Because of these long and variable timelines, a person can be contagious well before they know anything is wrong. This is a major driver of transmission. You can’t rely on a partner looking or feeling healthy as evidence that they’re infection-free.

Testing Windows to Know

If you’ve had a potential exposure, getting tested too early can produce a false negative. Each infection needs a minimum amount of time before it’s reliably detectable:

  • Chlamydia: 1 to 3 weeks after exposure
  • Gonorrhea: 2 days to 2 weeks
  • Syphilis: 10 to 90 days, with 21 days as the average
  • HIV: depends on the test type, but early symptoms may appear in 1 to 2 weeks, and some tests require up to 3 months for accurate results
  • Herpes: about 4 days on average, though the range is 2 to 12 days
  • Trichomoniasis: 5 to 28 days
  • Hepatitis B: usually around 6 weeks, sometimes up to 6 months
  • Hepatitis C: typically 2 to 6 weeks, but up to 6 months

If your first test comes back negative but you’re within the early window, a follow-up test after the full window has passed gives a more reliable answer.

How to Lower Your Risk

Condoms and dental dams reduce risk significantly for fluid-borne infections, though they’re less effective against skin-to-skin infections like herpes and HPV. Using them consistently, every time, makes the biggest difference.

Vaccines exist for two major STIs. The HPV vaccine protects against the strains most likely to cause cancer and genital warts. The hepatitis B vaccine is part of the standard childhood immunization schedule but is available to adults who missed it. Both are highly effective at preventing new infections.

For people at higher risk of HIV, pre-exposure prophylaxis (commonly called PrEP) is a daily or on-demand medication that reduces the chance of contracting HIV by over 99% when taken as directed. Regular STI screening, open communication with sexual partners, and reducing the number of partners you have at any given time all further lower your risk. None of these strategies is perfect on its own, but layering them together provides strong protection.