Skip to main content
I need a test
I have symptoms
I was exposed
I tested positive
Prevention
Conditions
Urinary infection Curable

Urinary Tract Infection (UTI)

A urinary tract infection, or UTI, happens when bacteria, most often E. coli from the skin or rectum, travel into the urinary tract and multiply. It usually starts in the bladder, causing burning during urination, a frequent urge to go, and pelvic pressure; if it reaches the kidneys it can cause fever and back pain and become serious. Women get UTIs far more often than men because the urethra is shorter. Here is what a UTI is, what causes it, and how it is treated.

Women affected (lifetime)
~60%
most common UTI risk group
E. coli cause
~80%
of uncomplicated UTIs
Curable
Yes
3–7 day antibiotic course
Resembles
STI
test specifically, UTI antibiotics don't treat chlamydia

Understanding urinary tract infection (uti)

What is urinary tract infection (uti)?

A urinary tract infection (UTI) is a bacterial infection anywhere along the urinary tract: the urethra (urethritis), bladder (cystitis, the most common form), or kidneys (pyelonephritis, the most serious). About 80% are caused by Escherichia coli from the gut migrating to the urethral opening; other common pathogens include Klebsiella pneumoniae, Proteus mirabilis, Staphylococcus saprophyticus (particularly in sexually active young women), and enterococci. Women develop UTIs far more frequently than men, about 60% of women will have at least one in their lifetime, primarily because the female urethra is significantly shorter than the male urethra and sits in close anatomical proximity to the anus, making the distance bacteria need to travel much shorter. A UTI is not an STI, but it appears on this site because its symptoms overlap precisely with STI-related urethritis.

The critical overlap: chlamydia, gonorrhea, and trichomoniasis can all infect the urethra and cause burning, urgency, and discharge that is clinically indistinguishable from a bladder UTI without laboratory testing. Standard UTI antibiotics, nitrofurantoin, trimethoprim-sulfamethoxazole, fosfomycin, have no activity against chlamydia or gonorrhea. Treating an STI-caused urethritis as a UTI is one of the most common diagnostic errors in primary care: the UTI antibiotic appears to reduce symptoms temporarily (due to anti-inflammatory effects), the underlying STI continues silently, and weeks or months later the patient develops PID, epididymitis, or a partner tests positive. The only reliable way to tell the difference is to test: a urinalysis catches a UTI; a NAAT catches chlamydia, gonorrhea, and trichomoniasis.

Sexual activity is the most common UTI trigger in young women: during penetrative sex, bacteria from the perianal skin can be mechanically pushed toward the urethral opening, which is why UTIs used to be called 'honeymoon cystitis.' Other significant risk factors include diaphragm and spermicide use (which alter vaginal flora and increase urethral colonization), postmenopausal estrogen decline (which thins urethral and vaginal epithelium and disrupts protective lactobacillus flora), structural urinary abnormalities (incomplete bladder emptying, kidney stones, vesicoureteral reflux), catheter use, and diabetes. Men rarely develop uncomplicated UTIs; when a man has a UTI it should prompt STI testing and evaluation for an underlying urological cause such as prostate enlargement.

Symptoms

What are the symptoms of urinary tract infection (uti)?

Lower-tract UTIs (bladder and urethra) almost always cause symptoms. Asymptomatic bacteriuria, bacteria in urine without symptoms, is common in older adults, pregnant people, and people with catheters; it is treated only in pregnancy or before urologic procedures. Usually 1–3 days after the event that triggered it: sex, catheter insertion, or other mechanical factors.

Lower-tract UTI (bladder / urethra), women

  • Urgent, frequent need to urinate, even when little urine comes out (urgency and frequency)
  • Burning or stinging during urination (dysuria)
  • Lower abdominal pressure or pelvic pain and cramping
  • Cloudy, bloody (pink-tinged), or foul-smelling urine
  • Waking at night to urinate (nocturia)

Kidney infection (pyelonephritis), a medical emergency

  • All bladder symptoms, plus fever above 38°C (100.4°F) and chills
  • Back or flank pain: typically one-sided, below the ribs
  • Nausea and vomiting
  • Feeling systemically unwell, seek same-day care

