What Is Xanthogranulomatous Pyelonephritis (XGP)?

Xanthogranulomatous pyelonephritis, usually shortened to XGP, is a rare, destructive form of chronic kidney infection in which the normal kidney tissue is gradually replaced by masses of fat-laden immune cells called lipid-filled macrophages.1PubMed Central. Xanthogranulomatous pyelonephritis: Rare presentation of a rare disease It almost always develops in the setting of a long-standing urinary obstruction, most often a kidney stone, combined with a persistent bacterial infection. Because the disease can destroy the kidney and spread into surrounding tissues, and because it frequently mimics kidney cancer on imaging, it poses real diagnostic and surgical challenges that make it worth understanding in detail.

How the Disease Develops

XGP begins when a kidney becomes chronically obstructed and infected at the same time. A large stone blocks urine drainage, bacteria multiply in the stagnant urine, and the immune system mounts an unusual inflammatory response. Instead of the typical infection-fighting process that resolves once bacteria are cleared, the body sends in macrophages that engulf bacterial debris and lipids but cannot fully clear them. These macrophages swell with cholesterol and other fats, giving them a foamy, yellowish appearance under the microscope. Over time, sheets and nodules of these so-called xanthomatous histiocytes build up, mixed with neutrophils, lymphocytes, and plasma cells.2PubMed Central. Clinicopathological Spectrum of Xanthogranulomatous Pyelonephritis The result is a granulomatous mass that progressively replaces functional kidney tissue, often leaving the kidney enlarged, non-functional, and filled with pus and yellowish nodular tissue.

The exact reason some infected, obstructed kidneys develop this xanthomatous reaction while others simply form a conventional abscess remains unclear. Researchers have suggested that an abnormal immune or metabolic response to certain bacterial components plays a role, but no single mechanism has been pinned down. What is well established is the triad that nearly always precedes XGP: chronic urinary obstruction, kidney stones, and persistent infection.3Radiology Case Reports. Xanthogranulomatous pyelonephritis: A case report and literature review

Which Bacteria Are Involved

The microbiological picture is dominated by common urinary tract pathogens. Escherichia coli is the organism cultured most often, found in roughly 30% of cases. Klebsiella species come next at about 19%, followed by Proteus at around 8%, with Pseudomonas, Enterococcus, and even Candida species each appearing in about 5% of cultures.4PubMed Central. Xanthogranulomatous pyelonephritis infected with the Providencia stuartii: a case report and literature review A meta-analysis of published cases confirmed that E. coli and Proteus mirabilis are the two most commonly cultured organisms overall.5PubMed. Xanthogranulomatous pyelonephritis: a review and meta-analysis with a focus on management Unusual organisms do show up occasionally, which matters because antibiotic therapy needs to be guided by culture results rather than assumptions.

Who Gets XGP

Middle-aged women are the most commonly affected group. The typical patient has a history of recurrent urinary tract infections, kidney stones, or both.6PubMed Central. Severe Xanthogranulomatous Pyelonephritis With Staghorn Calculi and Perinephric Abscess: A Case Report Diabetes, immune-compromising conditions, and any anatomical abnormality of the urinary tract that promotes stagnation and stone formation increase the risk. Staghorn calculi, the large branching stones that fill the entire collecting system of the kidney, are particularly associated with XGP. In one series of 30 patients, kidney stones were present in more than half the cases, with staghorn stones specifically found in about a quarter.7PubMed. Xanthogranulomatous pyelonephritis: critical analysis of 30 patients

Men are not immune, however. Elderly men with prostatic enlargement can develop the condition when poor bladder emptying leads to chronic urinary stasis and recurrent infections. Children can also develop XGP, though it is less common in pediatric patients and often presents differently.

Symptoms and Lab Findings

