Kidney stones get infected when a stone blocks urine flow, creating stagnant urine behind it that bacteria can colonize; infection then spreads from that trapped pool into the stone itself and, in severe cases, into the bloodstream (pyelonephritis and urosepsis). Most infection stones begin as struvite, which forms only when urease-producing bacteria raise urine pH. A blocked, infected kidney is a medical emergency, not a routine stone episode.

The obstruction-first mechanism

A stone does not need to be inherently infectious to cause infection. The critical event is obstruction. When a calculus lodges at the ureteropelvic junction or along the ureter, urine accumulates proximal to the blockage. Stagnant urine is a favorable medium: it holds nutrients, avoids regular washout, and lets planktonic bacteria adhere to surfaces and multiply. This is why infection risk tracks with degree and duration of obstruction more than with stone size alone.

Once bacteria establish in the trapped urine, they can form biofilms on the stone surface and within its pores. Biofilm bacteria are embedded in a self-produced matrix and are far less susceptible to antibiotics than free-floating organisms, which helps explain persistent infection despite treatment. The stone becomes a protected reservoir that can seed recurrent infection until it is removed.

There are two distinct clinical situations. In one, a pre-existing stone becomes secondarily infected. In the other, infection itself creates the stone—the infection-stone pathway described next. Both end in the same place: a stone, a biofilm, and a kidney that cannot drain.

How bacteria build a stone

Struvite stones, also called infection stones or triple-phosphate stones, are the clearest example of bacteria causing a stone rather than merely colonizing one. Certain bacteria produce an enzyme called urease, which splits urea into ammonia and carbon dioxide. The ammonia raises urine pH, and the alkaline environment drives magnesium, ammonium, and phosphate to precipitate as struvite (magnesium ammonium phosphate). Calcium phosphate co-precipitates, producing the mixed composition seen in most infection stones.

The key point is that struvite formation requires urease activity. Without urease-producing bacteria, this chemistry does not proceed. The main urease producers in the urinary tract are Proteus species, along with some Klebsiella, Providencia, and Staphylococcus organisms. Escherichia coli, the most common cause of uncomplicated urinary infection, does not produce urease and is therefore not a classic struvite former—though it frequently causes secondary infection of existing stones.

These stones grow fast. Because the chemical driver is ongoing bacterial enzyme activity, struvite can enlarge into a branched staghorn calculus that fills the renal pelvis. A staghorn is not just a large stone; it is a structural sign that the kidney has been colonized and partially obstructed for a sustained period.

Quantified context: size, pH, and risk

Several numbers sharpen the picture. Struvite and infection-related stones account for a meaningful minority of all kidney stones, commonly cited in the range of roughly 10 to 15 percent, with higher proportions in people who have recurrent urinary infections. Staghorn calculi are the extreme end of that group.

Urine pH is the practical marker. Urease-driven alkalinization pushes urine pH upward, often above 7.0 to 7.5, where struvite and calcium phosphate become insoluble. Normal urine is typically mildly acidic. A persistently alkaline urine pH in someone with recurrent infection is a chemical clue that urease-producing organisms may be present.

Stone size matters for obstruction and for infection risk. Small stones under about 5 millimeters often pass spontaneously; larger stones are more likely to lodge. Any obstructing stone with fever should be treated as infected until proven otherwise. The combination of obstruction and infection raises the risk of bacteremia and sepsis substantially, which is why the presence of fever changes management urgency rather than being a minor symptom.

The timeline from stone to sepsis

The progression is staged rather than instantaneous. The table below shows the typical sequence; timing varies by patient and organism.

Stage What happens Typical time course
Stone lodges Calculus obstructs ureter or pelvic junction Minutes to days after migration
Urine stasis Urine pools proximal to blockage Hours to days
Bacterial colonization Organisms adhere and multiply in stagnant urine Hours to days
Biofilm formation Bacteria embed on stone and in pores Days
Infection stone growth Urease raises pH; struvite precipitates Weeks to months
Pyelonephritis Infection spreads into kidney tissue Days after colonization
Bacteremia and urosepsis Bacteria enter bloodstream Hours to days if untreated

