Urinary Tract Infection Prevention

Personal hygiene and changes in sex practices are key

Table of Contents
View All
Table of Contents

A urinary tract infection (UTI) can make you feel miserable and can also cause serious problems if left untreated. With as many as 60% of females likely to get a UTI at some point (and at least 15% of males), prevention is key to avoiding the persistent and sometimes severe complications of infection. While safer sex and good genital hygiene are central to preventing a UTI, there are other practices that may help if you are prone to recurrent infection.

UTI prevention tips
Verywell / Theresa Chiechi

General Tips

The primary aim is to avoid the introduction of harmful bacteria into the urinary tract, either as a result of bathroom habits or sexual activity. The secondary aim is to maintain your urinary tract health and make it less vulnerable to infection.

Females are four times more likely to get a urinary tract infection than males.

Everyone can benefit from the same prevention tips, including:

  • Cleanse your genitals before and after sex: Warm water and a plain, mild soap will generally do the trick. Avoid harsh cleansers or scented soaps, which can cause inflammation of the urethra (the tube through which urine leaves the body).
  • Urinate immediately after sex: Doing so helps flush bacteria and other microbes out of the urinary tract.
  • Wash your rectum daily: Regular washing prevents bacteria from spreading from residual fecal matter, often trapped in skin folds, to adjacent tissues.
  • Drinks lots of water: By regularly flushing the urinary tract, bacteria will have a harder time establishing an infection. Aim to drink several glasses of water per day (roughly a half gallon).
  • Don't hold your urine: This allows any bacteria circulating in the bladder to establish an infection. Go to the bathroom as soon as you feel the need and be sure to empty your bladder completely.

In Females

The risk of UTI in females is greater due, in part, to the shorter urethra and the natural bacteria in the vagina. These factors make it easier for bacteria to travel from outside the body into the bladder.

The "good" Lactobacillus bacteria found in the vaginal flora help maintain the ideal acidity (pH 3.8 to 4.5) to keep harmful bacteria at bay. Disrupting this balance can promote infection and make a UTI all the more likely.

Among the most effective ways to prevent a UTI:

  • Avoid douching: Douching only strips away the vaginal flora and creates the ideal environment for a bacterial infection.
  • Choose showers over baths: Bathing can alter vaginal pH and introduce soap residue and other chemicals into the vagina. If using a washcloth, clean the genital area first and the anus after. If using a hand shower, point it in a downward direction over the vagina rather than into the vagina directly.
  • Avoid harsh or scented soaps: Instead, go for milder soaps like Dove Sensitive or Cetaphil. Scented products of any sort can irritate vaginal tissues, including feminine hygiene sprays, bubble baths, perfumed bath oils, scented powders, scented tampons, and scented pads.
  • Wipe from front to back: After urinating, tilt your body forward and, reaching between your buttocks, starting wiping from the front of the vagina to the back. When you are finished, take a separate piece of paper to clean the anus, starting at the perineum (the space between the vagina and anus) and wiping back between your buttocks. Doing so prevents the introduction of bacteria from the anus to the vagina.
  • Use condoms: Even if you are in a monogamous relationship, condoms can prevent the transmission of bacteria during vaginal intercourse. Avoid unlubricated condoms, which can stress vaginal tissues, and spermicidal lubricants (like nonoxynol-9), which can trigger vaginal inflammation. Flavored condoms and lubricants are also a no-no as they are infused with sugars that promote bacterial growth and flavorants that cause irritation.
  • Avoid using a diaphragm: This is important if you are prone to urinary tract infections. A diaphragm can promote the growth of coliform bacteria like E. coli. Consider switching to alternate forms of contraception, such as the Pill or condoms.
  • Wear breathable cotton underwear: Synthetic fabrics trap moisture and create the perfect breeding ground for infection. If you are prone to UTIs, wear loose-fitting bottoms that allow air to circulate around the vagina. At night, you can wear loose-fitting boxers or shorts.
  • Try probiotics: Probiotics found in foods like yogurt and over-the-counter nutritional supplements help maintain healthy digestive flora and can promote the same in the vagina.
  • Take cranberry supplements: Proanthocyanidins (PACs) are compounds naturally found in cranberries. Growing research has shown that PACS can help prevent urinary tract infections. Taking a high-quality supplement with at least 36mg of PACs may help prevent infections better than drinking Cranberry juice daily.

In Males

Urinary tract infections in males differ from females in that they are less commonly caused by sex. The only exception may be anal sex in which fecal matter can be introduced into the male urethra.

UTIs in males are primarily associated with age and are associated with physical changes that prevent the bladder from fully emptying (such as enlarged prostate) or that cause bowel control problems.

