7 JCI-accredited hospitals · 45+ hospitals & clinics · 90+ countries served · 24/7 multilingual support
Gut Health

When Is ERCP Needed? Stuck Gallstones, Duct Narrowing and Bile Leaks Explained

26 min read
When Is ERCP Needed? Stuck Gallstones, Duct Narrowing and Bile Leaks Explained

Key Takeaways

  • ERCP is reserved for problems that need treating inside the bile or pancreatic ducts, because MRCP now provides the pictures without instruments, sedation or radiation.
  • Stones stuck in the common bile duct, strictures that need a stent, bile leaks after gallbladder surgery and infected blocked ducts account for most ERCPs.
  • The NIDDK puts the overall complication rate at roughly 5 to 10 percent, with pancreatitis the most frequent and usually appearing within the first 24 hours.
  • Clearing a duct stone does not remove the source; the NHS notes gallbladder removal is generally recommended afterwards for people fit for surgery.
  • A stent relieves a blockage but does not treat its cause, and plastic stents are exchanged on a schedule set by the endoscopist.
  • ERCP requires training beyond general gastroenterology, so it is reasonable to ask who will perform yours and how often they do the procedure.
Quick Answer

ERCP is needed when a problem in the bile or pancreatic ducts has to be treated, not just seen. The commonest reasons are gallstones stuck in the common bile duct, a narrowed duct causing jaundice that needs a stent, a bile leak after gallbladder surgery, and infected bile that must be drained. For diagnosis alone, non-invasive scans such as MRCP are usually preferred.

The ultrasound report said the gallbladder was full of stones, which was no surprise. The line that caught the surgeon’s eye was further down: common bile duct dilated, possible stone at the lower end. Within an hour the conversation had shifted from a routine keyhole operation to a procedure most people have never heard of, with a name nobody can say on the first try.

Endoscopic retrograde cholangiopancreatography, mercifully shortened to ERCP, sits in an unusual place in medicine. It is part camera test, part X-ray, part operation, and it is almost never done just to look. Understanding when ERCP is needed, and when a scan or an operation does the job better, helps a bewildering week make sense.

This explainer walks through the three situations that account for most ERCPs, the honest risk figures, what the days afterwards usually feel like, and the questions worth asking before you sign the consent form.

When is ERCP needed? The short version

Bile is made in the liver, stored in the gallbladder and delivered to the small intestine through a tree of narrow tubes called bile ducts. The pancreas drains its digestive juice through a separate duct that joins the bile duct just before both empty into the duodenum, the first part of the small intestine, through a small valve called the papilla. When that plumbing blocks, bile backs up into the blood, the skin and eyes turn yellow, and bacteria trapped behind the blockage can multiply fast.

ERCP is the tool that reaches that junction from the inside. A flexible endoscope is passed through the mouth to the papilla, a fine tube is threaded into the duct, X-ray contrast outlines the anatomy, and instruments then clear, stretch or bridge whatever is wrong. The defining feature is that the same session that finds the problem usually treats it.

That is why the answer to when is ERCP needed has narrowed over the past two decades. According to the National Institute of Diabetes and Digestive and Kidney Diseases, the test was once used widely for diagnosis, but non-invasive imaging now does most of that work, and ERCP is reserved for cases where treatment is likely to follow. Four situations dominate:

  • A gallstone has slipped out of the gallbladder and lodged in the common bile duct.
  • The duct is narrowed, from scarring or a tumor, and bile needs a stent to get past.
  • Bile is leaking after gallbladder surgery or an injury.
  • The duct is both blocked and infected, a condition called cholangitis, and must be drained urgently.

Pancreatic duct problems, such as stones or narrowing in chronic pancreatitis, make up a smaller share. Each of these is explained in turn below, along with the people for whom a different route is wiser.

What actually happens during an ERCP

You lie on an X-ray table, usually on your left side or front, with a mouth guard in place. Most people receive either deep sedation or a general anesthetic; Mayo Clinic notes that both approaches are used, with the choice depending on your health, the expected complexity and local practice. A spray or gargle may numb the throat first.

Doctor consulting patient with stethoscope in clinic: What actually happens during an ERCP

