← All procedure guides

ERCP (bile duct endoscopy) (Endoscopic retrograde cholangiopancreatography)

A camera test that looks at the bile and pancreatic ducts and can clear blockages, remove stones or place a stent at the same time.

✓ Medically reviewed by a GMC-registered consultant · last reviewed September 2026 · next review September 2027 · how we review

In short

  • ERCP looks at the bile and pancreatic ducts and, in the same sitting, can remove stuck gallstones or place a stent to relieve a blockage.
  • It carries more risk than a standard camera test — most importantly inflammation of the pancreas (pancreatitis) — so it is used for treatment, not just to look.
  • Many people go home the same day after sedation, but you must not drive or be alone for 24 hours.
  • Choose an experienced unit doing good numbers of ERCPs; ask what they will do if they cannot clear the duct.

A plain-English summary. The detail — including risks and recovery — is below.

At a glance

TypeEndoscopic test and treatment
AnaestheticSedation (sometimes general anaesthetic)
How long it takesUsually about 30 minutes to an hour
Hospital stayDay case, or short hospital stay if you are unwell
Time off workOften a day or two; longer if you were already ill
When you'll see resultsThe doctor can often tell you what they found and did the same day; biopsy results take longer
On the NHS?Widely done on the NHS when there is a blockage or stone; private access is often for speed or choice

A general guide. Your specialist will give you advice for your situation.

Best fit

Can remove gallstones stuck in the bile duct without open surgery

Pause if

The information needed can be obtained from a non-invasive scan (MRCP or endoscopic ultrasound) without ERCP's risks.

Main recovery point

You rest in recovery while the sedation wears off. Your throat may feel sore and your tummy bloated. You will usually be offered something to eat and...

Good aftercare

Clear written warning signs and a named out-of-hours contact, with A&E advice for severe pain or fever.

First few hours

You rest in recovery while the sedation wears off. Your throat may feel sore and your tummy bloated. You will...

Same day

The doctor or nurse explains what they found and did. Most day-case patients go home once awake, but you must have...

First 24–48 hours

Watch for the warning signs below, especially severe or worsening tummy or back pain, which can mean pancreatitis...

Within a week or two

If a sample was taken, results are usually back and discussed with you. If you have a stent, you will be told when...

Medical line illustration of the bile duct, pancreas and ERCP pathway for ERCP (bile duct endoscopy).
Illustration only - not a diagnosis, medical advice or a promise of result. Your anatomy and treatment plan may differ. Vuemedics does not publish before-and-after photos.

What is ERCP (bile duct endoscopy)?

ERCP stands for endoscopic retrograde cholangiopancreatography. It is a test that uses a long, bendy camera (an endoscope) passed through your mouth, down into the stomach and the first part of the small bowel. From there the doctor can see where the bile duct and pancreatic duct open, inject dye, and take X-rays to show up blockages.

Unlike an ordinary camera test, ERCP is usually done to treat something, not just to look. In the same appointment the doctor can often make a tiny cut at the duct opening (a sphincterotomy), pull out gallstones that are stuck in the bile duct, or leave a small tube (a stent) to keep a narrowed duct open.

ERCP is mostly used now for treatment rather than diagnosis, because scans such as MRCP (a type of MRI) and endoscopic ultrasound can show the ducts without any cutting or dye. Your team should be clear about why ERCP, rather than a scan, is the right step for you.

It is an effective way to clear bile duct problems without open surgery, but it carries more risk than an ordinary gastroscopy or colonoscopy, so it should be done by an experienced team and only when there is a clear reason.

Types, options & approaches

There may be different ways to do this. The right approach depends on the clinical question and your circumstances.

ERCP with sphincterotomy
A tiny cut is made at the opening of the bile duct so stones can be pulled out or the duct drained. This is the most common reason for ERCP today.
ERCP with stone removal
Stuck bile duct stones are caught in a small balloon or wire basket and pulled out. Large or hard stones may need to be broken up first (lithotripsy).
ERCP with stent placement
A short plastic or metal tube is left in a narrowed or blocked duct to let bile drain. It may be temporary or planned for replacement later.
ERCP with brushings or biopsy
Cells or small tissue samples are taken from a narrowing to help find the cause; results take several days and are read by a pathologist.
Diagnostic ERCP
Looking only, without treatment. This is now uncommon because MRCP and endoscopic ultrasound can show the ducts without the risks of ERCP.

