A urinary tract infection is not contagious in the way a cold or the flu is. You cannot catch a UTI by sharing a toilet seat, hugging someone, or being in close contact with an infected person. The bacteria responsible for UTIs typically already live in your own body, most commonly in your intestines, and cause infection when they migrate to the urinary tract. That said, sexual activity can play a significant role in moving those bacteria to where they don’t belong, which is where the confusion about contagion often starts.
How UTIs Actually Develop
UTIs happen when bacteria enter the urethra and travel into the bladder. The culprit in the vast majority of cases is E. coli, a bacterium that normally lives harmlessly in your large intestine. E. coli accounts for roughly 95% of first-time lower urinary tract infections. These bacteria naturally migrate out of the bowel and attach to the surrounding skin. From there, they can reach the urethral opening and work their way into the bladder.
This is fundamentally different from how contagious infections spread. With a cold, someone else’s virus enters your body and makes you sick. With a UTI, your own bacteria end up in the wrong place. The infection is opportunistic, not transmitted.
Why Sex Increases UTI Risk
Sexual intercourse is one of the strongest risk factors for UTIs, especially in women. Physical friction during sex can irritate the urethral opening and push bacteria from the surrounding skin into the urethra. This is sometimes called “honeymoon cystitis,” a term that dates back to observations that newly sexually active women developed bladder infections at high rates. Research estimates that sex-related cystitis accounts for about 4% of all lower urinary tract infections but a striking 60% of recurrent cases.
The frequency of sexual activity matters. The more often you have sex, the more opportunities bacteria have to be displaced toward the urethra. Condom use has also been identified as a behavioral risk factor, likely because of added friction. Interestingly, whether you have a single long-term partner or multiple partners doesn’t appear to change the risk, reinforcing the point that this is about physical mechanics rather than “catching” something from another person.
Can Partners Share UTI-Causing Bacteria?
This is where the picture gets slightly more nuanced. While UTIs are not classified as contagious, research has shown that the specific strain of E. coli causing a woman’s UTI can sometimes be found in her male sex partner. One study isolated E. coli from 4 out of 19 male partners, and in every case the bacterial strain was genetically identical to the one causing the woman’s infection. This suggests that uropathogens can pass between partners during sex.
However, carrying the bacteria doesn’t mean the partner will develop a UTI. In most cases, the bacteria simply colonize the skin or genital area without causing harm. The transfer of bacteria between partners may contribute to reinfection in women who experience recurrent UTIs, but it does not make UTIs a sexually transmitted infection. The distinction is important: STIs are passed specifically through sexual contact as their primary route of spread. UTIs involve bacteria that are already present in your body, with sex acting as one of several ways those bacteria can reach the urinary tract.
Why Women Get UTIs Far More Often
Anatomy is the single biggest reason UTIs are overwhelmingly more common in women. The female urethra is significantly shorter than the male urethra, which means bacteria have a much shorter distance to travel before reaching the bladder. In men, the urethral opening sits at the tip of the penis, far from the bladder.
Proximity matters too. In women, the urethra is located close to both the vagina and the anus, the two main reservoirs of bacteria that cause UTIs. This positioning gives bacteria from the bowel or vaginal area easy access to the urinary tract. None of this involves transmission from another person. It is simply a consequence of how the female body is built.
UTI or STI: How to Tell the Difference
Because UTIs often follow sexual activity, it is common to wonder whether the symptoms are actually a sexually transmitted infection. Both can cause burning during urination and pelvic discomfort. A few differences can help you distinguish between them. UTIs typically produce a strong, persistent urge to urinate, cloudy or strong-smelling urine, and sometimes blood in the urine. STIs are more likely to cause unusual discharge, sores or blisters, and pain during sex rather than during urination specifically.
The most reliable way to tell them apart is testing. A simple urine culture identifies UTI-causing bacteria, while STI screening uses different tests depending on the suspected infection. It is worth noting that UTIs can happen to anyone, including children, which underscores that they are not sexually transmitted. Sex is a risk factor, not a requirement.
Reducing Your Risk After Sex
Since sexual activity is such a well-established trigger, a few practical habits can lower your chances of developing a UTI. Urinating shortly after sex helps flush bacteria out of the urethra before they can travel to the bladder. Wiping front to back after using the bathroom keeps bowel bacteria away from the urethral opening. Staying well hydrated throughout the day encourages frequent urination, which naturally clears bacteria from the urinary tract.
For women who experience recurrent sex-related UTIs, a healthcare provider may recommend a low-dose preventive antibiotic taken around the time of sexual activity. This approach targets the specific window when bacteria are most likely to be introduced into the urethra, rather than requiring continuous medication.