The endoscopist passes a side-viewing scope, a tube about as thick as a finger with a camera facing sideways rather than forward, down the esophagus, through the stomach and into the duodenum. The side view matters because the papilla sits on the wall of the duodenum, not at the end of a tunnel. Through a channel in the scope, a catheter no wider than a strand of spaghetti is guided into the papilla and contrast dye is injected. On the fluoroscopy screen, the dye lights up the ducts like a river delta, and any stone shows as a dark filling defect, any narrowing as a pinched segment.

Treatment follows in the same sitting. A sphincterotomy, a small electrical cut that widens the papilla’s muscular valve, is the most common step; it lets stones pass and instruments through. Stones are then swept out with a soft balloon or caught in a wire basket. A stricture may be stretched with a balloon dilator and held open with a stent, a short plastic or expandable metal tube. Brush cytology, in which a tiny brush collects cells from a narrowed segment for the laboratory, can be added when the cause of a stricture is unclear.

The whole procedure typically takes one to two hours, according to the NIDDK, with much of that time spent on the therapeutic part rather than the camera work. Afterwards you are watched in a recovery area until the sedation wears off. Air used to inflate the bowel leaves you bloated for a few hours, and the throat often feels scratchy for a day.

ERCP for bile duct stones: the most common reason

Most gallstones never leave the gallbladder. A minority, often the small ones, slip into the cystic duct and onward into the common bile duct. Because that duct is only a few millimeters wide, even a pea-sized stone can act like a cork. Bile pressure rises, liver tests climb, and pain settles under the right ribs or in the upper middle of the abdomen. If the stone lodges where the bile and pancreatic ducts meet, pancreatic juice backs up too, and the result is gallstone pancreatitis.

ERCP for bile duct stones works because the papilla can be widened and the stone pulled through it. The NHS describes this sequence plainly: after a sphincterotomy, the stone is either removed with a balloon or basket or left to pass into the bowel on its own. Larger stones may need to be crushed first with a mechanical lithotripter, a basket that cinches down hard enough to fracture them, or in specialist units broken up with a laser passed through a miniature scope inside the duct.

Timing shapes the decision as much as the stone itself. Three patterns are common:

  • A stone found on scans before planned gallbladder surgery is often cleared by ERCP first, so the surgeon can remove the gallbladder knowing the duct is clean.
  • A stone discovered during surgery can sometimes be removed through the cystic duct at the time, or ERCP is arranged shortly afterwards.
  • A stone that has caused cholangitis, or pancreatitis with persistent obstruction, is drained urgently rather than electively.

One point surprises patients: clearing the duct does not deal with the source. The NHS notes that removing the gallbladder is generally recommended afterwards for people who are fit for surgery, because further stones can follow the same route. Whether and when that operation happens is a conversation with the surgical team, weighing age, other illnesses and how the first episode went.

Bile duct narrowing: why a stent may be placed

A stricture is a segment of duct that has narrowed enough to slow or stop bile flow. The causes split into two families, and ERCP serves both, though for different reasons.

Doctor consulting elderly patient about diet and nutrition: Bile duct narrowing: why a stent may be placed

Benign strictures are scars. They can follow gallbladder surgery, long-standing inflammation of the pancreas pressing on the duct where it passes through the pancreatic head, or primary sclerosing cholangitis, an immune condition that scars the bile tree in patches. Here ERCP’s job is mechanical: stretch the narrowing with a balloon and hold it open with one or more stents, which are exchanged at intervals the treating team sets. Plastic stents gradually clog with bile sludge and are replaced; the schedule depends on the cause and the unit’s protocol rather than a fixed rule.

Malignant strictures come from tumors of the pancreas, the bile duct itself or nearby lymph nodes compressing the duct from outside. Painless jaundice with pale stools and dark urine is the classic presentation, and ERCP has two roles. It relieves the jaundice, which eases itching, helps the liver recover and may be required before chemotherapy can start safely. And it can sample the stricture with brushings or small forceps to help confirm the diagnosis, although the Cleveland Clinic and other mainstream sources note that these samples are not always conclusive and may need other tests alongside them.

For a tumor that cannot be removed, a self-expanding metal stent is often chosen because it stays open longer than plastic. When surgery to remove the tumor is planned, teams sometimes debate whether to stent first or operate directly; that choice belongs to the surgical and oncology team and depends on bilirubin levels, infection and how soon surgery can happen. A stent relieves a blockage. It does not treat what caused it, and anyone told they need one should expect a parallel conversation about the underlying diagnosis.

Bile leaks and pancreatic duct problems

