Bile duct blockage happens when something prevents bile from draining normally from the liver into the small intestine, and gallstones are by far the most common culprit. But the list of possible causes is surprisingly long, ranging from tumors and autoimmune diseases to parasitic worms and surgical injuries. Understanding what is actually blocking the duct matters because the treatment, the urgency, and the long-term outlook vary enormously depending on the underlying cause.
How Gallstones Block the Bile Duct
Most gallstones sit quietly in the gallbladder and never cause problems. Trouble starts when a stone slips out of the gallbladder and travels through the narrow cystic duct into the common bile duct, a condition called choledocholithiasis.1PubMed. Gallstone disease: Epidemiology, pathogenesis, and classification of biliary stones (common bile duct and intrahepatic) Once lodged there, the stone acts like a cork. Bile backs up behind it, pressure rises in the duct system, and the classic symptoms appear: pain in the upper right abdomen, yellowing of the skin and eyes, dark urine, and pale stools.
The process is not always straightforward. Small stones, roughly one to four millimeters across, are the ones most likely to migrate first. Once they wedge into the common duct and raise the pressure inside, the duct dilates, which ironically makes it easier for larger stones to follow.2PubMed. Migration of gall stones So what starts with one tiny stone can escalate into a more serious blockage as bigger stones make their way down the widened pathway.
A less well-known variant is Mirizzi syndrome, where a stone gets impacted not in the common bile duct itself but in the neck of the gallbladder or the cystic duct. The trapped stone presses against the adjacent common bile duct from the outside, creating an external compression. Over time, the inflammatory response can erode through the wall and create an abnormal connection between the gallbladder and the bile duct.3PubMed Central. Mirizzi syndrome: history, current knowledge and proposal of a simplified classification Mirizzi syndrome is rare but notoriously tricky to diagnose because it mimics a tumor on imaging.
Tumors That Obstruct the Bile Duct
After gallstones, cancer is the most feared cause of bile duct blockage, and for good reason: a tumor growing in or near the duct can choke off bile flow gradually and painlessly, meaning it often goes undetected until the blockage is severe. The classic presentation is painless jaundice that steadily worsens over days or weeks.
Pancreatic cancer is one of the biggest offenders. The head of the pancreas sits right next to the lower portion of the common bile duct, so a tumor growing there can compress or invade the duct. Most patients with pancreatic cancer eventually develop bile duct obstruction as the disease progresses.4PubMed Central. Managing malignant biliary obstruction in pancreas cancer: choosing the appropriate strategy
Cholangiocarcinoma, cancer of the bile duct lining itself, is another major cause. These tumors are classified by where they arise along the ductal system: inside the liver (intrahepatic), at the junction where the left and right hepatic ducts meet (perihilar, sometimes called a Klatskin tumor), or in the lower duct (distal). Biliary tract cancers are relatively uncommon in most high-income countries, but the incidence of the intrahepatic type has been rising globally.5The Lancet. Biliary tract cancer In certain parts of Southeast Asia where liver-fluke infections are endemic, cholangiocarcinoma rates are dramatically higher.
Tumors at or near the ampulla of Vater, the small opening where the bile duct and pancreatic duct empty into the duodenum, can also block bile flow. These periampullary lesions include ampullary adenocarcinomas, duodenal cancers, and pancreatic neuroendocrine tumors.6Radiographics. Imaging features of benign and malignant ampullary and periampullary lesions Benign growths in this area, such as ampullary adenomas, can do the same thing and are sometimes discovered incidentally during endoscopy.
Metastatic cancer from other organs, including the colon, stomach, breast, or lung, can also spread to lymph nodes around the bile duct and compress it from outside. This is less common than primary biliary or pancreatic tumors, but it does happen, and it can be the first sign that a distant cancer has spread.
Autoimmune and Inflammatory Bile Duct Disease
Not every bile duct stricture is caused by a stone or a tumor. The immune system itself can attack the bile ducts, scarring them shut from the inside.
Primary sclerosing cholangitis (PSC) is a chronic disease in which the bile ducts become inflamed, develop scar tissue, and progressively narrow. On imaging, the hallmark pattern is a series of strictures with sac-like dilations in between, giving the ducts a beaded appearance in both the intrahepatic and extrahepatic portions.7The Lancet. Primary sclerosing cholangitis Over time, the fibrosis impairs bile flow and leads to progressive liver dysfunction.8The Lancet. Primary sclerosing cholangitis PSC is strongly linked to inflammatory bowel disease, particularly ulcerative colitis, though the reasons for this connection are still debated. There is no proven drug therapy that halts PSC, and some patients eventually need a liver transplant.
A separate condition called IgG4-related sclerosing cholangitis can look almost identical to both PSC and bile duct cancer on imaging, which makes diagnosis genuinely difficult.9PubMed Central. IgG4-Related Sclerosing Cholangitis Involving the Intrahepatic Bile Ducts Diagnosed with Liver Biopsy In this disease, a particular subtype of immune cells infiltrates the bile duct walls and thickens them. IgG4-related sclerosing cholangitis often occurs alongside autoimmune pancreatitis, and the combination can closely mimic a distal cholangiocarcinoma.10British Journal of Surgery. Immunoglobulin G4-related sclerosing cholangitis in patients resected for presumed malignant bile duct strictures The good news is that IgG4-related disease usually responds well to steroid therapy, so getting the diagnosis right can spare a patient unnecessary surgery.
Surgical Injuries and Bile Duct Strictures
Surgery is one of the more preventable causes of bile duct damage. The vast majority of post-operative bile duct strictures happen after cholecystectomy (gallbladder removal), and the rate increased when the laparoscopic approach became the standard technique.11PubMed. Benign post-operative bile duct strictures During the operation, the bile duct can be clipped, cut, burned by cautery, or partially devascularized. Sometimes the injury is recognized on the spot and repaired immediately, but in many cases it becomes apparent only days or weeks later when bile leaks or the duct scars down and narrows.
The long-term consequences of an unrepaired or poorly repaired bile duct injury are serious. Prolonged obstruction combined with recurrent infections can lead to fibrosis, secondary biliary cirrhosis, and eventually portal hypertension.12PubMed. Long-term consequences of bile duct injury after cholecystectomy In the worst scenarios, the damage progresses to end-stage liver disease.13Digestive Surgery. Long-Term Impact of Iatrogenic Bile Duct Injury This is why bile duct injuries during cholecystectomy are considered one of the more significant complications in general surgery, and why complex repair is best handled at specialized centers.
Chronic Pancreatitis
The lower portion of the common bile duct runs through or right behind the head of the pancreas, which means any disease that makes the pancreas swell or scar can squeeze the duct. Chronic pancreatitis is the classic example. Repeated bouts of inflammation cause progressive fibrosis of the pancreatic tissue, and this fibrotic tissue gradually tightens around the segment of bile duct that passes through it.14Gut and Liver. Incidence and Significance of Biliary Stricture in Chronic Pancreatitis Patients Undergoing Extracorporeal Shock Wave Lithotripsy for Obstructing Pancreatic Duct Stones Unlike an acute blockage from a gallstone, this stricture develops slowly over months or years, so patients may not notice symptoms until the obstruction is fairly advanced.
Chronic pancreatitis-related bile duct strictures can look suspicious on imaging studies, raising the concern of pancreatic cancer. Distinguishing between the two often requires careful evaluation, sometimes including tissue sampling, because the management is completely different.
Congenital Causes in Infants and Children
Bile duct blockage can also be present from birth or appear in the first weeks of life. Biliary atresia is the most urgent example. It is a progressive inflammatory disease of early infancy that destroys the extrahepatic bile ducts and disrupts bile flow.15Nature Reviews Gastroenterology & Hepatology. Pathogenesis of biliary atresia: defining biology to understand clinical phenotypes The exact cause remains unclear, though the strongest evidence points to a combination of viral triggers, environmental toxins, and genetic susceptibility that set off an immune response damaging the duct lining.16Nature Reviews Disease Primers. Biliary atresia Without treatment, bile backs up into the liver, causing severe jaundice, growth failure, and a mortality rate above 90%.17Journal of Clinical Investigation. Obstruction of extrahepatic bile ducts by lymphocytes is regulated by IFN-γ in experimental biliary atresia A surgical procedure called the Kasai portoenterostomy, done ideally within the first two months of life, can restore bile flow, though many children will still eventually need a liver transplant.
Choledochal cysts are another congenital abnormality: abnormal dilations of the bile ducts that can obstruct flow, predispose to infections, and even increase the long-term risk of bile duct cancer. They are rare and most often diagnosed in childhood, though in roughly one in five patients the diagnosis is delayed until adulthood, when the presentation and treatment approach may differ.18PubMed Central. Diagnosis and management of choledochal cysts
Parasitic Infections
In many parts of the world, parasites are a significant cause of bile duct blockage. Roundworms (Ascaris lumbricoides) normally live in the small intestine but are highly motile and can crawl through the ampulla and into the bile duct, physically plugging it.19PubMed. Parasitic infestations of the biliary tract On imaging, an Ascaris worm inside the duct is sometimes visible as a long, tubular filling defect, a striking finding that is unmistakable once you know what it is.
Liver flukes, particularly Clonorchis sinensis and Opisthorchis viverrini, work differently. Rather than mechanically plugging the duct, flukes set up residence inside the biliary tree and provoke chronic inflammation, thickening of the duct walls, and eventually stone formation.20PubMed. Parasitic diseases of the biliary tract Long-standing Clonorchis infection can lead to recurrent bacterial cholangitis, intrahepatic stones, and even cholangiocarcinoma.19PubMed. Parasitic infestations of the biliary tract These infections are most common in East and Southeast Asia, where consumption of raw or undercooked freshwater fish transmits the parasites.
AIDS Cholangiopathy
In people with advanced HIV/AIDS whose immune systems are severely suppressed, opportunistic infections can target the bile ducts and cause a distinctive pattern of strictures and dilation known as AIDS cholangiopathy. The organisms most commonly involved include Cryptosporidium, cytomegalovirus, and microsporidium, which infect the duct lining and trigger scarring.21PubMed Central. Epidemiology, determinants, and management of AIDS cholangiopathy: A review Since the widespread availability of effective antiretroviral therapy, this condition has become much less common, though it still occurs in settings where access to treatment is limited.
Sphincter of Oddi Dysfunction
Sometimes bile flow is obstructed without any visible stone, tumor, or stricture on imaging. Sphincter of Oddi dysfunction (SOD) is a functional disorder where the muscular valve at the end of the bile duct, the sphincter of Oddi, either spasms or becomes scarred and fails to open properly.22PubMed Central. Biliary Sphincter of Oddi Dysfunction Patients typically present with episodes of upper abdominal pain, elevated liver enzymes, and a dilated bile duct on ultrasound, all without any stones being found.23PubMed. The diagnosis and management of Sphincter of Oddi dysfunction: a systematic review The condition is most often seen after gallbladder removal, which makes sense when you consider that the sphincter normally coordinates bile release with the gallbladder’s contractions. Diagnosis can require specialized pressure measurements of the sphincter, and management remains controversial.
Drug-Induced Bile Duct Problems
Certain medications can contribute to bile duct obstruction, though they usually do so indirectly. Some drugs promote the formation of cholesterol gallstones or cause drug molecules to precipitate in bile, forming sludge or even hard stones in the gallbladder or common bile duct.24PubMed. Drug-induced cholestasis Ceftriaxone, a widely used antibiotic, is one of the best-known examples: it can form calcium-ceftriaxone precipitates in bile that mimic gallstones on imaging. Octreotide, a hormone analog used for certain tumors, is another drug associated with gallstone formation because it slows gallbladder emptying.
Vascular Compression of the Bile Duct
A less familiar cause of bile duct narrowing involves blood vessels pressing on the duct from the outside. In portal cavernoma cholangiopathy, a condition that develops in people with chronic blockage of the portal vein, a tangle of collateral veins (called a cavernoma) forms around the bile duct to reroute blood flow. These dilated veins can compress the thin, flexible common bile duct and hepatic ducts, producing strictures and upstream dilation.25Annals of Hepato-Biliary-Pancreatic Surgery. Portal cavernoma cholangiopathy: Update and recommendations on diagnosis and management The problem is twofold: the veins physically squeeze the duct, and the reduced blood supply to the duct wall itself can cause ischemic damage over time.26PubMed Central. Portal cavernoma cholangiopathy: consensus statement of a working party of the Indian national association for study of the liver This condition is more commonly recognized in South Asia and is often discovered incidentally when patients with known portal vein thrombosis develop unexplained jaundice or cholangitis.
When a Blockage Becomes an Emergency
Regardless of the underlying cause, a blocked bile duct can lead to acute cholangitis, a potentially life-threatening infection that develops when bacteria multiply in stagnant bile behind the obstruction.27PubMed. Diagnosis and management of acute cholangitis The classic warning signs are fever, jaundice, and right upper abdominal pain. In severe cases, the infection can progress to sepsis with low blood pressure and confusion, requiring emergency drainage of the bile duct in addition to antibiotics. The speed of treatment matters enormously here: delayed drainage can be fatal.
Even when blockages do not cause acute infection, prolonged obstruction takes a toll on the liver. Bile that cannot drain backs up into liver cells, and over time this leads to inflammation, fibrosis, and if the blockage remains unrelieved, secondary biliary cirrhosis. At that point, the liver damage may be partially or fully irreversible, which is why identifying and relieving bile duct blockages reasonably promptly is so important regardless of the cause.
How Doctors Figure Out the Cause
Blood tests are usually the first clue. A blocked bile duct causes a characteristic pattern of elevated bilirubin (the pigment that causes jaundice) along with elevated alkaline phosphatase and gamma-glutamyl transferase. These lab findings point toward an obstructive cause rather than liver-cell damage, though there is often overlap.
Ultrasound is the usual first imaging step. It is quick, painless, and good at detecting a dilated bile duct, which signals downstream obstruction. It can also find gallstones in the gallbladder reliably, though stones in the common bile duct itself are harder to spot with ultrasound because of overlying bowel gas.
Magnetic resonance cholangiopancreatography (MRCP) has become the go-to noninvasive test for mapping the bile duct anatomy in detail. It provides a clear picture of where strictures, stones, or masses are located without requiring any instruments to enter the body. Studies comparing MRCP to the more invasive endoscopic retrograde cholangiopancreatography (ERCP) have found that MRCP performs comparably for diagnosing bile duct stones, strictures, and dilations.28PubMed Central. MRCP compared to diagnostic ERCP for diagnosis when biliary obstruction is suspected: a systematic review For bile duct stones specifically, MRCP has shown sensitivity around 88% and specificity around 94% when compared with ERCP.29PubMed Central. Comparison of MRCP and ERCP in the evaluation of common bile duct and pancreatic duct pathologies
ERCP itself remains invaluable, but its role has shifted. Because it carries risks, including pancreatitis and bleeding, ERCP is now used primarily as a therapeutic tool rather than a purely diagnostic one. When a stone needs to be extracted, a stent placed across a stricture, or tissue biopsied from a suspicious narrowing, ERCP is the procedure that gets the job done. Endoscopic ultrasound is another option that combines imaging with the ability to sample tissue, and it is particularly useful for evaluating masses near the ampulla or in the pancreatic head.
CT scanning fills in when tumors are suspected, helping to stage cancers and assess whether they are surgically resectable. In complex or ambiguous cases, patients often end up with more than one imaging modality, each answering a slightly different clinical question.
When Causes Overlap or Mimic Each Other
One of the genuine challenges in managing bile duct blockages is that different causes can produce nearly identical clinical pictures. A benign stricture from chronic pancreatitis looks a lot like a pancreatic cancer on a CT scan. IgG4-related sclerosing cholangitis can be indistinguishable from cholangiocarcinoma on cholangiography.30Mayo Clinic Proceedings: Innovations, Quality & Outcomes. Diagnosing Biliary Strictures: Distinguishing IgG4-Related Sclerosing Cholangitis From Cholangiocarcinoma and Primary Sclerosing Cholangitis Mirizzi syndrome is frequently mistaken for a bile duct tumor preoperatively. And patients with PSC develop strictures that can be difficult to distinguish from early cholangiocarcinoma, a cancer for which PSC patients are already at increased risk.
This diagnostic overlap means that tissue sampling, whether through ERCP brushings, endoscopic ultrasound-guided biopsy, or surgical resection, often ends up being necessary to settle the question. Getting the diagnosis wrong in either direction carries real consequences: operating on a patient with IgG4 disease who only needed steroids, or delaying surgery in a patient with early cholangiocarcinoma because the stricture was assumed to be benign.