ERCP: Procedure, Uses, Risks, Recovery & FAQs

ERCP: What It Is, Why You May Need It, Risks, Recovery and What to Expect

If your doctor has told you that you may need an ERCP, it is completely understandable to have questions.

What exactly happens during ERCP? Is it painful? Is it surgery? Why can’t an ultrasound or MRI solve the problem? And if there is a stone blocking the bile duct, can the doctor actually remove it during the same procedure?

This guide explains ERCP in straightforward language while also covering the important clinical details that patients, medical students and healthcare professionals should know.

Quick answer: ERCP (Endoscopic Retrograde Cholangiopancreatography) is a specialized endoscopic procedure used mainly to treat problems of the bile ducts and pancreatic ducts. It can remove common bile duct stones, relieve obstruction, insert stents, treat selected strictures and manage certain bile leaks. Because ERCP carries meaningful risks, doctors generally use it when an intervention is expected to be necessary rather than simply for routine diagnosis.

What Is ERCP?

ERCP stands for Endoscopic Retrograde Cholangiopancreatography. The name sounds complicated, but the basic idea is easier to understand.

Your liver continuously produces bile. Bile travels through a network of small tubes called bile ducts and eventually reaches the intestine. The pancreas also has a duct through which digestive enzymes reach the small intestine.

Sometimes these ducts become blocked, narrowed, injured or otherwise abnormal.

During ERCP, a specially designed flexible endoscope is passed through the mouth into the first part of the small intestine. The doctor can then access the opening of the bile and pancreatic ducts and perform treatment when needed.

The important point: ERCP is not simply an imaging test. In modern practice, its greatest value is that the doctor can often find a duct problem and treat it during the same procedure.

Why Would Someone Need an ERCP?

One of the most common reasons is a stone stuck in the common bile duct.

Imagine a small stone leaving the gallbladder and becoming lodged in the narrow bile duct. Bile may no longer flow normally. The patient can develop jaundice, abdominal pain, abnormal liver tests or, in some cases, a serious infection called cholangitis.

ERCP may allow the specialist to open the duct and remove the stone.

But stones are not the only reason for ERCP. Doctors may also use it for certain bile duct strictures, malignant obstruction, bile leaks and selected pancreatic duct problems.

Common Reasons for ERCP

ProblemWhat ERCP may do
Common bile duct stoneRemove the stone and restore bile drainage
CholangitisProvide biliary drainage when obstruction requires intervention
Obstructive jaundiceRelieve an appropriate biliary obstruction
Bile duct strictureDilate the narrowing and/or place a stent
Malignant biliary obstructionRestore drainage, often with a stent, in appropriate patients
Bile leakReduce biliary pressure and facilitate healing in selected cases
Selected pancreatic duct disordersPerform specific ductal interventions when indicated

Is ERCP a Diagnostic Test or a Treatment?

This is one of the most important things to understand about ERCP.

In the past, ERCP was used more extensively to diagnose biliary and pancreatic disease. Today, doctors often have safer diagnostic alternatives such as ultrasound, MRCP and EUS.

ERCP is therefore commonly chosen when there is a reasonable expectation that the patient will need treatment during the procedure.

For example, if imaging strongly suggests a common bile duct stone that needs removal, ERCP may be appropriate because the specialist can proceed directly to stone extraction.

ERCP vs MRCP: Are They the Same?

No. Despite the similar names, they are very different procedures.

FeatureERCPMRCP
What is it?Endoscopic procedureMRI-based imaging test
Invasive?YesNo
Uses radiation?Fluoroscopy is commonly usedNo ionizing radiation
Can remove bile duct stones?YesNo
Can place a biliary stent?YesNo
Main roleTreatment and selected ductal evaluationNon-invasive imaging

A simple way to remember it is:

MRCP helps doctors look at the ducts.
ERCP allows doctors to enter the ducts and treat selected problems.

What About EUS?

EUS (Endoscopic Ultrasound) is another important test in pancreatobiliary medicine. It combines endoscopy with ultrasound and can provide detailed images of the pancreas, bile ducts, gallbladder and surrounding structures.

In some situations, EUS can help determine whether a patient actually needs ERCP—for example, when the presence of a common bile duct stone is uncertain.

The choice between ultrasound, MRCP, EUS and ERCP depends on the clinical situation rather than a single universal rule.

What Happens During an ERCP?

If you have never had an ERCP before, the procedure can sound more frightening than it actually feels because of the technical terminology.

Typically, the process looks something like this:

  1. You will have a pre-procedure assessment.
  2. The medical team will review your medications, allergies and medical history.
  3. You will be asked to fast for a specified period.
  4. Sedation or anesthesia will be given according to the procedure and local practice.
  5. The endoscope will be gently passed through your mouth into the duodenum.
  6. The doctor will identify the opening of the bile and pancreatic ducts.
  7. A small catheter and guidewire may be used to enter the duct.
  8. Contrast may be injected and X-ray images taken.
  9. If a treatable problem is found, appropriate intervention may be performed.
  10. You will be monitored in recovery afterward.

