PharmingoGet the app
Genitourinary · Foundations

Urinary Tract Infections: Choosing and Timing the Antibiotic

A urinary tract infection is the commonest reason a healthy adult is handed an antibiotic — and one of the best places to learn how antibiotics are actually chosen. The right drug isn't the strongest one; it's the one that concentrates where the bug is, spares the ones that don't need treating, and fits the patient in front of you: pregnant or not, kidneys working or failing, first attack or fifth this year. Get those questions right and a UTI is three days and done. Get them wrong and you breed resistance, miss a pyelonephritis, or poison a fetus.

14 min read🎯 Linked lesson: Urinary tract infections· Updated 2026-07-18
THE SCENE

A 24-year-old woman comes in with two days of burning on passing urine, going far more often than usual, and a nagging ache low in her pelvis. No fever, no back pain, no vomiting. She is otherwise well and not pregnant. Her urine is cloudy; a dipstick lights up for nitrites and leucocytes. This is textbook uncomplicated cystitis — an infection confined to the bladder — and it needs neither a culture nor a broad-spectrum antibiotic. Three days of nitrofurantoin will almost certainly cure her. Now change one detail: give her a temperature of 39°C, rigors, and tenderness over the kidney, and the same organism has climbed to the upper tract. That patient has pyelonephritis, and nitrofurantoin — brilliant in the bladder — would fail her completely. Same bug, same woman, entirely different drug. The whole of UTI management lives in telling those two apart.

First, classify — the diagnosis chooses the drug

"UTI" is not one disease. Four clinical pictures sit under the label, and each is managed differently. Uncomplicated cystitis is a lower-tract (bladder) infection in an otherwise healthy, non-pregnant adult with a normal urinary tract — burning, frequency, urgency, suprapubic discomfort. Complicated or upper-tract infection means the infection has reached the kidney (pyelonephritis: fever, flank pain, systemic illness), or the patient has a structural or functional problem (obstruction, stones, catheter, immunosuppression, poor kidney function) that makes failure and progression more likely. Asymptomatic bacteriuria is bacteria in the urine with no symptoms at all — and, crucially, in most people it should not be treated. Catheter-associated UTI is its own category, because a catheter is always colonised and the urine is never sterile. Naming which of the four you are looking at is the single most important step, because it decides whether to treat, which drug reaches the site, and how long to give it.

The organisms — know your enemy

Empirical therapy works because the culprits are predictable. Escherichia coli — a gut coliform that ascends the short female urethra — causes the large majority of community UTIs. Behind it come the other Enterobacterales: Klebsiella, Proteus (a urea-splitter that raises urinary pH and favours struvite stones), and Enterococcus. In young, sexually active women a second name matters: Staphylococcus saprophyticus, a coagulase-negative staphylococcus that is a classic cause of cystitis in that group. Because E. coli dominates so heavily, guidelines let you start an antibiotic on the clinical picture alone in simple cystitis, sending urine for culture only when the diagnosis is uncertain, the infection is complicated or upper-tract, the patient is pregnant, or the first drug fails. The predictability of the bug is exactly what makes short, targeted, culture-free treatment safe.

THE ANALOGY

Think of the urinary tract as a river with a treatment plant at the end. Most antibiotics are cleared by the liver or spread evenly through the blood — they flow past the plant at ordinary strength. But a handful of drugs are dumped, concentrated, straight into the water: the kidney filters them and they pile up in the urine at levels many times higher than anywhere else in the body. For an infection that lives in that water — bladder cystitis — those are the perfect weapons, lethal exactly where the bug swims and barely present elsewhere. But if the infection has burrowed into the riverbank — the kidney tissue of pyelonephritis, or the bloodstream — a drug that only concentrates in the flowing water never reaches it. That single idea, "where does the drug concentrate versus where does the infection live," explains almost every UTI drug choice.

First-line drugs for cystitis — and why they suit the bladder

