Clinical KnowledgeA–Z topicsExams ▾Start free

Clinical Knowledge › Internal medicine › Nephrology › Kidney stones, infection and obstruction

Xanthogranulomatous pyelonephritis

Xanthogranulomatous pyelonephritis (XGP) is a rare, chronic, destructive infection of the kidney in which renal tissue is replaced by sheets of lipid-laden foamy macrophages, abscesses and fibrosis. It almost always develops behind long-standing obstruction, most often a staghorn calculus, with recurrent infection by Proteus mirabilis or Escherichia coli. Typical patients are middle-aged women, often with diabetes, who present with weeks to months of flank pain, fever, weight loss, malaise and recurrent urinary infections; a flank mass, anaemia and high inflammatory markers are common. Contrast CT is diagnostic in most cases: an enlarged, poorly functioning kidney with a central stone, contracted pelvis and dilated calyces replaced by low-density pus-filled cavities ('bear paw' sign), often with spread into the perinephric fat, psoas or skin. The focal form can mimic a renal tumour. Treatment is antibiotics and drainage to control sepsis, followed by nephrectomy of the non-functioning kidney; partial nephrectomy suits limited focal disease. Histology confirms the diagnosis and excludes carcinoma.

Full interactive lesson
Patient case, mechanism, investigations, management, flashcards and exam-style questions.
Open the lesson →
CD68-positive macrophages in XGP
CD68-positive macrophages in XGP CD68 immunostain highlights sheets of macrophages and giant cells replacing renal parenchyma, the histological hallmark of xanthogranulomatous pyelonephritis. · Nephron · CC BY-SA 3.0 · Wikimedia Commons

Key facts

Differential diagnosis

ConditionCluesKey test
Renal cell carcinomaSolid enhancing mass, often without stones or infection; may have similar weight loss and anaemiaContrast CT or MRI; histology (cytokeratin-positive tumour cells)
Renal tuberculosisSterile pyuria, calyceal distortion, calcification, past TBThree early-morning urine mycobacterial cultures and NAAT
Pyonephrosis or renal abscessAcute sepsis with obstructed infected kidney; no chronic destructionUltrasound and CT; responds to drainage
Emphysematous pyelonephritisGas in the kidney in a diabetic with severe sepsisCT showing intraparenchymal gas
MalakoplakiaChronic granulomatous infection with macrophages, often bladderHistology: Michaelis–Gutmann bodies
Lymphoma or metastasesMultiple or bilateral masses, lymphadenopathyCT staging, biopsy
Complex renal cyst (Bosniak III–IV)Thick septa or nodules without infectionContrast CT or MRI, Bosniak class

Exam pearls

A staghorn stone plus a non-functioning enlarged kidney plus weight loss in a diabetic woman is XGP until proven otherwise.
Negative urine culture does not exclude XGP; the obstructed kidney may not drain into the bladder.
Foamy macrophages can look like clear cell RCC on frozen section; immunostains (CD68 positive, cytokeratin negative) help.
Antibiotics alone rarely cure diffuse XGP; they prepare the patient for nephrectomy.
Expect a difficult nephrectomy: dense fibrosis around the kidney, bowel and great vessels raises complication rates.
Assess the other kidney's function before nephrectomy, especially in diabetes and bilateral stone disease.

Guideline

No disease-specific guideline: EAU Guidelines on Urological Infections (2025), IDSA Complicated Urinary Tract Infection guideline (2025) and EAU Guidelines on Urolithiasis (2026) for obstructed infected kidneys and staghorn stones

References

  1. European Association of Urology (EAU). EAU Guidelines on Urological Infections. EAU Guidelines Office, Arnhem 2025.
  2. Infectious Diseases Society of America (IDSA). Clinical Practice Guideline for the Management of Complicated Urinary Tract Infections, including pyelonephritis. Infectious Diseases Society of America 2025.
  3. European Association of Urology (EAU). EAU Guidelines on Urolithiasis. EAU Guidelines Office, Arnhem 2026.
  4. Li L, Parwani AV.. Xanthogranulomatous pyelonephritis. Arch Pathol Lab Med 2011.
  5. Craig WD, Wagner BJ, Travis MD.. Pyelonephritis: radiologic-pathologic review. Radiographics 2008.
  6. Johnson JR, Russo TA. Acute pyelonephritis in adults. N Engl J Med 2018.

Related topics

Kidney stonesObstructive uropathyAcute pyelonephritisStone metabolic work-upReflux nephropathyRenal tuberculosisRenal cysts

By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.