Dr. Hitendra K Garg Updated Patient guide Drafted with the help of AI writing tools and checked by Dr. Hitendra K Garg. See our editorial policy.

ERCP vs MRCP: What Each Test Does and Which One You Need

MRCP and ERCP both look at the bile duct and pancreatic duct, and their names sound alike. They are very different. One is a scan you lie still for. The other is an endoscopy that can treat what it finds. This guide explains the difference and how doctors choose.

ERCP vs MRCP: What Each Test Does and Which One You Need

In short

MRCP is an MRI scan of the bile duct and pancreatic duct. Nothing goes inside you, there is no radiation, and the risks are very small, but it can only show a problem, not fix it. ERCP is an endoscopy with X-rays. A scope goes through the mouth, and the doctor can remove stones or place a stent in the same sitting. ERCP has real risks, mainly pancreatitis in about 3 to 4 in 100 people. So doctors usually use MRCP, or endoscopic ultrasound (EUS), to confirm a problem first. ERCP is kept for when treatment is likely to be needed.

A common scene in clinic: a patient has an ultrasound that shows a slightly wide bile duct and liver tests that are a little high. One doctor has written "MRCP". Another has said "maybe ERCP". The family wants to know which is better, and whether they can skip one and save time. The short answer is that they are not two versions of the same test. They do different jobs.

What is the difference between ERCP and MRCP?

The main ERCP vs MRCP difference is that MRCP only takes pictures, while ERCP can also treat. MRCP is a type of MRI scan done from outside the body. ERCP is an endoscopy done from inside, with X-rays.

MRCP stands for magnetic resonance cholangiopancreatography. ERCP stands for endoscopic retrograde cholangiopancreatography. Both end in "cholangiopancreatography", which simply means pictures of the bile ducts and pancreatic duct. The first word tells you how the pictures are taken.

Side-by-side diagram: MRCP, where the patient lies in an MRI scanner and images of the bile ducts are taken from outside with no tube and no radiation; ERCP, where an endoscope passes through the mouth to the duodenum and dye is injected into the bile duct under X-ray so stones can be removed
How MRCP and ERCP work. Original diagram made for this article with AI assistance; simplified.

What is an MRCP test?

An MRCP test is an MRI scan set up to show fluid in the bile ducts, gallbladder and pancreatic duct. Bile shows up bright on the images, so stones and narrowings appear as dark gaps or cut-offs.

What happens:

  • You are usually asked not to eat for a few hours before. This keeps the stomach and bowel quiet and helps the gallbladder fill.
  • You lie on your back on a table that slides into the MRI tunnel.
  • The machine is loud. You are given earplugs or headphones.
  • You hold your breath for short spells when asked, so the pictures are sharp.
  • Many MRCP scans need no injection. Some centres add an injection of contrast if they also want to look at the liver or pancreas in detail.
  • You can go home straight after, with no recovery time.

MRCP uses a strong magnet and radio waves, not X-rays, so there is no radiation. Tell the team before the scan if you have a pacemaker, a cochlear implant, metal fragments in the eye, or any implant you are unsure about. Some are not safe in the scanner. If you are afraid of closed spaces, say so early. A mild sedative or an open-design scanner may help.

What is ERCP?

ERCP is an endoscopy combined with X-rays. Under sedation, a side-viewing scope passes through the mouth into the duodenum. The doctor puts a thin tube into the opening of the bile duct, injects dye, and takes X-ray pictures.

The real point of ERCP is what comes next. In the same sitting the doctor can widen the duct opening, pull out stones, take brushings from a narrowing, or leave a stent. That makes it a treatment, not just a test. Read more about the ERCP procedure and about CBD stone removal by ERCP.

ERCP vs MRCP compared

The table sets out the main differences.