UTI in men

  • Burning during urination
  • Difficulty starting urination or weak urine stream
  • Frequent urination or urgency
  • Urethral discharge or unusual odor: if present, an STI is more likely than a simple UTI and NAAT testing is needed
  • Pelvic or rectal pressure

STI symptoms that mimic UTI

  • Chlamydia, gonorrhea, and trichomoniasis all cause burning urination and discharge indistinguishable from UTI symptoms
  • A urine dipstick test will appear normal or equivocal with STI-related urethritis, it does not detect STIs
  • Only a NAAT (nucleic acid amplification test) swab or urine test can confirm or rule out an STI

Symptoms alone cannot distinguish a UTI from an STI, both cause burning and discharge. A urinalysis catches a UTI; only a NAAT catches chlamydia, gonorrhea, or trichomoniasis. If you have any STI risk, request both tests at the same visit.

Left untreated

Why urinary tract infection (uti) is worth catching early

Kidney infection (pyelonephritis)

When a bladder infection ascends to the kidneys it becomes a serious systemic illness: fever, flank pain, nausea, and vomiting. Mild pyelonephritis can be treated with oral fluoroquinolones; moderate-to-severe cases require IV antibiotics and hospitalization. Recurrent kidney infections can cause permanent renal scarring and contribute to chronic kidney disease over time.

Sepsis

A urinary tract infection that enters the bloodstream causes urosepsis, a life-threatening emergency requiring immediate hospitalization and IV antibiotics. Early and appropriate antibiotic treatment of UTIs is what prevents this cascade; never delay treatment for a symptomatic UTI hoping it will resolve.

Recurrent UTIs

About 25% of women who have one UTI will develop recurrent infections, defined as three or more per year. Each episode requires its own culture-guided antibiotic course. Strategies to break the cycle include post-coital antibiotics, low-dose daily prophylaxis, vaginal estrogen in postmenopausal women, and modification of risk factors (spermicide, diaphragm use).

Pregnancy complications

Untreated UTIs in pregnancy are a major risk factor for preterm labor, low birth weight, and progression to pyelonephritis. Even asymptomatic bacteriuria, which occurs in 2–10% of pregnant women, is always treated during pregnancy because the risk of progression to kidney infection is 20–30× higher in pregnancy than in non-pregnant adults.

Missed STI, the hidden complication

Treating assumed UTI symptoms without testing for STIs means chlamydia, gonorrhea, or trichomoniasis can go undetected for months. Untreated STIs silently cause pelvic inflammatory disease, infertility, epididymitis, and ongoing transmission to partners, consequences that far outlast the UTI itself. This is the most consequential complication of misdiagnosis: not the UTI, but the STI it masked.

Antibiotic resistance

Overuse of broad-spectrum antibiotics for UTIs, particularly fluoroquinolones, has driven resistance in E. coli and other uropathogens. Using appropriate narrow-spectrum agents (nitrofurantoin, TMP-SMX, fosfomycin) based on culture sensitivity data, and completing prescribed courses, is essential both for individual treatment success and for preserving antibiotic effectiveness.

Treatment

How is urinary tract infection (uti) treated?

Most uncomplicated UTIs are cured with 3–7 days of oral antibiotics: the specific choice depends on the causative organism (from urine culture), local resistance patterns, and whether this is a first infection or a recurrent one. First-line options for uncomplicated cystitis in women include nitrofurantoin (5–7 days), trimethoprim-sulfamethoxazole (3 days if local resistance is below 20%), or fosfomycin (single dose). Fluoroquinolones (ciprofloxacin) are reserved for complicated UTIs or pyelonephritis, not uncomplicated cystitis, overuse has driven resistance. For pain relief during treatment, phenazopyridine turns urine orange-red and blunts burning but has no antibiotic activity and treats only the symptom.

Treat partners