XGP does not produce a neat set of symptoms that immediately point to the diagnosis. Most people present with flank pain, fever, and a general feeling of being unwell. Weight loss, fatigue, and a palpable mass in the side or abdomen are also common. Because these symptoms overlap with kidney cancer, tuberculosis, and ordinary kidney infections, XGP is frequently misdiagnosed at first. In children, the overlap with malignancy can be especially confusing. One reported case involved a four-year-old girl whose combination of a kidney mass, blood in the urine, anemia, and low platelet counts initially pointed the clinical team toward a Wilms tumor.8PubMed Central. Xanthogranulomatous pyelonephritis presenting with thrombocytopenia and renal mass

Blood tests reflect a chronic inflammatory and infectious process. Anemia turns up in roughly two-thirds of patients, and an elevated white blood cell count in about 40%. Inflammatory markers like ESR and CRP tend to be high. Some patients develop mildly abnormal liver function tests, a puzzling finding that resolves after the diseased kidney is removed.9International Journal of Nephrology and Renovascular Disease. Xanthogranulomatous Pyelonephritis: A Narrative Review with Current Perspectives on Diagnostic Imaging and Management, Including Interventional Radiology Techniques Urine cultures help identify the offending organism, but urine results alone cannot distinguish XGP from a garden-variety complicated kidney infection.

The Bear Paw Sign and How CT Makes the Diagnosis

CT scanning is the most reliable way to identify XGP before surgery. The classic appearance on CT is sometimes called the “bear paw sign,” referring to multiple round, low-density collections within an enlarged kidney, each rimmed by an enhancing border.10PubMed. I saw the “bear paw” sign – Massive renal xanthogranulomatous pyelonephritis These collections represent dilated calyces filled with pus and xanthomatous tissue, and together they give the kidney a shape vaguely resembling a bear’s paw. When this pattern is seen alongside a central obstructing stone, the diagnosis of XGP becomes highly likely.11PubMed Central. Bear Paw Sign: Xanthogranulomatous Pyelonephritis

Still, CT is not perfect. The disease can mimic renal cell carcinoma, particularly in the focal form where only part of the kidney is involved.12PubMed Central. Xanthogranulomatous pyelonephritis with associated renal cell carcinoma When the imaging is ambiguous, a needle biopsy may be needed to confirm the diagnosis before committing to a surgical plan. Ultrasound and standard X-rays can detect stones and a swollen kidney but lack the specificity to distinguish XGP from a tumor or a simple abscess.

Staging With the Malek and Elder Classification

Surgeons and radiologists stage XGP according to how far the inflammatory process has spread, using a system devised by Malek and Elder. In stage I (the nephric form), disease is confined to the kidney itself. Stage II (perinephric) means the inflammation has extended into the fat immediately surrounding the kidney. Stage III (paranephric) indicates spread beyond the perinephric fat into the retroperitoneum, psoas muscle, or adjacent organs. In one CT-based study, more than half of patients had stage III disease at diagnosis, about a third had stage I, and roughly one in nine had stage II.13PubMed Central. MDCT Diagnosis and Staging of Xanthogranulomatous Pyelonephritis

Staging matters for surgical planning. Stage I disease is the most straightforward to operate on. By the time the inflammatory mass has invaded surrounding structures, surgery becomes technically harder and the risk of injuring adjacent organs goes up.

Diffuse vs. Focal XGP

XGP comes in two broad forms. The diffuse form, which is far more common, involves the entire kidney and is the version most clinicians picture when they hear the diagnosis. The kidney is typically non-functional by the time diffuse XGP is discovered, and nephrectomy (removal of the kidney) is the standard treatment.

The focal form is less common and more diagnostically tricky. It involves only a portion of the kidney and can look very much like a tumor on imaging. In one series, focal XGP predominantly affected middle-aged women at a female-to-male ratio of roughly 4.5 to 1, and flank pain was the most frequent symptom.14PubMed. Focal xanthogranulomatous pyelonephritis: partial nephrectomy as definitive treatment The good news about the focal form is that it can sometimes be treated with a partial nephrectomy, removing only the affected portion and preserving the rest of the kidney. Patients who underwent partial nephrectomy for focal XGP showed no relapse during follow-up, and their blood tests returned to normal.15European Urology. Focal Xanthogranulomatous Pyelonephritis: Partial Nephrectomy as Definitive Treatment

