Complex kidney infections

Xanthogranulomatous Pyelonephritis (XGP): Why It Usually Needs Surgery and How It Mimics Cancer

Xanthogranulomatous pyelonephritis is a rare, chronic kidney infection that slowly destroys the kidney, almost always tied to a long-standing stone or blockage. This urologist-reviewed guide explains the hard parts first: why most people end up needing the kidney removed, why scans often look like cancer, what treatment costs, and the red flags that mean call a doctor now.

Reviewed by the FindAUrologist editorial team. General education, not a diagnosis.

The short answer

Xanthogranulomatous pyelonephritis (XGP) is a rare, severe chronic kidney infection, usually caused by a long-standing stone blocking the kidney, that destroys functioning tissue and replaces it with inflamed, fat-laden cells. Because the kidney is typically beyond saving, treatment most often means surgically removing it (nephrectomy) along with antibiotics, rather than medication alone.

The hard truth first: XGP usually means losing that kidney

Unlike a routine kidney infection that antibiotics clear, xanthogranulomatous pyelonephritis represents a kidney that has been chronically infected and obstructed for so long that the working tissue is largely destroyed and replaced by inflamed, fat-laden (xanthomatous) cells. By the time it is diagnosed, that kidney is often non-functioning, so antibiotics alone rarely fix it.

For that reason, the standard treatment for classic, diffuse XGP is surgical removal of the affected kidney (nephrectomy), usually combined with antibiotics before and after. This is a bigger commitment than most patients expect from something described as an infection, and it is the honest headline a urologist will want to discuss early.

There is a silver lining worth naming: XGP almost always affects only one kidney, and most people live a full, normal life with the single healthy kidney that remains. The goal of surgery is to remove a destroyed, infection-harboring organ that is no longer helping you and can keep making you sick.

Why your scan may look like kidney cancer (and why a biopsy is tricky)

One of the most unsettling parts of XGP is that on a CT scan it can closely mimic kidney cancer, particularly renal cell carcinoma. The inflamed mass, enlarged kidney, and surrounding changes can look alarmingly like a tumor, and imaging often cannot tell the two apart with certainty before surgery.

A needle biopsy is not a reliable shortcut here. XGP and cancer can coexist, the inflammation can obscure the picture, and sampling one spot may miss the real problem, so a benign-looking biopsy does not fully rule cancer out. This diagnostic uncertainty is one of the practical reasons removing the whole kidney is often recommended: it treats the destructive infection and provides the definitive tissue answer at the same time.

If a doctor has told you a kidney mass could be cancer but a long-standing stone and chronic infection are also in the picture, that combination is exactly the scenario where XGP belongs on the list. A urologist who reviews your imaging can explain which features point toward infection versus tumor and why the recommended plan is what it is.

What actually causes XGP, and who is most at risk

XGP is driven by the combination of chronic blockage and chronic infection. The most common setup is a kidney stone, especially a large branching staghorn stone, that obstructs urine drainage for months or years while bacteria such as Proteus or E. coli smolder behind it. The trapped, infected urine slowly damages the kidney from the inside.

Because of that pathway, the people most affected tend to be those with a history of recurrent UTIs, recurrent or untreated kidney stones, prior urinary obstruction, or diabetes. It is reported more often in middle-aged adults and somewhat more in women, though it can occur at any age, and rare cases occur in children.

The takeaway for prevention is concrete: treating kidney stones and obstruction promptly, and not letting recurrent kidney infections go unaddressed, is the realistic way to keep a chronic problem from progressing to something this destructive. If you have a known stone that has been left alone, that is worth raising with a urologist rather than waiting.

Treatment and surgery: full nephrectomy vs. partial, open vs. minimally invasive

For classic XGP that has spread through the whole kidney (the diffuse form), removing the entire kidney is the usual recommendation. In a minority of cases where the disease is limited to one part of the kidney (the focal form), a urologist may consider partial nephrectomy to preserve the healthy portion, but this is the exception, not the rule, and depends on careful imaging.

How the surgery is done also matters. XGP is notoriously difficult to operate on because the chronic inflammation fuses the kidney to surrounding tissue and creates dense scarring. Some XGP nephrectomies can be done laparoscopically or robotically, but the dense inflammation means surgeons more often need an open operation, or may have to convert to open midway, and the risk of bleeding and longer recovery is higher than for a routine kidney removal. Antibiotics are typically given before surgery to calm the infection and afterward to clear it.

Because the right operation depends on whether your disease is focal or diffuse, how much function remains in the kidney, and your overall health, this is a genuine decision to make with a urologist rather than a one-size-fits-all answer. Ask which form you have, whether any kidney can be saved, and which surgical approach they recommend for your specific anatomy.

Cost, recovery, and which specialist coordinates your care