ERCP compared with MRCP scan

ERCPMRCP (MRI scan)
What it doesLooks and treatsLooks only
SedationYesNo
Can remove stonesYesNo
Main riskPancreatitis, bleeding, perforationVery low risk

Doctors often use an MRCP or endoscopic ultrasound first to confirm a problem, then ERCP only if something needs treating. Ask why ERCP is being chosen for you.

Preparing for your procedure

  • You will usually be asked not to eat for about 6 hours beforehand; follow the exact fasting and drinking instructions you are given.
  • Tell the team about blood-thinning medicines (such as warfarin, apixaban, rivaroxaban, clopidogrel) — these often need planning around the procedure.
  • Tell them if you have diabetes, heart, lung or kidney problems, a contrast (dye) allergy, or any chance you could be pregnant.
  • Mention previous surgery on your stomach or bile ducts, as this can change how the ERCP is done.
  • Because you will be sedated, arrange for someone to take you home and stay with you for 24 hours; you cannot drive.
  • Ask whether you will be offered a suppository to lower the risk of pancreatitis, and whether you may need to stay overnight.

What happens

You will usually have sedation through a small tube in your hand or arm to make you sleepy and relaxed; some people, or more complex cases, have a general anaesthetic instead. A mouthguard protects your teeth.

Lying on your front or side, the doctor passes the endoscope through your mouth and down to where the bile and pancreatic ducts open. Dye is injected and X-rays are taken. If there is a stone or blockage, the doctor can make a small cut at the duct opening, remove stones with a balloon or basket, or leave a stent to keep the duct open.

Most ERCPs take around 30 minutes to an hour, depending on what needs doing. Afterwards you rest in a recovery area while the sedation wears off. The doctor or nurse will usually tell you what they found and did before you go home, although any biopsy results follow later.

Is this procedure right for me?

A good consultation should explore whether it's the right choice for you now — including reasons to wait or consider something else.

May not be suitable if…

  • The information needed can be obtained from a non-invasive scan (MRCP or endoscopic ultrasound) without ERCP's risks.
  • There is no blockage, stone or narrowing to treat — ERCP should rarely be done just to look.
  • You are too unwell to undergo sedation safely, or have uncontrolled bleeding or clotting problems.
  • Altered anatomy from previous stomach or bile duct surgery makes standard ERCP unsuitable without specialist planning.

Delay or rearrange if…

  • You have an active chest infection or are acutely unstable and could be safely stabilised first.
  • Your blood thinners have not been safely planned around the procedure.
  • There is any chance you are pregnant (X-rays are used).
  • You cannot arrange someone to take you home and stay with you for 24 hours after sedation.
  • Key results or imaging that would change the plan are not yet available.

Alternatives to discuss

  • MRCP or endoscopic ultrasound to look at the ducts without treatment.
  • Surgical exploration of the bile duct at the same time as keyhole gallbladder surgery.
  • Percutaneous drainage through the skin (PTC) if ERCP fails or is not possible.
  • Watchful waiting in selected people where the risks of ERCP outweigh the benefit.

Before you decide

Use this as a shared-decision checklist. The aim is not just “can this be done?”, but whether it is right for you, now, with the risks and alternatives clearly understood.

What matters most to me?

Think about symptoms, daily life, work, caring responsibilities, sport, fertility, travel, appearance and anxiety — the right choice depends on your priorities, not just the medical facts.

What are all my options?

Ask about waiting, monitoring, medicines, rehabilitation, a smaller or larger procedure, a different test, NHS referral, or a second opinion where that would help.

What would make me pause?

Active infection, pregnancy, unstable medical problems, smoking, medicines that increase bleeding, poor support at home, or feeling pressured are all reasons to slow down and get tailored advice.

What happens if I do nothing today?

For some problems, waiting is safe; for others, delay can make treatment harder. A good consultation should explain the trade-off in plain English.

Comfort, sedation or contrast choices

If local anaesthetic, sedation, contrast or pain relief is used, ask what is planned, why, and what it means afterwards.

Conscious sedation
Sleepy and relaxed but usually able to respond; the most common approach. You cannot drive or be alone for 24 hours.
General anaesthetic
Used for longer or more complex cases, for airway safety, or by patient and team preference.

