ERCP (Endoscopic Retrograde Cholangiopancreatography)

During ERCP, healthcare providers use an endoscope and X-rays to observe injectable dye traveling through your pancreatic and bile ducts. ERCP helps providers identify and diagnose conditions related to your ducts, like gallstones, tumors and strictures. Through the endoscope, they can also treat them during the procedure.

Overview

An ERCP involves passing a tiny scope down your throat and through your stomach, all the way into your biliary tract.
During an ERCP, a tiny endoscope passes from your mouth, all the way down into your biliary tract.

What is an ERCP (endoscopic retrograde cholangiopancreatography)?

If your healthcare provider suspects you might have a problem in your biliary system, they might order an ERCP test to look for it. ERCP stands for endoscopic retrograde cholangiopancreatography. It’s a type of imaging test that allows healthcare providers to look inside your bile ducts and pancreatic ducts.

The long name spells out the different types of technology involved in the process. “Endoscopic” refers to endoscopy, which means passing a tiny camera on a tube down your throat and into your small intestine (while you’re under sedation). They pass a smaller tube through the endoscope to reach your bile ducts.

Through this smaller tube, they inject a contrast dye backward into your bile ducts and pancreatic duct. This is what the “retrograde” refers to. “Cholangiopancreatography” refers to the photographs they take. “Cholangio” is “related to the bile ducts,” and “pancreato” is “related to the pancreas.”

Contrast dye helps the insides of your tiny bile ducts and pancreatic ducts show up better in X-rays. This allows healthcare providers to see possible blockages in your ducts — like gallstones, tumors or scar tissue causing narrowing of your ducts. Through the endoscope, providers can also treat these issues on sight.

Why would I need an ERCP?

Your provider might suggest an ERCP if you have symptoms that suggest a problem in your biliary system, such as:

The ERCP procedure can help diagnose and treat common issues affecting your biliary ducts, such as:

Advertisement

Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy

Test Details

How does ERCP work?

ERCP combines endoscopy with fluoroscopy, a type of moving X-ray. Fluoroscopy can help show how well fluids are flowing through your biliary ducts. If fluids are leaking, or if they’re stalling and backing up in your biliary system, your provider will be able to see this and look for the source of the issue.

The endoscope allows your technician (endoscopist) to physically access the site. This is how they inject the contrast dye that helps make fluoroscopy work. It also allows them to treat issues when they find them. Endoscopists can use long, narrow tools to perform minor procedures through an endoscope.

Who performs an ERCP?

A gastroenterologist typically performs an ERCP. Gastroenterologists are specialists in conditions related to your digestive system, which includes your biliary system. They’re also specialists in performing endoscopies. They train to perform endoscopic procedures that can substitute for minor surgeries.

How should I prepare for my ERCP test?

Your healthcare provider will give you personalized instructions to follow before your procedure. In general, they’ll ask that you:

  • Don’t smoke, eat, chew gum or drink anything but water for eight hours before the test.
  • Discuss your current medical conditions and medications with your provider in advance. They might ask you to discontinue certain medications before the test, such as blood thinners.
  • Discuss any prior reactions or allergies to the contrast dye they use in the test, or the anesthesia.
  • Arrange for a ride home after the test. The anesthesia will take 24 hours to wear off.

What happens during the ERCP procedure?

ERCP is an outpatient procedure, which means you go home the same day. The procedure can take one to two hours. You’ll receive anesthesia through an IV to sedate you. You may or may not be awake, but either way, you probably won’t remember any of it. You’ll need someone to drive you home afterward.

During the diagnostic portion of the ERCP procedure, your provider will:

  • Numb your throat with a liquid anesthetic to reduce discomfort, if you wish.
  • Insert the endoscope through your mouth and guide it carefully down your esophagus and stomach to the top of your small intestine (duodenum). It projects images onto a screen.
  • Using the video, locate the opening to the bile and pancreatic ducts inside your duodenum.
  • Slide a smaller tube through the endoscope catheter until it reaches this opening, then slide it inside. Inject contrast dye through this smaller catheter into the ducts.
  • Use fluoroscopy to take real-time video X-rays as the dye travels through the ducts. Fluoroscopy works through brief bursts or pulses of X-ray beams. It’s considered a safe amount of radiation.
  • Check these images for problems affecting your ducts, like obstructions, swelling or leaks.

If your provider finds an issue during the procedure, they’ll do what they can to fix it through the endoscope, using tiny instruments. Your endoscopist may:

  • Break up and remove gallstones.
  • Remove tumors or tissue samples for biopsy.
  • Dilate or stretch narrowed ducts to widen them.
  • Place a stent inside a duct to keep it propped open.
  • Repair a leak or injury in your ducts.
  • Make a small cut into the muscle surrounding the opening to the ducts and open it up. This is called a sphincterotomy.

