Skip to main content

Tests for Bile Duct Cancer

Most bile duct cancers aren't found until a person goes to a doctor because they have symptoms.

Medical history and physical exam

If there's reason to suspect you might have bile duct cancer, your doctor will want to take your complete medical history to check for risk factors and learn more about your symptoms.

A physical exam is done to look for signs of bile duct cancer or other health problems. If bile duct cancer is suspected, the exam will focus mostly on your abdomen (belly) to check for any lumps, tenderness, or build-up of fluid. Your skin and the whites of your eyes will be checked for jaundice (a yellowish color). Your stool and urine will be checked for changes in color.

If your symptoms and/or the results of your physical exam suggest you might have bile duct cancer, tests will be done. These could include lab tests, imaging tests, and other procedures.

Blood tests

Your blood might be sent to the lab to test your liver and gallbladder function or to test for certain tumor markers.

Tests of liver and gallbladder function

Lab tests might be done to find out how much bilirubin is in your blood. Bilirubin is the chemical that causes jaundice. Problems in the bile ducts, gallbladder, or liver can raise the blood level of bilirubin.

Your doctor may also do tests for albumin, liver enzymes (alkaline phosphatase, AST, ALT, and GGT), coagulation studies (PT, PTT, INR) and certain other substances in your blood. Some of these tests may be called liver function tests. They can help diagnose bile duct, gallbladder, or liver disease.

If you have higher levels of these substances in your blood, it might mean you have a blockage in your bile duct. But these tests can’t show if it's due to cancer or some other reason.

Tumor markers

Tumor markers are substances made by cancer cells that can sometimes be found in the blood.

People with bile duct cancer may have high blood levels of the markers called CEA and CA 19-9. High levels of these markers often mean cancer is present, but the high levels can also be caused by other types of cancer, or even by problems other than cancer. Also, not all bile duct cancers make these tumor markers, so low or normal levels don't always mean cancer is not present.

Still, these tests can sometimes be useful after a bile duct cancer diagnosis. If the levels of these markers are found to be high, they can be followed over time to help see how well treatment is working.

Imaging tests

Imaging tests use x-rays, magnetic fields, or sound waves to create pictures of the inside of your body. Imaging tests can be done for a number of reasons, including to:

  • Look for suspicious areas that might be cancer
  • Help a doctor guide a biopsy needle into a suspicious area to take a sample for testing
  • Learn how far cancer has spread
  • Help make treatment decisions
  • Help find out if treatment is working
  • Look for signs of the cancer coming back after treatment

Imaging tests can often show a bile duct blockage. But they often can’t show if the blockage is caused by a tumor or by a less serious problem like scarring.

If you have (or might have) bile duct cancer, you could have one or more of these tests:

Ultrasound

Ultrasound uses sound waves and their echoes to create images of the inside of the body. A small instrument called a transducer gives off sound waves and picks up the echoes as they bounce off organs inside the body. The echoes are converted by a computer into an image on a screen.

Abdominal ultrasound

This is often the first imaging test done in people who have symptoms such as jaundice or pain in the right upper part of their abdomen (belly). This is an easy test to have done, and it doesn't use radiation. You simply lie on a table while a technician moves the transducer on the skin over your abdomen.

This type of ultrasound can also be used to guide a needle into a suspicious area or lymph node so that cells can be removed (biopsied) and looked at under a microscope. This is called an ultrasound-guided needle biopsy.

Endoscopic ultrasound (EUS) or laparoscopic ultrasound

In these techniques, the doctor puts the ultrasound transducer inside your body and closer to the bile duct. This gives more detailed images than a standard ultrasound. The transducer is on the end of a thin, lighted tube that has a camera on it. The tube is either passed through your mouth, down through your stomach, and into the small intestine near the bile ducts (endoscopic ultrasound) or through a small surgical cut in the skin on the side of your body (laparoscopic ultrasound).

If there's a tumor, the doctor might be able to see how far it has grown and spread, which can help in planning for surgery. Ultrasound may be able to show if nearby lymph nodes are enlarged, which can be a sign that cancer has reached them. Needle biopsies of suspicious areas might be done.

