What Is a Pyelogram? Procedure, Prep, and Risks

A pyelogram is an X-ray imaging test that produces detailed pictures of your urinary tract, including your kidneys, ureters (the tubes connecting kidneys to the bladder), and bladder. It works by using a special contrast dye that shows up brightly on X-rays, making the soft structures of your urinary system visible in ways a standard X-ray cannot. There are two main types: an intravenous pyelogram (IVP), where the dye is injected into a vein in your arm, and a retrograde pyelogram, where the dye is delivered directly into the ureters through a small catheter.

Why a Pyelogram Is Ordered

Doctors typically order a pyelogram when you have symptoms pointing to a urinary tract problem, such as blood in the urine, persistent back or side pain, or recurrent urinary infections. The test can help diagnose several conditions:

  • Kidney stones and blockages in the urinary tract
  • Tumors in the kidneys, ureters, or bladder
  • Enlarged prostate that may be compressing the urinary system
  • Structural abnormalities present from birth, such as medullary sponge kidney, a condition affecting the tiny tubes inside the kidneys
  • Scarring or narrowing of the ureters from prior injury or infection

How the Two Types Differ

An intravenous pyelogram is the more common version. Contrast dye is injected into a vein, travels through your bloodstream, and gets filtered out by your kidneys. As the dye passes through each part of the urinary tract, a series of X-rays are taken at timed intervals, creating a step-by-step picture of how your kidneys process and drain fluid. The entire procedure is done on an X-ray table without sedation.

A retrograde pyelogram takes a more direct approach. Instead of relying on your blood to carry the dye to the kidneys, a urologist threads a thin scope (called a cystoscope) through your urethra and into the bladder, then injects contrast dye directly into the opening of each ureter. Because the dye doesn’t need to travel through your bloodstream, this method produces sharper images of the ureters and the drainage system of the kidneys. It’s typically chosen when an IVP doesn’t provide clear enough pictures or when a doctor needs high-quality imaging before placing a stent or performing another procedure. The retrograde approach also allows the doctor to treat certain conditions during the same session, since surgical instruments can be passed through the cystoscope.

Most retrograde pyelograms require general anesthesia, though regional anesthesia is sometimes used instead. The procedure is usually done as an outpatient visit at a hospital or surgical center, and you’ll need someone to drive you home.

How to Prepare

For an intravenous pyelogram, preparation is straightforward. You’ll likely be told not to eat or drink anything after midnight the night before your exam. Your doctor may also ask you to take a mild laxative, either in pill or liquid form, the evening before. This helps clear your bowels so that gas and stool don’t obscure the X-ray images of your kidneys and ureters. Your doctor’s office will give you specific written instructions ahead of time.

If you take metformin for diabetes, let your care team know. The FDA recommends stopping metformin before receiving iodine-based contrast dye in patients with reduced kidney function (specifically those with an estimated kidney filtration rate between 30 and 60). The medication is typically restarted 48 hours after the procedure, once kidney function has been confirmed as stable. Your doctor will check your kidney function with a blood test before scheduling the exam.

What the Procedure Feels Like

During an IVP, you’ll lie on an X-ray table. A technologist will insert an IV line and inject the contrast dye. When the dye enters your vein, you may feel a warm flushing sensation throughout your body and notice a brief metallic taste in your mouth. These sensations pass within a minute or two. Over the next 30 to 60 minutes, X-rays are taken at timed intervals as the dye works its way from your kidneys down through your ureters and into your bladder. You may be asked to change positions or briefly hold your breath during individual images. Near the end, you’ll be asked to urinate and then return for a final X-ray to see how completely your bladder empties.

For a retrograde pyelogram, you won’t feel the procedure itself since you’ll be under anesthesia. The entire process, including the cystoscopy and imaging, is generally completed within an hour.

Risks and Side Effects

The primary concern with any pyelogram is the contrast dye. Mild reactions occur in fewer than 3% of patients and include skin rash, itching, flushing, nausea, brief vomiting, and dizziness. Moderate to severe reactions, such as difficulty breathing, significant swelling, or dangerous changes in heart rhythm, are rare, occurring in fewer than 0.04% of patients. Fatal reactions are extremely uncommon, at less than one death per 100,000 patients.

The other major risk is contrast-induced kidney injury, where the dye temporarily reduces kidney function. This happens in roughly 5% of hospitalized patients who had normal kidney function before the test. People with pre-existing kidney disease, diabetes, or dehydration face higher risk. Drinking extra fluids after the procedure helps your kidneys flush the dye more quickly and reduces this risk.

If you’ve ever had a reaction to contrast dye, or if you have kidney disease, let your doctor know before the test is scheduled. These factors don’t necessarily rule out a pyelogram, but your care team may take extra precautions or choose an alternative imaging method.

Pyelograms vs. CT Scans

In many hospitals, the traditional intravenous pyelogram has been largely replaced by CT urography, which also uses contrast dye but provides three-dimensional, cross-sectional images that can detect smaller abnormalities. CT urography is faster, more sensitive for kidney stones and tumors, and gives information about surrounding organs at the same time. However, IVP remains useful in settings where CT isn’t available, when doctors need to see how the urinary tract functions over time rather than in a single snapshot, or when evaluating specific structural abnormalities. Retrograde pyelograms continue to fill a distinct role because they can be combined with cystoscopy for simultaneous diagnosis and treatment.

After the Test

Recovery from an IVP is minimal. You can return to normal activities right away, and there’s no downtime. Drink plenty of fluids for the rest of the day to help your kidneys clear the contrast dye. Your urine may look slightly different for a few hours, but this resolves on its own.

After a retrograde pyelogram, recovery depends on the anesthesia. You’ll spend a short time in a recovery area until the effects wear off. Some mild burning during urination or light blood-tinged urine is common in the first day or two following the cystoscopy portion of the procedure. Results from either type of pyelogram are usually reviewed by a radiologist and sent to your ordering doctor within a few days.