Gallbladder removal is one of the most common operations in the world, and a bile leak afterwards is uncommon but well recognized. The usual culprit is the cystic duct stump, the short tube that connected gallbladder to bile duct, where a clip has slipped or the tissue has not sealed. Less often a small accessory duct in the gallbladder bed is the source, and rarely the main duct has been injured. Bile pooling in the abdomen causes worsening pain, bloating, fever and sometimes jaundice in the first days after surgery.

ERCP treats most leaks by changing the pressure, not by patching the hole. Bile follows the path of least resistance. The papilla’s muscular valve normally creates a small pressure barrier; a sphincterotomy, a temporary stent or both lower that barrier so that bile flows preferentially into the duodenum rather than out through the defect, and the leak closes as the tissue heals. The stent is removed at a follow-up ERCP once imaging confirms the leak has sealed, on a timeline the endoscopist sets. Fluid already collected in the abdomen may need a separate drain placed by a radiologist.

Pancreatic indications are fewer but real. In chronic pancreatitis, the main pancreatic duct can narrow or fill with calcified stones, and pain tracks with the obstruction. ERCP can dilate the narrowing, place a stent or extract stones, often after shock-wave lithotripsy has fragmented them. A persistent leak from the pancreatic duct after severe pancreatitis or injury can be bridged with a stent in the same way as a bile leak. And in cases of unexplained recurrent pancreatitis, a careful look at the duct anatomy sometimes reveals a variant that explains the attacks.

Pancreatic ERCP carries a higher risk of post-procedure pancreatitis than biliary work, which is one reason it is concentrated in specialist units and reserved for people whose symptoms clearly justify it.

When is ERCP needed right away, and who is usually asked to wait?

Urgency is decided by infection and by whether the blockage is complete. Acute cholangitis, in which bacteria multiply in trapped bile, can tip into sepsis within hours. The combination of fever, jaundice and upper abdominal pain is the pattern clinicians watch for, and when it appears, drainage by ERCP is usually arranged within a day, sometimes sooner, alongside intravenous antibiotics. Gallstone pancreatitis with a stone still wedged at the papilla, or with cholangitis on top, is treated with similar speed. A bile leak causing peritonitis is another situation that rarely waits.

Many other people are better served by patience. Someone whose liver tests are drifting back to normal after a brief episode of pain has probably passed the stone already, and the NIDDK notes that MRCP, a magnetic resonance scan of the ducts that needs no scope, sedation or radiation, can confirm the duct is clear without the risks of an instrument inside it. A person with a vague stricture on a scan may be sent for endoscopic ultrasound first, so that a diagnosis is reached before anyone commits to a stent.

Some people are asked to wait for safety reasons rather than because the problem is mild:

  • Those taking anticoagulants or antiplatelet medicines, whose prescriber needs to decide how to manage them around a sphincterotomy.
  • People who are acutely unwell from another cause, for whom sedation itself carries extra risk until they are stabilized.
  • Anyone with altered anatomy from previous stomach surgery, such as a gastric bypass, where the papilla cannot be reached by a standard scope and a different approach has to be planned.

Pregnancy is not an absolute barrier. When a stone is causing cholangitis in pregnancy, ERCP is performed with shielding and minimal fluoroscopy, because untreated infection is the greater danger. The point in every case is that the treating team weighs the risk of the disease against the risk of the procedure, and that balance can change from one day to the next.

What is ERCP used for compared with MRCP, EUS and surgery?

Four approaches reach the bile and pancreatic ducts, and the right one depends on whether you need a picture, a sample or a repair. The table below summarizes how mainstream sources such as the NIDDK, Mayo Clinic and Johns Hopkins position each option.

Approach What it is Can it treat? Sedation Radiation Usually chosen when
MRCP MRI scan tuned to show fluid-filled ducts No None None Diagnosis is uncertain and treatment may not be needed
Endoscopic ultrasound (EUS) Endoscope with an ultrasound probe at its tip, imaging ducts through the stomach wall Mostly no; can take needle samples and, in specialist hands, create drainage routes Yes None Small stones or masses need confirming, or tissue is required
ERCP Endoscope plus X-ray contrast and instruments inside the duct Yes Yes Fluoroscopy A stone, stricture, leak or infected blockage needs treating
Surgical or radiological access Duct explored during surgery, or a drain placed through the skin into the liver Yes General anesthetic or local Varies ERCP fails, anatomy prevents access, or surgery is happening anyway