The exact steps depend on why the ERCP is being performed and what the specialist finds.

Can ERCP Remove a Bile Duct Stone?

Yes. This is one of the most familiar therapeutic uses of ERCP.

The specialist may enlarge the duct opening with a procedure called sphincterotomy and then use specialized devices, such as a balloon or basket, to remove the stone.

The important distinction is that ERCP can remove a stone from the bile duct. It does not usually remove stones sitting inside the gallbladder itself.

Depending on the patient’s overall diagnosis, gallbladder surgery may subsequently be recommended to reduce the risk of recurrent gallstone-related problems.

What Is an ERCP Sphincterotomy?

The major papilla contains a muscular valve that regulates the drainage of bile and pancreatic secretions. During selected ERCP procedures, the endoscopist may make a small controlled cut in this area to facilitate access and treatment.

This is called a sphincterotomy.

It can make stone extraction easier, but it also changes the risk profile of the procedure, particularly with regard to bleeding and other complications.

What Is an ERCP Stent?

Sometimes the bile duct cannot be kept adequately open after treatment, or the obstruction itself cannot be completely removed.

In these situations, the specialist may place a small tube called a stent inside the duct.

The stent acts like a tiny internal pathway that allows bile to drain around or through the obstructed area.

Do not forget about stent follow-up. Some ERCP stents are temporary and need planned removal or exchange. Before leaving the hospital, make sure you know what type of stent was placed and exactly what follow-up is required.

How Should You Prepare for ERCP?

Your endoscopy team will provide specific instructions, but preparation commonly involves fasting before the procedure.

It is particularly important to tell your doctor about medicines that can affect bleeding or blood glucose.

Tell your medical team if you take:
  • Anticoagulants or blood thinners
  • Antiplatelet medicines
  • Diabetes medications or insulin
  • Regular pain medicines
  • Other prescription or over-the-counter medicines

Also mention previous reactions to anesthesia or contrast material, allergies, significant heart or lung disease, kidney disease and any previous pancreatitis.

Do not stop prescription medicines on your own. The treating team should decide whether a medication needs to be withheld or adjusted.

Is ERCP Painful?

Most patients are given sedation or anesthesia, so they generally do not experience the procedure in the way they might imagine from hearing about an endoscope.

Afterward, some people experience a sore throat, bloating or mild abdominal discomfort.

However, severe or worsening abdominal pain is not something to ignore after ERCP because it can indicate a complication.

How Long Does ERCP Take?

There is no single fixed duration.

A relatively straightforward ERCP may be completed within roughly 30–60 minutes, while a technically difficult procedure involving multiple stones, strictures or stent placement may take longer.

Remember that the total time at the hospital is longer than the actual procedure because preparation, sedation, recovery and observation are included.

What Are the Risks of ERCP?

ERCP can be extremely useful, but it is not a risk-free examination.

Important complications include:

  • Post-ERCP pancreatitis
  • Bleeding
  • Cholangitis or other infection
  • Perforation
  • Sedation or anesthesia-related complications

The likelihood of complications depends on factors such as the patient’s condition, the indication for ERCP, anatomy, technical difficulty and the intervention being performed.

Post-ERCP Pancreatitis

One complication deserves special attention: post-ERCP pancreatitis.

It means inflammation of the pancreas developing after the procedure. It can range from mild to severe.

Because this complication is well recognized, specialists use evidence-based prevention strategies for patients who are considered appropriate candidates. Depending on the clinical situation, these may include rectal NSAIDs and prophylactic pancreatic duct stenting in selected high-risk cases.

The risk-benefit discussion should be individualized rather than reduced to a single percentage for every patient.

What Happens After ERCP?

After the procedure, you will spend some time in a recovery area while the effects of sedation or anesthesia wear off.

Some patients can return home the same day. Others may need observation or hospital admission, particularly when the procedure was complex or the underlying illness requires continued treatment.

If you received sedation, arrange appropriate transportation home and follow the restrictions given by your medical team.

Warning Signs After ERCP

Contact your healthcare team or seek urgent medical assessment if you develop:
  • Severe or worsening abdominal pain
  • Repeated vomiting
  • Fever or chills
  • Significant bleeding or black stools
  • Worsening jaundice
  • Difficulty breathing
  • Fainting or marked weakness
  • Any rapidly worsening or concerning symptom

Follow the emergency instructions given by your own hospital because they may vary depending on your procedure and medical condition.

Is ERCP Always Needed for Gallstones?

