What Is ERCP?

What is ERCP? How the scope, dye and X-ray pictures find blocked bile ducts, and how stones are treated in the same session.

11/03/26  •  43 Views

Gastroenterology
Dr. Mohamed Ibrahim avatar
Dr. Mohamed Ibrahim
Physician-scientist · Founder, MedicalVideos.com
Dr. Ibrahim founded MedicalVideos.com in 2007 to make medical and surgical education freely accessible to students, clinicians, and patients.
Last reviewed: 11/03/26

Sometimes the first clue is in the mirror: the whites of the eyes look yellow. Sometimes it's pain high in the abdomen, dark urine, or blood tests showing that bile isn't draining the way it should. Behind clues like those there is often a blocked drainage channel — and ERCP is one of the main ways doctors both look inside those channels and, very often, clear the blockage in the same session.

ERCP stands for endoscopic retrograde cholangiopancreatography. The name is a mouthful, so almost everyone just uses the initials. In plain terms, it's a specialised endoscopy procedure used to study the bile ducts, the pancreatic duct and the gallbladder system. Ducts, as the video at the top of this page puts it, are drainage routes: the channels that carry bile from the liver and digestive juices from the pancreas into the intestine. That video, "Endoscopic Retrograde Cholangiopancreatography", runs for 6 minutes 30 seconds and works through the technique step by step — the steps below follow the same order you'll experience as a patient.

Step 1: Getting ready

ERCP is usually done in a hospital endoscopy unit, often as a day case, though an overnight stay is sometimes planned. You'll be asked not to eat or drink for a period beforehand, because the stomach needs to be empty — follow the exact timing your own unit gives you, as that instruction overrides anything general.

Before the day, tell the team about the medicines you take, especially anything that thins the blood, and about allergies, previous reactions to sedation, and any heart or lung problems. You'll usually have a cannula placed in a vein so sedation and other medicines can be given, and you'll sign a consent form after the reason for the procedure — and its main alternative — has been explained. If you're unsure why ERCP, rather than a scan alone, is being recommended for you, that conversation is the moment to ask.

Step 2: Sedation, and the scope goes in

You won't normally be fully asleep in the way you would for major surgery, but you will be given sedation so you're drowsy, relaxed and comfortable, along with monitoring of your pulse, blood pressure and oxygen levels throughout. Some centres use a deeper anaesthetic approach — your team will tell you which is planned.

You'll lie on your left side, sometimes moving partly onto your front. The doctor passes a long, flexible tube called a duodenoscope through your mouth, down the food pipe and through the stomach into the first part of the small intestine, the duodenum. That sounds alarming, but sedation does a lot of the work here, and most people remember very little of it afterwards. The scope has a camera and a light, and — importantly — a side-viewing angle, because the opening where the bile and pancreatic ducts drain into the duodenum sits in its wall.

Our general guide to what an endoscopy is and what it shows explains the basic scope technique ERCP builds on; ERCP goes one step further, into the ducts themselves.

Step 3: Into the duct — dye and X-ray pictures

Once the scope is in position, a fine tube is passed through it and into the duct opening. A contrast dye is then injected so the duct shows up clearly on X-ray pictures taken as the procedure goes along — that X-ray guidance is the "retrograde" part of the name, because the dye is sent back up the duct, against the normal direction of flow.

This is where the questions that prompted the procedure start to get answers. The pictures can show a stone lodged in the bile duct, a narrowing, or a duct that's dilated because something is blocking it downstream. A shorter video on this site, "ERCP for Removal of a Stone", shows exactly that situation in just over a minute, and its description sums up the double role of the procedure: it's used both to diagnose conditions of the pancreas or bile ducts and to treat them.

Stones in the bile duct are a frequent reason for that blockage. Our article on what gallstones are and how they're treated explains where those stones form, and our gallbladder condition hub brings the related guides together — including why the gallbladder itself, if it's the source of the stones, is usually dealt with separately by surgery rather than by ERCP.

Step 4: Treatment during the same session

