MRCP image showing the bile ducts, gallbladder and pancreatic duct

MRCP vs. ERCP: How These Bile Duct Tests Differ and Why Your Doctor Chose One

MRCP (magnetic resonance cholangiopancreatography) is a special MRI scan that creates detailed pictures of the bile ducts, gallbladder, pancreas, and pancreatic duct without entering the body or using X-ray radiation. ERCP (endoscopic retrograde cholangiopancreatography) uses a flexible endoscope passed through the mouth into the small intestine, along with contrast dye and X-rays. ERCP is used mainly when doctors expect to treat a problem during the same procedure, such as placing a stent, collecting cells, or removing stones. It carries more risk than MRCP. [1,2]

If you have jaundice, abnormal liver tests, or a suspected narrowing in a bile duct, you may hear both names in the same conversation. They sound similar because both examine the bile and pancreatic ducts. But they work very differently, and understanding why one is recommended can make the next step less confusing.

This guide is general information for patients and caregivers. Your own care team will explain which test fits your situation.

Approved by Karen Templeton

MRCP image showing the bile ducts, gallbladder and pancreatic duct
An MRCP image of normal bile ducts, gallbladder and pancreatic duct. It is not a bile duct cancer case or a Foundation patient. Photo: Hellerhoff, CC BY-SA 4.0; source. Resized.

What Is MRCP?

MRCP is a type of MRI exam focused on the liver, gallbladder, bile ducts, pancreas, and pancreatic duct. It uses a strong magnetic field, radio waves, and a computer to produce images. It is noninvasive and does not use ionizing radiation. [1] Fluid in the ducts appears bright, so a narrowing, blockage, stone, or widened duct can often be seen clearly. Some centers give contrast through an IV as part of a broader MRI of the liver. [3]

During the exam, you lie on a table that moves into the scanner. You may be asked to hold your breath repeatedly for short periods. The scanner is loud, so ear protection is provided. Many MRCP exams take well under an hour, though combined liver MRI exams can take longer. Guidelines about eating and drinking beforehand vary by facility. [1]

Tell the team about any implanted devices or metal in your body, and whether you could be pregnant. If you are claustrophobic, ask in advance whether a mild sedative is an option. [1]

What Is ERCP?

ERCP combines upper endoscopy and X-ray imaging. A specialist, usually a gastroenterologist with advanced training, passes a thin, flexible scope through your mouth, stomach, and into the duodenum, the first part of the small intestine. A small tube is then guided into the opening where the bile duct and pancreatic duct drain. Contrast dye is injected so the ducts show up on X-ray. [2]

The real advantage of ERCP is that tools can pass through the scope. During the same procedure, the doctor can:

  • Place a stent to open a blocked bile duct and relieve jaundice and itching.
  • Brush the inside of a narrowed duct to collect cells for testing.
  • Take tissue samples, sometimes using a tiny camera inside the duct called cholangioscopy.
  • Remove stones or widen a narrowed opening.

ERCP is usually performed with sedation or anesthesia. You will need someone to drive you home. [2] Our guide to biliary stents explains what living with a stent can involve.

MRCP vs. ERCP at a Glance

Question MRCP ERCP
How it works MRI scan from outside the body Endoscope through the mouth plus X-ray dye
Main purpose Diagnosis and mapping of the ducts Treatment, sampling, and diagnosis
Can it place a stent or take a sample? No Yes
Sedation Usually not needed Usually needed
Radiation None Uses X-rays
Main risks Very low; device and contrast precautions Pancreatitis, bleeding, infection, perforation

Sources for this comparison: RadiologyInfo, NIDDK, and StatPearls. [1,2,4]

Why Doctors Often Start With MRCP

According to the National Institute of Diabetes and Digestive and Kidney Diseases, ERCP is used to diagnose bile and pancreatic duct problems when doctors expect to treat the problem during the procedure. For diagnosis alone, tests that do not enter the body, such as MRCP, ultrasound, or endoscopic ultrasound, carry less risk and can diagnose many problems. [2]

