How to avoid a uti after intercourse

One of the frustrating things about a urinary tract infection (UTI) is the way it interferes with sex. It is one thing when it happens every once in a while; it's another when it becomes an ongoing, chronic condition.

A UTI can affect anyone and involve either the lower urinary tract (comprised of the bladder and urethra), the upper urinary tract (the kidneys and ureters), or both. Women are more prone to getting UTIs than men—up to 30 times more likely, in fact—with lower tract infections accounting for the majority of sexual difficulties.

Factors that place a person at risk of developing a chronic UTI include:

  • Bacterial vaginosis during pregnancy
  • Bladder outlet obstruction
  • Bowel incontinence
  • Diabetes
  • Enlarged prostate
  • Kidney stones
  • Neurologic conditions like stroke and multiple sclerosis
  • Obesity
  • Pelvic inflammatory disease (PID)
  • Pelvic prolapse
  • Pregnancy
  • Premenopause and postmenopause
  • Prior history of severe UTIs
  • Sexually transmitted diseases
  • Urethral stricture
  • Urinary catheters
  • Urinary incontinence

How to avoid a uti after intercourse

Maskot / Getty Images

Symptoms

A UTI can often be recognized by symptoms involving the lower urinary tract, including:

  • The persistent urge to urinate
  • Pain or a burning sensation while urinating
  • Frequent urination, albeit with smaller volumes
  • Cloudy urine
  • Strong-smelling urine
  • Blood in urine
  • Pain in the central lower abdomen, just above the pubic bone
  • Odorless vaginal discharge in females
  • White, frothy urethral discharge in males

UTIs and Painful Intercourse

A UTI can also cause painful intercourse, also known as dyspareunia. This is more likely to occur in women who experience chronic UTIs, especially those who are postmenopausal.

Causes

Bacteria such as E. coli can easily enter the urinary tract through the urethra, which is situated close to the genital area in both men and women. It can then travel up the urethra and into the bladder where infection can develop. If the kidneys are involved, it becomes a serious condition called pyelonephritis, which requires immediate attention.

Honeymoon cystitis is a term used to describe a UTI that a person gets after having sex with a new partner. It is most common in sexually active younger women. It is believed that women get UTIs more frequently because their urethra is shorter, making it easier for bacteria to enter into the bladder.

A chronic UTI is different from an acute UTI in that it either doesn't respond to traditional treatment or recurs frequently.

Prevention

To better reduce your risk of getting a UTI, there are several things you can do:

  • Wash your hands before and after sex, and try not to touch your genitals after you touch your or your partner's anus. The rectum, anus, and groin have a high density of bacteria that can easily be transferred to the urethra.
  • Urinate as often as needed, especially after sex, as this can help clear bacteria from the urinary tract. Drink plenty of water to flush bacteria out of the system. Women should wipe from front to back after urinating.
  • Wash your foreskin before and after sex if you are uncircumcised, and use condoms regularly.
  • Reduce your number of sex partners.
  • Drinking cranberry juice daily is sometimes recommended for persons with a chronic UTI.
  • Low-dose antibiotics are sometimes given as a daily preventive routine (although overuse can increase UTI risk by altering the bacterial flora of the vagina). In some cases, they are recommended only after you have sex.

Diaphragms and Spermicides

Speak with your healthcare provider if you use a diaphragm or spermicide for contraception and are getting frequent bouts of UTI. A diaphragm can make it harder to empty your bladder completely (leaving bacteria behind to cause an infection).

Spermicide can alter the natural bacterial makeup of the vagina, allowing foreign bacteria to flourish more readily. Alternate methods for contraception may need to be considered.

Precautions After Menopause

While most studies investigating chronic UTIs have focused on younger age groups, there is now compelling evidence that shows a strong relationship between sexual intercourse and UTIs in postmenopausal women.

It is, therefore, just as important for older women to take the same preventive measures as younger ones, irrespective of how often you have sex or how many sexual partners you have.

