UTIs After Sex: Why They Happen and How to Prevent Them
General information, not medical advice. How we research · Medical disclaimer
On this page
A UTI after sex is common because sexual activity can push bacteria from the skin around your genitals and anus toward your urethra, the short tube pee leaves through. It isn’t an STI and it doesn’t mean anything was “unclean”. Peeing after sex, drinking enough water and avoiding spermicide may lower your risk, and if UTIs keep following sex, a doctor can prescribe an antibiotic to take afterward.
Why does sex cause UTIs?
Lots of bacteria live on the outside of your genitals, and Cleveland Clinic explains that sex can move them toward the urethral opening, where they can travel up into the bladder. The CDC notes that UTIs are more common in women because the urethra is shorter and closer to the anus, where gut bacteria such as E. coli live.
It’s not only intercourse. Cleveland Clinic’s main UTI page lists fingering and masturbation, and its sex-specific article adds oral sex. Whether your partner is a man, a woman or anyone else, the mechanism is the same.
How often you have sex matters. A 2010 review for family doctors found frequent intercourse was the strongest risk factor for repeat UTIs. Having a new partner in the past year and using spermicide were also linked to a higher risk.
Is a UTI after sex an STI?
No. The CDC is clear that a UTI is not a sexually transmitted infection, and Cleveland Clinic says it develops from bacteria on your own body rather than being passed from a partner.
But burning when you pee after sex isn’t always a UTI. The CDC says chlamydia can cause burning when you pee and unusual discharge, and often causes no symptoms at all. A standard UTI test doesn’t check for it. If you have a new partner or any chance of an STI, ask for STI testing too. Yeast infections can also sting after sex; our UTI vs yeast infection guide explains how to tell them apart.
Does peeing after sex prevent UTIs?
It might, but the proof is thin. The CDC, the Office on Women’s Health and Cleveland Clinic all recommend peeing after sex to flush bacteria out of the urethra, and the Office on Women’s Health suggests peeing before sex as well.
The 2010 review, however, found no proven link between peeing before or after sex and repeat UTIs, or between UTIs and wiping direction, douching or tight underwear. That doesn’t make these habits useless; studies just haven’t shown a clear effect.
So it’s still worth doing, since it’s free and easy, but don’t blame yourself if you still get a UTI. In the UK, the NHS also suggests washing the skin around the vagina with water before and after sex.
How can you prevent a UTI after sex?
Beyond peeing afterward, these are the steps US health bodies and studies point to.
Drink more water if you don’t drink much
Staying well hydrated is on the CDC’s prevention list. A 2018 randomized trial followed 140 premenopausal women who had at least 3 bladder infections in the past year and drank less than 1.5 liters of fluid a day. Those who added 1.5 liters of water daily averaged 1.7 infections over 12 months, compared with 3.2 in the group that didn’t change anything.
The trial was funded by a bottled-water company, wasn’t blinded and only included women who drank little, so treat it as encouraging rather than final.
Rethink spermicide and diaphragms
The NIDDK lists diaphragms, unlubricated condoms and spermicide as things that may raise your UTI risk. The CDC adds that spermicide changes the bacteria in the vagina. If you get repeat UTIs, talk to your provider about another birth control method.
Use lubricant and skip scented products
Cleveland Clinic suggests a water-based lubricant during sex, and the CDC advises keeping douches, sprays and powders away from the genital area. If you have sex during your period, our guide to sex on your period covers comfort and hygiene.
After menopause, ask about vaginal estrogen
The CDC notes that menopause changes vaginal bacteria, and the NIDDK says a provider may prescribe low-dose vaginal estrogen for repeat UTIs during perimenopause or menopause.
Cranberry and supplements
The evidence on cranberry is better for preventing UTIs than for treating them. Our guide to what the evidence says about cranberry for UTIs breaks it down, including who should avoid it.
What if you get a UTI every time you have sex?
See a doctor rather than putting up with it. The Office on Women’s Health defines recurrent UTIs as two in 6 months or three in a year.
If sex seems to be the trigger, a doctor may prescribe a single antibiotic dose to take after sex. The 2010 review found this hasn’t been shown to work less well than a daily antibiotic, and it usually means fewer antibiotics overall. Another option is a course kept at home to start at the first sign of symptoms. Follow your prescriber’s instructions, or ask a pharmacist if you’re unsure.
If you’re not sure whether what you have is a UTI, our guide to UTI symptoms in women runs through the signs and tests. For other reasons it might burn, see the 7 common causes of burning when you pee, and browse more in our bladder and pelvic health guides.
Frequently asked questions
Can you get a UTI from oral sex?
Yes. Cleveland Clinic says bacteria from the mouth and genitals can reach the urethra during oral sex, just as they can during other kinds of sex. Cleveland Clinic's main UTI page lists fingering and masturbation as sexual activities that raise UTI risk too. The same prevention habits apply whatever kind of sex you have and whoever you have it with.
Can my partner give me a UTI?
Not in the way an STI is passed on. The CDC says a UTI is not a sexually transmitted infection, and Cleveland Clinic explains that it usually starts with bacteria already living on your own skin. Sex just moves them toward the urethra. Burning after sex can also be an STI, though, so get tested if there's any chance of one.
Do condoms cause UTIs?
Some types may play a part. The NIDDK lists unlubricated condoms, along with diaphragms and spermicide, among things that may raise your UTI risk. A 2010 review for family doctors found spermicide use in the past year was linked to repeat UTIs. If you get UTIs often, ask about lubricated condoms without spermicide, and keep using condoms for STI protection.
Sources
- Urinary Tract Infection Basics. CDC. Accessed Nov 19, 2026.
- Why You Get UTIs After Sex — and How To Prevent Them. Cleveland Clinic. Accessed Nov 19, 2026.
- Urinary Tract Infection (UTI): Causes, Symptoms & Treatment. Cleveland Clinic. Accessed Nov 19, 2026.
- Urinary tract infections. Office on Women's Health (womenshealth.gov). Accessed Nov 19, 2026.
- Treatment for Bladder Infection in Adults. NIDDK (National Institutes of Health). Accessed Nov 19, 2026.
- Recurrent Urinary Tract Infections in Women: Diagnosis and Management (Kodner, Thomas Gupton; Am Fam Physician 2010;82(6):638-643). American Academy of Family Physicians. Accessed Nov 19, 2026.
- Effect of Increased Daily Water Intake in Premenopausal Women With Recurrent Urinary Tract Infections: A Randomized Clinical Trial (Hooton et al.; JAMA Intern Med 2018;178(11):1509-1515). PubMed Central (NIH). Accessed Nov 19, 2026.
- About Chlamydia. CDC. Accessed Nov 19, 2026.
- Symptoms & Causes of Urinary Retention. NIDDK (National Institutes of Health). Accessed Nov 19, 2026.
- Urinary tract infections (UTIs). NHS. Accessed Nov 19, 2026.
More in Bladder & Pelvic Health · All articles