Urinary tract infections are not contagious. You cannot catch a UTI from someone else through physical contact, sharing a toilet seat, or being near someone who has one. UTIs are caused by bacteria that already live in or on your own body, most commonly migrating from the digestive tract to the urinary system.
Why UTIs Aren’t Passed Between People
A UTI happens when bacteria enter the urethra and travel up into the bladder. In about 80% of cases, the culprit is a type of E. coli that naturally lives in your gut. Other species like Proteus mirabilis and Klebsiella pneumoniae cause most of the remaining cases. These bacteria aren’t being transmitted from another person. They’re your own bacteria, ending up somewhere they don’t belong.
The infection starts when gut bacteria reach the opening of the urethra, often through completely mundane means: wiping after using the bathroom, sitting for long periods, or simply through normal anatomy. Once bacteria enter the urethra, they can climb toward the bladder and multiply. Women are far more vulnerable because the female urethra averages only about 3 centimeters long, giving bacteria a much shorter path to the bladder compared to the male urethra.
Sex Increases Risk but Doesn’t Spread UTIs
This is where confusion tends to come in. Sexual activity is one of the most common triggers for a UTI, but the infection itself is not sexually transmitted. During intercourse, bacteria that live around the genital and anal area can get physically pushed toward or into the urethra. Fingers and sex toys that haven’t been properly washed can also introduce bacteria. The Mayo Clinic is clear on this point: UTIs are not classified as sexually transmitted infections, and they are not passed between partners.
The distinction matters because the treatment and implications are completely different from an STI. If your partner has a UTI, you don’t need to worry about catching it. And if you develop a UTI after sex, it doesn’t mean your partner gave you anything. It means the physical activity moved your own bacteria into a vulnerable spot.
How to Tell a UTI Apart From an STI
Because UTIs sometimes show up after sexual activity, people understandably wonder whether they might actually have a sexually transmitted infection instead. The symptoms overlap in some ways but diverge in others.
UTI symptoms tend to center on urination: a burning sensation when you pee, needing to go more frequently than usual, cloudy urine, and mild pain in the lower abdomen or pelvis. Notably, there’s usually no abnormal discharge.
STI symptoms look different. Abnormal discharge from the vagina or penis, genital blisters or rash, pain during intercourse, itchiness, or swollen lumps in the groin all point more toward an STI. Blood in urine can show up with either, so that alone isn’t a reliable way to tell. If you’re unsure, a simple urine test at a clinic can distinguish between the two quickly.
What Actually Causes Recurring Infections
Some people get UTIs repeatedly, which can feel like they’re “catching” them from somewhere. A recurrent UTI is clinically defined as two or more infections within six months or three within a year. But the pattern isn’t caused by repeated exposure to an outside source. It’s driven by a combination of anatomy, habits, and hormonal changes that make it easier for bacteria to reach the bladder over and over.
The major risk factors include:
- Wiping back to front after using the bathroom, which drags gut bacteria toward the urethra
- Not urinating frequently enough, which lets bacteria sit and multiply in the bladder
- Incomplete bladder emptying, sometimes caused by conditions like diabetes, vaginal prolapse, or neurological disorders
- Spermicide use, which can kill off protective bacteria in the vagina that normally keep E. coli in check
- Menopause, which thins and dries the vaginal lining, shifts vaginal pH, and reduces the population of helpful bacteria that act as a natural defense
- Kidney stones or structural abnormalities in the urinary system that trap urine and bacteria
- Immunosuppressive medications, including steroids and drugs used for autoimmune conditions like lupus or rheumatoid arthritis
People who are immunocompromised or undergoing chemotherapy face additional risk because these treatments can weaken the intestinal barrier, making it easier for gut bacteria to reach other parts of the body.
Prevention That Holds Up to Evidence
Peeing after sex is one of the most commonly repeated pieces of UTI prevention advice. The logic is straightforward: flushing urine through the urethra could wash out bacteria that got pushed in during intercourse. However, the American Urological Association reviewed the evidence and found that post-sex urination, along with other hygiene changes like wiping direction and avoiding hot tubs, has not been shown to prevent recurrent UTIs in clinical studies. That doesn’t mean these habits are harmful, just that they haven’t proven effective in controlled research.
What does help for people with frequent UTIs varies by situation. For postmenopausal women, vaginal estrogen therapy can restore the protective environment that keeps harmful bacteria from thriving. For others, a healthcare provider may recommend a low-dose preventive antibiotic or other targeted strategies based on what’s driving the recurrences. The key takeaway is that recurrent UTIs are a medical problem with identifiable causes, not a sign that you’re catching infections from your environment or the people around you.

