Endoscopic retrograde cholangiopancreatography, known as ERCP, is a procedure used to diagnose and treat problems in the bile ducts and pancreatic duct. The bile ducts carry bile from the liver and gallbladder to the small intestine, and the pancreatic duct carries digestive juices from the pancreas. During ERCP, a flexible camera called a duodenoscope is passed through the mouth, down the oesophagus and stomach, into the first part of the small intestine (the duodenum), where these ducts open. A thin tube is passed into the ducts, contrast dye is injected, and X-ray images show blockages or narrowings. Tools can then be passed through the scope to remove stones, widen narrowings or place stents. The procedure usually takes 30 to 90 minutes.
Before ERCP, you will usually have blood tests, including clotting tests, and imaging to plan the procedure. You will be asked not to eat for about six hours and not to drink for a shorter period beforehand. Tell the team about blood thinners, diabetes medicines, allergies, especially to contrast or iodine, and any previous surgery on the stomach or bowel. Antibiotics may be given in some situations. ERCP is usually performed under sedation, which makes you relaxed and drowsy, or under general anaesthesia, and a throat spray may be used to numb the throat. You lie on your front or side on an X-ray table. A mouth guard protects your teeth and the scope. Monitoring of heart rate, blood pressure and oxygen levels continues throughout. The endoscopy team guides the scope into the duodenum and passes a fine tube into the bile or pancreatic duct, then injects contrast to take X-ray images. If a gallstone is found, a small cut may be made in the muscle at the opening of the bile duct, called a sphincterotomy, to widen it, and the stone is removed using a balloon or basket. Larger stones may need to be broken up. If there is a narrowing, a plastic or metal stent, a small tube, may be placed to keep the duct open and allow bile to drain. Biopsies or brushings may be taken. After the procedure, you will recover from sedation and be monitored. Many people go home the same day, while others stay overnight, especially if they were unwell before the procedure. You may have a sore throat and feel bloated from the air used during the procedure. You will need someone to take you home and stay with you if you had sedation, and you should not drive for 24 hours. ERCP carries more risk than a standard endoscopy. The most common complication is pancreatitis, inflammation of the pancreas, which causes abdominal pain, nausea and vomiting, usually within hours. Most cases are mild and settle with fluids and pain relief in hospital, but some can be severe. Measures such as anti-inflammatory suppositories and temporary pancreatic stents are used to reduce this risk in some patients. Other complications include bleeding after sphincterotomy, infection and, rarely, perforation of the bowel. Seek urgent help if you develop severe abdominal pain, fever, vomiting, black stools or vomiting blood after the procedure. If a plastic stent was placed, it may need to be replaced or removed after some months. If gallstones were the cause, removal of the gallbladder may be recommended to prevent further stones. ERCP is a highly effective procedure that can quickly relieve jaundice and pain and treat serious infections of the bile ducts.

