ERCP: What It Is, Why It’s Needed, and What Patients Should Know

Dr. Satya Maharshi
Dr. Tummalapalli S A Satya Maharshi Consultant Medical Gastroenterologist  ·  May 26, 2026
Share
Key Takeaway

If your doctor has recommended ERCP, this guide answers every question — what the procedure involves, why it is needed for bile duct stones and blockages, what the risks are, and how to prepare.

If your doctor has recommended an ERCP, it is natural to feel uncertain. The name sounds complex, the procedure sounds intimidating, and the questions are often the same: What will happen? Will it hurt? Why can’t a simpler test be done instead? This guide answers all of those questions — written from the gastroenterologist’s perspective.

What Is ERCP?

ERCP — Endoscopic Retrograde Cholangiopancreatography — is a specialised endoscopic procedure that accesses the bile duct and pancreatic duct through the mouth, without any external incision. A flexible camera is passed through the mouth, into the stomach, and then into the duodenum (the first part of the small intestine), where the openings of the bile duct and pancreatic duct are located.

Through this approach, a gastroenterologist can not only see these ducts but also treat them — removing stones, opening blockages, placing stents, and sampling tissue — all in a single session.

Why Is ERCP Needed?

ERCP is recommended when there is a problem in the bile duct or pancreatic duct that cannot be resolved with medication or simpler investigations. Common reasons include:

Bile Duct Conditions

  • Bile duct stones (choledocholithiasis): Stones that have migrated from the gallbladder into the bile duct, causing pain, jaundice, and potentially life-threatening infection (cholangitis)
  • Bile duct strictures: Narrowing of the duct due to scarring, previous surgery, or cancer — causing bile to back up into the liver
  • Biliary obstruction from cancer: Pancreatic cancer, bile duct cancer, or lymph node compression causing jaundice
  • Primary Sclerosing Cholangitis (PSC): Inflammatory narrowing of the bile ducts
  • Bile duct leak: After gallbladder surgery (cholecystectomy), a bile leak can be sealed endoscopically via ERCP

Pancreatic Conditions

  • Pancreatic duct stones
  • Pancreatic duct stricture following pancreatitis
  • Pancreatic divisum (a congenital variant causing recurrent pancreatitis)

What Happens During the Procedure?

ERCP is performed under conscious sedation or monitored anaesthesia care (MAC) — you are in a relaxed, semi-conscious state and will not feel pain during the procedure. The entire process typically takes 30–60 minutes.

Step by step:

  1. You lie on your left side or abdomen on a procedure table with X-ray guidance available.
  2. A flexible endoscope is gently passed through your mouth into the duodenum.
  3. The opening of the bile duct (ampulla of Vater) is identified.
  4. A thin catheter is passed through the scope and into the bile duct.
  5. Contrast dye is injected to visualise the duct on X-ray (fluoroscopy).
  6. Depending on what is found, the gastroenterologist proceeds with: sphincterotomy (cutting the sphincter), stone extraction with a balloon or basket, stent placement, or tissue sampling (biopsy).
  7. The scope is withdrawn. You are moved to recovery.

Is ERCP Painful?

During the procedure — no. Sedation ensures you are comfortable throughout. After the procedure, it is normal to experience mild bloating, throat discomfort, and some abdominal soreness for a few hours. This settles with rest.

Most patients are able to go home the same day or the following morning, depending on the complexity of the procedure and whether a stone or stent was involved.

What Are the Risks?

ERCP is a specialised procedure and carries a higher risk profile than routine endoscopy. The most important risks are:

  • Post-ERCP pancreatitis (PEP): The most common complication, occurring in 3–5% of cases. Usually mild and self-limiting. Risk is reduced significantly by experienced hands and preventive rectal indomethacin use.
  • Bleeding: Especially after sphincterotomy. Usually controllable endoscopically. Risk is higher in patients on blood thinners.
  • Cholangitis: Bile duct infection, preventable with antibiotic prophylaxis.
  • Perforation: Rare, occurring in less than 1% of cases.

It is important to note that the risk of not performing ERCP when it is needed is often greater than the procedural risks themselves. Untreated bile duct stones, for example, can cause severe infection, organ failure, and death.

How to Prepare for ERCP

  • Fasting: Nothing to eat or drink for at least 6–8 hours before the procedure
  • Medications: Inform your doctor about all medications — blood thinners (warfarin, clopidogrel, aspirin) and diabetes medications require specific instructions
  • Allergies: Disclose any known allergy to contrast dye or iodine
  • Escort: Arrange for someone to accompany you — you will not be able to drive after sedation
  • Reports: Bring all previous scans, ultrasounds, MRI/MRCP reports, and blood investigations

What Happens After ERCP?

You will be observed for 2–4 hours in recovery. Your doctor will review the findings and explain what was done. You may start fluids after 2–3 hours if you feel comfortable. Most patients resume normal diet the following day.

Seek immediate medical attention if you develop:

  • Severe abdominal pain that is worsening
  • High fever (above 38.5°C)
  • Vomiting that does not settle
  • Dark or tar-coloured stools

Why Expertise Matters in ERCP

ERCP is one of the most technically demanding procedures in gastroenterology. Success rates and complication rates vary significantly with the experience of the endoscopist. High-volume ERCP centres — where the endoscopist performs more than 200 procedures annually — have consistently better outcomes for complex cases, including difficult cannulation, post-surgical anatomy, and Mirizzi syndrome.

When a patient is referred for ERCP after failing at another centre, or when the anatomy is altered by prior surgery, the skillset required increases substantially. Techniques such as pre-cut sphincterotomy, needle-knife access, and rendezvous ERCP require advanced training and regular practice to be performed safely.


Dr. Tummalapalli S A Satya Maharshi has performed over 2,000 therapeutic ERCP procedures at AIG Hospitals, Hyderabad — including complex cases referred from across Telangana and Andhra Pradesh. To discuss whether ERCP is right for your condition, call +91 9963886339 or book a consultation online.

Dr. Satya Maharshi
Dr. Tummalapalli S A Satya Maharshi
Consultant Medical Gastroenterologist · AIG Hospitals, Hyderabad

DrNB Gastroenterology (NAMS) · MD General Medicine, Gold Medalist. Specialist in advanced endoscopy, EUS, ERCP, GI bleeding, liver and pancreatic disorders. Over 2,000 therapeutic ERCP and 20,000+ endoscopic procedures performed.

Found this helpful? Share it

Have Digestive or Liver Concerns?

Speak with Dr. Maharshi — specialist in gastroenterology, advanced endoscopy, and liver care in Hyderabad.