UTI is not transmitted to partners, so no partner treatment is needed for a true UTI. If testing confirms an STI (chlamydia, gonorrhea, or trichomoniasis) rather than a UTI, partner treatment is essential and the UTI antibiotic should be discontinued and replaced with the appropriate STI regimen.

In pregnancy

UTI in pregnancy is treated aggressively and at every stage, even asymptomatic bacteriuria. Nitrofurantoin (safe in the first two trimesters, avoid near delivery due to neonatal hemolysis risk) and cephalexin are generally safe. Avoid trimethoprim-sulfamethoxazole in the first trimester (antifolate risk) and near delivery; avoid fluoroquinolones throughout pregnancy. A test-of-cure urine culture is recommended 1–2 weeks after completing treatment for all UTIs in pregnancy.

Re-test after treatment

If symptoms do not improve within 2–3 days of starting antibiotics, you need re-evaluation: either the diagnosis was wrong (consider STI, especially if you have sexual exposure history), the bacteria are resistant to your antibiotic, or you have a complication such as kidney involvement. A follow-up culture 7 days after completing treatment is recommended for all pregnant women, anyone with recurrent UTIs, and all men with UTI.

Resistance note: Antibiotic resistance in UTI-causing bacteria is a growing problem: particularly to ampicillin and, increasingly, to trimethoprim-sulfamethoxazole in some regions. This is why urine culture and sensitivity testing matters, especially for recurrent UTIs. Never use leftover antibiotics for a UTI: you may have the wrong drug, the wrong dose, and you will contribute to resistance. Always complete the full prescribed course.

Prevention

How to prevent urinary tract infection (uti)

  • Urinate within 30 minutes of sex

    Post-coital urination is the single most evidence-backed prevention step for sex-associated UTIs, it mechanically flushes bacteria that were pushed toward the urethra during penetrative sex. The timing matters: within 30 minutes is significantly more effective than longer delays. This one habit alone substantially reduces recurrence risk in women with sex-triggered UTIs.

  • Stay well hydrated

    Drinking adequate fluids, approximately 1.5–2 liters per day, keeps urine dilute, reduces bacterial concentration, and ensures regular bladder emptying that flushes pathogens before they can establish infection. Concentrated, infrequent urination creates conditions favorable to bacterial growth. Avoid holding urine for long periods.

  • Wipe front to back

    Always wiping from the urethral opening toward the rectum (front to back) prevents transferring E. coli from the anal region to the urethral opening. This basic hygiene step addresses the primary anatomical reason women develop UTIs far more often than men.

  • Reconsider spermicide and diaphragm use

    If you have recurrent UTIs and use a diaphragm with spermicide, switching to another contraceptive method can dramatically reduce UTI frequency. Spermicide kills the protective lactobacilli that normally suppress E. coli in the vagina, and the diaphragm mechanically obstructs complete bladder emptying, a combination that significantly elevates UTI risk.

  • Vaginal estrogen for postmenopausal women

    Vaginal estrogen cream or ring, distinct from systemic hormone replacement, is the most effective and most underutilized UTI prevention tool for postmenopausal women. It restores the protective vaginal epithelium, normalizes vaginal flora back to a lactobacillus-dominant state, and dramatically reduces recurrent UTI frequency. The systemic absorption is minimal, making it safe for most women including those with a history of breast cancer in many guidelines.

Who is most at risk

Who is most at risk for urinary tract infection (uti)?