The two workhorses are chosen precisely because they concentrate in urine and spare the rest of the body. Nitrofurantoin is first-line for uncomplicated cystitis. The kidney concentrates it into the urine, where it is reduced by bacterial enzymes into reactive intermediates that damage bacterial DNA, ribosomes and metabolism at multiple points at once — a scattergun mechanism that has kept resistance strikingly low over decades. But those same properties define its limits. It achieves useful levels only in urine, never in tissue or blood, so it is useless in pyelonephritis and must never be used when infection has left the bladder. It is contraindicated in significant renal impairment (broadly an eGFR below about 45 mL/min): failing kidneys can't concentrate it into the urine, so it fails to work while accumulating systemic toxicity (peripheral neuropathy, and with long-term use pulmonary fibrosis and hepatotoxicity). And it is avoided at term and in the neonatal period because it can trigger haemolysis in the newborn — dangerous in G6PD deficiency, a link back to the Haematology chapter, where nitrofurantoin sits on the standard list of oxidant drugs that haemolyse G6PD-deficient red cells.

Trimethoprim is the main first-line alternative. It is a folate antagonist: it inhibits bacterial dihydrofolate reductase, starving the organism of the tetrahydrofolate it needs to make DNA — the same folate-pathway logic taught in the Antimicrobials section, where trimethoprim is often paired with a sulfonamide as co-trimoxazole to block two consecutive steps. Two cautions dominate its use. It is teratogenic in the first trimester: by blocking folate it raises the risk of neural tube defects, so it is avoided in early pregnancy (and folate supplementation matters if it must be used later). And because it structurally resembles amiloride, it blocks the distal renal sodium channel and reduces potassium excretion — so it can cause hyperkalaemia, especially in older patients, in renal impairment, or alongside ACE inhibitors, ARBs or potassium-sparing diuretics. It also raises creatinine by blocking its tubular secretion (often a benign, reversible rise) and potentiates warfarin. Rising E. coli resistance to trimethoprim in many regions is now steering first-line choice back toward nitrofurantoin.

Two more urine-directed options round out the cystitis toolkit. Fosfomycin, given as a single 3 g oral dose, inhibits an early step in bacterial cell-wall synthesis and reaches very high urinary concentrations; its single-dose convenience and activity against many resistant organisms — including some ESBL-producing E. coli — make it valuable when resistance limits the usual choices. Pivmecillinam, a penicillin (an amidinopenicillin) with particular Gram-negative activity, is another well-established first-line cystitis agent in many countries. All of these share the same design principle: hit the bug hard in the urine, spend little of the drug systemically, and keep the course short.

Key points
  • Four categories: uncomplicated cystitis, complicated/upper-tract (pyelonephritis), asymptomatic bacteriuria, catheter-associated — classify before you prescribe.
  • E. coli causes most UTIs; think Staph. saprophyticus in young sexually active women; Proteus splits urea and raises urinary pH.
  • Nitrofurantoin and trimethoprim are first-line for uncomplicated cystitis because they concentrate in urine.
  • Nitrofurantoin fails in pyelonephritis (no tissue levels), is contraindicated below ~eGFR 45, and is avoided at term (G6PD/neonatal haemolysis).
  • Trimethoprim is a folate antagonist: teratogenic in the first trimester, and can raise potassium (amiloride-like) and creatinine.
  • Fosfomycin (single dose) and pivmecillinam are useful urine-directed alternatives, fosfomycin especially for resistant organisms.

Pyelonephritis — the infection has left the bladder

Once the infection is in kidney tissue or the blood, the drug must achieve good tissue and serum levels — the opposite of the urine-only agents. Treatment is therefore a systemic antibiotic and a longer course (typically 7–14 days rather than 3). Oral options for a stable patient include co-amoxiclav (amoxicillin with the beta-lactamase inhibitor clavulanate, restoring activity against beta-lactamase-producing E. coli), cephalexin (an oral cephalosporin), and ciprofloxacin, a fluoroquinolone with excellent renal-tissue penetration. Fluoroquinolones work superbly here but carry class cautions that have narrowed their use: tendonitis and tendon rupture, aortic aneurysm/dissection, QT prolongation, dysglycaemia, C. difficile risk and neuropsychiatric effects — so they are reserved rather than first-reached-for, and the mechanistic detail (DNA gyrase/topoisomerase inhibition and resistance) lives in the Antimicrobials section. A septic or vomiting patient needs admission and intravenous therapy (for example a broad-spectrum cephalosporin or gentamicin), with local resistance patterns always steering the empirical choice. And any pyelonephritis that fails to settle demands imaging to exclude obstruction or an abscess — pus behind a blockage will never clear on antibiotics alone.

