Types

Understanding Urinary Tract Infections (UTIs)

Choose a preferred language


Most UTIs are caused by bacteria. But they may also be caused by viruses or fungi. Bacteria from the bowel are the most common source of infection. An infection may be more likely due to any of these:

  • Having sex. During sex, bacteria can go from the penis, vagina, or rectum into the urethra.
  • Bacteria outside the rectum getting into the urethra. Bacteria on the skin outside the rectum may go into the urethra. This is more common in people who were assigned female at birth. That's because, for them, the rectum and urethra are closer to each other than in people who were assigned male at birth. Wiping from front to back after using the toilet can help prevent germs from getting to the urethra. So can keeping the area clean.
  • Blocked urine flow through the urinary tract. If urine sits too long, germs may start to grow out of control.
  • A new sex partner within the last year.
  • A history of recurrent UTIs and antibiotic use.
  • Use of spermicide and diaphragm.


Parts of the urinary tract

The infection can occur in any part of the urinary tract.

Side view cross section of female urinary tract.

Side view cross section of male urinary tract.

  • The kidneys. These organs filter blood. They remove wastes and extra water to make urine.
  • The ureters. These tubes carry urine from the kidneys to the bladder.
  • The bladder. This holds urine until you're ready to pee.
  • The urethra. This tube carries urine from the bladder out of the body. It's shorter in people who were assigned female at birth. So, for them, bacteria can move through it more easily. The urethra is longer in people who were assigned male at birth. So a UTI is less likely to reach the bladder or kidneys for them.

© 2000-2026 The StayWell Company, LLC. All rights reserved. This information is not intended as a substitute for professional medical care. Always follow your healthcare professional's instructions.

Start your journey toward better health

Select a primary care physician who will deliver personal care, close to home.

Find a Doctor

We have more than 4,500 specialty care physicians in our network

We have you covered from head (neurosurgery) to toe (podiatry.) And everything in-between!

Find a Doctor

Need Help?

Get the right care at the right time.

Learn More
Related Articles
Read article
Urology
Understanding Bladder Stones

Bladder stones are small deposits of crystals made from minerals and proteins that form in the urine. They may form when a small amount of urine stays in your bladder after urinating.

Read article
Urology
Foley Catheter Care

A Foley catheter is a flexible plastic or rubber tube that is placed through the urethra (opening where urine comes out) and into the bladder. This helps drain urine from the bladder. There is a small balloon on the end of the tube that is inflated after insertion. This keeps the catheter from sliding out of the bladder.

Read article
Urology
Urinary Incontinence

Urinary incontinence is the loss of urine control. It may be a short-term problem caused by another health issue or a long-term problem that you’ll have to manage. Learn more about this condition, including what causes it, who is at risk, what the symptoms are, and how it's diagnosed and treated.

Read article
Metabolic Conditions
Abdominal Ultrasound

Abdominal ultrasound is an imaging test that uses sound waves to form pictures of your abdominal organs. It can help detect organ problems, such as gallstones, kidney stones, or liver disease.