MRCPERCP
What it isMRI scanEndoscopy with X-ray
Anything inside the body?NoYes, a scope through the mouth
SedationNot neededNeeded (or anaesthesia)
RadiationNoneSome X-ray
Can it treat?No, pictures onlyYes: stone removal, stents, brushings
Main risksVery low; implants and closed spaces are the main issuesPancreatitis, bleeding, infection, perforation
RecoveryNone; go home straight awayHours to a night in hospital
Main useChecking whether a stone or narrowing is thereTreating a problem that is likely or already confirmed
Who does itRadiology teamGastroenterologist trained in ERCP

How accurate is MRCP for bile duct stones?

MRCP is accurate for most bile duct stones, but it can miss very small ones. A Cochrane review pooled studies of MRCP for bile duct stones. MRCP picked up 93% of stones that were there (sensitivity 0.93). It correctly ruled them out in 96% of people who had none (specificity 0.96) (Giljaca and colleagues, Cochrane Database of Systematic Reviews, 2015).

The same review found endoscopic ultrasound slightly more accurate, though the difference was small and the studies were of low quality. The authors concluded there was little to choose between the two.

Where they do differ is small stones. The European gallstone guideline notes that MRCP "might miss small stones", while EUS is the most sensitive test for stones under 5 mm, the kind that often trigger pancreatitis (EASL Clinical Practice Guidelines on gallstones, Journal of Hepatology, 2016).

Why not go straight to ERCP?

Because ERCP has real risks, and many people sent for it turn out to have no stone at all. A review of 21 studies with 16,855 patients found complications after 6.85% of ERCPs. Pancreatitis was the most common, at 3.47%, and 0.33% of patients died (Andriulli and colleagues, American Journal of Gastroenterology, 2007).

Those numbers are worth accepting when there is a stone to remove. They are not worth accepting just to look. That is the whole logic behind doing MRCP or EUS first in people whose chance of a stone is uncertain. If the scan is clear, ERCP is avoided. If it shows a stone, ERCP goes ahead with a clear purpose.

Which test do you need first?

Which test you need first depends on how likely it is that you have a bile duct stone. Doctors judge this from your symptoms, blood tests and ultrasound.

The American Society for Gastrointestinal Endoscopy (ASGE) sorts people into three groups (Buxbaum and colleagues, ASGE guideline on choledocholithiasis, Gastrointestinal Endoscopy, 2019):

Chance of a bile duct stoneWhat puts you in this groupUsual next step
HighA stone already seen in the duct on a scan; or cholangitis; or bilirubin above 4 mg/dL together with a widened ductERCP
IntermediateAbnormal liver tests, age over 55, or a widened duct on ultrasound, without the high-risk featuresMRCP or EUS first; ERCP only if a stone is found
LowNone of the aboveUsually no duct test; gallbladder surgery if the gallbladder stones cause symptoms

The European gallstone guideline gives the same advice: people with an intermediate chance should have EUS or MRCP before any ERCP. If you have gallbladder stones too, read gallbladder stones vs bile duct stones to see how the gallbladder is handled.

Flow chart for suspected bile duct stones: high chance goes straight to ERCP; intermediate chance gets MRCP or EUS first, then ERCP only if a stone is seen; low chance needs no duct test
How the first test is chosen for a suspected bile duct stone. Original diagram made for this article with AI assistance; based on the ASGE 2019 guideline.

Where does endoscopic ultrasound (EUS) fit in?

EUS is the third option, and in some situations it is the most useful one. A thin scope with an ultrasound probe at its tip passes into the stomach and duodenum, right next to the bile duct and pancreas. Because the probe is so close, it shows small stones and sludge clearly.

EUS is usually chosen over MRCP when:

  • A small stone is suspected, for example after gallstone pancreatitis
  • The person cannot have an MRI because of an implant or severe fear of closed spaces
  • The pancreas or the lower bile duct needs a closer look, or a biopsy is needed

A practical advantage is timing. If EUS finds a stone, the doctor can often go straight on to ERCP under the same sedation, so the patient avoids a second procedure day. Dr. Hitendra K Garg trained in interventional EUS in Mumbai (2011) and in Montreal (2012), and performs both EUS and ERCP at Indraprastha Apollo Hospitals. Read about endoscopic ultrasound.

What about a CT scan?