The clinically important column is the last two rows. A patient can move from a quiet obstructing stone to systemic infection quickly once bacteria are established. This is why a fever in the setting of a known obstructing stone is treated as an emergency rather than watched.

Edge cases and the professional caveat

The counterintuitive detail: a stone can be infected without the patient ever having typical urinary symptoms. Chronic obstruction can be relatively silent, and low-grade infection may smolder for weeks. Some people present first with systemic illness rather than flank pain or dysuria.

Another caveat concerns culture results. Standard urine cultures may underrepresent biofilm organisms living on the stone, so a "negative" or unremarkable culture does not fully exclude stone infection. The stone itself can harbor organisms that are not well sampled by voided urine.

Special populations deserve mention. People with diabetes, spinal cord injury, or long-term catheters have higher rates of urease-producing colonization and infection stones. Anatomic abnormalities and recurrent instrumentation also raise risk. Pregnant patients with obstructing infected stones require urgent specialist involvement because of maternal and fetal risk. Anyone with a single kidney and an obstructed infected stone is in a higher-risk category.

Red flags that mean emergency care

Fever or chills with flank pain or a known kidney stone. Confusion, rapid heart rate, or low blood pressure alongside urinary symptoms. Difficulty passing urine with severe flank pain. Signs of sepsis: racing pulse, fast breathing, or feeling acutely unwell. Known obstructing stone plus any systemic symptoms.

Stone type Main composition Infection connection
Struvite Magnesium ammonium phosphate Direct: urease bacteria cause formation
Calcium oxalate Calcium plus oxalate Indirect: can become secondarily infected
Calcium phosphate Calcium phosphate Indirect; favored by alkaline urine
Uric acid Uric acid Indirect; often associated with low urine pH
Cystine Cystine Inherited cause; infection is secondary

Only struvite is intrinsically infection-driven. The others can host infection when obstructed, which is why the obstruction mechanism matters across all stone types.

Misconceptions worth correcting

A common misconception is that any infected stone is a struvite stone. In reality, any obstructing stone can become infected, regardless of composition. Struvite is the type that infection creates, but secondary infection of calcium or uric acid stones is frequent.

Another misconception is that a large stone is automatically infected. Size raises obstruction risk, but infection status depends on stasis, bacterial presence, and time. A small obstructing stone with fever can be more dangerous than a large non-obstructing one without infection.

A third is that antibiotics alone solve an infected stone. Antibiotics can control planktonic bacteria and reduce systemic spread, but they do not reliably penetrate biofilm or remove the stone. The obstruction and the stone reservoir generally require drainage and eventual stone clearance; antibiotics are supportive, not curative, for the stone itself. This is the practical reason infected obstructing stones are managed with decompression plus antimicrobial therapy under specialist care.

Practical actions and thresholds

The right actions are about timing and escalation, not self-treatment.

Treat fever with an obstructing stone as urgent. Seek emergency care the same day; do not wait for the pain to resolve. Report the full picture: stone history, fever, chills, urine changes, and any confusion. A rapid heart rate or low blood pressure escalates urgency. Do not delay care to try home remedies when systemic symptoms appear. Hydration and pain control matter for uncomplicated stones, but systemic signs override them. For known struvite or staghorn stones, ask about complete stone removal rather than watchful waiting, because residual fragments perpetuate infection. For recurrent urinary infections with alkaline urine, ask whether urease-producing organisms and infection stones have been evaluated. Follow up on imaging recommendations; an obstructing stone that is not draining should be addressed promptly even if symptoms seem mild.

Limits of what we can conclude

Not every detail is settled. The exact threshold of obstruction duration that reliably produces infection is not precisely defined and varies by patient. Biofilm behavior on stones is studied but not fully predictable, and routine cultures cannot measure it directly. The proportion of stones that are struvite varies by population and care setting, so any single percentage should be read as a range rather than a fixed truth. What is well established is the causal chain: obstruction creates stasis, stasis enables bacterial colonization, urease-producing organisms can build struvite, and biofilm on the stone sustains infection. That chain is why infected obstructing stones are treated as emergencies, and why removing the stone—not just killing the bacteria—is central to resolving the problem.