Treatment in Adults

For diffuse XGP, removal of the affected kidney is almost always necessary. More than 80% of kidneys with diffuse disease are already non-functional by the time of surgery.16PubMed Central. Xanthogranulomatous pyelonephritis in a pediatric patient Antibiotics alone cannot reverse the extensive tissue destruction. The goal of preoperative antibiotics is to control active infection and reduce inflammation before the surgeon operates, not to cure the disease outright.

The surgery itself is notoriously difficult. Dense scar tissue and inflammatory adhesions glue the kidney to surrounding structures, making it hard to separate from the psoas muscle, the bowel, the diaphragm, and the major blood vessels. Laparoscopic (minimally invasive) nephrectomy is the preferred approach when feasible, because it tends to involve less blood loss and shorter hospital stays than open surgery. In one comparative study, average blood loss was about 140 mL with laparoscopic nephrectomy versus roughly 260 mL with open, and hospital stays averaged about 10 days versus 15.17PubMed Central. Laparoscopic versus open nephrectomy for xanthogranulomatous pyelonephritis: An outcome analysis

However, conversion from laparoscopic to open surgery is a real possibility. A multicenter study found that about one in five laparoscopic nephrectomies for XGP had to be converted to an open procedure. The two strongest predictors of conversion were the presence of a kidney abscess and paranephric extension of disease (Malek stage III). Major complications, including injuries to the colon and pleura, occurred in roughly a quarter of cases.18PubMed. Risk Factors for Conversion to Open Surgery in Laparoscopic Nephrectomy for Xanthogranulomatous Pyelonephritis: A Multicenter Study Dense adhesions around the kidney hilum are a common reason surgeons decide mid-procedure that they need to convert.19Clinics. Laparoscopic nephrectomy for xanthogranulomatous pyelonephritis – Are there predictive factors for success?

XGP in Children

Although XGP is most common in adults, it does occur in the pediatric population and the management philosophy is evolving. In children with diffuse disease and a non-functional kidney, nephrectomy is still the standard. But for focal disease in children, there has been growing interest in conservative management with prolonged antibiotic therapy, sometimes combined with percutaneous drainage, to save as much kidney tissue as possible.20Frontiers in Nephrology. Case Report: Focal xanthogranulomatous pyelonephritis in children: diagnostic pitfalls and the role of conservative management Antibiotic courses in these cases can stretch for weeks to months, guided by culture results, inflammatory marker trends, and serial imaging.

A recent multicentre pediatric cohort found that a quarter of children with XGP were managed without nephrectomy, using approaches like percutaneous abscess drainage with directed antibiotics, stenting to relieve obstruction, or surgical correction of an underlying anatomical problem such as severe reflux. At a median follow-up of nearly four years, there were no recurrent infections in the kidney-sparing group.21Journal of Pediatric Urology. Xanthogranulomatous pyelonephritis in children: A contemporary multicentre cohort and the emerging role of parenchyma-sparing and minimally invasive management These results are encouraging, but patient selection is crucial. Kidney-sparing strategies are really only considered when the affected portion of the kidney still has reasonable function and an identifiable correctable cause for the obstruction or infection exists.

Complications Beyond the Kidney

Left untreated, XGP does not politely stay within the kidney capsule. The inflammatory mass can burrow into the psoas muscle, creating an abscess that may present as hip pain or a limp. Fistulas, abnormal connections between the kidney and adjacent structures, are among the most dramatic complications. These can form between the kidney and the colon or even between the kidney and the skin. Although rare, these fistulas can be life-threatening.22Oxford Medical Case Reports. An unusual presentation of xanthogranulomatous pyelonephritis: psoas abscess with reno-colic fistula In one series, disease had spread to the retroperitoneum and psoas muscle in a third of cases by the time of diagnosis.23PubMed. Xanthogranulomatous pyelonephritis: critical analysis of 30 patients

