Urinary Tract Infections: What Actually Treats Them

A urinary tract infection is one of the few common conditions where the right treatment is short, cheap and highly effective, and where being given the wrong one is remarkably easy. The commonest errors are not obscure: an antibiotic that never reaches the urine in useful amounts, a course run twice as long as it needs to be, and a kidney infection treated as though it were a bladder infection.
What follows is what actually works, how to tell the mild version from the one that needs urgent attention, and what genuinely reduces the odds of it happening again.
💡 The short version. Most urinary infections are bladder infections in otherwise healthy women, caused by E. coli that has travelled up the urethra from the bowel. Nitrofurantoin for five days is first choice in most guidelines and resolves the great majority. Longer courses are not better. Fever, back pain, shaking chills or vomiting mean the infection has reached a kidney, and that is a different problem needing a different antibiotic and prompt assessment.
🧫 What is actually happening
The urinary tract is normally sterile above the lower urethra, and it stays that way through mechanisms that are more mechanical than immunological. Urine flows downward and outward, flushing organisms out before they establish. The bladder lining resists adherence. Urine itself is fairly hostile to bacterial growth.
An infection begins when bacteria overcome all three. In the overwhelming majority of cases the organism is Escherichia coli from the person’s own bowel, which reaches the area around the urethral opening and travels upward. A smaller share is Staphylococcus saprophyticus, particularly in younger sexually active women, along with Klebsiella, Proteus and Enterococcus.
The strains that cause infection are not random bowel bacteria. Uropathogenic E. coli carry specific equipment for the job — adhesive fimbriae that grip the bladder lining and resist being washed away, iron-scavenging systems for an environment where iron is scarce, and toxins that damage the lining. This is why the same bacterium that lives harmlessly in the bowel of everyone causes infection in some people repeatedly and others never.
Two further findings explain a great deal about recurrence. Bacteria can invade the cells of the bladder lining and form quiescent reservoirs inside them, sheltered from both antibiotics and the immune system, emerging later to reinfect. And they form biofilms, particularly on catheters and stones, where they are dramatically harder to eradicate. A recurrence weeks after successful treatment is often not a new infection from outside but the same strain re-emerging from inside.
🚻 Why women, and why that is only half the story
The anatomical explanation is correct and incomplete. The female urethra is roughly four centimetres against about twenty in men, and its opening sits closer to the anus, so the journey a bacterium must make is far shorter. That alone accounts for most of the difference in frequency.
But it does not explain why some women get one infection in a lifetime and others get four a year, and the factors that do explain it are more useful because several are modifiable.
| Factor | Why it matters |
|---|---|
| Sexual activity | Mechanically moves bacteria toward and into the urethra. The strongest single risk factor in younger women |
| Spermicide use | Disrupts protective vaginal flora and encourages colonisation. Applies to spermicide-coated condoms and diaphragms |
| Menopause | Falling oestrogen thins the tissue and shifts vaginal flora away from protective lactobacilli. A major and treatable factor |
| Incomplete bladder emptying | Residual urine is a culture medium. Prolapse, neurological conditions and prostate enlargement in men all cause it |
| Diabetes | Glucose in urine, impaired bladder emptying and reduced immune response together |
| Stones | Bacteria shelter within them, so infection recurs until the stone is dealt with |
| Catheters | Bypass every defence and permit biofilm. Risk rises with each day the catheter stays in |
| Pregnancy | Hormonal relaxation of the ureters slows drainage; infection is likelier to reach the kidney |
| Genetic predisposition | A family history in a mother or sister is a real and consistent finding, reflecting inherited differences in how readily cells are colonised |
The menopause entry deserves emphasis because it is the one most often left unaddressed. Recurrent infections beginning in a woman’s fifties or sixties are frequently driven by tissue changes that respond well to a specific treatment, discussed further below, and are instead met with repeated antibiotic courses for years.
🏥 Where the infection sits changes everything
“Urinary tract infection” covers three quite different situations, and the distinction determines both urgency and drug choice.
| Level | Typical picture | Seriousness |
|---|---|---|
|
Urethritis urethra only |
Burning on passing urine, discharge, often no urgency or frequency | Frequently sexually transmitted rather than an ordinary UTI. Needs different testing and different antibiotics |
|
Cystitis bladder |
Burning, urgency, frequency, small volumes, lower abdominal discomfort, cloudy or bloody urine. No fever | Uncomfortable, rarely dangerous in a healthy adult, treated with a short oral course |
|
Pyelonephritis kidney |
Fever, one-sided flank or back pain, shaking chills, nausea and vomiting, feeling genuinely ill | Needs prompt medical assessment. Can progress to bloodstream infection and permanent kidney scarring |
The single most useful discriminator is fever. Cystitis does not generally cause it. A temperature, particularly with shaking chills or back pain, means the infection is higher than the bladder and the situation has changed.
Burning without frequency or urgency, especially with any discharge or a new sexual partner, points toward urethritis rather than cystitis, and the separate article on urethritis covers that route since the organisms and the treatment are entirely different.
🔴 Seek medical care the same day for fever above 38 degrees with urinary symptoms, one-sided back or flank pain, shaking chills, vomiting that prevents keeping fluids down, or symptoms in someone pregnant. Kidney infection treated late is how urinary infection becomes a hospital admission. In someone who is confused, unsteady, breathing fast or has a very low blood pressure, this is an emergency rather than a same-day appointment.
🔬 Testing and what it does not tell you
In a healthy non-pregnant woman with classic symptoms — burning, urgency, frequency, no vaginal discharge — the probability of infection is high enough that treatment is often started on the history alone. Testing matters more in everyone else.
Dipstick. Two findings count. Nitrites are quite specific: E. coli and its relatives convert nitrate in urine to nitrite, so a positive result strongly supports infection. Leukocyte esterase indicates white cells and is more sensitive but less specific.
The trap is the negative result. Nitrite production requires the urine to have sat in the bladder for some hours, so a dilute sample from someone passing urine every twenty minutes may be negative despite infection. And Staphylococcus saprophyticus and Enterococcus do not produce nitrites at all. A negative dipstick in someone with convincing symptoms does not rule out infection.
Culture identifies the organism and its antibiotic sensitivities, and takes a day or two. It is not needed for a straightforward first episode in a healthy woman. It is genuinely important for anyone pregnant, all men, children, recurrent infection, treatment failure, suspected kidney involvement, catheters, and anyone recently in hospital or recently on antibiotics.
Imaging is reserved for kidney infection that does not improve, suspected stones or obstruction, recurrent infection in men, and children.
💊 Which antibiotic, and why not the others
This is where treatment most often goes wrong, so it is worth setting out plainly.
| Agent | Role | Typical course | Notes |
|---|---|---|---|
| Nitrofurantoin | First line for bladder infection | 100 mg twice daily, 5 days | Concentrates in urine, resistance remains low after decades. Does not treat kidney infection |
| Trimethoprim with sulfamethoxazole | First line where local resistance is low | 3 days | Short and effective; resistance exceeds usable levels in many regions |
| Cephalosporins | Alternative, and used in pregnancy | 5 to 7 days | Somewhat less effective than the above for cystitis |
| Amoxicillin with clavulanate | Alternative | 5 to 7 days | Plain amoxicillin alone is unreliable because of widespread resistance |
| Ciprofloxacin, levofloxacin, ofloxacin | Reserve, and first choice for kidney infection | 7 days or more | Effective and carries serious risks, covered below |
| Azithromycin, clarithromycin | Not a urinary antibiotic | — | Does not reach useful concentrations in urine against the usual organisms |
The last row is the correction most worth making. Azithromycin is an excellent antibiotic for chest infections and for chlamydial urethritis, and it is the wrong drug for cystitis. It does not achieve the urinary concentrations needed against E. coli and appears in no guideline for this condition. Anyone treating a bladder infection with it has, in practice, taken nothing.
Why nitrofurantoin holds its position. It is excreted almost entirely into the urine, so it reaches high concentrations exactly where it is needed while doing relatively little to the bowel flora. Resistance has stayed low for decades, unusually among antibiotics, largely because that narrow distribution gives resistance little opportunity to develop and because it acts through several mechanisms at once rather than one.
Its limits are the flip side of its strength. It concentrates in urine and not in tissue, so it does not treat pyelonephritis and does not treat prostatitis. It requires reasonable kidney function to reach effective concentrations and is avoided where kidney function is significantly reduced. It should be avoided in G6PD deficiency and in the final weeks of pregnancy.
⏳ Why the course is shorter than you expect
Three to five days for a bladder infection sounds inadequate to anyone raised on ten-day courses, and the evidence is consistent: for uncomplicated cystitis, short courses cure as reliably as long ones while causing fewer side effects, less thrush, less bowel disturbance and less resistance.
Symptoms improve well before the course finishes, typically within a day or two, and that improvement is the antibiotic working rather than a signal to stop. Finishing the prescribed course as directed is the right approach for a course already deliberately kept short.
Kidney infection is the opposite situation and needs seven to fourteen days with an agent that penetrates kidney tissue, which is why the drug choice differs and why this is not a self-managed condition.
⚠️ Fluoroquinolones are effective and deliberately held in reserve. Ciprofloxacin and its relatives work well for urinary infection, and regulators in both the United States and Europe have restricted their use for uncomplicated infections because of uncommon but serious and sometimes lasting harms — tendon inflammation and rupture including the Achilles, peripheral nerve damage that can be permanent, effects on mood, sleep and cognition, and an increased risk of aortic aneurysm and dissection. Risk is higher over sixty, on corticosteroids, and after transplantation. They remain the right choice for pyelonephritis and for resistant organisms. They are the wrong first choice for a straightforward bladder infection when nitrofurantoin will do the job.
🔁 When it keeps coming back
Recurrent urinary infection is conventionally defined as two or more in six months or three or more in twelve, and it is common, exhausting and frequently managed badly — as a series of unconnected episodes rather than as a pattern with a cause.
The first step is establishing what is actually recurring. A relapse with the same organism within a couple of weeks suggests it was never fully cleared and points toward a stone, a structural problem or incomplete emptying. Reinfection with a different organism weeks or months apart is the far commoner pattern and is about susceptibility rather than a structural fault.
Measures with real evidence behind them
Vaginal oestrogen after the menopause. The strongest intervention available for this group. Local oestrogen restores the vaginal tissue and its protective flora and substantially reduces recurrence. Because it acts locally, systemic absorption is minimal, which matters to women who have reasonably avoided systemic hormone therapy. This is the measure most often missed.
Drinking more. A properly conducted trial in women with recurrent infection who habitually drank little found that adding around a litre and a half of water daily roughly halved the number of episodes. Simple, free, and effective in those who were previously drinking too little.
Methenamine hippurate. Not an antibiotic. It converts to formaldehyde in acidic urine, which is antibacterial without promoting resistance. A recent randomised trial found it non-inferior to daily antibiotic prophylaxis for preventing recurrence, which makes it a genuinely useful option for anyone wanting to avoid long-term antibiotics.
Low-dose antibiotic prophylaxis, either a small nightly dose or a single dose taken after sex where episodes are clearly linked to intercourse. Effective while taken, with the recurrence rate returning to baseline afterwards, and with the expected costs in resistance and side effects.
Self-start treatment. For women with a reliable history of recognising their own infections, holding a standby course to begin at the first symptoms shortens each episode considerably and avoids repeated appointments. It requires a prior discussion with a prescriber rather than improvisation.
Changing contraception away from spermicide and diaphragms where those are in use.
Measures with weaker evidence
Cranberry products contain proanthocyanidins that interfere with bacterial adherence. Trial results have been inconsistent, with recent analysis suggesting a modest benefit for recurrence prevention in women with repeated infections. It is a preventive measure of modest effect and not a treatment for an active infection. Cranberry juice drinks are mostly sugar and water.
D-mannose is a sugar thought to occupy the adhesive structures bacteria use to grip the bladder wall. Early studies were encouraging, later and better-conducted ones less so. It is safe and inexpensive, and worth a try rather than worth relying on.
Probiotics aimed at restoring vaginal lactobacilli are biologically plausible with modest and inconsistent trial support.
🚫 Bacteria in urine that should be left alone
This is counterintuitive and clinically important. Many people, particularly older adults and anyone with a long-term catheter, carry bacteria in their urine without any symptoms at all. This is asymptomatic bacteriuria, and treating it is actively harmful.
Treatment does not prevent later symptomatic infection, does not improve outcomes, and does cause side effects, Clostridioides difficile colitis and resistance. Guidelines are consistent and unusually firm on this.
There are two clear exceptions. Pregnancy, where untreated bacteriuria carries a real risk of progressing to kidney infection and of preterm birth, so screening and treatment are routine. And before urological procedures that will breach the lining of the urinary tract.
🧓 The confusion trap in older adults. An older person becomes confused, a urine sample is sent, bacteria grow, and a urinary infection is diagnosed and treated. Because bacteriuria is so common in this age group, that sequence produces the diagnosis regardless of whether it is correct — and the actual cause of the confusion, which might be dehydration, a medication, pain, a chest infection or a stroke, goes unexamined while antibiotics are given for something that was not the problem. Confusion without urinary symptoms and without fever is not sufficient grounds to diagnose a urinary infection. The bacteria in the sample were very likely there last month too.
🤰 Pregnancy
Urinary infection in pregnancy is treated more seriously and more thoroughly than outside it, for good reason. Hormonal relaxation and mechanical pressure slow drainage through the ureters, so bacteria reach the kidney far more readily, and pyelonephritis in pregnancy carries risks to both mother and pregnancy including preterm labour.
Consequently: asymptomatic bacteriuria is screened for and treated, courses are generally longer than the three to five days used otherwise, culture is always sent, and a repeat sample confirms clearance afterwards.
Antibiotic choice is constrained. Cephalosporins are widely used. Nitrofurantoin is used through much of pregnancy but avoided in the final weeks because of a risk of red cell breakdown in the newborn. Trimethoprim is avoided in the first trimester as a folate antagonist. Fluoroquinolones and tetracyclines are avoided. No antibiotic should be taken in pregnancy without it being prescribed for that pregnancy.
👨 In men, and in children
In men, urinary infection is uncommon enough that it is never treated as routine. The longer urethra and antibacterial prostatic secretions make it unusual, so an infection prompts the question of why it happened — prostate enlargement causing incomplete emptying, a stone, a stricture, or prostatitis.
Practical consequences: culture is always sent, courses are longer, and nitrofurantoin is a poor choice where the prostate is involved because it does not penetrate prostatic tissue. Recurrent infection in a man warrants urological assessment rather than repeated courses.
In children, presentation is often non-specific — fever without an obvious source, poor feeding, irritability, vomiting, or new bedwetting in a child who was dry. Urinary infection is a recognised cause of unexplained fever in infants and is easily missed.
It matters more than in adults because kidney infection in a young child can leave permanent scarring, and because it may reveal vesicoureteral reflux, where urine travels backward from the bladder toward the kidneys. Confirmed infection in a young child is therefore investigated rather than simply treated.
🧴 What helps, what does not, and the myths
Alongside antibiotics, several measures ease symptoms while the infection clears.
Drink more. Dilutes the urine and flushes the bladder. The most useful thing to do while waiting for treatment to work.
Ordinary painkillers reduce the discomfort. Note that taking anti-inflammatories instead of antibiotics has been trialled and produced more kidney infections, so this is symptom relief alongside treatment rather than an alternative to it.
Empty the bladder fully and often, and after sex, which is harmless and plausibly helpful.
Avoid irritants during an episode — caffeine, alcohol and heavily spiced food all aggravate an inflamed bladder.
Against those, several widely repeated measures do not stand up.
Vaginal douching and scented hygiene products disrupt protective flora and make infection more rather than less likely. Plain water is correct.
Cranberry juice as a treatment for an active infection does not work. As modest prevention in recurrent cases it has some support.
Holding urine causes infection is overstated. Regular emptying is sensible; occasional delay is not the cause of a bladder infection.
Leftover antibiotics from last time may be the wrong drug, the wrong dose or an insufficient quantity, and taking a partial course is a reliable way to breed a resistant organism while not curing anything.
🩺 When to seek medical advice
- Fever, chills, back or flank pain, nausea or vomiting — possible kidney infection, same day
- Any urinary symptoms in pregnancy
- Symptoms in a man, at any age
- Symptoms in a child, or unexplained fever in an infant
- No improvement after two days on an antibiotic
- Visible blood in the urine, and particularly blood persisting after the infection clears
- Two or more infections in six months, which needs a plan rather than another course
- Confusion or unsteadiness in an older person alongside genuine urinary symptoms
- Diabetes, reduced kidney function, a transplant, a catheter or a stone — none of these is a simple UTI
Treatment is stocked in the antibiotics category, including Macrobid (nitrofurantoin 100 mg) as the first-line agent for bladder infection, Bactrim (sulfamethoxazole with trimethoprim), Keflex (cephalexin) and Cipro (ciprofloxacin). Which of these is appropriate depends on the organism, the site of infection and local resistance, which is why the culture matters.
❓ Frequently asked questions
Which antibiotic is first choice for a bladder infection?
Nitrofurantoin, 100 mg twice daily for five days, in most current guidelines. It is excreted almost entirely into the urine so it concentrates exactly where it is needed, resistance has stayed low for decades, and it disturbs bowel flora relatively little. Trimethoprim with sulfamethoxazole for three days is the other first-line option where local resistance is low enough.
Does azithromycin treat a urinary tract infection?
No. Azithromycin does not reach useful concentrations in urine against E. coli and the other usual urinary organisms, and it appears in no guideline for cystitis. It is an appropriate antibiotic for chest infections and for chlamydial urethritis, which is a different condition. Someone treating a bladder infection with it has effectively taken nothing.
Is five days really long enough?
Yes, for an uncomplicated bladder infection. Short courses have been shown repeatedly to cure as reliably as long ones while causing fewer side effects, less thrush, less bowel disturbance and less resistance. Symptoms usually improve within a day or two, which is the antibiotic working rather than a signal to stop early. Kidney infection is different and needs seven to fourteen days.
How do I know if it has reached my kidneys?
Fever is the key discriminator, since a bladder infection does not generally cause one. Fever above 38 degrees, one-sided back or flank pain, shaking chills, nausea and vomiting, and feeling genuinely unwell rather than merely uncomfortable all point to the kidney. That needs same-day medical assessment, a different antibiotic that penetrates kidney tissue, and a longer course.
Why is nitrofurantoin no good for a kidney infection?
For the same reason it works so well for the bladder. It concentrates in urine rather than in tissue, so it reaches high levels in the bladder and inadequate levels in kidney tissue and in the prostate. That is why kidney infection needs a different agent, and why nitrofurantoin is a poor choice in men where the prostate may be involved.
My dipstick was negative but I have symptoms. Am I fine?
Not necessarily. Nitrite production needs the urine to have sat in the bladder for some hours, so a dilute sample from someone passing urine constantly can read negative despite real infection. Staphylococcus saprophyticus and Enterococcus produce no nitrites at all. A negative dipstick with convincing symptoms does not rule out infection, and a culture is the way to settle it.
Why is ciprofloxacin not given first any more?
It works, and regulators in both the United States and Europe have restricted fluoroquinolones for uncomplicated infections because of uncommon but serious and sometimes lasting harms — tendon inflammation and rupture, peripheral nerve damage that can be permanent, effects on mood and cognition, and increased aortic aneurysm risk. Risk is higher over sixty and on corticosteroids. They remain right for kidney infection and resistant organisms.
I keep getting them. What actually prevents recurrence?
After the menopause, vaginal oestrogen is the strongest measure available and the one most often missed. Drinking around a litre and a half more water daily roughly halved episodes in women who previously drank little. Methenamine hippurate is not an antibiotic and performed comparably to antibiotic prophylaxis in a recent trial. Moving off spermicide and diaphragms helps where relevant.
Does cranberry work?
As modest prevention in women with repeated infections, there is some support, and results across trials have been inconsistent. As treatment for an infection you already have, it does not work. Cranberry juice drinks are largely sugar and water. D-mannose is in a similar position — safe, inexpensive, encouraging early studies and less convincing later ones, worth trying rather than relying on.
Bacteria were found in my urine but I feel fine. Do I need treatment?
Usually not. Asymptomatic bacteriuria is common, particularly in older adults and anyone with a catheter, and treating it does not prevent later infection or improve outcomes while it does cause side effects, C. difficile colitis and resistance. Guidelines are firm about leaving it alone. The exceptions are pregnancy, where it is screened for and treated, and before urological procedures.
My elderly mother is confused. Is it a urine infection?
Possibly, and this is the commonest overdiagnosis in older people. Bacteriuria is so frequent in this age group that a sample will often grow something regardless, which produces the diagnosis whether or not it is correct, while the real cause — dehydration, a medication, pain, a chest infection, a stroke — goes unexamined. Confusion without urinary symptoms and without fever is not sufficient grounds for the diagnosis.
Can a man have a simple urinary infection?
It is never treated as simple. The longer urethra and antibacterial prostatic secretions make infection uncommon in men, so an episode raises the question of why — prostate enlargement causing incomplete emptying, a stone, a stricture or prostatitis. Culture is always sent, courses are longer, nitrofurantoin is a poor choice where the prostate is involved, and recurrence warrants urological assessment.
Can I just take antibiotics left over from last time?
It is a poor idea. The leftovers may be the wrong drug for this organism, the wrong dose, or too few tablets to complete a course, and a partial course is an efficient way to select a resistant organism without curing the infection. Some women with a well-established pattern are given a standby course specifically for this purpose, which is a plan agreed with a prescriber rather than improvisation.
📑 Sources and editorial
- IDSA and European Association of Urology guidance on uncomplicated cystitis and pyelonephritis
- IDSA guideline on the management of asymptomatic bacteriuria
- Randomised trial of increased water intake for recurrent cystitis prevention
- Randomised trial of methenamine hippurate versus antibiotic prophylaxis for recurrent urinary infection
- Cochrane review of cranberry products for preventing urinary tract infections
- Trials of vaginal oestrogen for recurrent infection in postmenopausal women
- FDA and EMA safety communications restricting fluoroquinolone use in uncomplicated infections
- Research on intracellular bacterial communities and uropathogenic E. coli virulence factors
- FDA prescribing information for nitrofurantoin, sulfamethoxazole with trimethoprim, cephalexin and ciprofloxacin
- Related reading: urethritis, what azithromycin is actually for
- Related products: antibiotics category
- RXshop Editorial Team — reviewed by Emily Chen, MD, MPH, Internal Medicine
Medical Disclaimer: The information in this article is for educational and informational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. Always seek guidance from a qualified healthcare provider with any questions you may have regarding a medical condition, and before starting, stopping or changing any medication.