Benefits

  • Can remove gallstones stuck in the bile duct without open surgery
  • Can relieve jaundice and itching by draining a blocked duct, often quickly
  • Can place a stent to keep a narrowed duct open
  • Lets the doctor look at and treat the problem in a single appointment
  • Can take samples to help find the cause of a narrowing

Risks & complications

More common
  • A sore throat and bloating from the air used during the test
  • Feeling drowsy for the rest of the day after sedation
  • Mild tummy discomfort afterwards
Less common
  • Inflammation of the pancreas (pancreatitis), causing tummy and back pain, sometimes needing a hospital stay
  • Bleeding, especially where a cut (sphincterotomy) has been made
  • Infection in the bile system (cholangitis), more likely if a duct cannot be fully drained
  • An incompletely cleared duct that needs a repeat ERCP or a stent
Rare but serious
  • A tear (perforation) in the bowel or duct wall, which can need further treatment or surgery
  • Breathing or heart problems related to sedation
  • A reaction to the X-ray dye
  • Very rarely, a complication serious enough to be life-threatening

The risk that matters most after ERCP is pancreatitis — inflammation of the pancreas — which is why ERCP is no longer used just to look. Risk is higher if the duct is hard to enter, if the pancreas is otherwise normal, or for sphincter of Oddi problems. Ask whether you will be given a rectal anti-inflammatory suppository, which lowers this risk, and make sure you know the warning signs to come back for.

Published figures to discuss

Rates vary with why the ERCP is done, how difficult the duct is to enter, and whether a cut (sphincterotomy) is made. Treatment ERCPs carry more risk than diagnostic-only tests, which is one reason scans are used first. The figures below are cautious ranges from UK patient information and society guidance, not guarantees for any one person.

FigureReported rangeHow to interpret itSource / confidence
Pancreatitis (inflammation of the pancreas)Commonly quoted around 4–6% in UK patient informationThe most important ERCP risk; higher if the duct is hard to enter. A rectal anti-inflammatory suppository can lower it.JAG/BSG — UK ERCP sedation practice (NED analysis, PMC)pmc.ncbi.nlm.nih.govPublished figure
BleedingUncommon; most likely where a cut (sphincterotomy) is madeRisk is higher in people on blood-thinning medicines, which is why these are planned around the procedure.JAG/BSG — UK ERCP sedation practice (NED analysis, PMC)pmc.ncbi.nlm.nih.govSource-linked context
Perforation (a tear in the bowel or duct)Rare (well under 1% in most series)May need further endoscopic treatment, drainage or surgery.JAG/BSG — UK ERCP sedation practice (NED analysis, PMC)pmc.ncbi.nlm.nih.govPublished figure
Infection of the bile system (cholangitis)UncommonMore likely if a blocked duct cannot be fully drained; antibiotics may be given.JAG/BSG — UK ERCP sedation practice (NED analysis, PMC)pmc.ncbi.nlm.nih.govSource-linked context

These are literature figures, not a personalised prediction. Your own risks and likely benefits depend on your circumstances, your health, and how your care is carried out and followed up.

What happens afterwards

There is no surgical wound, but you do need to recover from the sedation and let your bile system settle. Most people feel back to normal within a day or two, unless they were already unwell from the blockage.

First few hours
You rest in recovery while the sedation wears off. Your throat may feel sore and your tummy bloated. You will usually be offered something to eat and drink once you are alert and comfortable.
Same day
The doctor or nurse explains what they found and did. Most day-case patients go home once awake, but you must have someone with you and cannot drive, work or sign anything important for 24 hours.
First 24–48 hours
Watch for the warning signs below, especially severe or worsening tummy or back pain, which can mean pancreatitis. Mild discomfort and bloating are normal.
Within a week or two
If a sample was taken, results are usually back and discussed with you. If you have a stent, you will be told when and how it will be checked or changed.
Next steps
If your bile duct stones came from your gallbladder, you will often be advised to have your gallbladder removed later to stop the problem coming back.
What's normal — and not a worry
  • A sore or scratchy throat for a day or so
  • Feeling bloated or windy from the air used during the test
  • Feeling tired or muddled for the rest of the day after sedation
  • Mild tummy discomfort that settles

Aftercare

  • Have a responsible adult take you home and stay with you overnight after sedation.
  • Do not drive, operate machinery, drink alcohol or make important decisions for 24 hours.
  • Start with light food and drink once you feel comfortable, unless told otherwise.
  • Take any new medicines (for example antibiotics) exactly as prescribed.
  • Know who to contact out of hours, and go to A&E for severe pain, fever or vomiting blood.
  • Keep any follow-up appointment to discuss results or arrange a stent change or gallbladder surgery.