This tendency to extend far beyond the kidney is part of what makes XGP surgery so challenging and why adequate preoperative imaging and staging are not just academic exercises but practical necessities for the surgical team.

Outcomes After Surgery

When surgery goes well, the outlook for most patients is good. One laparoscopic series reported no readmissions within 30 days and 100% survival among patients followed for at least a year.24PubMed Central. Laparoscopic nephrectomy for Xanthogranulomatous Pyelonephritis: First surgical outcomes report from Pakistan After losing one kidney, the remaining kidney typically compensates by growing slightly larger and increasing its filtration capacity.

The risk is highest in people who arrive at surgery already very sick. In one study examining factors that predicted death after nephrectomy for XGP, the two patients who died in the early postoperative period both had surgery performed urgently during an inpatient admission rather than as a planned elective procedure. Both had received relatively short courses of preoperative antibiotics, and both were already on hemodialysis before their operation, suggesting very poor baseline kidney function. Decreased kidney filtration rate showed a possible association with postoperative death.25Journal of Clinical Urology. Characteristics of patients with xanthogranulomatous pyelonephritis undergoing nephrectomy: Identifying ways to optimise outcomes The lesson from such cases is that when XGP is suspected, there is real value in taking the time to optimize infection control and overall medical fitness before operating, rather than rushing into the operating room during an acute crisis.

Why It Gets Mistaken for Cancer

One of the most clinically important aspects of XGP is how convincingly it can impersonate a malignant kidney tumor. The enlarged, irregular kidney mass with areas of tissue destruction looks suspicious on imaging, and the patient’s weight loss, anemia, and general decline reinforce the impression. In the focal form, where just one region of the kidney harbors the xanthomatous tissue, the resemblance to renal cell carcinoma on CT can be striking enough to lead directly to surgery under the assumption that cancer is present.26PubMed Central. Xanthogranulomatous pyelonephritis with associated renal cell carcinoma To complicate matters further, XGP and renal cell carcinoma can occasionally coexist in the same kidney, so finding xanthomatous tissue does not completely rule out cancer until pathologists have examined the entire specimen.

For surgeons, the practical implication is that a preoperative biopsy should be considered when imaging is ambiguous. In focal cases, a percutaneous ultrasound-guided biopsy can confirm the inflammatory nature of the mass and potentially allow a kidney-sparing approach rather than a full nephrectomy performed on the assumption that cancer is lurking.27PubMed Central. Xanthogranulomatous pyelonephritis in a pediatric patient For patients, knowing that this mimicry exists can be reassuring: a frightening-looking kidney mass found during evaluation for flank pain and infection is not always the worst-case scenario.

Abnormal Liver Tests and Other Oddities

One of the more puzzling features of XGP that catches clinicians off guard is the appearance of abnormal liver function tests in some patients. There is no direct involvement of the liver by the disease. The current thinking is that the chronic inflammatory state produces circulating cytokines and other mediators that affect liver enzyme levels at a distance, a phenomenon sometimes seen with other large inflammatory or infected masses. The reassuring part is that these liver abnormalities resolve after the diseased kidney is removed, which both confirms the connection and rules out separate liver pathology.28International Journal of Nephrology and Renovascular Disease. Xanthogranulomatous Pyelonephritis: A Narrative Review with Current Perspectives on Diagnostic Imaging and Management, Including Interventional Radiology Techniques

The persistent anemia seen in most XGP patients is another feature that can send the workup in the wrong direction. It behaves like anemia of chronic disease, driven by the ongoing inflammatory burden, and it too tends to improve after nephrectomy. Taken together with the weight loss, raised inflammatory markers, and abnormal liver tests, the overall picture can look worryingly like a systemic malignancy rather than an infection. Awareness that XGP produces this constellation of findings is one of the most useful things for both patients and clinicians to carry into the diagnostic process.