No.

Having gallstones does not automatically mean that you need ERCP.

The key question is often whether a stone or another process is affecting the bile duct and whether endoscopic treatment is necessary.

Depending on the situation, doctors may use blood tests, abdominal ultrasound, MRCP or EUS to clarify the diagnosis before deciding whether ERCP is appropriate.

ERCP and Cholangitis

Cholangitis is an infection associated with obstruction of the bile ducts. It can become a serious medical condition.

Management may involve antibiotics, supportive treatment and biliary drainage when obstruction requires intervention.

When appropriate, ERCP can provide that drainage and address the obstruction.

ERCP for Obstructive Jaundice

Jaundice can occur when bile cannot flow normally from the liver into the intestine.

The obstruction may result from a stone, benign stricture, postoperative injury or cancer.

ERCP may be used to restore bile flow, often through stone removal, dilation or stent placement depending on the cause.

Questions to Ask Before Your ERCP

If you or a family member has been advised to undergo ERCP, consider asking:

  • Why do I need ERCP?
  • What problem are you expecting to treat?
  • Could MRCP or EUS provide enough diagnostic information?
  • Is a bile duct stone suspected?
  • Will a sphincterotomy be required?
  • Could I need a stent?
  • If a stent is inserted, when should it be removed or exchanged?
  • Which medicines should I take or temporarily stop?
  • What complications should I watch for afterward?
  • Will I need to stay in the hospital?

For Medical Students: How to Think About ERCP

A useful way to remember ERCP is to think of it as an interventional procedure for the pancreatobiliary system, rather than simply another imaging test.

When a patient has suspected biliary disease, the clinical approach may involve:

Clinical assessment → laboratory evaluation → appropriate imaging → determine probability of ductal pathology → choose diagnostic or therapeutic intervention.

When only diagnostic clarification is required, non-invasive or less invasive modalities may be sufficient. When a therapeutic intervention such as stone extraction or biliary drainage is needed, ERCP may become the appropriate next step.

Frequently Asked Questions About ERCP

Is ERCP a type of surgery?

ERCP is an advanced endoscopic procedure rather than conventional open surgery. However, it can involve therapeutic procedures such as sphincterotomy, stone extraction and stent placement.

Can ERCP remove a common bile duct stone?

Yes. Common bile duct stones can often be removed during ERCP when endoscopic treatment is appropriate.

Can ERCP remove gallbladder stones?

ERCP generally targets stones in the bile duct, not stones remaining inside the gallbladder.

Can ERCP treat jaundice?

It can treat jaundice when the jaundice is caused by a biliary obstruction that can be relieved endoscopically.

What is the difference between ERCP and MRCP?

MRCP is a non-invasive MRI-based imaging examination. ERCP is an invasive endoscopic procedure that can provide treatment such as stone removal or stent placement.

Can ERCP cause pancreatitis?

Yes. Post-ERCP pancreatitis is a recognized complication and is an important part of ERCP risk assessment and prevention.

How long does recovery from ERCP take?

Recovery varies. Many patients recover quickly from uncomplicated ERCP, while patients who develop complications or require hospital treatment may need a longer recovery period.

Does an ERCP stent need to be removed?

Some stents are temporary and require planned removal or exchange. Always confirm the follow-up plan with your treating specialist.

Can ERCP be repeated?

Yes. Repeat ERCP may be necessary for selected patients, such as those requiring stent exchange or additional treatment.

Key Takeaways

  • ERCP means Endoscopic Retrograde Cholangiopancreatography.
  • It is mainly used today as a therapeutic pancreatobiliary procedure.
  • It can remove common bile duct stones and relieve selected biliary obstructions.
  • It can also be used for selected strictures, bile leaks and pancreatic duct problems.
  • MRCP and EUS can often provide important diagnostic information without the risks of ERCP.
  • Important ERCP complications include pancreatitis, bleeding, infection and perforation.
  • Some ERCP stents require planned removal or exchange.
  • The decision to perform ERCP should be individualized based on the patient’s diagnosis and expected benefit.

Medical Disclaimer

This article is for medical education and general information. It does not replace an individualized consultation with a qualified gastroenterologist, hepatobiliary specialist, surgeon or other healthcare professional. Whether ERCP is appropriate depends on the patient’s symptoms, laboratory findings, imaging, diagnosis, anatomy, medical history and expected therapeutic benefit.

References

  • American Society for Gastrointestinal Endoscopy (ASGE) – ERCP information and quality/safety guidance.
  • European Society of Gastrointestinal Endoscopy (ESGE) – ERCP-related adverse event guidance.
  • Contemporary evidence-based guidance on prevention and management of ERCP-related adverse events.

Medical review: Dr. Md Noman Islam Nirob

Share on:
Scroll to Top