UTIs and Sexually Transmitted Diseases

A number of sexually transmitted infections (STIs) are known to cause UTIs, including trichomoniasis and chlamydia. Oftentimes a person will assume that the UTI is bacterial in nature (and treat it as such) and fail to identify the underlying STI.

It is, therefore, vital to consider your risk of STIs when any infection of the genitals or urinary tract is involved. This is especially true if you have multiple sex partners or have gotten a UTI after having sex with a new partner.

Current pediatric guidelines recommend that doctors take a comprehensive sexual history of any adolescent with urinary tract complaints and routinely test them for STIs.

Sexually active men under the age of 35 who don't use condoms can experience a condition called epididymitis. It is an infection of the epididymis, the coiled tube to the back of the testicles, that can be caused either by bacteria or an STI, most often gonorrhea or chlamydia. Treatment varies based on the cause and severity.

Safer sex practices, which include the consistent use of condoms, are always the best plan for reducing the risk of these and other STIs.

When to Call a Healthcare Provider

Urinary tract infections require treatment with antibiotics. Even if a UTI is relatively mild, your healthcare provider will likely recommend a one- to three-day course of antibiotics.

If a UTI is causing dyspareunia, it is typically due to frequent or recurrent UTIs that require more extensive treatment. In some cases, a daily, low-dose antibiotic may be prescribed for six months or longer. In postmenopausal women, estrogen replacement therapy may be advised.

If a kidney infection (pyelonephritis) develops, you need to seek prompt medical attention. If left untreated, pyelonephritis can lead to kidney failure and sepsis.

When to Seek Urgent Care

Seek immediate medical attention if you have signs and symptoms of pyelonephritis, including:

  • Back or side (flank) pain
  • High fever
  • Chills
  • Vomiting

