A urinary tract infection is not a sexually transmitted infection. UTIs are caused by bacteria that already live on your own body, most commonly a type of gut bacteria called E. coli, which is responsible for roughly 80% of all UTIs. You cannot “catch” a UTI from a sexual partner the way you would catch chlamydia or gonorrhea. However, sexual activity is one of the most common triggers for UTIs, which is why so many people wonder about the connection.
Why Sex Triggers UTIs
The confusion makes sense: UTIs frequently show up after sex, which makes them feel like something your partner gave you. But what’s actually happening is mechanical, not contagious. During sexual activity, bacteria that normally live on the skin around your genitals and perianal area get pushed toward the opening of the urethra. From there, the bacteria can travel up into the bladder and multiply, causing an infection.
This is especially common in women because the female urethra is short and located close to both the vaginal opening and the anus. The physical motion of intercourse essentially relocates your own bacteria to a place they don’t belong. The bacteria involved, primarily E. coli, are ordinary intestinal organisms, not sexually transmitted pathogens. Your partner doesn’t need to be tested or treated when you’re diagnosed with a UTI.
How UTI and STI Symptoms Overlap
Another reason people search this question is that UTIs and certain STIs can feel remarkably similar. Both can cause burning during urination and pelvic pain. Chlamydia and gonorrhea in particular produce urinary symptoms that mimic a UTI, and both can even be detected through urine tests. Clinicians sometimes struggle with this overlap too. Inflammatory markers in a urine sample can look the same whether the cause is a bladder infection or a sexually transmitted organism like Trichomonas.
There are a few distinguishing clues, though:
- Urgency with an empty bladder is typical of a UTI but not an STI.
- Unusual discharge from the vagina or penis points toward an STI rather than a UTI.
- Blisters or sores on the genitals suggest an STI, never a UTI.
A study in the Western Journal of Emergency Medicine found that after adjusting for other factors, testing positive for gonorrhea, chlamydia, or trichomoniasis had no association with also having a bacterial UTI. In other words, having an STI doesn’t make you more likely to have a concurrent UTI. They are separate conditions that happen to share some symptoms.
Risk Factors Beyond Female Anatomy
Women bear the greatest burden of sex-related UTIs, but they aren’t the only ones at risk. Sexually active men who engage in anal intercourse, both in same-sex and heterosexual relationships, face an elevated risk of urinary tract infections. The reason is the same basic mechanism: E. coli and other bowel organisms are introduced to the urethra during contact with the anal area. In men, this can cause urethral discomfort, bladder symptoms, or even infections of the epididymis that resist standard antibiotics because the bacteria involved differ from what doctors typically expect. Condom use during anal intercourse significantly reduces this risk.
Does Peeing After Sex Actually Help?
You’ve probably heard the advice to urinate right after intercourse. The logic is straightforward: a stream of urine should flush bacteria out of the urethra before it reaches the bladder. The actual evidence, though, is surprisingly mixed. A review of cohort and case-control studies found that urinating after sex does not significantly reduce the risk of symptomatic UTIs among sexually active young women overall.
There is one exception. Women with no prior history of UTIs may get some protective benefit from voiding within 15 minutes of intercourse. For women who already get recurrent infections, the habit alone doesn’t appear to be enough to prevent them. It’s a low-effort, low-risk habit, so there’s no reason to stop doing it, but it shouldn’t be your only line of defense if UTIs keep coming back.
When UTIs Keep Coming Back After Sex
Some women develop a clear pattern: sex on Saturday, UTI symptoms by Monday. When infections are closely tied to intercourse and happen repeatedly, a strategy called post-coital prophylaxis can break the cycle. This involves taking a single low dose of an antibiotic shortly after sexual activity rather than waiting for a full infection to develop. It’s a well-established approach that uses the same antibiotics prescribed for daily prevention but only as needed, which means less total antibiotic exposure.
Other strategies that may help reduce recurrence include staying well hydrated, wiping front to back, and avoiding spermicide-containing products, which can alter the bacterial balance around the urethra. Some women also benefit from cranberry supplements, though the evidence there is modest. If you’re getting three or more UTIs a year, or two within six months, that pattern qualifies as recurrent and is worth discussing with a healthcare provider who can tailor a prevention plan.
The Key Distinction
A UTI is an infection you give yourself, in a sense. The bacteria responsible are already part of your body’s normal flora. Sex just provides the opportunity for those bacteria to reach a place they can cause trouble. An STI, by contrast, involves a pathogen that passes from one person to another during sexual contact. This distinction matters practically: your partner does not need treatment for your UTI, you cannot transmit it through sex, and the treatment course is different from what’s used for STIs. If your symptoms include discharge, sores, or don’t improve with standard UTI antibiotics, testing for sexually transmitted infections is a reasonable next step to rule out a different cause.