Skip to content
Condition

ERCP

ERCP (endoscopic retrograde cholangiopancreatography) is a procedure that uses an endoscope (a thin, flexible tube with a camera) and X-rays to diagnose and treat problems in your bile ducts, pancreatic duct, liver, and gallbladder. It helps doctors find and fix issues like gallstones, blockages, or inflammation that cause symptoms such as abdominal pain or jaundice.

What is ERCP?

ERCP (endoscopic retrograde cholangiopancreatography) is a medical procedure that combines endoscopy and X-ray imaging to examine and treat problems in the bile ducts, pancreatic duct, gallbladder, and liver. It allows doctors to see inside these ducts and perform various treatments, such as removing gallstones or opening blockages, without major surgery.

During an ERCP, a doctor guides a long, flexible tube called an endoscope down your throat, through your stomach, and into the first part of your small intestine (duodenum). The endoscope has a camera that sends images to a monitor. Once the endoscope reaches the opening of the bile and pancreatic ducts, a smaller tube (catheter) is passed through the endoscope and into these ducts. A special dye is then injected, which makes the ducts visible on X-ray images. This combination of endoscopy and X-rays helps the doctor identify issues like gallstones, narrowing (strictures), or tumors. ERCP is unique because it can also treat many of these problems during the same procedure, making it both a diagnostic and therapeutic tool.

Symptoms

Symptoms that might lead a doctor to recommend an ERCP often relate to problems in the bile or pancreatic ducts, such as blockages or inflammation. These can include yellowing of your skin or eyes (jaundice), dark urine, light-colored stools, unexplained abdominal pain, nausea, vomiting, or fever.

When the bile ducts are blocked, bile can build up in your liver, leading to jaundice. This blockage can also cause your urine to become dark and your stools to appear pale or clay-colored. You might also experience itching all over your body. Problems with the pancreas or pancreatic duct can cause severe abdominal pain, often felt in the upper abdomen and sometimes radiating to the back. Nausea, vomiting, and unexplained weight loss can also be signs of pancreatic issues. These symptoms signal that something might be preventing the normal flow of digestive fluids, and an ERCP can help pinpoint the exact cause and location of the problem.

Causes & risk factors

The main causes that lead to an ERCP are conditions that block or damage the bile or pancreatic ducts, preventing digestive fluids from flowing properly. These include gallstones, inflammation of the pancreas (pancreatitis) or bile ducts (cholangitis), non-cancerous narrowings (strictures), and tumors in or near these ducts.

**Gallstones:** Small, hard deposits that form in the gallbladder can move into the bile ducts and cause blockages. This is a very common reason for needing an ERCP. **Inflammation:** Inflammation of the pancreas (pancreatitis) or the bile ducts (cholangitis) can cause swelling and blockages. Pancreatitis can be caused by gallstones, alcohol abuse, or other factors. **Strictures:** These are narrowings of the bile or pancreatic ducts, which can be caused by scar tissue from previous inflammation, injury, or surgery. They can impede the flow of digestive fluids. **Tumors:** Both cancerous and non-cancerous growths in the pancreas, bile ducts, or surrounding areas can press on these ducts and cause blockages. ERCP can help diagnose and sometimes treat these blockages.

How it's diagnosed

ERCP itself is often a diagnostic procedure, but doctors usually recommend it after other imaging tests suggest a problem in the bile or pancreatic ducts. Initial diagnostic steps typically involve blood tests and non-invasive imaging like ultrasound, computed tomography (CT) scans, or magnetic resonance imaging (MRI) of the abdomen.

If you have symptoms like jaundice or severe abdominal pain, your doctor will likely start with blood tests to check your liver and pancreatic enzyme levels. These tests can indicate if there's inflammation or a blockage. An ultrasound is often the first imaging test used, especially to look for gallstones in the gallbladder or bile ducts. If the ultrasound is unclear or suggests a more complex issue, a CT scan or MRI might be performed. These initial tests help doctors narrow down the problem and determine if an ERCP is the most appropriate next step. ERCP provides a more detailed view of the ducts and allows for immediate treatment, which other imaging tests cannot do.

Treatment options

ERCP is primarily a therapeutic procedure, meaning it can treat many conditions directly during the examination. Common treatments include removing gallstones from the bile ducts, widening narrowed ducts (strictures) using a balloon, placing small tubes (stents) to keep ducts open, and taking tissue samples (biopsies) for further analysis.