Multi-detector computed tomography (MDCT) scan

An MDCT scan uses x-rays to make detailed cross-sectional images of your body. It can be used to:

  • Help diagnose bile duct cancer by showing tumors in the area.
  • Help stage the cancer (find out how far it has spread). CT scans can show the organs near the bile duct (especially the liver), as well as lymph nodes and distant organs where cancer might have spread.
  • Guide a biopsy needle into a suspected tumor. This is called a CT-guided needle biopsy. To do it, you stay on the CT scanning table while the doctor advances a biopsy needle through your skin and toward the mass. CT scans are repeated until the needle is inside the mass. A small amount of tissue (a sample) is then taken out through the needle.

Magnetic resonance imaging (MRI) scan

Like CT scans, MRI scans show detailed images of soft tissues in the body. But MRI scans use radio waves and strong magnets instead of x-rays. To see details better, a contrast material called gadolinium may be injected into a vein before the scan.

MRI scans can provide a great amount of detail and be very helpful in looking at the bile ducts and other organs. Sometimes they can help tell a benign (non-cancer) tumor from one that's cancer.

A special type of MRI scan may also be used in people who might have bile duct cancer. This test is called an MR cholangiopancreatography (MRCP), and it can be used to look at the bile ducts. It is described below in the section on cholangiography.

Cholangiography

A cholangiogram is an imaging test that looks at the bile ducts to see if they're blocked, narrowed, or dilated (widened). This can help show if someone might have a tumor that's blocking a duct. It can also be used to help plan surgery. There are several types of cholangiograms, each of which has different pros and cons.

Magnetic resonance cholangiopancreatography (MRCP)

This is a way to get images of the bile ducts with the same type of machine used for standard MRIs.   Unlike other types of cholangiograms, this test doesn’t use an endoscope or an IV contrast agent. Because it's non-invasive (nothing is put in your body), doctors often use MRCP if they just need images of the bile ducts. This test can’t be used to get biopsy samples of tumors or to place stents (small tubes) in the ducts to keep them open.

Endoscopic retrograde cholangiopancreatography (ERCP)

In this procedure, a doctor passes a long, flexible tube (endoscope) down your throat, through your stomach, and into the first part of the small intestine. This is usually done while you are sedated (given medicine to make you sleepy). A small catheter (tube) is passed out of the end of the endoscope and into the common bile duct. A small amount of contrast dye is injected through the catheter. The dye helps outline the bile ducts and pancreatic duct as x-rays are taken. The images can show narrowing or blockage of these ducts.

This test is more invasive than MRCP, but it has the advantage of allowing doctors to take samples of cells or fluid for testing. ERCP can also be used to put a stent (a small tube) into a duct to help keep it open.

Percutaneous transhepatic cholangiography (PTC)

In this procedure, a doctor puts a thin, hollow needle through the skin of your belly and into a bile duct inside your liver. You're given medicines through an IV line to make you sleepy before this test. A local anesthetic is also used to numb the area before putting in the needle. A contrast dye is then injected through the needle, and x-rays are taken as it passes through the bile ducts.

Like ERCP, this test can also be used to take samples of fluid or tissues or to put a stent (small tube) in the bile duct to help keep it open. Because it's more invasive, PTC is not usually used unless ERCP has already been tried or can’t be done for some reason.

Other tests

Doctors may also use special instruments (endoscopes) to go into your body to get a more direct look at your bile duct and nearby areas. The scopes may be passed through small surgical incisions (cuts) or through natural body openings like your mouth. These tests are not as commonly used, since non-invasive imaging tests (like MDCT and MRCP) allow for very detailed images.

Laparoscopy

Laparoscopy is a type of surgery. A doctor takes a laparoscope (a thin, lighted tube with a small camera on the end) and puts it through a small incision (cut) in the front of your belly. With the camera, the doctor looks at your bile ducts, gallbladder, liver, and other nearby organs and tissues. Sometimes more than one cut is made. This is typically done in the operating room using general anesthesia (medicine that puts you into a deep sleep so you don’t feel pain).