The pattern that emerges is a ladder. Blood tests and ultrasound raise the question. MRCP or EUS answers it when the answer is in doubt. ERCP acts on it. Surgery or a percutaneous drain, placed by an interventional radiologist through the skin and liver into a bile duct, steps in when the endoscopic route is blocked or has not worked.

Where ultrasound has already shown an obvious duct stone with jaundice and abnormal liver tests, many teams move straight to ERCP without an intermediate scan, because the probability of needing treatment is high and a scan would only delay it. Where the probability is low, insisting on ERCP exposes someone to pancreatitis risk for a test that might show a normal duct. Good practice is less about the technology and more about matching the invasiveness of the test to the likelihood it will change what happens next.

ERCP procedure risks: the honest numbers

Is ERCP a risky procedure? More so than a standard gastroscopy or colonoscopy, and patients deserve to hear that directly rather than discover it from a consent form. The National Institute of Diabetes and Digestive and Kidney Diseases states that complications occur in roughly 5 to 10 percent of ERCPs. Most are mild and settle with a short hospital stay, but a small fraction are serious.

Pancreatitis is the most frequent complication and the one patients should understand best. Handling the papilla and injecting contrast can irritate the pancreatic duct, and inflammation follows within hours. It typically announces itself as upper abdominal pain spreading to the back, with nausea, usually within the first day. Most episodes are mild and treated with fluids and pain relief, but severe cases occur. Risk is higher in younger people, in women, when the pancreatic duct is repeatedly entered, and when the indication is uncertain. Endoscopists use several measures to lower it, including keeping pancreatic injections to a minimum, placing a temporary pancreatic stent in high-risk cases and, where appropriate, giving an anti-inflammatory medicine of the NSAID class around the time of the procedure; whether any of these apply to you is the endoscopist’s call.

The other recognized complications, as listed by the NIDDK and Mayo Clinic, are:

  • Bleeding from the sphincterotomy site, which usually stops on its own or is controlled during the procedure.
  • Infection of the bile ducts or gallbladder, more likely when a blocked duct is not fully drained.
  • Perforation, a tear in the duodenal wall or duct, which is rare but may need surgery.
  • Reactions to sedation, including breathing or heart rhythm problems, more common in older or frail patients.

Radiation exposure from fluoroscopy is modest and kept as low as possible. Set against these risks is the risk of doing nothing: untreated cholangitis has a high death rate, and prolonged jaundice damages the liver. The question is never whether ERCP is risk-free but whether, for this person on this day, its risks are smaller than the disease’s.

How do I prepare for an ERCP?

Preparation is mostly about safety during sedation and clear views inside the duodenum. The NIDDK advises an empty stomach, which in practice means no food or drink for about eight hours beforehand, with the exact instructions coming from the unit performing the procedure. Some teams allow sips of water up to a couple of hours before; follow what you are told rather than a general rule.

The pre-assessment conversation covers several things that genuinely change the plan:

  • Every medicine you take, especially anticoagulants, antiplatelet drugs and diabetes medicines. Whether and how any of these are adjusted is a decision for the prescribing clinician in discussion with the endoscopist, never something to work out alone.
  • Allergies, particularly to iodine-based contrast or to sedatives.
  • Heart or lung conditions that affect sedation choices, and any history of sleep apnea.
  • Previous abdominal surgery, since a gastric bypass or similar operation changes how the papilla can be reached.
  • Pregnancy or the possibility of it, because fluoroscopy is involved.
  • Any pacemaker or implanted device, as the electrical current used in sphincterotomy may require precautions.

Bring someone with you. Mayo Clinic is firm on this: because of the sedation, you will not be allowed to drive, operate machinery or make important decisions for the rest of the day, and most units will not discharge a sedated patient without a responsible adult to accompany them home.

Blood tests on the day or shortly before usually include liver function, kidney function and clotting, and a sample is often sent for blood typing in case of bleeding. Expect to sign a consent form that lists the complications described above; signing it is also your opportunity to ask the endoscopist what they expect to find and what they plan to do if the duct cannot be entered. Jewellery, dentures and glasses come off before you go in. Dress in something loose; bloating afterwards is normal and a tight waistband does not help.

ERCP recovery time: what the following days and weeks look like

The first hours are spent in a recovery bay while the sedation lifts. Mayo Clinic describes a typical observation period of one to two hours for day-case procedures, longer if the team wants to check blood tests or if you were already an inpatient. A sore throat, a bloated belly from the air introduced during the procedure, and drowsiness are expected. Passing gas is a good sign rather than an embarrassment.