💡 CLINICAL PEARL

The single highest-yield rule in the whole topic: don't treat asymptomatic bacteriuria — with one great exception, pregnancy. Bacteria in the urine of a non-pregnant person with no symptoms almost never benefit from antibiotics; treating merely selects for resistant organisms and exposes them to side effects, and this is a leading source of antibiotic overuse in the elderly and the catheterised, whose urine is positive by default. But in pregnancy the calculus flips completely. Untreated asymptomatic bacteriuria in a pregnant woman carries a real risk of ascending to pyelonephritis and is linked to preterm birth and low birthweight — so pregnant women are screened and treated even without symptoms. "Don't treat bacteriuria — unless she's pregnant" is one of the most tested principles in genitourinary pharmacology.

Pregnancy — the same bugs, tighter rules

Two safe drugs, each unsafe at one end of pregnancy — timing is everything. Pregnancy compresses the whole topic into a timing problem. Asymptomatic bacteriuria is actively screened for and treated (unlike in the non-pregnant). But the two first-line cystitis drugs each carry a trimester-specific hazard. Trimethoprim is avoided in the first trimester because folate antagonism raises the risk of neural tube defects; it is the wrong drug in early pregnancy. Nitrofurantoin, conversely, is generally acceptable in the first two trimesters but avoided near term (and in labour) because of the risk of neonatal haemolysis. So the practical teaching is a neat inversion: nitrofurantoin early, trimethoprim (with folate) if needed later — never the reverse. When neither fits, a beta-lactam such as amoxicillin (culture-guided), co-amoxiclav or cephalexin is the reliable pregnancy-safe fallback. This dovetails with the pregnancy-prescribing chapter, which teaches the same trimester-mapping logic across every drug class.

Recurrent UTI — prevention beyond the antibiotic

Recurrent UTI (broadly two or more in six months, or three or more in a year) is managed by climbing a ladder before reaching for continuous antibiotics. Behavioural and simple measures come first: good fluid intake (a randomised trial showed increased water alone cuts recurrences), not delaying voiding, and post-coital voiding where infections are sex-associated. In postmenopausal women, oestrogen deficiency thins the vaginal epithelium and shifts the flora away from protective lactobacilli, raising UTI risk — so topical vaginal oestrogen restores the mucosa and measurably reduces recurrence, a therapy that connects directly to the Menopause and incontinence chapters (the same low-dose local oestrogen used for genitourinary syndrome of menopause). Non-antibiotic options such as methenamine hippurate — which is hydrolysed in acidic urine to formaldehyde, a bladder antiseptic rather than a true antibiotic — are increasingly used to avoid resistance. Only when these fail is antibiotic prophylaxis considered: low-dose nightly nitrofurantoin or trimethoprim, or single post-coital doses, always weighed against the resistance and long-term-toxicity cost of continuous exposure.

Matching the drug to the picture

Non-pregnant woman, simple cystitis → 3 days of nitrofurantoin (or trimethoprim if local resistance is low), no culture needed. Pregnant woman, cystitis or asymptomatic bacteriuria → treat; nitrofurantoin early, avoid trimethoprim in the first trimester and nitrofurantoin at term; beta-lactam as fallback. Febrile flank pain (pyelonephritis), stable → oral co-amoxiclav, cephalexin or ciprofloxacin for 7–14 days; septic → admit for IV. Positive urine culture but no symptoms and not pregnant → do not treat. Four cystitis episodes a year → fluids, post-coital voiding, vaginal oestrogen if postmenopausal, methenamine, and only then low-dose prophylaxis. One diagnosis, five different right answers.

Key points
  • Pyelonephritis needs a systemic agent with tissue penetration (co-amoxiclav, cephalexin, ciprofloxacin) and a longer 7–14 day course — never nitrofurantoin.
  • Don't treat asymptomatic bacteriuria — except in pregnancy, where it is screened and treated to prevent pyelonephritis and preterm birth.
  • Pregnancy timing: nitrofurantoin early (not at term), avoid trimethoprim in the first trimester; beta-lactam as fallback.
  • Fluoroquinolones are effective in pyelonephritis but reserved due to tendon, aortic, QT and neuropsychiatric class warnings.
  • Recurrent UTI: behavioural measures and vaginal oestrogen (postmenopausal) first, then methenamine, then low-dose antibiotic prophylaxis.
  • Non-resolving pyelonephritis needs imaging to exclude obstruction or abscess — antibiotics alone won't clear pus behind a blockage.