Laparoscopy can help your health care team plan surgery or other treatments. It can also help determine the stage (extent) of the cancer. If needed, special instruments can be put in through the incisions to take biopsy samples for testing.

Cholangioscopy

This procedure can be done during an ERCP (see above). The doctor passes a very thin fiber-optic tube with a tiny camera on the end down through the larger tube used for the ERCP. From there it can be maneuvered into the bile ducts. This lets the doctor see any blockages, stones, or tumors and even biopsy them.

Biopsy

Imaging tests might suggest that a bile duct cancer is present, but in many cases, samples of bile duct cells or tissue are removed (biopsied) and looked at with a microscope to be sure of the diagnosis.

But a biopsy isn't always done before surgery for a possible bile duct cancer. If imaging tests show a tumor in the bile duct, the doctor may decide to proceed directly to surgery and to treat the tumor as a bile duct cancer (see Surgery for Bile Duct Cancer).

Types of biopsies

There are many ways to take biopsy samples to diagnose bile duct cancer.

Biopsy during cholangiography

If ERCP or PTC is being done, a sample of bile may be collected during the procedure to look for cancer cells in the fluid.

Bile duct cells and tiny pieces of bile duct tissue can also be taken out by a process called biliary brushing. Instead of injecting contrast dye and taking x-ray pictures (as for ERCP or PTC), a small brush with a long, flexible handle is advanced through the endoscope or needle. The end of the brush is used to scrape cells and small tissue fragments from the lining of the bile duct. These are then looked at with a microscope.

Biopsy during cholangioscopy

Biopsy specimens can also be taken during cholangioscopy. This test lets the doctor see the inside surface of the bile duct and take samples of suspicious areas.

Needle biopsy

For this test, a thin, hollow needle is put through the skin and into the tumor without making a cut in the skin. (The skin is numbed first with a local anesthetic.) The needle is usually guided into place using ultrasound or CT scans. When the images show that the needle is in the tumor, cells and/or fluid are drawn into the needle and sent to the lab to be tested.

In most cases, this is done as a fine needle aspiration (FNA) biopsy, which uses a very thin needle attached to a syringe to suck out (aspirate) a sample of cells. Sometimes, the FNA doesn’t get enough cells for a definite diagnosis. If not, a core needle biopsy may be done. A core needle biopsy uses a slightly larger needle to get a bigger sample.

Lab tests of biopsy samples

Along with looking at the biopsy samples with a microscope to see if they contain cancer cells, other lab tests might also be done on the samples.

For example, cancer cells in biopsy samples (or surgery samples) might be tested for certain gene or protein changes (sometimes called genotyping or molecular profiling). This could include changes in the FGFR2, NTRK, IDH1, and BRAF genes. The results of these tests can help determine if certain targeted drugs might be helpful in treating the cancer.

For more on biopsies and how samples are tested, see Testing Biopsy and Cytology Specimens for Cancer.

side by side logos for American Cancer Society and American Society of Clinical Oncology

Developed by the American Cancer Society medical and editorial content team with medical review and contribution by the American Society of Clinical Oncology (ASCO).

Abou-Alfa GK, Jarnagin W, Lowery M, et al. Liver and bile duct cancer. In: Neiderhuber JE, Armitage JO, Doroshow JH, Kastan MB, Tepper JE, eds. Abeloff’s Clinical Oncology. 5th ed. Philadelphia, PA: Elsevier; 2014:1373-1395.

National Comprehensive Cancer Network, Clinical Practice Guidelines in Oncology (NCCN Guidelines®), Biliary Tract Cancers, Version 2.2024. Accessed at www.https://www.nccn.org/professionals/physician_gls/pdf/btc.pdf on May 20, 2024.

Patel T, Borad MJ. Carcinoma of the biliary tree. In: DeVita VT, Lawrence TS, Rosenberg SA, eds. DeVita, Hellman, and Rosenberg’s Cancer: Principles and Practice of Oncology. 10th ed. Philadelphia, PA: Lippincott Williams & Wilkins; 2015:715-735.

Last Revised: October 11, 2024

American Cancer Society Emails

Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.