ERCP is not a surgery. It is a minimally invasive endoscopic procedure, meaning it uses a flexible tube with a camera rather than surgical incisions to access the bile ducts and pancreatic duct. That said, ERCP can involve interventions that feel surgical in nature, like cutting tissue or removing stones, which is why the distinction confuses many people.
Why ERCP Is Classified as a Procedure
Surgery, by definition, involves cutting through skin or tissue to access the body’s interior. ERCP skips that entirely. Instead, a specialist passes a long, flexible tube (an endoscope) through your mouth, down your throat, through your stomach, and into the first part of your small intestine. You’re sedated for this, so you won’t feel it happening. A smaller tube is then threaded through the endoscope to reach the opening of the bile and pancreatic ducts.
Once in position, contrast dye is injected backward into those ducts. Real-time X-ray video (called fluoroscopy) captures the dye as it flows through, giving doctors a detailed map of the duct system. This lets them spot blockages, narrowing, stones, or other problems without making a single incision.
What ERCP Can Actually Treat
ERCP started as a purely diagnostic tool in the 1970s, but today it’s used far more often for treatment. During the same session, doctors can remove gallstones trapped in the bile duct, widen a narrowed duct, place a small tube (stent) to keep a blocked duct open, or take tissue samples for biopsy. One common step involves making a tiny cut at the opening where the bile duct meets the small intestine to let stones pass through or to improve drainage.
These interventions are why some people think of ERCP as surgery. The work being done inside the body is genuinely therapeutic, not just diagnostic. But because everything is accomplished through the endoscope rather than through an external incision, it remains classified as an endoscopic procedure.
ERCP vs. MRCP
If your doctor only needs images of the bile and pancreatic ducts, there’s a completely noninvasive alternative called MRCP. This is an MRI-based scan that produces detailed pictures of the same duct system without putting anything inside your body. MRCP has largely replaced ERCP for diagnosis alone, because it carries far fewer risks.
ERCP becomes necessary when treatment is also needed. An MRCP might reveal a gallstone blocking a duct, but only ERCP can remove it in the same session. Think of MRCP as the imaging test and ERCP as the imaging test that can also fix what it finds.
What Sedation to Expect
Most ERCPs are performed under deep sedation without a breathing tube, a technique called monitored anesthesia care. You’ll be unconscious but breathing on your own, and an anesthesiologist monitors you throughout. International consensus guidelines generally favor this approach over general anesthesia for routine cases.
General anesthesia with a breathing tube is reserved for more complex or prolonged procedures, or for patients at higher risk of aspiration (stomach contents entering the lungs). Your medical team will decide which approach fits your situation before the day of the procedure.
How to Prepare
Preparation is straightforward. You’ll need to fast for at least eight hours beforehand, and most centers ask you to stop eating and drinking after midnight the night before. If you take blood thinners or diabetes medications, your doctor will give you specific instructions on whether to adjust or pause them. You’ll also need to arrange for someone to drive you home and stay with you overnight, since the sedation takes time to fully wear off.
Recovery and Time in the Hospital
ERCP is typically a same-day procedure. After it’s done, you’ll stay in the endoscopy unit for about four to six hours so the medical team can monitor you for any early complications. Once you’re fully awake and stable, you can go home. Most people are back to normal activities within a day or two, though your throat may feel slightly sore from the endoscope.
Risks Worth Knowing About
The most common complication is post-ERCP pancreatitis, an inflammation of the pancreas that occurs in up to 15% of patients in the United States. It happens because the instruments and dye can irritate the pancreatic duct. Most cases are mild, causing a few days of abdominal pain that resolves on its own, but severe cases occasionally require hospitalization. Other less common risks include bleeding (especially if tissue was cut during the procedure), infection, and very rarely, a perforation of the intestinal wall.
This complication rate is one reason doctors don’t perform ERCP for diagnostic purposes alone anymore when MRCP can provide the same images without any risk. ERCP is reserved for situations where the benefits of immediate treatment outweigh these risks.

