A urinary tract infection is not contagious. You cannot catch a UTI from another person the way you catch a cold or the flu. The bacteria responsible for UTIs almost always come from your own body, specifically your own digestive tract, rather than from someone else.
Why UTIs Aren’t Passed Between People
Around 80 to 90 percent of community-acquired UTIs are caused by a specific type of E. coli that naturally lives in your intestines. These bacteria migrate from the bowel and harmlessly settle on the skin in the surrounding area. From there, they can travel into the opening of the urethra and work their way up into the bladder. This is an internal migration, not something picked up from another person or a contaminated surface.
This is a key distinction. Contagious infections spread from one person to another through direct contact, respiratory droplets, or contaminated objects. UTIs don’t follow any of those routes. The bacteria involved are already living in your body before the infection starts.
Sex Can Raise Your Risk, but Not Through Contagion
This is where the confusion often starts. Many people notice UTIs appearing after sexual activity and assume they caught something from their partner. What actually happens is mechanical: physical friction during sex can irritate the opening of the urethra and push bacteria that are already present on the skin into the urinary tract. As Harvard Health explains, the bacteria that cause bladder infections are not passed from one sexual partner to another.
So while sex is a well-established risk factor for UTIs, the infection isn’t transmitted between partners. Your partner doesn’t carry UTI-causing bacteria to you. Your own body’s bacteria simply get displaced to a spot where they can cause trouble.
UTIs vs. STIs: How to Tell the Difference
UTIs and sexually transmitted infections can produce overlapping symptoms, which adds to the confusion about whether UTIs are contagious. Both can cause painful urination, frequent urges to urinate, and pelvic discomfort. In some cases, both can even cause blood in the urine.
The distinguishing feature is discharge. STIs are often recognized by genital discharge, whether penile or vaginal. UTIs can occasionally cause some discharge, but it’s far less common and not the hallmark symptom. If you’re experiencing burning during urination along with unusual discharge, that pattern points more toward an STI, which is genuinely contagious and worth getting tested for. A simple urine test can confirm whether you’re dealing with a UTI or something else.
You Can’t Get a UTI From a Toilet Seat
Public restrooms are a common worry, but the concern isn’t supported by evidence. The bacteria that cause UTIs are not airborne and don’t survive well on hard surfaces like toilet seats. For a UTI to develop, bacteria need to physically travel up the urethra, which is extremely unlikely from brief contact with a seat. The perception that public toilets are a major UTI risk is widespread but unfounded.
The same applies to swimming pools, shared towels, and hot tubs. While keeping the genital area clean and dry is generally good practice, these environments are not meaningful sources of UTI-causing bacteria.
What Actually Increases Your Risk
Since UTIs come from your own bacteria rather than outside sources, the factors that matter are the ones affecting how easily those bacteria reach your urinary tract. Women get UTIs far more frequently than men, largely because the female urethra is shorter and closer to the rectum, giving bacteria a shorter path to travel.
Other factors that raise the likelihood include hormonal changes during menopause (which thin the tissues of the urinary tract), use of certain types of birth control like spermicides and diaphragms, and anything that prevents the bladder from emptying completely. People with diabetes or weakened immune systems also face higher rates of infection.
Interestingly, some prevention advice that gets repeated constantly has limited clinical support. The American Urological Association’s 2025 guidelines note that common recommendations like urinating after sex, wiping front to back, and avoiding hot tubs have not been shown in case-control studies to actually prevent recurrent UTIs. These habits are unlikely to cause harm, but the evidence behind them is weaker than most people assume.
What does have stronger support for people who get frequent UTIs includes staying well hydrated, and in some cases, preventive approaches prescribed by a clinician such as low-dose antibiotics or vaginal estrogen therapy for postmenopausal women. For recurrent infections, a healthcare provider can help identify the specific pattern and match it to an effective strategy.