In addition to following general prevention tips, males can reduce their risk of a UTI by adhering to these practices:

  • Use condoms when engaging in anal sex: Avoid oil-based lubricants, which can cause condom breakage, and instead opt for a water-based lubricant that neither contains spermicides nor a numbing agent like lidocaine.
  • Wash under your foreskin if you are uncircumcised: The tissue beneath the foreskin can be a breeding ground for bacteria unless cleaned daily. Failure to do so can lead to urethral inflammation and an increased risk of infection.
  • Keep your genitals dry: Wear cotton underwear and change them daily (or more frequently if they get sweaty or you experience bowel or bladder leakage).
  • Take your prostate medications as prescribed: Doing so can improve your urinary flow and reduce the risk of infection. Be sure to keep your kidneys working by drinking plenty of water. If your prostate drugs aren't working as well as they should, speak with your healthcare provider. Prostate issues that cause urinary retention are among the most common causes of urinary infections in older males.

In Children

Many of these infections can be avoided by teaching your child about hygiene and other healthy habits.

Urinary tract infections are common in children, especially females.

Among the considerations, children should be taught to:

  • Never "hold it": Children should go four to seven times during the day. Young children will often squat and grab their genitals when they need to go. This may force the bacteria deeper into the urinary tract and cause infection.
  • Practice good toileting habits: This includes teaching kids to take their time when going to the bathroom and to completely empty their bladders without straining.
  • Change undergarments: Clean underwear should be worn every day (or after an accident or excessive sweating).
  • Keep well hydrated: Children ages 5 to 8 should drink five glasses of water per day. Children ages 9 to 12 should increase to seven glasses per day. From the age of 13 onward, intake should be no less than eight to 10 glasses daily.

Frequently Asked Questions

  • How can I stop UTIs that keep coming back?

    Lifestyle changes are the first step: Use cotton underwear, don’t hold urine in, and wipe front-to-back after a bowel movement. But if you have a high risk for recurring UTIs, your healthcare provider may also recommend you take vaginal estrogen, probiotics, cranberry supplements, and/or preventive antibiotics, which may be prescribed to take daily or following sexual activity.

  • How does soap cause a urinary tract infection?

    Fragrances used in some soaps and other bath and hygiene products can cause an allergic reaction of the vulva. Even if the reaction is mild, it can lead to bacterial growth if the resulting rash is moist or rubbed. That bacteria can travel into the urinary tract, causing a UTI.

  • Can I take care of a UTI naturally?

    If you have an active UTI it's best to get evaluated by a healthcare provider. Untreated UTIs can cause infections to spread up to the kidneys and throughout the body. Chronic infections can also cause future issues with bladder emptying or make you prone to an overactive bladder.

10 Sources
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. Al-badr A, Al-shaikh G. Recurrent Urinary Tract Infections Management in Women: A review. Sultan Qaboos Univ Med J. 2013;13(3):359-67.

  2. Harvard Health Publishing. Urinary Tract Infection in Women. Harvard Health. May 2017.

  3. Harvard Health Publishing. Urinary Tract Infection in Men. Harvard Health. Mar 2019.

  4. American Urological Association. Recurrent uncomplicated urinary tract infections in women: AUA/CUA/SUFU Guideline (2019). 2019.
  5. Hayashi Y, Kohri K. Circumcision related to urinary tract infections, sexually transmitted infections, human immunodeficiency virus infections, and penile and cervical cancer. Int J Urol. 2013;20(8):769-75. doi:10.1111/iju.12154

  6. Symptoms & Causes of Bladder Control Problems & Bedwetting in Children. National Institute of Diabetes and Digestive and Kidney Diseases.Sept 1, 2017.

  7. Choose Water as a Drink. Healthy Kids, NSW Ministry of Health.

  8. Smith AL, Brown J, Wyman JF, Berry A, Newman DK, Stapleton AE. Treatment and prevention of recurrent lower urinary tract infections in women: a rapid review with practice recommendations. Journal of Urology. 2018;200(6):1174-1191. doi:10.1016/j.juro.2018.04.088

  9. Dysuria: What you should know about burning or stinging with urination. Am Fam Physician. 2015; 92(9).

  10. Asma B, Vicky L, Stephanie D, Yves D, Amy H, Sylvie D. Standardised high dose versus low dose cranberry proanthocyanidin extracts for the prevention of recurrent urinary tract infection in healthy women [PACCANN]: A double blind randomised controlled trial protocol. BMC Urol. 2018;18(1):29. doi:10.1186/s12894-018-0342-7

Additional Reading

By Tracee Cornforth
Tracee Cornforth is a freelance writer who covers menstruation, menstrual disorders, and other women's health issues.