What should I expect after the ERCP procedure?

After the procedure, you’ll remain at the medical center for an hour or two while the anesthesia wears off. Then your driver can take you home. You’ll be a little groggy or spacey for the rest of the day. You may have some mild discomfort for a day or two after the procedure. Symptoms might include:

  • Sore throat and difficulty swallowing. The endoscope might have irritated your throat. It might help to stick to soft foods or liquids until it feels normal again.
  • Bloated stomach or gas pain. The endoscope blows gas into your GI (gastrointestinal) tract to inflate it for better viewing. You might feel this briefly (until it passes).
  • Nausea. This is a potential side effect of anesthesia, which will wear off over the next day.
Advertisement

What are the potential risks or complications of ERCP?

Complications occur in approximately 5% to 10% of ERCP procedures. The risks depend partly on your preexisting conditions and what type of therapeutic procedure you have during ERCP. Your gastroenterologist will discuss the potential risks with you in advance. Possible complications include:

  • Adverse reaction to the sedative. This can cause cardiopulmonary complications in people with preexisting lung or heart disease.
  • Allergic reaction to the contrast dye. If this happens, your doctor will quickly administer medication to stop the reaction.
  • Injury to your GI tract from the endoscope. This could cause internal bleeding or, in severe cases, a hole.
  • Injury to your bile ducts from the endoscopic instruments, causing a bile leak.
  • Infection in your biliary system. Your healthcare provider may give you antibiotics in advance to prevent this.
  • Irritation and inflammation of the pancreas due to the procedure.

If you’re pregnant during the procedure, there’s a low risk of harm to the fetus from the radiation during fluoroscopy. Your doctor will ask you in advance if there’s any chance you’re pregnant. If so, they’ll attempt to reschedule the procedure or minimize your radiation exposure, if necessary.

Care at Cleveland Clinic

Results and Follow-Up

When should I know the results of the test?

Your endoscopist should be able to discuss your ERCP procedure with you immediately afterward unless you still feel groggy from the anesthesia. They’ll tell you what they found and what they were able to do to fix it. If they took a tissue sample for biopsy, those results might take a few weeks to come back.

If your ERCP didn’t find anything, you might need a different type of test next. If the procedure wasn’t successful in fixing your issue, or if your biopsy results reveal a new problem, you might need to follow up with a different type of procedure. Your healthcare provider will discuss the next steps with you.

When should I call my healthcare provider?

Contact your provider if you experience severe or unusual symptoms after ERCP, such as:

Advertisement

Additional Common Questions

What is the difference between ERCP and endoscopy?

ERCP is an advanced technique in endoscopy. A standard upper endoscopy procedure (esophagogastroduodenoscopy) only goes as far as your upper GI tract. An ERCP uses an extension with the standard endoscope — a second catheter that slides inside the first — to reach your biliary ducts.

This mini endoscope extension allows an endoscopist to operate directly on your ducts. ERCP is the only endoscopic procedure that allows this. While other endoscopic procedures, like MRCP and EUS, can visualize your bile ducts and pancreatic ducts, they don’t provide the same access for treating them.

Is ERCP a major surgery?

ERCP isn’t surgery in the traditional sense, which means cutting into your skin to access your organs. ERCP is an endoscopic procedure, which means it goes into your body through a preexisting opening — in this case, your throat. But an endoscopist may operate through the endoscope during an ERCP.

Healthcare providers sometimes refer to operations through an endoscope as endoscopic surgery. These operations are surgical in the sense that they might involve cutting or stitching inside your body. But they’re generally minor procedures, and they involve fewer risks and a shorter recovery than classic surgery.

Would I have an ERCP for pancreatitis?

You might have an ERCP for pancreatitis if your healthcare provider believes that something in your bile ducts or pancreatic ducts is causing it. Gallstones stuck in your ducts are among the most common causes of acute pancreatitis. If this happens to you, you might need ERCP to remove the blockage.

If you have chronic pancreatitis, the inflammation may have caused scarring and stricture in your pancreatic ducts. In this case, you might need ERCP to help stretch them out again or place a stent to prop them open. This helps to ensure that pancreatic juices can keep flowing through the ducts.

A note from Cleveland Clinic

Endoscopic retrograde cholangiopancreatography is a diagnostic test that can turn into a therapeutic procedure. While it’s a little more invasive than a standard imaging test, it’s less invasive than a surgical procedure, and it can accomplish both purposes at once. Most people find it tolerable and worthwhile.

Medically Reviewed

Last reviewed by a Cleveland Clinic medical professional on 11/01/2023.

Learn more about our editorial process.

Ad
Appointments 216.444.7000