The most common reason for ERCP is gallstones that have moved out of the gallbladder and become stuck in the common bile duct, causing pain, jaundice (yellowing of the skin and eyes), or a serious infection called cholangitis. ERCP is also used to relieve blockages caused by narrowings (strictures), including those due to tumours of the pancreas or bile ducts, to treat bile leaks after surgery, and in some pancreatic conditions. Because less invasive imaging such as MRCP (a special MRI scan) and endoscopic ultrasound can diagnose many problems, ERCP is now mainly used when treatment is needed.
What is ERCP?
ERCP treats bile and pancreatic duct problems.
It combines endoscopy and X-rays.
Stones can be removed and stents placed.
10 key facts about ERCP
- A camera is passed through the mouth.
- Contrast dye shows the ducts.
- It takes 30 to 90 minutes.
- Sedation or anaesthesia is used.
- Gallstones in the bile duct are common reasons.
- Sphincterotomy widens the duct opening.
- Stents relieve narrowings.
- Pancreatitis is the main risk.
- Do not drive for 24 hours.
- Gallbladder removal may follow.
Why it is done
ERCP may be done for:
- Gallstones in the bile duct
- Jaundice from blockages
- Cholangitis
- Bile leaks
It also treats some pancreatic problems.
What to expect
Symptoms that may lead to ERCP:
- Yellow skin or eyes
- Dark urine
- Pale stools
- Upper abdominal pain
- Fever with shivering
- Itching
Some need urgent treatment.
Before the procedure
- Liver blood tests.
- Ultrasound.
- MRCP.
- Endoscopic ultrasound.
- CT scan.
During the procedure
- Stone removal.
- Sphincterotomy.
- Stent placement.
- Biopsies or brushings.
- Antibiotics for infection.
- Gallbladder removal later.
Risks and possible complications
- Pancreatitis
- Bleeding
- Infection
- Perforation
- Reaction to sedation
Recovery and results
ERCP often relieves jaundice quickly.
Most recover within days.
Alternatives
- Treat gallstones early.
- Keep a healthy weight.
- Seek help for jaundice.
Life after ERCP
- Rest after the procedure.
- Watch for warning signs.
- Attend stent reviews.
How families and communities can help
Take them home after sedation.
Stay overnight with them.
Watch for pain or fever.
Research and new developments
Measures reduce post-ERCP pancreatitis.
MRCP reduces diagnostic ERCPs.
Around the world
Gallstones are common worldwide.
ERCP access varies.
Nursing care and the role of nurses
Nurses support patients through ERCP.
- Prepare and consent support.
- Monitor during sedation.
- Recognise pancreatitis.
- Manage pain.
- Give discharge advice.
- Arrange stent follow-up.
Myths and facts
Myth: ERCP is the same as a gastroscopy.
Fact: It goes further and treats the ducts.
Myth: Stones always return.
Fact: Many people stay stone-free.
Myth: ERCP has no risks.
Fact: Pancreatitis can occur.
Myth: Stents are permanent.
Fact: Plastic stents need changing.
Frequently asked questions about ERCP
Will I be asleep?
Usually sedated or anaesthetised.
How long does it take?
About 30 to 90 minutes.
Will I stay overnight?
Sometimes.
What is the main risk?
Pancreatitis.
When can I eat?
When advised, often later that day.
Will I need my gallbladder out?
Often, if stones were the cause.
Do stents need changing?
Plastic ones usually do.
When to seek help
- Severe abdominal pain
- Fever or shivering
- Persistent vomiting
- Black stools
- Vomiting blood
- Worsening jaundice
Key takeaways
- A camera is passed through the mouth.
- Sedation or anaesthesia is used.
- Sphincterotomy widens the duct opening.
- Stents relieve narrowings.
- Do not drive for 24 hours.
- Gallbladder removal may follow.
Looking after your emotional wellbeing
Any long or worrying health problem can affect mood, sleep, relationships and confidence. Feeling anxious, low, angry or isolated with ERCP is common and understandable. Talking openly with family, friends, faith leaders or a support group can ease the load, and so can learning as much as you can about what to expect.
If low mood, hopelessness or worry last for more than two weeks, or if you have thoughts of harming yourself, tell your nurse or healthcare provider straight away. Emotional health is part of physical recovery, and support is available.
How to prepare for your appointment
Before you see a nurse or healthcare provider, write down the symptoms, when they started and anything that makes them better or worse. Bring a list of all medicines, including herbal and traditional remedies, and any previous test results or clinic cards. If possible, bring a family member or friend to help you remember what is said.
During the appointment, ask the provider to explain anything you do not understand, and repeat the plan back in your own words. Before you leave, make sure you know what to do if symptoms get worse, when to return and who to contact with questions.
If cost, distance or work makes it hard to attend appointments, tell your nurse. Ask whether free or subsidised services, transport support, community health workers or phone follow-up are available in your area, so that practical problems do not stop you getting the care you need.
Planning ahead
Whether a health problem is short-lived or long term, a little planning makes care safer. Keep a folder or phone note with the diagnosis, medicines, allergies, recent test results and the contact details of the care team, and share it with a trusted family member. If you travel, carry enough medicines and a short letter describing the condition. Agree with your nurse or healthcare provider what to do if symptoms suddenly worsen and where to go out of hours, and review the plan whenever treatment changes.
Support for carers
Caring for someone with a health condition can be rewarding but tiring. Carers should look after their own sleep, nutrition and health, ask relatives and friends for practical help, and ask about carer assessments, respite services and support groups in their area. Accepting help is a strength, not a failure, and it allows carers to keep supporting their loved one for longer.
Using medicines and treatments safely
Whatever treatment is recommended, a few habits help keep you safe. Use medicines exactly as prescribed and read the leaflet that comes with them. Tell every nurse, pharmacist and healthcare provider about all the medicines you use, including over-the-counter products, herbal and traditional remedies and supplements, as some interact. Ask what side effects to watch for and what to do if they happen. Do not stop a prescribed treatment suddenly without advice, and never share medicines with others. If cost or supply is a problem, say so, as cheaper or alternative options may exist.
Finding reliable health information
Health information online varies widely in quality. Prefer sources such as the World Health Organization, national health ministries, public health agencies, university hospitals and registered professional bodies. Be cautious with social media posts, miracle cures and products sold with promises that sound too good to be true.
If you read something that worries you or contradicts the advice you have been given, write it down and discuss it with your nurse or healthcare provider. They can explain how it applies to your own situation and help you separate evidence from rumour.
Keeping a symptom and care diary
A simple diary is one of the most useful tools for anyone affected by ERCP. Note the date, the main symptoms, how strong they felt, how long they lasted and anything that seemed to trigger or ease them. Record medicines, treatments and therapies used, any side effects, and events such as illness, poor sleep, stress or travel. A notebook, phone app or shared document that a family member can update all work well.
Over a few weeks, patterns often appear that are hard to notice day to day. A diary helps your nurse or healthcare provider see whether treatment is working and whether anything needs to change. Bring it to every appointment, along with any questions it raises.
Daily life, work and school
Living with or caring for someone with a health condition can affect work, study, relationships and hobbies. Small adjustments often help: planning demanding tasks for the times of day when energy is best, building in rest breaks and keeping a predictable routine. Employers and schools can often offer reasonable adjustments, such as flexible hours, time off for appointments or extra time for assignments, once they understand the situation. A short letter from the care team can explain what is needed.
Staying connected with friends, eating regular balanced meals, moving in ways that feel safe and getting enough sleep all support wellbeing. Progress is rarely a straight line, and asking for help early, rather than waiting until things feel overwhelming, is a sign of strength.
Preparing for tests and treatment
Many people feel anxious before tests, scans or procedures. Ask what the test involves, how long it takes, whether you need to stop eating or change any medicines beforehand, and when results will be ready. Bring someone with you if you can, especially if you may be given sedation. Write down the answers, and ask how and when you will hear about results so that nothing is missed.
Questions to ask your nurse or healthcare provider
- Why do I need ERCP?
- Will I be sedated or asleep?
- What are my risks?
- Will a stent be placed?
- When can I go home?
- Do I need gallbladder surgery?
But I am worried about the risks.
ERCP is done when benefits outweigh risks, and teams take steps to reduce complications.
Your next step: Share this guide with anyone preparing for an ERCP.
Related: Gallbladder removal · Choledochal cyst · Liver function test
Sources: NIDDK: ERCP; NHS: ERCP.



Leave a Reply