Overview

ERCP (endoscopic retrograde cholangio pancreatography)

ERCP stands for endoscopic retrograde cholangio pancreatography. This is a test that uses a type of X-ray. It is used to diagnose and treat problems with your biliary system. 

Your biliary system is made up of organs and ducts (tubes) that produce, store and transport a fluid called bile. This yellow-green fluid helps your body to digest fat.

The biliary system includes your liver, gallbladder, biliary tree, pancreas, pancreatic ducts and bile ducts. Your pancreatic ducts and bile ducts are small tubes. They carry digestive juices from the pancreas and liver to the small intestine.

A line diagram of the biliary system. Labelled to show the location of the liver, gallbladder, biliary tree, stomach, bile duct, pancreas, pancreatic duct, bile duct and duodenum. This diagram is used with permission from EMIS 2009.
A diagram of the biliary system. Labelled to show the location of the liver, gallbladder, biliary tree, stomach, bile duct, pancreas, pancreatic duct, bile duct and duodenum. This diagram is used with permission from EMIS 2009.

During the procedure, we put a flexible tube with a camera on the end, called an endoscope,  into your mouth. We then pass this tube down your food pipe (oesophagus). The tube goes into your stomach and the first part of your small intestine (duodenum).

Diagnosing conditions

An ERCP allows us to diagnose and get more information about conditions that affect your biliary system.

During an ERCP, we can take samples of your cells. We do this using a small brush or by taking pieces of tissue (a biopsy). A laboratory examines the cells to help diagnose any problems.

You might need an ERCP if:

  • you have yellow skin or eyes, and itchy skin (jaundice)
  • your liver blood tests need to be investigated and you have pain in your tummy (abdomen)
  • you had a CT or ultrasound scan that showed a blockage in your bile ducts or pancreatic ducts

Possible causes of blockages are:

  • stones
  • narrowing of the bile ducts
  • growths or cancer of the pancreas or bile ducts

Treating conditions

We can do an ERCP to treat conditions that affect the bile ducts, small intestine and pancreas. It is a less-invasive procedure than surgery.

  • Bile ducts: During an ERCP, we can put small plastic or metal tubes called stents into the bile ducts if they are blocked. This unblocks the bile ducts and allows bile to drain into the small intestine.
  • Small intestine: We can also put stents into the small intestine. This helps if you have a blockage that affects the flow of food out of your stomach.
  • Pancreas: Sometimes, we can use an ERCP to help remove stones in the pancreas or to put a stent into a narrowed pancreatic duct. This can help you to deal with the pain.

Risks of having an ERCP

An ERCP is usually a safe procedure, but there can be complications. Your doctor will talk to you about the risks before the procedure.

You only have an ERCP if your doctor believes that the possible risks are better than doing another procedure, or doing nothing.

Other procedures

SpyGlass ERCP

A SpyGlass is a thin endoscope tube (cholangioscope) with a lighted camera. We attach the SpyGlass to the larger endoscope tube used for an ERCP and pass it into the bile ducts. This gives us a clearer view of the bile ducts.

We can break up bile or pancreatic duct stones with specialist equipment. The SpyGlass allows us to use methods that are not normally done during a standard ERCP. We can also take samples (biopsies).

An ERCP is usually the first step to diagnose and treat most bile duct and pancreatic duct problems. However, we can do a SpyGlass ERCP if we need extra information.

A SpyGlass ERCP is a longer procedure than a standard ERCP. You usually have a general anaesthetic, which is a medicine that makes you sleep and stops you feeling pain. For this reason, the SpyGlass ERCP has a higher risk of side effects or complications.

Your doctor will talk to you about the SpyGlass ERCP and explain if you need to have this procedure.

Other treatment options

The only other treatment option is called a percutaneous transhepatic cholangiogram (PTC). This is when we put a needle through the skin and into the liver. We then use an X-ray to look at the bile ducts. However, there are more complications with a PTC.

Other ways to diagnose problems

There are other options for diagnosing problems with your biliary system. However, we cannot use these methods to treat the problem. 

  • We can do a CT scan, but this is less sensitive and small growths (less than 1cm) can be missed. We cannot take samples (biopsies) during a CT scan or put in any stents to treat the problem.
  • We can do an MRI scan, but this does not allow us to see the bile ducts directly. We cannot take biopsies or put in stents during this procedure. An MRI scan is not suitable if you have metalwork in your body, such as a pacemaker or joint replacement.
  • An ultrasound scan can give us pictures of the biliary system, but we cannot take biopsies or put in stents.
  • We can do an endoscopic ultrasound (EUS). However, we cannot remove stones, do a sphincterotomy (make a cut at the bottom of the bile duct) or put in stents.

We want to involve you in decisions about your care and treatment. If you decide to have an ERCP, we ask you to sign a consent form. This says that you agree to have the procedure and understand what it involves.

If you would like more information about our consent process, please speak to a member of staff caring for you.

Information and support

The charity Guts UK gives information about digestive conditions that affect the gut, liver and pancreas.

Resource number: 2559/VER6
Last reviewed: September 2024
Next review due: September 2027

Do you have any comments or concerns about your care?

Contact our Patient Advice and Liaison Service (PALS)

Is this health information page useful?