Eating usually resumes the same day, starting with fluids and light food once swallowing feels normal. Some units ask you to stay overnight after complex therapeutic work, after a sphincterotomy in someone with bleeding risk, or when the indication was infection. People admitted with cholangitis typically stay until fever settles and antibiotics can be completed by mouth or stopped.

Over the following week, the pattern depends on why the ERCP was done:

  • After stone removal, jaundice fades over days as the liver clears accumulated bilirubin. Dark urine lightens first, then skin and eyes, then itching eases. Liver tests are often rechecked at a follow-up appointment.
  • After a stent for a stricture, the same improvement in jaundice is expected. The team will set a date for stent exchange or removal and explain which symptoms suggest it has blocked.
  • After treatment of a bile leak, pain and any drain output should decline over days, with a repeat scan or ERCP planned to confirm the leak has sealed and remove the stent.

The most important window is the first 24 to 48 hours, when post-ERCP pancreatitis and bleeding declare themselves. Mild discomfort at the top of the abdomen that eases is common; pain that builds, spreads to the back or comes with vomiting is not, and is covered in the section on when to call.

Returning to work is typically a matter of days for office-based roles, longer for physically demanding jobs or if you were unwell before the procedure. If gallbladder surgery is planned next, the surgical team will advise on timing; many prefer to operate during the same admission or within a few weeks so that another stone does not follow the first.

Can all gastroenterologists perform ERCP?

No, and this matters more than most patients realize. A general gastroenterologist is trained in gastroscopy and colonoscopy, and may manage gallstone disease on the ward, but ERCP requires a further period of dedicated training. In the United States that typically takes the form of an advanced or therapeutic endoscopy fellowship after the standard gastroenterology program; in other countries the route differs in name but not in substance. Some surgeons with specialist hepatobiliary training also perform ERCP, and in many hospitals the service is shared between gastroenterology and surgery.

The reasons are practical. Reaching the papilla with a side-viewing scope is a different skill from driving a forward-viewing one. Threading a wire selectively into the bile duct rather than the pancreatic duct, judging how long a sphincterotomy should be, choosing between a balloon and a basket, and recognizing on the fluoroscopy screen when contrast has gone somewhere it should not are all learned through supervised repetition. The Cleveland Clinic and Johns Hopkins describe ERCP as a procedure performed by gastroenterologists with specialized training, and the professional societies that set training standards expect trainees to log substantial numbers of supervised cases before working independently.

For the patient, this translates into a few reasonable expectations rather than a shopping list:

  • The person performing your ERCP should do it regularly, not occasionally.
  • The unit should have access to surgery and interventional radiology, because failed access or a complication sometimes needs another route the same day.
  • Complex work, such as pancreatic duct therapy, cholangioscopy with a miniature scope inside the duct, or ERCP in altered anatomy, is often concentrated in larger centers, and a referral onward is a sign of good judgment rather than a failing.

None of this is a reason to delay urgent drainage in cholangitis, which should happen wherever a competent service is available. It is a reason to ask, politely and without apology, who will be doing the procedure and how often they do it. Any endoscopist who takes the work seriously will welcome the question.

What people often get wrong about ERCP

“It is just a camera test.” The name sounds like a scan, and the entry route is the same as a gastroscopy, but ERCP is a therapeutic procedure with a complication profile closer to minor surgery. Treating it casually leads to surprise when a hospital stay follows. Treating it as the last resort leads to dangerous delay in cholangitis. Neither extreme serves patients.

“If a stone is found, the gallbladder problem is solved.” Clearing the duct is only half the story. The gallbladder that produced the stone is still there, and the NHS notes that removal is usually recommended afterwards in people fit for surgery. Skipping that conversation risks a repeat episode.

“ERCP treats pancreatitis.” Most acute pancreatitis is not caused by a duct blockage, and ERCP has no role in it. Even in gallstone pancreatitis, ERCP is reserved for cases with cholangitis or a stone that stays stuck; where the stone has already passed, the procedure adds risk without benefit. Guidelines from gastroenterology societies have been consistent on this for years.

“A stent is a permanent fix.” Plastic stents clog and are exchanged. Metal stents last longer but are chosen for specific situations. In benign disease, the goal is to remove the stent eventually once the duct has remodeled; in malignant disease, the stent palliates a blockage while the underlying tumor is addressed separately.