For a suspected bile duct cancer, MRCP and other imaging can show where a blockage is, how far it extends along the ducts, and how the liver is affected. That map helps doctors plan the next steps, including whether a stent is needed, where it should go, and whether surgery might be possible. For perihilar tumors, careful imaging before any stent is placed can be especially helpful, because stents and inflammation can make later images harder to interpret.

Why ERCP May Be Recommended

ERCP may be the right choice when:

  • A blocked bile duct is causing jaundice, itching, or infection and needs drainage.
  • Doctors need cells or tissue from inside a narrowed duct to confirm a diagnosis.
  • MRCP or CT has already shown a problem that needs treatment.

Sometimes both are used: MRCP first to plan, then ERCP to treat or sample. Neither test alone always confirms cancer. Brushings and biopsies from bile ducts can miss cancer cells, so repeat sampling or other methods are sometimes needed. Our article on high bilirubin explains why a blocked duct can raise bilirubin.

Preparing for ERCP

Your team will give you instructions, which commonly include not eating or drinking for several hours beforehand and reviewing medicines that affect blood clotting or blood sugar. Bring a list of your medications and allergies, including any reaction to contrast dye. Plan for a responsible adult to take you home, because sedation affects judgment and reaction time for the rest of the day. [2] If you already have a stent, bring any information card or record you were given so the team knows its type and placement date.

Risks of ERCP

ERCP has a higher complication risk than routine endoscopic procedures. The most common serious complication is pancreatitis, inflammation of the pancreas. Other risks include bleeding, infection of the bile ducts (cholangitis), and, rarely, a tear in the intestinal wall. [2,4] Your doctor will discuss your personal risk and steps taken to reduce it.

After ERCP, seek urgent care for severe abdominal pain, fever or chills, vomiting, black or bloody stools, or chest pain. [2]

Risks of MRCP

MRCP is very low risk. The main precautions involve metal and implanted devices, which can be affected by the magnetic field, and contrast agents if used, especially in people with significant kidney disease. Always complete the safety screening form carefully. [1,3]

Other Tests You May Hear About

  • CT scan: often used to look at the liver, blood vessels, lymph nodes, and whether cancer has spread.
  • Endoscopic ultrasound (EUS): an endoscope with an ultrasound probe that can image the bile duct near the pancreas and guide needle biopsies.
  • PTC (percutaneous transhepatic cholangiography): contrast injected through the skin into a liver bile duct, sometimes used to place a drain when ERCP is not possible.
  • Blood tests: including liver tests and CA 19-9, which can support but not confirm a diagnosis.

You can learn more about the overall diagnostic pathway from the National Cancer Institute. [5]

Questions to Ask Before Your Test

  • What question is this test meant to answer?
  • If I am having ERCP, will a stent be placed or samples taken?
  • Should imaging be completed before any stent is placed?
  • What are my specific risks, and how will you reduce them?
  • How and when will I get the results?

Frequently Asked Questions

Is MRCP Better Than ERCP?

Neither is better in every situation. MRCP is safer for diagnosis and mapping, while ERCP can treat blockages and collect samples. They are often used together. [2]

Can MRCP Detect Bile Duct Cancer?

MRCP can show narrowing, blockage, or masses that suggest bile duct cancer, but it cannot confirm cancer by itself. Tissue or cell sampling and other tests are usually needed. [3]

Is ERCP Painful?

ERCP is usually performed under sedation or anesthesia, so most people do not feel the procedure. A sore throat or bloating afterward is common. [2]

How Long Does an MRCP Take?

Many MRCP exams take well under an hour, but timing depends on the facility and whether a full liver MRI is included. [1]

Sources

  1. RadiologyInfo.org (RSNA and ACR): MRCP (MR Cholangiopancreatography).
  2. NIDDK: Endoscopic Retrograde Cholangiopancreatography (ERCP).
  3. Cleveland Clinic: Magnetic Resonance Cholangiopancreatography (MRCP).
  4. StatPearls: Endoscopic Retrograde Cholangiopancreatography.
  5. National Cancer Institute: Bile Duct Cancer Diagnosis.