Before your procedure
  • Someone to drive you home and stay 24 hours
  • Day off work arranged (sometimes two)
  • Fasting and medicine instructions understood
  • Plan agreed for blood thinners
  • Clinic and out-of-hours numbers saved
  • Clear note of warning signs to watch for

⚠ Get urgent help if…

  • Severe or worsening tummy or back pain (a possible sign of pancreatitis)
  • A high temperature, shivering or feeling very unwell (a possible sign of infection)
  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stools or heavy bleeding from the back passage
  • A hard, swollen, very tender tummy
  • Yellowing of the skin or eyes that is new or getting worse
  • Difficulty breathing, chest pain or fainting

Who to contact: your clinician, clinic or test provider first (keep their number to hand). For urgent advice when you can't reach them, call NHS 111. In an emergency, call 999.

General guidance — it doesn't replace the specific advice your specialist gives you.

Results & realistic expectations

Often the doctor can tell you straight after the test whether they found a stone or blockage and whether they cleared it or placed a stent. A successful ERCP usually means bile can drain again, so jaundice and itching improve over the following days.

ERCP does not remove the gallbladder, so if your stones came from there, more stones can form unless the gallbladder is dealt with later. Any tissue samples are read by a pathologist and discussed at a follow-up; they take several days and are needed before some diagnoses can be confirmed.

How long it lasts

Clearing a bile duct stone usually solves that episode, but it does not stop new stones forming, especially if you still have your gallbladder. A stent is often a temporary measure and may need replacing or removing within months. Your team should explain whether you need gallbladder surgery, repeat ERCP or ongoing monitoring.

Related tests, treatments or support

ERCP is often part of a wider plan. It may follow an ultrasound, MRCP or endoscopic ultrasound that found the problem, and it is frequently followed by keyhole surgery to remove the gallbladder. In some units, ERCP and gallbladder surgery are arranged close together.

Follow-up & long-term care

You should be told who is responsible for your results, when any biopsy will be discussed, and when a stent will be checked or changed. If gallbladder surgery is recommended, you should be given a clear plan and timescale. Report jaundice, fever or pain promptly rather than waiting for a routine appointment.

  • A stent placed at ERCP usually needs checking, changing or removing — keep a note of when.
  • If you still have your gallbladder, follow the agreed plan for removing it to prevent further stones.
  • Tell future clinicians you have had an ERCP, and whether a stent is in place.

Repeat, follow-on and what comes next

  • A bile duct cannot always be cleared in one ERCP; a stent may be placed and a repeat arranged.
  • Large or hard stones may need to be broken up (lithotripsy) over more than one session.
  • Stents are often temporary and planned for replacement or removal.
  • If ERCP repeatedly fails, surgery or drainage through the skin may be needed.

Ask what happens if the result is unclear or needs repeating, and what is included if further tests or follow-up are needed.

What good aftercare looks like

  • Clear written warning signs and a named out-of-hours contact, with A&E advice for severe pain or fever.
  • A defined plan for who gives you your results and when any biopsy is discussed.
  • Arrangements for any stent change or removal, written down.
  • A plan for gallbladder surgery if your stones came from the gallbladder.
  • Monitoring after the test for early signs of pancreatitis before you are discharged.

What affects the cost

Costs vary a great deal between people and providers, and we don't publish prices. What matters is understanding what drives the cost and making sure your quote is complete. The main things that affect it:

  • Whether sedation or a general anaesthetic is used, and the anaesthetist's involvement
  • What is done during the test (sphincterotomy, stone removal, stent, biopsy)
  • The endoscopist's fee and the facility or theatre charge
  • Any X-ray and contrast dye used
  • Whether you need an overnight stay because you are unwell or to watch for pancreatitis
  • Follow-up appointments, a later stent change, or gallbladder surgery
Make sure your written quote includes
  • The endoscopist's fee and the facility/day-case fee
  • Sedation or anaesthetist fees
  • Cost of any stent or other device used
  • Biopsy/pathology and reporting fees
  • What happens (and what it costs) if the duct cannot be cleared and a repeat is needed
  • Cost of any overnight stay if a complication occurs
  • Follow-up consultation to discuss results