“ERCP shows cancer.” It can sample a stricture, and brushings sometimes confirm malignancy, but a negative brushing does not rule it out. Cross-sectional scans, endoscopic ultrasound with needle sampling and multidisciplinary review are what establish a cancer diagnosis. Anyone told their ERCP brushings were “negative” should ask what the next step is rather than assuming the matter is closed.

“Diagnostic ERCP is still standard.” It was, decades ago. MRCP now gives comparable pictures of the ducts without instruments or radiation, and the NIDDK is explicit that ERCP is now used mainly when treatment is expected. If you are offered ERCP purely to find out whether something is wrong, it is fair to ask why a scan would not answer the question first.

Questions to ask your care team before an ERCP

The consent conversation is the moment to turn a procedure into a plan you understand. These questions are the ones endoscopists wish more patients asked, because the answers reveal how clearly the indication has been thought through.

  • What exactly do you expect to find, and how confident are you? A clear answer, such as “a stone we have already seen on MRCP,” is a different situation from “we think there might be something.”
  • What will you do if you find it? Stone removal, stent, sphincterotomy, brushings: knowing the likely steps helps you understand the recovery.
  • What is the plan if the duct cannot be entered? Failed cannulation happens in a small share of cases, and good units have a second route, whether a repeat attempt, an EUS-guided approach or a radiological drain.
  • Has a non-invasive scan already answered the diagnostic question, and if not, why is ERCP preferred?
  • How do my medicines fit in, especially anything that affects bleeding or blood sugar, and who is making those decisions?
  • Will I be sedated or under general anesthesia, and why that choice for me?
  • What is my personal risk of pancreatitis, and are you planning any measures to reduce it?
  • Will I go home the same day or stay overnight, and what decides that?
  • If a stent is placed, when will it come out or be exchanged, and what are the signs it has blocked?
  • If this is for a stone, what is the plan for my gallbladder afterwards, and who will I see about that?
  • Who do I call in the first 48 hours if something feels wrong, and is that number staffed overnight?

Write the answers down or ask a companion to. Sedation blurs the memory of the day, and the two or three facts you most need afterwards, the stent plan, the follow-up date and the emergency number, are easy to lose. A team that answers these questions patiently is telling you something reassuring about how they will handle the parts you cannot see.

When to call your doctor after an ERCP

Most people feel bloated, tired and slightly sore for a day and then steadily better. The job in the first two days is to tell that ordinary discomfort apart from the small number of problems that need prompt attention. Mainstream patient guidance from the NIDDK and Mayo Clinic is consistent on the signs that should not wait for a routine appointment.

Seek urgent care, or call the emergency number your unit gave you, if you notice any of the following:

  • Abdominal pain that worsens rather than eases, particularly pain across the upper abdomen spreading to the back, with or without vomiting. This is the pattern of post-ERCP pancreatitis, which most often appears within the first 24 hours.
  • Fever or shaking chills, which can signal infection in a duct that has not drained fully.
  • Black, tarry stools or vomiting blood or material that looks like coffee grounds, both of which point to bleeding from the sphincterotomy site.
  • Difficulty swallowing, chest pain or a rigid, severely tender abdomen, which may indicate a perforation.
  • Yellowing of the skin or eyes that returns or deepens, dark urine and pale stools after initial improvement, especially if you have a stent, since these suggest it has blocked or moved.
  • Shortness of breath or a sustained racing heart.

Before the procedure, the same principle applies in reverse. If you are waiting for a planned ERCP and develop fever with jaundice and abdominal pain, that combination is the signature of cholangitis and turns an elective procedure into an emergency; it needs same-day assessment, not a phone message left for the morning.

For symptoms that are uncomfortable but not alarming, a persistent sore throat beyond a couple of days, mild bloating that is slowly improving, or a question about when to restart a medicine your prescriber paused, a call to the endoscopy unit or your usual clinician during working hours is appropriate. None of the lists above are meant for self-diagnosis. Their purpose is simpler: to make sure that if something is going wrong, you recognize it early and hand the decision to the people equipped to make it.

Frequently asked questions

What are the common indications for an ERCP?