Sexually active women
Sexual activity is the most common UTI trigger in premenopausal women, penetrative sex mechanically introduces gut bacteria toward the urethra. Diaphragm and spermicide use multiplies risk significantly: spermicide kills protective vaginal lactobacilli and promotes E. coli colonization. Switching to other contraception is one of the most effective interventions for women with recurrent sex-associated UTIs.
Each additional act of vaginal intercourse in a week increases UTI risk by approximately 1.4×
Postmenopausal women
Estrogen decline at menopause causes thinning of the urethral and vaginal epithelium and shifts vaginal flora away from protective lactobacilli, dramatically increasing E. coli colonization and UTI susceptibility. Vaginal estrogen therapy (not systemic estrogen) is highly effective at restoring normal flora and reducing recurrent UTIs, yet it remains significantly underutilized in clinical practice.
Postmenopausal women are among the highest-risk groups for recurrent UTIs
Women with recurrent UTIs
Approximately 25% of women who have one UTI will have recurrent infections, defined as three or more per year. Risk factors for recurrence include spermicide use, a new sexual partner, first UTI before age 15, maternal history of UTIs, and post-menopausal estrogen decline. Post-coital prophylaxis (a single antibiotic dose after sex) or low-dose daily prophylaxis are effective management strategies for confirmed recurrent cases.
~25% of women who have one UTI develop recurrent infections
People with structural urinary abnormalities
Kidney stones, vesicoureteral reflux, incomplete bladder emptying (neurogenic bladder, prostate enlargement in men), and urinary catheters all substantially increase UTI risk by providing bacteria a physical reservoir or preventing the mechanical flushing of pathogens by normal urine flow. UTIs in people with these conditions are considered 'complicated UTIs' and require longer treatment courses and urine culture guidance.
Catheter-associated UTIs are the most common healthcare-acquired infections in the US

Stats & rates

How common is urinary tract infection (uti) in the U.S.?

UTI is not an STI, but it is included here because its symptoms, burning urination, pelvic pain, urethral discharge, overlap closely with chlamydia, gonorrhea, and trichomoniasis. Treating the wrong infection delays appropriate care and allows STI transmission to continue. Women account for approximately 80% of UTI cases due to anatomical factors; postmenopausal women and sexually active young women are most frequently affected. Men account for a minority of cases and a UTI in a man should always prompt STI testing and urological evaluation.

~60%
of women get at least one UTI in their lifetime

Ready to get tested for urinary tract infection (uti)?

See test types, turnaround time, cost, at-home options, and clinics near you.

Urinary Tract Infection (UTI) testing options

Good to Know

Urinary Tract Infection (UTI) FAQs

Common questions about urinary tract infection (uti), answered.

How do I know if it's a UTI or an STI?

You cannot tell from symptoms alone, this is the most important fact about UTI versus STI. Burning when you urinate, urgency, pelvic discomfort, and discharge are caused by both UTIs and STI-related urethritis (chlamydia, gonorrhea, trichomoniasis). A urine dipstick or culture will catch a UTI but cannot detect any STI, you need a separate NAAT (nucleic acid amplification test) swab or urine test for that. If you have any sexual exposure history, the only responsible approach is to test for both at the same visit. Do not assume burning urination is 'just a UTI' without ruling out an STI first, the consequences of missing an STI are far more serious than the UTI itself.

Can UTI be mistaken for chlamydia?

Yes, and this is extremely common in clinical practice. Chlamydia infects the urethra and causes urethritis: burning on urination, urgency, and sometimes urethral discharge that is clinically indistinguishable from a bladder UTI. A urine dipstick for a chlamydia urethritis will sometimes show mild pyuria (white blood cells), reinforcing the false UTI impression. The critical difference is treatment: nitrofurantoin, trimethoprim-sulfamethoxazole, and fosfomycin, the standard UTI antibiotics, have absolutely no activity against Chlamydia trachomatis. Treating chlamydia as a UTI means the chlamydia continues silently while you believe you've been treated. Weeks later, PID, epididymitis, or a partner's positive test reveals the error. The NAAT is the only test that distinguishes them.

What antibiotics treat a UTI?

For uncomplicated cystitis in women, the CDC and IDSA recommend narrow-spectrum agents: nitrofurantoin (100mg twice daily for 5–7 days), trimethoprim-sulfamethoxazole (one double-strength tablet twice daily for 3 days: if local resistance is below 20%), or fosfomycin (3g single dose). Amoxicillin-clavulanate and cephalexin are alternatives. Fluoroquinolones (ciprofloxacin, levofloxacin) are reserved for complicated UTIs, pyelonephritis, or when first-line agents cannot be used, their overuse for simple UTIs has driven significant resistance and collateral microbiome damage. For pyelonephritis, ciprofloxacin for 5–7 days or levofloxacin for 5 days are first-line; IV ceftriaxone is used when oral agents are not tolerable. Never assume an antibiotic that worked last time will work again without a culture, resistance patterns change.