⚠️ Common mistakes
  • Prescribing nitrofurantoin for pyelonephritis or in significant renal impairment — it never reaches tissue and fails while accumulating toxicity below ~eGFR 45.
  • Treating a positive urine culture in an asymptomatic, non-pregnant patient — this drives resistance and side effects without benefit.
  • Giving trimethoprim in the first trimester (folate antagonist, neural tube defects) or nitrofurantoin at term (neonatal haemolysis, worse in G6PD deficiency).
🎓 Questions students ask
Why is nitrofurantoin useless for a kidney infection when it works so well for cystitis?
Because it only ever reaches high concentrations in the urine, not in blood or tissue. Cystitis is an infection sitting in the urine inside the bladder, so a urine-concentrated drug is ideal. Pyelonephritis is an infection burrowed into the kidney tissue itself, where nitrofurantoin levels are far too low to be effective. The drug's greatest strength — urinary concentration — is exactly why it fails once the infection leaves the bladder.
Everyone says drink cranberry juice — does it actually work?
The evidence is weak and inconsistent. The idea is that proanthocyanidins in cranberry stop E. coli adhering to the bladder wall, but trials have been mostly disappointing and it is not a treatment for an established infection. Far better-supported measures for recurrence are simply drinking more water, vaginal oestrogen in postmenopausal women, and methenamine. Cranberry is low-risk, so it is not harmful to try, but it should never replace proper treatment of an active UTI.
The elderly nursing-home resident's urine is cloudy and smells — shouldn't I give an antibiotic?
Usually not. Cloudy or smelly urine on its own, and a positive dipstick without symptoms, most often represent asymptomatic bacteriuria, which is extremely common in the elderly and should not be treated. Antibiotics here only breed resistance and cause harm such as C. difficile. Treat only if there are genuine UTI symptoms — dysuria, new frequency, suprapubic or flank pain, or systemic features. Confusion alone, without other signs, is a poor reason to treat and often has another cause.
Test yourself

A 68-year-old woman with an eGFR of 32 mL/min develops fever, rigors and right flank pain. Urine culture grows E. coli. Which drug is the LEAST appropriate choice?

🫁 In one breath
  • Classify first: uncomplicated cystitis, complicated/upper-tract (pyelonephritis), asymptomatic bacteriuria, or catheter-associated — the category chooses the drug and the duration.
  • E. coli dominates; nitrofurantoin and trimethoprim are first-line for cystitis because they concentrate in urine — nitrofurantoin is useless in pyelonephritis and contraindicated below ~eGFR 45 and near term.
  • Pyelonephritis needs a systemic tissue-penetrating agent (co-amoxiclav, cephalexin, ciprofloxacin) for 7–14 days; don't treat asymptomatic bacteriuria except in pregnancy.
  • Recurrent UTI: fluids, post-coital voiding, vaginal oestrogen in postmenopausal women and methenamine before low-dose antibiotic prophylaxis — stewardship (short courses, no bacteriuria treatment) runs through everything.
📚 Sources
  • NICE NG109 — Urinary tract infection (lower): antimicrobial prescribing.
  • NICE NG111 — Pyelonephritis (acute): antimicrobial prescribing; and NG112 — Recurrent UTI.
  • British National Formulary (BNF) — Urinary-tract infections; nitrofurantoin and trimethoprim monographs and cautions.
  • EAU Guidelines on Urological Infections (European Association of Urology).
  • Rang & Dale's Pharmacology — Antibacterial drugs (folate antagonists, nitrofurantoin, beta-lactams, fluoroquinolones).
  • Nicolle LE, et al. IDSA Clinical Practice Guideline for the Management of Asymptomatic Bacteriuria.

More in The Urinary Tract as a Drug Target →

Learn pharmacology and anatomy the fun way

Short lessons, interactive quizzes, a real 3D anatomy model, and a streak you'll actually keep.

Download on the App StoreGet it on Google Play