A CT scan is quick and widely available, and it is often the first scan done in an emergency. It is good at showing pancreatitis, abscesses and growths. It is less good at showing bile duct stones, many of which do not show up on CT. The European guideline notes that EUS is better than CT at finding duct stones in people with jaundice from a blocked duct. So a normal CT does not rule out a stone.

How to prepare for each test

Before MRCP

  • Follow the fasting time the radiology centre gives you.
  • Remove jewellery and anything metal. Tell the staff about any implant, pacemaker or recent surgery.
  • Mention pregnancy, kidney disease (if contrast is planned) or fear of closed spaces.

Before ERCP

  • Fast for about six hours, or as the team advises.
  • Bring a list of all your medicines. Blood thinners and diabetes medicines often need a plan. Don't stop your prescribed medicines without talking to your doctor.
  • Arrange for someone to take you home. You cannot drive for 24 hours after sedation.
  • Bring your MRCP, EUS, CT and ultrasound reports and images.

ERCP and MRCP: myths and facts

MythFact
MRCP and ERCP are the same test.MRCP is an MRI scan. ERCP is an endoscopy that can also treat.
ERCP is the more thorough test, so it is always better.ERCP has a complication rate of about 7%. MRCP or EUS is safer when the diagnosis is unclear.
A normal MRCP means there is definitely no stone.MRCP is accurate but can miss stones under about 5 mm. EUS is better for these.
MRCP uses radiation.MRCP uses a magnet and radio waves. There is no radiation.
Everyone needs an MRCP before ERCP.People with a high chance of a stone, such as those with cholangitis, can go straight to ERCP.
A CT scan is enough to rule out a bile duct stone.Many duct stones do not show on CT. MRCP or EUS is more reliable.

Reading your MRCP report

An MRCP report is written for doctors, so it can be hard to follow. Here are the phrases patients ask about most.

  • CBD (common bile duct): the main bile duct. Reports usually give its width in millimetres.
  • Dilated CBD: the duct is wider than expected. A stone or narrowing lower down is one cause. A duct can also be a little wide with age, or after the gallbladder has been removed, with nothing blocking it.
  • Filling defect: a dark spot inside the bright bile. This is usually a stone. Sometimes it is sludge, an air bubble or, rarely, a growth.
  • Choledocholithiasis: the medical word for a stone in the bile duct.
  • Stricture: a narrowing of the duct. It can be from scarring or, less often, a growth. Further tests usually follow.
  • Cholelithiasis: stones in the gallbladder.
  • MPD (main pancreatic duct): the duct that drains the pancreas. A wide or irregular MPD can point to long-standing pancreatitis.

Do not try to decide on treatment from the report alone. The same words can mean different things in different people. Your doctor reads the report together with your symptoms and blood tests, and often looks at the images too.

Other reasons for MRCP or ERCP

Stones are the most common reason for these tests, but not the only one.

MRCP is often used to map the ducts before surgery. It also helps doctors look for a narrowing when jaundice has no obvious cause. People with long-term inflammation of the bile ducts, such as primary sclerosing cholangitis, may have it every so often to see how the ducts are changing. In chronic pancreatitis it shows the shape of the pancreatic duct without any risk.

ERCP is chosen when something needs to be done. It can drain a blocked duct or seal a leak after surgery. It can take brushings from a narrowing to check for cancer. In each case, an MRCP or EUS done first helps the doctor plan, so the ERCP is shorter and more likely to succeed.

Pregnant women need special care. MRI without contrast is generally preferred to tests with X-rays during pregnancy, and ERCP is done only when it cannot safely wait, with steps to keep X-ray exposure low. Always tell the team if you are or might be pregnant.

What happens after the test?

After MRCP, a radiologist reads the images and sends a report, usually within a day or two. Your doctor will then decide on the next step. That might be ERCP if a stone is seen, or a watchful approach if the ducts are clear.

After ERCP, the doctor can usually tell you that day what was found and what was done. If a stent was placed, ask when it needs to come out. Our guide to the ERCP stent explains the usual timeline. If your liver tests were the reason for the scan, our liver function test guide explains what the numbers mean.