Why did my UTI antibiotics not work?

There are three common explanations for apparent UTI antibiotic failure, and they require different responses. First, and most commonly overlooked, is that the diagnosis was wrong: the symptoms were actually caused by an STI (chlamydia, gonorrhea, or trichomoniasis) rather than a bacterial UTI, and UTI antibiotics simply have no activity against those pathogens. Request a NAAT if this hasn't been done. Second, the bacterium causing your UTI may be resistant to the antibiotic prescribed, this is increasingly common with E. coli resistance to trimethoprim-sulfamethoxazole. A urine culture with sensitivity testing gives you the correct drug. Third, there may be a complication such as early kidney involvement that requires a different class of antibiotic or a longer course. Persistent symptoms after 2–3 days of an appropriate antibiotic always warrant re-evaluation.

Can UTIs go away on their own?

Some mild lower-tract UTIs do resolve without antibiotics, studies suggest spontaneous resolution in 25–42% of uncomplicated cases within a week. However, antibiotics dramatically shorten the duration of symptoms (from several days to 1–2 days), prevent progression to kidney infection, and are standard of care for a reason. Waiting without treatment is particularly risky in pregnant women (where any UTI can rapidly progress to pyelonephritis), people with diabetes, people with structural urinary abnormalities, and anyone with symptoms of kidney involvement (fever, flank pain). Never use cranberry juice or supplements, vitamin C, or other home remedies as a substitute for antibiotic treatment of an active infection, they may have modest preventive value but do not treat established infections.

How soon should I take antibiotics for a UTI?

As soon as you have a confirmed positive urinalysis or urine culture, there is no reason to delay. UTI symptoms are uncomfortable and can progress rapidly to kidney infection, particularly in pregnancy, diabetes, or structural urinary problems. Most clinicians will start empiric treatment based on a positive dipstick while the culture results are pending, then adjust the antibiotic if the culture sensitivity data suggests a different drug. If you have urinary symptoms and are starting antibiotics empirically, also request STI testing at the same visit, you can take the UTI antibiotic and get the STI NAAT result back within 1–3 days to confirm no STI is also present.

Can sex cause a UTI?

Yes, sexual activity is the most common UTI trigger in premenopausal women. Penetrative vaginal sex mechanically pushes bacteria from the perianal and perivaginal skin toward the urethral opening, which is anatomically close to the vagina in women. Once bacteria reach the urethral opening, the short female urethra gives them a relatively direct path to the bladder. 'Honeymoon cystitis' is the historical term for this exact phenomenon. This does not mean your partner gave you anything, a UTI is not sexually transmitted. Your own gut bacteria (E. coli) are the source. Urinating within 30 minutes after sex is the single most effective prevention step and is recommended for all women who experience sex-associated UTIs.

Is a UTI contagious?

No. A UTI is caused by bacteria from your own body, primarily gut-derived E. coli, migrating to the urinary tract. It is not transmitted between people through sex, casual contact, or any other route. Your partner does not need to be tested or treated for a UTI (unless testing reveals that the symptoms are actually caused by an STI, in which case partner treatment is essential and the situation is completely different). If you have frequent UTIs after sex with a particular partner, the cause is mechanical, sex is pushing your own gut bacteria toward your urethra, not an infection from your partner.

What is the difference between a UTI and a kidney infection?

A UTI is an umbrella term for bacterial infection anywhere in the urinary tract: the most common form is cystitis, which is a bladder infection. A kidney infection (pyelonephritis) is a specific type of UTI in which the infection has ascended from the bladder up the ureters into the kidney tissue itself. The key distinguishing symptoms are systemic illness: fever above 38°C, chills, and one-sided back or flank pain (below the ribs) accompany the usual UTI burning and urgency when the kidneys are involved. A kidney infection is a medical emergency: it requires stronger antibiotics (often fluoroquinolones or IV ceftriaxone), a longer treatment course (7–14 days), and sometimes hospitalization. If you have any fever or flank pain with urinary symptoms, seek same-day care.