Here's what makes ERCP different from a purely diagnostic scan: if a treatable problem is found, the doctor can often deal with it there and then, through the same scope. Depending on what's found, that can include widening the duct opening with a small cut, breaking up or pulling out stones with tiny baskets or balloons, taking a small tissue sample, or placing a short plastic or metal tube — a stent — to hold a narrowed duct open so bile can drain again while the next steps are decided.

Not everything found can be finished in one session, and your team may explain afterwards that a further procedure, an operation, or a period of watching and re-checking is the right next move. That's not a failure of the procedure — sometimes the ERCP's job is to restore drainage and give everyone a clearer picture, and it does both.

Step 5: Afterwards — recovery and what to watch for

You'll rest while the sedation wears off, and the team will keep an eye on you before you eat or drink again — your throat may feel sore and you may feel bloated from the air used during the procedure, both of which usually settle. Because of the sedation, you shouldn't drive or make important decisions until the following day, and you'll need someone to take you home if you're going home the same day.

One complication the team will specifically watch and warn about is inflammation of the pancreas, called pancreatitis, which can occasionally follow ERCP and causes worsening abdominal pain — our article on what pancreatitis is explains that condition in its own right. Go back, or contact the unit promptly, if pain gets worse rather than better, if you develop fever or shivering, vomit blood, pass black stools, or the yellowing of your eyes deepens instead of fading. Those instructions matter more than reassurance on a page: act on them early.

Finally, a word on where ERCP sits among the tests. Scans such as ultrasound, CT and a specialised MRI of the ducts can often show that a duct is blocked without any scope at all, so ERCP today is chosen mainly when treatment during the procedure is likely to be needed, or when those other tests haven't settled the question. That's a deliberate balance — the procedure's ability to treat is its strength, and it's used when that strength is actually required.

References & further reading

MedlinePlus — ERCP: https://medlineplus.gov/ency/article/007479.htm

National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) — Endoscopic Retrograde Cholangiopancreatography (ERCP): https://www.niddk.nih.gov/health-information/diagnostic-tests/endoscopic-retrograde-cholangiopancreatography

Johns Hopkins Medicine — Endoscopic Retrograde Cholangiopancreatography (ERCP): https://www.hopkinsmedicine.org/health/treatment-tests-and-therapies/endoscopic-retrograde-cholangiopancreatography-ercp

MedicalVideos.com has published trusted medical videos since 2007. The site was founded by Dr. Mohamed Ibrahim, MD, PhD — physician-scientist.

Frequently Asked Questions

Is ERCP the same as a normal endoscopy? It builds on the same idea — a flexible scope passed through the mouth — but it goes further. A standard upper endoscopy looks at the food pipe, stomach and duodenum, while ERCP uses a side-viewing scope, dye and X-ray pictures to reach into the bile and pancreatic ducts, and it can treat problems during the same session.

Will I be asleep during ERCP? You'll usually be deeply sedated so you're drowsy and comfortable, and most people remember little afterwards. Some centres use a general anaesthetic approach instead. Your team will tell you which is planned, and either way you will be monitored throughout.

Can ERCP remove gallstones? It can remove stones that have moved into the bile duct, which is a common reason for the procedure. Stones still inside the gallbladder itself are a different problem — the gallbladder is usually removed by surgery, as our gallbladder hub explains — so the two procedures are often planned as a pair.

What is the main risk I should know about? Inflammation of the pancreas (pancreatitis) after the procedure is the complication teams watch for most closely, alongside the general risks of sedation, bleeding and infection that come with endoscopic procedures. Your consent discussion will cover the risks that apply in your own case.

Educational only — this article is general information about ERCP, not medical advice and not a diagnosis. Whether this procedure is right for you, and how to prepare for it, are matters for your own clinician and endoscopy team, who know your history.

Follow Medical Videos on FacebookJoin 5M followers for daily medical videos, expert explainers, and myths busted.
Follow
0 Comments
No comments found

Related Articles

The Medical Videos NewsletterOne email a week — the best new videos and guides. Free.