Frequently Asked Questions

  • What causes a UTI in women?

    When bacteria enters the urinary tract, it can cause a urinary tract infection (UTI) to develop in women and men. Women are more susceptible to contracting a UTI due to their shorter urethra, which makes it easier for bacteria to reach the bladder. Most UTIs are caused by E. coli, a type of bacteria that normally lives in the bowel.

  • What causes recurrent UTIs?

    Recurrent UTIs are caused by bacterial persistence or reinfection. Bacterial persistence refers to a UTI that is still present two weeks after treatment. Bacterial reinfection is when a UTI is caused by a different organism, or in some cases, from the same organism as the original UTI after two weeks.

  • Is it safe to have sex with a UTI?

    Sex is generally not advised until the UTI has completely cleared as it can further irritate already inflamed tissues and introduce new bacteria into the urinary tract. If this occurs, it can lead to a second UTI and an even longer recovery time.

  • How long after sex can you develop a UTI?

    Studies show that a UTI is likely to begin within 24 hours of sexual intercourse.When introduced into the urinary tract, E. coli will adhere to the walls of the urethra and begin to multiply almost immediately.

  • Can birth control cause a UTI?

    Birth control does not directly cause a UTI, but some methods can increase the chance of contracting one. Diaphragms, unlubricated condoms, and spermicide can increase the chances of a bladder infection. An alternative method of birth control may help people with a recurrent UTI, such as lubricated condoms without spermicide.

  • How soon can you have sex after starting antibiotics for a UTI?

    You should experience an improvement within 24 to 48 hours of starting antibiotics. However, it's important to remember that the resolution of UTI symptoms doesn't mean that the bacteria is gone, therefore it is best to wait until you have finished the course of antibiotics before resuming sex. To ensure clearance, you need to take the antibiotics as prescribed and finish the entire course. Failure to do so can lead to antibiotic resistance.

  • How can I prevent a UTI from sex?

    UTIs can affect anyone, but there are a few simple things you can do to reduce your odds of getting a UTI from sex:

    • Avoid harsh feminine products that promote inflammation and increase the risk of UTIs.
    • Use condoms during anal sex to avoid infection.
    • Avoid switching from anal sex to vaginal sex without first putting on a new condom (or stopping to wash the penis with soap and water).
    • Urinate immediately before and after sex.
    • To avoid a second UTI, wait two weeks after a UTI clears before having sex.

Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.

  1. Tan CW, Chlebicki MP. Urinary tract infections in adults. Singapore Med J. 2016;57(9):485-90. doi:10.11622/smedj.2016153

  2. Storme O, Saucedo JT, Garcia-Mora A, Dehesa-Davila M, Naber KG. Risk factors and predisposing conditions for urinary tract infection. Ther Adv Urol. 2019 Jan-Dec;11:1756287218814382. doi:10.1177/1756287218814382

  3. Jung C, Brubaker L. The etiology and management of recurrent urinary tract infections in postmenopausal women. Climacteric. 2019 Jun;22(3):142-9. doi:10.1080/13697137.2018.1551871

  4. Cleveland Clinic. Urinary tract infections.

  5. Fu Z, Liska D, Talan D, Chung M. Cranberry reduces the risk of urinary tract infection recurrence in otherwise healthy women: a systematic review and meta-analysis. J Nutr. 2017 Dec;147(12):2282-2288. doi:10.3945/jn.117.254961

  6. Lee YS, Lee KS. Chlamydia and male lower urinary tract diseases. Korean J Urol. 2013;54(2):73-7. doi:10.4111/kju.2013.54.2.73

  7. Government of Canada. Canadian guidelines on sexually transmitted infections – management and treatment of specific syndromes – epididymitis.

  8. MedlinePlus. Urinary tract infection - adults.

  9. U.S. Department of Health and Human Services. What Causes UTIs & UI?

  10. Dason S, Dason JT, Kapoor A. Guidelines for the diagnosis and management of recurrent urinary tract infection in women. Can Urol Assoc J. 2011;5(5):316-322. doi:10.5489/cuaj.11214

  11. Robino L, Scavone P, Araujo L, et al. Intracellular bacteria in the pathogenesis of Escherichia coli urinary tract infection in children. Clin Infect Dis. 2014 Dec 1;59(11):e158-64. doi:10.1093/cid/ciu634

  12. Al-Badr A, Al-Shaik G. Recurrent urinary tract infections management in women:a review. Sultan Qaboos Univ Med J. 2013 Aug;13(3):359-67.

  13. National Institute of Diabetes and Digestive and Kidney Diseases. Bladder infection in adults: Treatment.

  14. Sabih A, Leslie SW. Complicated urinary tract infections. In: StatPearls.

  15. Waller TA, Pantin SAL, Yenior AL, Pujalte GGA. Urinary tract infection antibiotic resistance in the United States. Prim Care. 2018 Sep;45(3):455-66. doi:10.1016/j.pop.2018.05.005

  16. Planned Parenthood. How do I treat and prevent UTIs?

By Laura Newman
Laura Newman is an award-winning journalist with expertise in clinical medicine, health policy, urology, oncology, neurology, and targeted therapies.

Thanks for your feedback!

Why do I keep getting a UTI after intercourse?

During sexual intercourse, friction and pressure can force bacteria present in or around the genital area toward the urethra, and given the right conditions,bacteria can grow and give rise to a UTI.

How do you prevent UTI when you feel it coming?

How to prevent UTIs.
Empty your bladder frequently as soon as you feel the urge to go and empty it completely..
Wipe from front to back..
Don't use scented feminine care products – they just cause irritation..
Always pee before and after sex..
Wear cotton underwear only and loose-fitting clothing as much as possible..

How can I prevent getting UTI from my boyfriend?

Always pee immediately after sex to help flush your urinary tract. Try using condoms, I find latex-free condoms are the best option. If the issue seems specific to sex, consider whether your partner should also be tested, and don't ignore the possibility of STIs – they can cause UTI-like symptoms.