Because XGP almost always involves surgery and a hospital stay, the cost is driven by the operation, anesthesia, imaging (CT is central to diagnosis and planning), antibiotics, the length of admission, and any complications such as bleeding that lengthen recovery. An open operation for dense, fused tissue typically means a longer hospital stay and recovery than a routine kidney removal, which affects both the medical and the out-of-pocket picture.

The specialist who leads this is a urologist, who confirms the diagnosis, weighs infection versus possible cancer, and performs or directs the surgery. Pathology examines the removed kidney to give the definitive answer, and your primary care doctor or a nephrologist may help monitor the health of your remaining kidney afterward. Most people maintain normal kidney function on one kidney, but follow-up matters.

Practical questions to bring to a urologist: Is this the focal or diffuse form, and can any kidney be saved? Open or minimally invasive surgery for me, and why? How will you keep cancer from being missed? What will the surgery, hospital stay, and imaging cost under my plan? If you do not yet have a urologist coordinating this, finding a board-certified one near you is the right next step.

Questions to ask your urologist

  1. 01

    What is xanthogranulomatous pyelonephritis?

    Xanthogranulomatous pyelonephritis (XGP) is a rare, severe chronic kidney infection in which long-standing blockage and inflammation destroy the kidney's working tissue and replace it with fat-laden immune cells. It is most often linked to a kidney stone that has obstructed the kidney for months or years. Because the affected kidney is usually beyond saving, a urologist commonly recommends removing it rather than relying on antibiotics alone.

  2. 02

    Is xanthogranulomatous pyelonephritis cancer?

    No, XGP is a benign (non-cancerous) inflammatory condition, not a tumor. However, on CT imaging it can closely mimic kidney cancer, and a biopsy cannot always tell them apart, which is one reason the whole kidney is often removed and examined under a microscope. If you have been told a kidney mass might be cancer alongside a chronic stone or infection, ask a urologist whether XGP could explain the findings.

  3. 03

    What causes xanthogranulomatous pyelonephritis?

    XGP is caused by a combination of chronic urinary obstruction and chronic infection, most commonly a kidney stone (often a large staghorn stone) that blocks the kidney while bacteria such as Proteus or E. coli persist behind it. Risk is higher in people with recurrent UTIs, untreated stones, prior obstruction, or diabetes. Treating stones and infections promptly is the main way a urologist can help prevent it from progressing.

  4. 04

    How is xanthogranulomatous pyelonephritis treated?

    For the common diffuse form, treatment is usually surgical removal of the affected kidney (nephrectomy) combined with antibiotics before and after surgery, because the kidney is typically too damaged to recover. The dense inflammation often makes the operation more complex, so it may be done open rather than minimally invasively. A urologist can explain which approach fits your specific case and whether any kidney tissue can be preserved.

  5. 05

    Can XGP be treated without removing the kidney?

    Rarely. Antibiotics alone usually cannot cure classic XGP because the kidney is already largely destroyed and obstructed. In the uncommon focal form, where only part of the kidney is involved, a urologist may consider a partial nephrectomy or, occasionally, drainage and antibiotics, but the affected kidney often still needs removal. Whether any kidney can be saved depends on careful imaging and is a decision to make with your urologist.

  6. 06

    Is xanthogranulomatous pyelonephritis an emergency?

    XGP itself is usually a slow, chronic condition rather than a sudden emergency, but it becomes urgent if the blocked, infected kidney triggers high fever, severe flank pain, vomiting, confusion, or signs of sepsis, which require emergency care immediately. Even without those, persistent fever, a UTI that will not clear, blood in the urine, or weight loss should be evaluated promptly. When in doubt about feeling very unwell, seek care rather than waiting.

  7. 07

    What are the red flags for a kidney infection?

    Warning signs that a kidney infection needs urgent attention include fever with shaking chills, pain in your flank or back, nausea and vomiting, confusion, a fast heartbeat, or feeling faint, which can indicate a serious bloodstream infection. A UTI that does not improve on antibiotics, visible blood in the urine, any UTI in a man, or a kidney infection in pregnancy also warrant prompt evaluation. A urologist can help determine when imaging or specialist treatment is needed.

What drives the cost of treating XGP

Surgery and hospital admission
Treatment almost always includes a nephrectomy with anesthesia and an inpatient stay, which is the largest single driver of cost compared with a kidney infection managed by antibiotics alone.
Open vs. minimally invasive operation
Dense inflammation and scarring often force an open operation or conversion from laparoscopic, which can mean longer surgery, a longer hospital stay, and a longer recovery than a routine kidney removal.
Imaging and diagnosis
CT scanning is central to diagnosing XGP and ruling out cancer, and additional imaging or pathology review adds to the workup before and after surgery.
Complications and follow-up
Bleeding or other complications can extend recovery, and follow-up to monitor the remaining kidney adds visits and tests over time, all of which affect the total cost.

Related urology topics

New Jersey appointment path

Discuss xanthogranulomatous pyelonephritis treatment with a urologist

Start with the practice directly. Do not send sensitive medical details through public forms; the office can move the conversation into the right intake process.