The common indications are gallstones lodged in the common bile duct, narrowing of a bile duct from scarring or a tumor that needs a stent, a bile leak after gallbladder surgery, and cholangitis, an infected blocked duct that must be drained. Less often, ERCP treats stones or strictures in the pancreatic duct. It is rarely used purely for diagnosis now that MRCP and endoscopic ultrasound can image the ducts without entering them.

Is an ERCP a risky procedure?

It carries more risk than a standard endoscopy. The National Institute of Diabetes and Digestive and Kidney Diseases reports complications in roughly 5 to 10 percent of procedures, most commonly pancreatitis, followed by bleeding, infection and, rarely, perforation. Most complications are mild and settle with a short hospital stay. The risk is weighed against the danger of leaving a blocked or infected duct untreated, which can be considerably greater.

When should ERCP be done?

ERCP should be done when a duct problem needs treatment and the endoscopic route is feasible. It is urgent in cholangitis and in gallstone pancreatitis with a persistently stuck stone, usually within about a day. It is planned electively for stones found before gallbladder surgery, for strictures causing jaundice and for bile leaks. When the diagnosis is uncertain, a non-invasive scan is usually arranged first so that ERCP is only performed if treatment is likely.

Can all gastroenterologists perform ERCP?

No. ERCP requires additional training beyond a standard gastroenterology program, usually an advanced or therapeutic endoscopy fellowship, and some hepatobiliary surgeons also perform it. The side-viewing scope, selective wire placement and fluoroscopy interpretation are distinct skills learned through supervised cases. Patients can reasonably ask who will perform the procedure and how regularly they do it, and complex cases are often referred to larger units.

What is ERCP used for if scans can already see the ducts?

ERCP is used to act on what the scans show. MRCP and ultrasound can identify a stone, stricture or leak, but they cannot remove, stretch or bridge it. ERCP combines the camera, the X-ray and the instruments in one session so that a stone is extracted, a stent placed or a leak decompressed at the time the problem is confirmed. That treatment capability is why it remains essential despite modern imaging.

How does ERCP for bile duct stones actually remove the stone?

The endoscopist widens the papilla, the valve where the duct opens into the small intestine, with a small electrical cut called a sphincterotomy. A soft balloon or wire basket is then passed above the stone and drawn back, pulling it into the bowel where it passes naturally. Large stones may be crushed with a mechanical basket first or, in specialist units, fragmented with a laser passed through a miniature scope inside the duct.

What are the main ERCP procedure risks I should understand before consenting?

The main risks are pancreatitis, bleeding from the sphincterotomy site, infection of the bile ducts, perforation of the duodenum or duct, and reactions to sedation. Pancreatitis is the most common and typically appears within 24 hours as worsening upper abdominal pain spreading to the back. Your endoscopist should explain your personal risk, which is influenced by age, sex, the indication and how difficult the duct is expected to be to enter.

What is a typical ERCP recovery time?

Most people are observed for one to two hours after a day-case ERCP, according to Mayo Clinic, and feel bloated and drowsy with a sore throat for the rest of the day. Light eating usually resumes the same day. Jaundice fades over the following days as the liver clears bilirubin. Office-based work is often possible within a few days, while recovery takes longer if you were admitted unwell or had complex therapeutic work.

Will I need my gallbladder removed after ERCP for a duct stone?

Often, yes. ERCP clears the duct but leaves the gallbladder that produced the stone in place, and the NHS notes that gallbladder removal is generally recommended afterwards for people fit for surgery, to reduce the chance of another stone following the same path. Timing and suitability depend on age, other illnesses and how the episode unfolded, and the decision rests with the surgical team rather than being automatic.

What happens if the endoscopist cannot get into the bile duct during ERCP?

Failed access happens in a small share of cases, more often with altered anatomy or a tumor distorting the papilla. Options include a repeat attempt by a more experienced endoscopist, an endoscopic ultrasound-guided approach that creates a new route into the duct, or a percutaneous drain placed by an interventional radiologist through the skin into the liver. Surgery is the final alternative. Good units plan for this possibility before starting.

References

This article is for general information only and is not a substitute for professional medical advice. Please consult a qualified doctor about your individual situation.

Dr. Şule Eren
Dr. Şule Eren, MD
Author
View profile →
Published November 5, 2026 Last updated October 5, 2026
Keep Reading

More from the Blog

We’re With You at Every Step

How can we help you today?

We value your privacy We use essential cookies to run this site and, with your consent, analytics cookies to understand how it is used and improve it. You can accept, reject, or choose what to allow. See our Cookie Policy.