Frequently asked questions

What is the difference between ERCP and MRCP?

MRCP is an MRI scan that takes pictures of the bile and pancreatic ducts from outside the body, with no tube and no radiation. ERCP is an endoscopy with X-rays that can also treat problems, such as removing stones or placing a stent. ERCP carries more risk.

Which is better, MRCP or ERCP?

Neither is better in every case. MRCP is safer for finding out whether a stone or narrowing is there. ERCP is used when treatment is likely to be needed. Doctors choose based on how likely a bile duct stone is.

How accurate is the MRCP test?

In a Cochrane review, MRCP detected 93% of bile duct stones and correctly ruled them out in 96% of people without stones. It can miss very small stones, under about 5 mm.

Is the MRCP test painful?

No. You lie still inside an MRI scanner. It is noisy, and some people find the tunnel uncomfortable, but nothing goes inside the body. Many MRCP scans need no injection.

Can MRCP remove stones?

No. MRCP only takes pictures. If it shows a bile duct stone, ERCP or surgery is needed to remove it.

Why did my doctor order MRCP instead of ERCP?

Probably because your chance of a bile duct stone is uncertain. ERCP has a complication rate of about 7%, mainly pancreatitis, so doctors confirm a stone with MRCP or EUS before doing it. If a stone is found, ERCP follows.

Is EUS better than MRCP?

The two are similar in accuracy overall. EUS is better at finding very small stones and can be followed by ERCP in the same session. MRCP needs no sedation and nothing passes into the body.

Dr. Hitendra K Garg, gastroenterologist and hepatologist

Dr. Hitendra K Garg

Senior Consultant Gastroenterologist, Hepatologist & Therapeutic Endoscopist, Indraprastha Apollo Hospitals

  • DM (Gastroenterology), G.B. Pant Hospital, New Delhi
  • MD (Medicine), Banaras Hindu University (BHU)
  • MBBS, Banaras Hindu University (BHU)

Dr. Hitendra K Garg has more than 18 years of experience treating digestive and liver diseases. He is a Senior Consultant Gastroenterologist, Hepatologist & Therapeutic Endoscopist and Transplant Hepatologist at Indraprastha Apollo Hospitals, New Delhi. He was earlier Assistant Professor of Hepatology at the Institute of Liver & Biliary Sciences (ILBS) for over four years, and is a co-author of the APASL consensus recommendations on acute-on-chronic liver failure. Read his full profile.

References

  1. Giljaca V, Gurusamy KS, Takwoingi Y, et al. Endoscopic ultrasound versus magnetic resonance cholangiopancreatography for common bile duct stones. Cochrane Database Syst Rev. 2015;(2):CD011549. Source
  2. European Association for the Study of the Liver. EASL Clinical Practice Guidelines on the prevention, diagnosis and treatment of gallstones. J Hepatol. 2016;65(1):146-181. Source
  3. Andriulli A, Loperfido S, Napolitano G, et al. Incidence rates of post-ERCP complications: a systematic survey of prospective studies. Am J Gastroenterol. 2007;102(8):1781-1788. Source
  4. Buxbaum JL, Abbas Fehmi SM, Sultan S, et al. ASGE guideline on the role of endoscopy in the evaluation and management of choledocholithiasis. Gastrointest Endosc. 2019;89(6):1075-1105.e15. Source

Medical disclaimer: This article is for general education and is not a substitute for a consultation. Please see a doctor for advice about your own symptoms. Read our editorial policy.

Next step

Consultation form

Bring your reports to Dr. Hitendra K Garg at Indraprastha Apollo Hospitals, Sarita Vihar, New Delhi. The first visit is to review your history and decide whether a test or change in treatment is needed.

Request an Appointment

Dr. Hitendra K Garg's OPD is at Indraprastha Apollo Hospitals, Sarita Vihar, New Delhi. Leave your number and our team will call you back to confirm a time.

Your details are used only to arrange your appointment. See our privacy policy.