Guide for patients & caregivers

ERCP: What Should You Expect Before, During and After?

ERCP explained: why it is done, fasting and sedation, what happens during the procedure, pancreatitis and other risks, recovery and warning signs.

By SameCase EditorialUpdated 6 min read

Prepared with AI assistance and checked against the cited sources. No independent clinician review has been completed. How we prepare articles

What is ERCP and why is it done?

ERCP (endoscopic retrograde cholangiopancreatography) is a procedure that combines an endoscope, a thin flexible tube with a camera, and x-rays to examine and treat the bile ducts and pancreatic duct. It is mainly used to treat problems such as gallstones stuck in the bile duct, narrowed or blocked ducts and bile leaks, often in the same session as the diagnosis.

NIDDK explains that doctors use ERCP when ducts are leaking, narrowed or blocked, for example because of gallstones, infection, acute pancreatitis or tumours. For diagnosis alone, tests that do not enter the body, such as MRCP (a type of MRI scan), carry less risk and can show many duct problems. Cleveland Clinic lists the treatments that can be done during ERCP: removing stones, opening narrowed ducts, placing stents to help bile drain, treating bile leaks and taking tissue samples (biopsies). If your scan showed a widened duct, our dilated bile duct guide explains that finding.

Warning signs after ERCP that need urgent care

NIDDK and Cleveland Clinic advise getting medical care right away if any of these appear after ERCP. Contact the unit that did the procedure, or use your local emergency number or emergency department if symptoms are severe.

  • Severe pain in your abdomen (tummy) or chest.
  • Fever or chills.
  • Black, tar-coloured or bloody stools.
  • Vomiting, especially vomit that is bloody or looks like coffee grounds, or vomiting that won't stop.
  • Problems breathing.
  • Trouble swallowing, or throat pain that gets worse.
  • Yellowing of the skin or the whites of the eyes.

How do you prepare for ERCP?

Your stomach needs to be empty so the doctor can see clearly. Units give their own fasting times; Cleveland Clinic says fasting usually starts six to eight hours before, and your team will confirm yours. Many ERCPs are done on people already in hospital, but outpatients need to arrange a responsible adult to take them home, because sedation takes time to wear off.

Tell the team about your health conditions, allergies and all prescription and non-prescription medicines and supplements. NIDDK says most medicines can be taken as usual, but some may need to be adjusted for a short time. Do not stop or change a prescribed medicine without talking to the prescriber or the endoscopy team; they will tell you what to do. The sources ask you to mention in particular:

  • Blood thinners, aspirin or anti-inflammatory painkillers.
  • Diabetes tablets or insulin.
  • Bleeding disorders.
  • Allergy to contrast dye or to any medicine.
  • A pacemaker or other implanted heart device.
  • Pregnancy or possible pregnancy: NIDDK says ERCP can be done in pregnancy if needed, with steps to protect the baby from x-rays.
  • Crowns or bridgework, because a mouthguard is used.

What sedation is used for ERCP?

A cannula is placed in your hand or arm and sedation is given through it to make you sleepy and relaxed. The throat may be numbed with a spray. Some people have general anaesthesia instead. Sandwell and West Birmingham NHS Trust explains that with sedation you are awake but may not remember the procedure afterwards. Oxygen is usually given through small tubes in the nostrils, and your oxygen level and blood pressure are monitored throughout.

What happens during the procedure?

You usually lie on your left side or front, sometimes on your back. A mouthguard protects your teeth, and the endoscope is passed through your mouth and stomach into the first part of the small intestine (duodenum), where the bile and pancreatic ducts drain. It does not interfere with breathing. A thin tube (catheter) is passed into the duct opening, dye is injected and x-ray pictures are taken.

If needed, the doctor can make a small cut in the duct opening (sphincterotomy), which you do not feel, so stones can be removed. Stents can be placed to open blockages, and tissue samples can be taken. Sources give a typical time of about 30 to 60 minutes, sometimes longer.

What are the risks of ERCP, including pancreatitis?

NIDDK says complications occur in about 5% to 10% of ERCP procedures, and people with complications often need hospital treatment. Pancreatitis (inflammation of the pancreas) is the best known. The Sandwell and West Birmingham leaflet states that up to 3 in 100 patients develop pancreatitis afterwards, causing tummy pain; it usually settles but in rare cases becomes severe. Figures vary between hospitals and with the reason for the procedure, so ask your own team about your risk.

Other risks named by the sources include:

  • Bleeding, mainly after a cut is made. The same leaflet gives a figure of 1 in 50 patients; it usually stops on its own.
  • Infection of the bile ducts or gallbladder.
  • A small hole (perforation) in the duodenum, bile or pancreatic duct, or gullet.
  • A reaction to the sedative, including breathing or heart problems.
  • The procedure not being completed, which may mean a repeat or a different test.

Recovery: what is normal after ERCP?

You recover in the unit for a few hours while the sedation wears off; NIDDK says this is often 2 to 6 hours, and some people stay overnight. Bloating, wind, nausea, mild tummy discomfort and a sore throat are common for a few hours. You may be asked to have only clear liquids for a time before eating normally.

For 24 hours after sedation, the sources advise not driving, not drinking alcohol and not making important decisions or signing legal documents. Sandwell and West Birmingham advises resting for the rest of the day with someone with you overnight. Recovery can take longer if a complex procedure was done or pancreatitis develops. The NHS lists acute pancreatitis symptoms as sudden, severe tummy pain that may spread to the back, with a high temperature or being sick; our pancreatitis guide explains more.

How are ERCP results given, and questions to ask

Some findings can be explained once you are awake, and a written report is often given. If biopsies were taken, results may take several days or longer. Follow-up depends on what was found and done: it may include blood tests, more imaging, stent removal or replacement, or surgery. Questions to ask:

  • Why is ERCP needed rather than MRCP or endoscopic ultrasound alone?
  • What treatment might be done during the procedure?
  • What is my risk of pancreatitis, and what is done to lower it?
  • Which of my medicines need different timing, and who confirms this?
  • If a stent is placed, does it need removing or changing, and when?
  • Who do I call out of hours if I feel unwell?

How SameCase can help you prepare

On SameCase, patients and verified doctors share de-identified cases. Seeing how others with gallstones, duct narrowing or pancreatitis described their ERCP and follow-up can help you prepare questions. These cases cannot predict your own result or replace your team's advice.

Sources and further reading

For patients & caregivers

Share your case and learn from others

Learn from doctors and other people's cases to find a way forward with your health problem. New cases are public immediately. Don't add names or identifying details.

Keep learning