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.
Patient case, mechanism, investigations, management, flashcards and exam-style questions.Open the lesson →

Key facts
- XGP is a rare chronic granulomatous pyelonephritis: renal parenchyma is replaced by foamy (xanthoma) macrophages, inflammatory cells and abscesses
- Strongly linked to chronic obstruction, especially staghorn calculi (in most cases), and to diabetes; women are affected more often than men
- Commonest organisms: Proteus mirabilis and Escherichia coli; urine culture may be negative in a significant minority because the kidney is obstructed
- Presentation: flank pain, fever, weight loss, a flank mass, recurrent UTI, anaemia, raised CRP and ESR, sometimes a discharging sinus
- CT 'bear paw' sign: enlarged kidney, central calculus, contracted pelvis, dilated low-attenuation calyces and poor enhancement
- Diffuse form (most cases) causes a non-functioning kidney; the focal form (tumefactive) can mimic renal cell carcinoma
- Extension: perinephric (stage II) and paranephric (stage III) spread, psoas abscess, nephrocutaneous or renocolic fistula
- Treatment: control sepsis (antibiotics, drainage), then nephrectomy; partial nephrectomy or antibiotics alone only for limited focal disease
Differential diagnosis
| Condition | Clues | Key test |
|---|---|---|
| Renal cell carcinoma | Solid enhancing mass, often without stones or infection; may have similar weight loss and anaemia | Contrast CT or MRI; histology (cytokeratin-positive tumour cells) |
| Renal tuberculosis | Sterile pyuria, calyceal distortion, calcification, past TB | Three early-morning urine mycobacterial cultures and NAAT |
| Pyonephrosis or renal abscess | Acute sepsis with obstructed infected kidney; no chronic destruction | Ultrasound and CT; responds to drainage |
| Emphysematous pyelonephritis | Gas in the kidney in a diabetic with severe sepsis | CT showing intraparenchymal gas |
| Malakoplakia | Chronic granulomatous infection with macrophages, often bladder | Histology: Michaelis–Gutmann bodies |
| Lymphoma or metastases | Multiple or bilateral masses, lymphadenopathy | CT staging, biopsy |
| Complex renal cyst (Bosniak III–IV) | Thick septa or nodules without infection | Contrast CT or MRI, Bosniak class |
Exam pearls
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
- European Association of Urology (EAU). EAU Guidelines on Urological Infections. EAU Guidelines Office, Arnhem 2025.
- 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.
- European Association of Urology (EAU). EAU Guidelines on Urolithiasis. EAU Guidelines Office, Arnhem 2026.
- Li L, Parwani AV.. Xanthogranulomatous pyelonephritis. Arch Pathol Lab Med 2011.
- Craig WD, Wagner BJ, Travis MD.. Pyelonephritis: radiologic-pathologic review. Radiographics 2008.
- Johnson JR, Russo TA. Acute pyelonephritis in adults. N Engl J Med 2018.
Related topics
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.