On the NHS? ERCP is routinely available on the NHS when there is a stone or blockage; private care may be chosen for speed or convenience, but this is treatment rather than an elective procedure.

You're entitled to your total cost in writing — including reports, follow-up and what happens if the result is inconclusive — before you decide.

Choosing a specialist safely

  • Check the specialist is on the GMC Specialist Register for this area.
  • Make sure they work at a CQC-registered service, and look for membership of the relevant Royal College or professional body.
  • You're entitled to time to consider and to have your questions answered before you agree — the specialist who looks after you should explain it, not a salesperson.
  • Be wary of pressure: time-limited offers or deposits taken before you've had time to think are red flags, not bargains.
  • You're entitled to your total cost in writing — including any follow-up — before you decide.

How Vuemedics verifies every consultant →

Questions to ask your medical professional

Take this to your consultation. A good specialist will welcome every one of these.

  • Why is ERCP the right step for me rather than a scan such as MRCP?
  • How many ERCPs does this unit and this doctor do each year?
  • What will you do if you cannot clear my bile duct in one go?
  • Will I be given a suppository to lower the risk of pancreatitis?
  • Will I need my gallbladder removed afterwards, and when?
  • What exactly should make me come back urgently?
  • Are you on the GMC Specialist Register for this area, and which Royal College or professional body are you a member of?
  • Will you be the specialist who carries out my procedure, and who looks after me afterwards?
  • What are the risks for someone like me, and how often do your own patients have a problem or need it repeated or redone?
  • What does a realistic result look like — and what can this procedure not achieve?
  • What are my options, including waiting, doing nothing for now, or choosing a different approach?
  • Can I have written information, results and aftercare instructions in a format I can use, including any accessibility or communication support I need?
  • What is the total cost in writing, including any follow-ups, and how much time do I have to decide?

Frequently asked questions

Will I be asleep for the ERCP?
Most people have sedation that makes them sleepy and relaxed rather than fully asleep, though many remember little of it. Some people, or more complex cases, have a general anaesthetic. Either way you cannot drive or be alone for 24 hours.
Is ERCP available on the NHS?
Yes. ERCP is routinely done on the NHS when there is a stone or blockage in the bile duct. Some people choose private care for speed or choice, but this is treatment, not an elective cosmetic procedure.
What is the main risk?
Inflammation of the pancreas (pancreatitis) is the most important risk, and it can need a hospital stay. Bleeding, infection and, rarely, a tear in the bowel wall can also happen. Ask your team how they reduce these risks.
Does ERCP remove my gallbladder?
No. ERCP can clear stones from the bile duct but leaves the gallbladder in place. If your gallbladder is the source of stones, you will usually be advised to have it removed later.
What if they cannot clear the duct?
Sometimes a duct cannot be fully cleared in one go. The doctor may place a stent to keep bile draining and arrange a repeat ERCP or another approach. Ask in advance what the plan would be.
Can I eat normally afterwards?
Usually you can start with light food and drink once the sedation wears off and you feel comfortable, unless your team tells you otherwise. Severe pain after eating should be reported.

Find a verified specialist for ercp (bile duct endoscopy)

Every consultant is GMC-checked and independently reviewed. Search by postcode and distance, or switch to a map. Ordered by rating, relevance and recency — never by who pays.

No verified consultants list this procedure yet — browse the full directory.

How we made this page

Medically reviewed by a GMC-registered consultant. Written in plain English, checked against NHS, NICE, GMC and relevant Royal College / specialist-society guidance, and kept under review. No clinic paid to appear on this page, and we publish no pricing. This is general information to help you prepare — it is not a substitute for advice from your own clinician. How we review our guides →

Source hierarchy: UK regulator and NHS/NICE guidance first, then relevant Royal College or specialist-society guidance, then peer-reviewed evidence for procedure-specific figures where available.

Sources & standards: NHS — Gallstones: treatment BSG — ERCP Quality Improvement Programme NICE CG188 — Gallstone disease recommendations JAG/BSG — UK ERCP sedation practice (NED analysis, PMC) NHS (Hull) — ERCP patient leaflet

Reviews reflect patients' experience of care, not clinical outcomes. For procedure volumes and outcome data see PHIN.

Last medically reviewed 2026-09-21. Spotted something wrong or out of date? Report an error in this guide.

Related guides: Bile duct stone removal · Gallbladder removal (cholecystectomy) · Gastroscopy · Bile duct stent · Drainage of a pancreatic pseudocyst