How do men get UTIs?

Men develop UTIs far less commonly than women because the male urethra is approximately 20cm long (compared to 4cm in women), making it much harder for bacteria to ascend to the bladder. When men do develop UTIs, it usually indicates an underlying cause: prostate enlargement (the most common reason in men over 50, as it causes incomplete bladder emptying), urinary tract abnormalities, kidney stones, or a recent urinary catheter. STI-related urethritis, from chlamydia or gonorrhea, causes burning and discharge that is clinically identical to a UTI urethritis and is far more common in sexually active young men than a true UTI. Any man with UTI symptoms should have STI testing (NAAT for chlamydia and gonorrhea) alongside a urinalysis, and if the UTI is confirmed, urological evaluation to identify the underlying cause.

Can I prevent UTIs?

Yes, there are several evidence-backed prevention strategies. The most effective single step is urinating within 30 minutes of sex. Staying well-hydrated (1.5–2 liters per day) and urinating regularly flushes bacteria before they can establish infection. Wiping front to back after using the toilet prevents transferring gut bacteria to the urethra. If you use a diaphragm with spermicide and have recurrent UTIs, switching contraception is one of the most impactful changes you can make, spermicide kills protective vaginal bacteria and significantly increases E. coli colonization. For postmenopausal women, vaginal estrogen (not systemic HRT) is the most underutilized and highly effective prevention tool, restoring protective vaginal flora. For confirmed recurrent UTIs (3+ per year), post-coital prophylaxis or low-dose daily antibiotics are options worth discussing with your provider.

Does cranberry juice prevent UTIs?

Cranberry products have a modest, inconsistent evidence base for UTI prevention, not treatment. The active compounds (proanthocyanidins) may prevent some E. coli strains from adhering to the bladder wall, which is the theoretical mechanism. A 2023 Cochrane review found some reduction in recurrent UTI risk with cranberry products compared to placebo, but the effect size was small and results were heterogeneous across trials. The American Urological Association acknowledges cranberry as a reasonable add-on for some people with recurrent UTIs. Critically: cranberry juice has no meaningful impact on an active UTI and should never substitute for antibiotic treatment. Cranberry products also interact with warfarin (blood thinner). High-sugar cranberry juice cocktails provide more sugar than benefit, cranberry supplements in capsule form have a better evidence profile and no sugar load.

Are UTIs dangerous in pregnancy?

Yes, UTIs in pregnancy are among the most clinically significant urinary infections, and all pregnant people are screened for them at the first prenatal visit even without symptoms. The reason is that pregnancy dramatically increases the risk of a bladder infection progressing to a kidney infection: hormonal changes relax the ureters and allow urine to flow backward, and the growing uterus compresses the ureters, slowing urine drainage. Asymptomatic bacteriuria, bacteria in urine without any symptoms, occurs in 2–10% of pregnant women and carries a 20–30× higher risk of progressing to pyelonephritis than the same finding in non-pregnant women. That progression is associated with preterm labor, low birth weight, and maternal sepsis. Treatment is mandatory for any confirmed UTI or asymptomatic bacteriuria in pregnancy, using pregnancy-safe antibiotics (nitrofurantoin in the first two trimesters, cephalexin throughout). A test-of-cure culture is recommended after completing treatment.

When should I see a doctor for a UTI?

See a clinician if you have fever, chills, back or side pain, blood in your urine, symptoms that do not clear in a day or two, recurrent UTIs, or if you are pregnant, since untreated UTIs can spread to the kidneys.

Medically Reviewed · Updated

Reviewed by Dr. Mateo Guerrero, MD · Sexual Health & Family Medicine

Family physician specializing in sexual health, PrEP/PEP care, and confidential STI screening. Front-line voice for prevention and 'what does this symptom mean' guidance. Our editorial guidelines →

6 Sources

Clinical guidance

Data & references

Have a different question? Browse the full STD & STI FAQ library, every question we answer, in one place.