One of the most common treatments performed during ERCP is the removal of gallstones that have moved into the bile duct. The doctor can use special tools passed through the endoscope to grasp and remove the stones, or to break them into smaller pieces that can pass naturally. For narrowed ducts (strictures), a small balloon can be inflated to widen the passage, improving the flow of bile or pancreatic fluid. Sometimes, a stent—a tiny mesh or plastic tube—is placed in the duct to hold it open and prevent it from narrowing again. If a tumor is suspected, the doctor can take small tissue samples (biopsies) during the ERCP. These samples are then sent to a lab to determine if the growth is cancerous or non-cancerous, which helps guide further treatment decisions.

Recovery & outlook

After an ERCP, you will be monitored closely for a few hours as the sedation wears off. You might experience a sore throat, bloating, or gas, which are usually mild and temporary. Most people can go home the same day. The outlook generally depends on the underlying condition treated, but ERCP is often very effective in resolving acute problems and improving symptoms.

You will typically need someone to drive you home after the procedure because of the sedation. It's common to feel tired and have a mild sore throat for a day or two. You may also feel some bloating or gas due to air introduced during the procedure. While ERCP is generally safe, complications can occur. The most common serious complication is inflammation of the pancreas (pancreatitis), which happens in about 3 to 10 people out of every 100 (3-10%) who undergo the procedure. Other less common risks include bleeding, infection, or a tear (perforation) in the digestive tract. Your doctor will provide specific instructions for your recovery, including when you can eat and drink normally, and what symptoms to watch for. The long-term outlook is often good, especially for conditions like gallstone removal or stent placement, which can significantly relieve symptoms and prevent future complications.

When to see a doctor

While mild discomfort is normal after an ERCP, you should contact your doctor immediately or seek emergency medical care if you experience severe or worsening abdominal pain, fever and chills, persistent nausea or vomiting, dark, tarry stools, or any signs of bleeding. These could indicate a serious complication requiring urgent attention.

Severe abdominal pain, especially if it's getting worse or doesn't respond to mild pain relievers, could be a sign of post-ERCP pancreatitis or another complication. This pain might be felt in your upper abdomen and could radiate to your back. Fever (a temperature above 100.4°F or 38°C) and chills could indicate an infection. While antibiotics are sometimes given to prevent infection, it's still a possible complication that needs prompt medical evaluation. Any signs of bleeding, such as dark, tarry stools, bright red blood in your stool, or vomiting blood, require immediate medical attention. Although rare, bleeding can occur at the site where a biopsy was taken or a stone was removed. Persistent nausea or vomiting that prevents you from keeping down fluids is also a concern. Always follow your doctor's specific post-procedure instructions and do not hesitate to call them if you have any worries.

Frequently asked questions

How long does an ERCP procedure take?

An ERCP procedure usually takes between 30 minutes to 2 hours, depending on the complexity of the condition being treated and whether any therapeutic interventions, like stone removal or stent placement, are performed. This time does not include preparation or recovery.

Is ERCP painful?

You will receive sedation or general anesthesia for an ERCP, so you should not feel any pain during the procedure itself. Afterward, it's common to have a mild sore throat, bloating, or gas, but severe pain is not typical and should be reported to your doctor.

What are the alternatives to ERCP?

Alternatives to ERCP depend on the specific condition. For diagnosis, non-invasive imaging like MRCP (magnetic resonance cholangiopancreatography) can visualize the ducts. For treatment, surgery might be an option for some blockages or stones, but ERCP is often preferred due to its less invasive nature.

Can I eat before an ERCP?

No, you must not eat or drink anything for at least 6 to 8 hours before an ERCP. This is crucial to ensure your stomach is empty, which helps prevent complications like vomiting during the procedure and allows for a clear view for the doctor.

How soon can I return to normal activities after ERCP?

Most people can return to light activities the day after an ERCP. However, you should avoid strenuous activities, heavy lifting, and making important decisions for at least 24 hours due to the effects of sedation. Your doctor will give you specific guidance based on your individual recovery.

What is post-ERCP pancreatitis?

Post-ERCP pancreatitis is the most common and serious complication of ERCP, occurring when the pancreas becomes inflamed after the procedure. It causes severe abdominal pain, nausea, and vomiting. While usually mild, it can sometimes require hospitalization. Doctors take steps to minimize this risk.

Sources

  • MedlinePlus — ERCP
  • Mayo Clinic — ERCP
  • Cochrane Library — ERCP
KA
Medical reviewer
Kathy Bacon

Reviewed this article for medical accuracy (2026-06-05).