What should I know about endoscopic retrograde cholangiopancreatography (ERCP)?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: November 2, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

ERCP: Essential Clinical Knowledge

ERCP (Endoscopic Retrograde Cholangiopancreatography) is primarily a therapeutic procedure that should be performed by experienced pancreaticobiliary endoscopists, with prophylactic measures mandatory to reduce the 4-7% complication rate that includes pancreatitis, perforation, bleeding, and cholangitis.

What ERCP Is

ERCP combines endoscopy and fluoroscopy to access and treat diseases of the bile ducts, pancreatic duct, and gallbladder. The procedure involves advancing a specialized endoscope (duodenoscope) into the duodenum, cannulating the ampulla of Vater, and injecting contrast to visualize the biliary tree under fluoroscopy 1, 2, 3.

Primary Indications

Therapeutic Uses (Current Primary Role)

  • Common bile duct (CBD) stones: Stone clearance achieved in 80-95% of cases with balloon sweep 1
  • Severe gallstone pancreatitis with cholangitis: Indicated when no response to treatment within 48 hours 4
  • Biliary obstruction requiring stent placement: Success rate >90% for distal CBD strictures 1
  • Dominant strictures in primary sclerosing cholangitis (PSC): When symptomatic and identified on MRC 5

Diagnostic Uses (Now Limited)

ERCP's diagnostic role has largely been replaced by MRCP (magnetic resonance cholangiopancreatography) and endoscopic ultrasound, which are non-invasive 5, 2. ERCP should only be considered diagnostically when MRC plus liver biopsy is equivocal or contraindicated 5.

Complications and Risk Profile

Overall Complication Rates

The total complication rate ranges from 4.0% to 6.85% in general populations 5, 1, 5, but increases to 1.8% to 18.4% in PSC patients 5. Mortality risk is approximately 0.4% 1.

Specific Complications

Post-ERCP Pancreatitis (PEP)

  • Most common complication: 3.47% overall, 1-7% in PSC 5
  • Risk factors: female sex, guidewire in pancreatic duct, native papilla, prolonged procedure time, therapeutic interventions 5

Perforation

  • Three types based on mechanism:
    • Type 1: Duodenoscope trauma to bowel wall (requires surgical intervention unless early endoscopic closure achieved)
    • Type 2: Periampullary perforation from overextended sphincterotomy
    • Type 3: Guidewire-related 6
  • Delayed recognition >6 hours increases mortality and hospital stay 6

Bleeding and Cholangitis

  • Bleeding risk attenuated by preprocedural optimization
  • Cholangitis occurs in up to 10% of gallstone pancreatitis patients 4

Mandatory Prophylactic Measures

For All Patients

Rectal NSAIDs: Administer 100 mg diclofenac or indomethacin immediately before or after ERCP in all patients without contraindication 5. This is supported by multiple meta-analyses showing reduction in both mild and moderate/severe PEP.

Prophylactic Antibiotics: Recommended before ERCP, particularly in PSC patients and those with suspected biliary obstruction 4, 5.

For High-Risk Patients

Prophylactic Pancreatic Stent: Place 5-Fr stent in patients at high risk for PEP 5.

Aggressive IV Hydration: Evidence-based strategy for PEP prevention 7.

Technical Considerations

Cannulation Technique

Guidewire-assisted cannulation is superior to contrast-assisted: Increases primary cannulation rate and reduces PEP risk 5. Primary cannulation success is approximately 88% 5.

Sphincterotomy Technique

  • Use stepwise incisions with controlled, pulsed-blended currents
  • Direct force with right hand creating counter-clockwise torque
  • Terminate just before reaching flat transverse duodenal mucosa
  • Minimize cutting wire contact length 6

When to Avoid ERCP

Do not perform ERCP for preoperative CBD assessment in mild gallstone pancreatitis unless high suspicion exists (jaundice, deranged liver function tests, dilated CBD on ultrasound). Instead, perform intraoperative cholangiogram during cholecystectomy 4.

Specific Clinical Scenarios

Acute Pancreatitis

  • Severe gallstone pancreatitis: ERCP indicated if no response within 48 hours 4
  • Ascending cholangitis: ERCP with duct drainage and clearance benefits this 10% subset 4
  • Mild pancreatitis: Risks may outweigh benefits 4

Primary Sclerosing Cholangitis

  • MRC should be performed before therapeutic ERCP 5
  • Perform endoscopic treatment with ductal sampling (brush cytology, endobiliary biopsies) for symptomatic dominant strictures 5
  • Weigh benefits of biliary sphincterotomy against risks case-by-case, especially after difficult cannulation 5

Medically Unfit Patients

Endoscopic sphincterotomy may serve as definitive management for cholelithiasis, though surgery still has an important role 4.

Critical Pitfalls to Avoid

  1. Performing diagnostic ERCP when MRCP is available: MRCP is non-invasive and should be first-line for diagnosis
  2. Omitting rectal NSAIDs: This simple intervention significantly reduces PEP
  3. Delaying recognition of perforation: Recognition >6 hours dramatically worsens outcomes
  4. Using ERCP for low-suspicion CBD stones: Intraoperative cholangiogram is safer
  5. Inadequate operator experience: ERCP should only be performed by experienced pancreaticobiliary endoscopists 5

Anesthesia Considerations

ERCP can be performed under monitored anesthesia care (MAC) or general anesthesia. Recent consensus guidelines favor MAC for most patients, though the evidence base is limited and requires further study 8.

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.