ERCP (endoscopic retrograde cholangiopancreatography) is a procedure to treat problems of the bile duct and the pancreatic duct. A special scope called a duodenoscope is passed through the mouth and stomach into the duodenum. There, the bile duct and the pancreatic duct share a small opening called the papilla. A thin tube is passed through the papilla into the duct, dye is injected, and X-rays show stones, narrowings or leaks. These can then be treated during the same procedure.
ERCP used to be a diagnostic test. Today, MRI scans of the bile duct (MRCP) and endoscopic ultrasound (EUS) usually make the diagnosis first, and ERCP is used mainly when treatment is needed.
Who does this procedure. Dr Chia does not perform ERCP himself. It is done by colleagues in his group practice, GUTCARE, who are gastroenterologists trained in this advanced procedure. If you need an ERCP, Dr Chia can explain why, arrange the referral and coordinate with your other care. This page is general information to help you understand the procedure.
- 1The ERCP scope (duodenoscope), passed through the mouth and stomach into the duodenum
- 2The papilla: the small opening where the bile duct and pancreatic duct drain into the duodenum
- 3The bile duct, filled with X-ray dye through a thin tube
- 4A stone in the bile duct, seen as a gap in the dye
- 5The pancreatic duct, which runs the length of the pancreas
Why it is done
- Stones in the bile duct, which can cause pain, jaundice (yellow eyes and skin), infection or pancreatitis. Most stones can be removed. See gallstones.
- Infection of the bile duct (cholangitis), usually from a blocking stone. This is an emergency, and urgent ERCP drains the infected bile.
- Gallstone pancreatitis with a stone still blocking the duct or with cholangitis. See acute pancreatitis.
- Blockage from a growth, such as pancreatic cancer or bile duct cancer. A stent relieves the jaundice, and brushings or biopsies can be taken.
- Bile leaks, for example after gallbladder surgery, treated with a temporary stent.
- Some pancreatic duct problems, such as stones or narrowing in chronic pancreatitis.
What can be done during ERCP
- Sphincterotomy: a small cut in the muscle of the papilla with an electrical wire, to widen the opening. It is painless.
- Stone removal with a small balloon or wire basket. Large stones may be stretched out with a balloon, crushed first, or broken up with a laser or shock-wave probe under direct vision (cholangioscopy). Sometimes more than one ERCP is needed.
- Stents: small plastic or metal tubes that hold a blocked duct open so bile can drain. Plastic stents are usually changed or removed after a few months.
- Samples (brushings or biopsies) from a narrowing, to look for cancer.
After bile duct stones
If you still have your gallbladder, removal of the gallbladder (cholecystectomy) is usually advised soon after stones are cleared from the duct, often within a few weeks, because otherwise more stones tend to pass into the duct. This operation is done by a surgeon.
Before the procedure
- No food for about six hours beforehand.
- Tell the clinic about blood thinners, diabetes medicines, allergies (including to X-ray dye or iodine), kidney problems, and if you might be pregnant, because X-rays are used.
- Blood tests are done beforehand.
- ERCP is done in hospital. Depending on why it is needed, you may go home the same day or stay one night or more.
During the procedure
ERCP is done in a room with X-ray equipment. You usually lie on your front or left side, and are given deep sedation or a general anaesthetic. A medicine suppository (an anti-inflammatory such as indomethacin or diclofenac) is usually given just before, because it lowers the chance of pancreatitis. The procedure takes about 30 to 90 minutes, depending on what needs to be done.
After the procedure
You are watched for a few hours, or overnight, for pain or other problems. The doctor who did the ERCP will explain what was found and done. Most people can drink and then eat later the same day or the next day, as advised. Because of the sedation, you should not drive or sign important documents for the rest of the day.
Is it safe?
ERCP is very effective, but it has more risks than a gastroscopy or EUS, which is why it is used mainly for treatment. Large studies and international guidelines report:
- Pancreatitis (inflammation of the pancreas): the most common problem, in roughly 3 to 10 in 100 procedures. It is usually mild and settles in a few days in hospital, but it can occasionally be severe.
- Bleeding, mainly after a sphincterotomy: about 1 to 2 in 100. It usually stops by itself or is treated through the scope.
- Infection of the bile duct or gallbladder: about 1 in 100.
- Perforation (a tear) of the duodenum or bile duct: less than 1 in 100.
- Reactions to sedation or anaesthesia, and, rarely, serious complications that can be life-threatening.
The risk depends on why the ERCP is done and on your health. The specialist will discuss it with you before the procedure.
Common questions
Why not just do a scan? Scans such as MRCP and EUS are used first to find the problem. ERCP is chosen when something needs to be done, such as removing a stone or placing a stent.
Will the stent stay in for good? Plastic stents are temporary and are changed or removed, usually within a few months. Metal stents placed for a blockage from cancer usually stay in place.
Sources
This page is based on these international guidelines:
- Dumonceau JM, Kapral C, Aabakken L, et al. ERCP-related adverse events: European Society of Gastrointestinal Endoscopy (ESGE) Guideline. Endoscopy 2020;52:127–149. doi:10.1055/a-1075-4080
- Manes G, Paspatis G, Aabakken L, et al. Endoscopic management of common bile duct stones: European Society of Gastrointestinal Endoscopy (ESGE) guideline. Endoscopy 2019;51:472–491. doi:10.1055/a-0862-0346
- ASGE Standards of Practice Committee; Buxbaum JL, Abbas Fehmi SM, et al. ASGE guideline on the role of endoscopy in the evaluation and management of choledocholithiasis. Gastrointest Endosc 2019;89:1075–1105. doi:10.1016/j.gie.2018.10.001
General information only. Reviewed by Dr Chia Chung King, 2026-11-13. Book a consultation.