What is an ERCP procedure and why is it done?
By David Nthua, May 26, 2026Many people become anxious after hearing a doctor recommend an ERCP procedure because the name sounds complicated and unfamiliar.
In most cases, patients only learn about ERCP after experiencing severe abdominal pain, jaundice or digestive complications linked to the liver, gallbladder or pancreas.
ERCP stands for Endoscopic Retrograde Cholangiopancreatography. It is a specialised medical procedure doctors use to diagnose and treat problems affecting the bile ducts, pancreas and gallbladder.
The procedure combines endoscopy and X-ray imaging to examine organs connected to digestion and bile drainage.
During the procedure, doctors insert a flexible tube fitted with a tiny camera through the mouth and guide it carefully into the digestive tract.
Once the scope reaches the small intestine, a special dye is injected into the bile and pancreatic ducts to produce clear images on X-ray screens.
Why doctors perform an ERCP procedure
Doctors usually recommend ERCP when they suspect blockages, infections or abnormalities affecting the digestive system.
The procedure is commonly used to identify gallstones trapped in bile ducts, duct narrowing, pancreatic problems, and conditions causing jaundice.
One major advantage of ERCP is that doctors can often diagnose and treat the problem during the same session.
If a blockage or gallstone is found, it may be removed immediately without the need for major surgery.
Doctors may also insert small tubes, known as stents, to improve drainage or to take tissue samples for further testing.
Patients experiencing yellowing of the skin or eyes, persistent upper abdominal pain, nausea, unexplained weight loss or repeated pancreatitis attacks may be advised to undergo the procedure.
What happens during an ERCP procedure
Before ERCP begins, patients are usually asked not to eat or drink for several hours.
Sedation is commonly administered to help the patient relax and reduce discomfort during the examination.
The doctor then guides the endoscope through the mouth, stomach and upper small intestine.
A small catheter is used to inject contrast dye into the ducts before X-ray images are taken.
The entire procedure may last between 30 minutes and two hours, depending on the complexity of the condition being treated.
Most patients are monitored for a few hours afterwards before returning home the same day.
Risks and recovery after ERCP
Like many medical procedures, ERCP carries some risks, although serious complications are uncommon.
Possible side effects include infection, bleeding, pancreatitis or reactions to sedation.
Mild bloating, throat discomfort and tiredness may also occur after the procedure.
Doctors advise patients to seek immediate medical attention if they develop severe pain, fever, vomiting or breathing difficulties after ERCP.
Conclusion
The ERCP procedure plays an important role in diagnosing and treating conditions affecting the pancreas, gallbladder and bile ducts.
Although the procedure may sound intimidating, it has helped many patients receive faster treatment without undergoing major surgery.
Understanding what ERCP is and why it is done can help patients feel more informed and less fearful when preparing for the procedure.