Summary
A urinary tract infection occurs when bacteria enter the urinary tract and multiply. It most often involves the bladder (cystitis), and there is a more serious risk when the infection climbs to the kidneys (pyelonephritis). It is very common in women, because their urethra is shorter, and most women will have at least one in their lives. Fortunately, simple cystitis is cured quickly with a short course of antibiotic, but pyelonephritis, infection in pregnant women and in men call for greater care.
This article explains the symptoms, when a test and culture are needed, what antibiotic is given and for how long, when bacteria without symptoms should not be treated and how recurrences are prevented. It draws on NIDDK, urinary infection guidelines and accepted practice; it does not replace a medical visit.
How the infection happens
Most infections come from bowel bacteria, especially Escherichia coli, which pass from the area around the anus to the urethra and climb into the bladder. Urine is normally sterile; the bladder cleans itself by regular urination. When urine is held for long, when the bladder does not empty well or when there is an obstruction (stone, enlarged prostate), bacteria multiply more easily.
Risk factors include sexual intercourse, menopause (lack of estrogen changes the vaginal flora), diabetes, pregnancy, stones, an enlarged prostate, a urinary catheter and earlier infections. A simple infection is one in a healthy, non-pregnant woman with normal anatomy; anything else (men, pregnancy, uncontrolled diabetes, obstruction, catheter, systemic symptoms) is called complicated and needs a fuller evaluation.
Symptoms
Cystitis gives burning when urinating, urgency, frequent passing of small amounts, pain or pressure above the pubic bone and sometimes cloudy, strong-smelling or bloody urine. There is usually no high fever. When the infection climbs to the kidney (pyelonephritis), fever, chills, pain in the side of the back or the flank, nausea and vomiting appear, and generally a feeling of being very unwell.
In older people, infection may appear with confusion, a decline in condition or a fall, without the usual symptoms. In small children, fever without a clear cause may be the only sign. Blood in the urine with infection is often part of cystitis, but if it remains after recovery, it should be evaluated; see hematuria.
Tests and diagnosis
The diagnosis of simple cystitis in a woman with typical symptoms can be made from the history and a quick dipstick test, which looks for white cells and nitrites. A urine culture is requested when symptoms are atypical, when infection recurs, in men, in pregnant women, when pyelonephritis is suspected and when treatment does not work; it shows the bacterium and which antibiotics act. Good sample collection is important (midstream urine, after cleaning); see sample collection.
When pyelonephritis is suspected, blood tests are also done (white cells, CRP, creatinine). Ultrasound of the kidneys and bladder, performed at our clinic, is requested when there is severe pain, when there is no improvement within 48 to 72 hours or when a stone or obstruction is suspected. Kidney function is seen in kidney tests.
Treatment
Simple cystitis is treated with a short course of antibiotic, chosen by the doctor according to local resistance, allergies and other drugs; the course usually lasts from a single dose to a few days. Antibiotics commonly used in guidelines are nitrofurantoin, fosfomycin and trimethoprim–sulfamethoxazole depending on resistance; fluoroquinolones are reserved for special cases because of side effects. Symptoms usually improve within two to three days; if not, see the doctor and get a culture. Drink enough water and do not hold urine; common painkillers help the pain.
Pyelonephritis needs quick evaluation, often with a culture and a longer antibiotic course, and some patients are admitted for an antibiotic into a vein, especially when vomiting, with high fever, pregnant, elderly or with diabetes. In men, a urinary infection often calls for assessment of the prostate and a longer course. In pregnant women, bacteria in the urine are treated even without symptoms, because they raise the risk of pyelonephritis and premature birth. By contrast, in other people, bacteria without symptoms (found by chance in the urine) are usually not treated, because the antibiotic brings no benefit and raises resistance; exceptions are pregnancy and certain urologic procedures.
Recurrent infections
Recurrence is considered when there are two or more infections in six months, or three or more in a year. Each episode should be documented with a culture. Simple measures include drinking enough water, urinating after sexual intercourse, not holding urine and avoiding aggressive cleaning of the intimate area. In women after menopause, local vaginal estrogen lowers recurrences. Some trials show that cranberry has a limited effect in some women, while methenamine and low-dose antibiotic prophylaxis are options decided by the doctor, weighing benefit against resistance.
When infections recur in men, or when the culture stays positive, evaluation is needed for stones, an enlarged prostate, obstruction or incomplete bladder emptying, which can be treated. In diabetes, good sugar control helps.
Special situations
In pregnancy, urinary infection should be looked for and treated even without symptoms, because an untreated infection can worsen into pyelonephritis, with risk for the mother and for premature birth. Antibiotics are chosen only by the doctor, because not all are safe in pregnancy. In older people, symptoms are often not typical and cloudy or strong-smelling urine alone is not enough to decide treatment; the general condition is considered. In people with a urinary catheter, bacteria often appear without infection and are treated only when there are symptoms.
In children, a urinary infection can leave damage in the kidney when it recurs and is assessed by the pediatrician. In diabetes, good sugar control prevents complications; some newer diabetes drugs slightly raise genital infections and the doctor weighs this. In people with stones or obstruction, infection can worsen quickly and an emergency is closer.
Follow-up
After a simple cystitis no special follow-up is needed once symptoms pass. A urine check after treatment is done in pregnant women, in pyelonephritis and when symptoms persist. With recurrent infections, a visit is done every 6 to 12 months or more often during a trial of prevention, and kidney function, ultrasound and, as appropriate, the urologist are assessed.
Frequently asked questions
Should I take an antibiotic if my urine is cloudy but I have no symptoms? Usually not; bacteria without symptoms are not treated, except in pregnancy or before urologic procedures.
Do teas or cranberry cure the infection? No; they do not replace the antibiotic when there is an active infection.
Is it contagious? No; it does not pass from person to person like a cold.
Why does it keep happening? Causes include behavior, menopause, diabetes, stones or incomplete emptying; ask for an evaluation.
When to see your doctor
- burning and frequent urination that do not pass within 2–3 days
- fever, chills or pain in the side of the back
- symptoms during pregnancy or in men
- blood in the urine or a recurrent infection
- confusion in an older person with a suspected infection
What to bring to the visit
Bring earlier cultures and urine tests, the list of antibiotics used and their effect, allergies, other drugs (especially for diabetes), and note the number of infections in the last year and whether they were linked to sexual intercourse.
Key sources
This information is educational and does not replace a visit to the doctor. Do not change your treatment without consulting your doctor. Updated: November 2026.