Koledokolitiasis
Published on September 13, 2026
Risk Factors
Female sex, age over 40, obesity, rapid weight loss, multiparity, hemolytic disorders (sickle cell disease, hereditary spherocytosis), cirrhosis, prolonged TPN use, Crohn disease involving the terminal ileum, Native American or Hispanic ethnicity
Etiology
Most often secondary: cholesterol or pigmented gallstones form in the gallbladder and migrate into the common bile duct (CBD). Less commonly primary: brown pigment stones form de novo within the CBD due to biliary stasis or bacterial infection
Presentation
Episodic right upper quadrant (RUQ) or epigastric pain, jaundice, tea-colored (dark) urine, acholic (pale/clay-colored) stools, pruritus. Pain is colicky and often postprandial. May be completely asymptomatic
Classic Exam
Jaundice and scleral icterus, mild RUQ tenderness without peritoneal signs, no palpable gallbladder (a palpable, nontender gallbladder points toward malignant obstruction per Courvoisier sign)
Diagnostics
Cholestatic pattern on liver function tests: elevated direct (conjugated) bilirubin, elevated alkaline phosphatase (ALP) and gamma-glutamyl transferase (GGT). Transabdominal ultrasound showing CBD dilation greater than 6 mm (or greater than 8 mm post-cholecystectomy). MRCP or EUS for confirmation. ERCP is both confirmatory and therapeutic
Management
ERCP with sphincterotomy and stone extraction for confirmed CBD stones. Elective laparoscopic cholecystectomy afterward to prevent recurrence. Supportive care with IV fluids, analgesia, and antibiotics if cholangitis is suspected
01Pathophysiology
Choledocholithiasis refers to the presence of gallstones within the common bile duct. The vast majority of cases are secondary, meaning the stones originally form in the gallbladder and then migrate through the cystic duct into the CBD. A smaller proportion are primary CBD stones, which form directly within the duct itself, typically composed of brown calcium bilirubinate pigment and associated with biliary stasis, bacterial colonization, or parasitic infections such as Clonorchis sinensis or Opisthorchis viverrini.
The pathophysiology begins with the same lithogenic bile that drives gallstone formation: supersaturation of bile with cholesterol, decreased bile salt concentration, and gallbladder hypomotility. Once a stone enters or forms within the CBD, it creates a mechanical obstruction to bile flow. This obstruction increases intraluminal pressure proximal to the stone, leading to ductal dilation.
Because bile can no longer drain freely into the duodenum, conjugated bilirubin accumulates in the blood, producing jaundice and scleral icterus. The conjugated bilirubin is water-soluble and filtered by the kidneys, resulting in dark (tea-colored) urine. Meanwhile, the absence of bilirubin reaching the intestine means stercobilinogen is not produced, leading to acholic (pale, clay-colored) stools. The deposition of bile salts in the skin causes pruritus.
The cholestatic pattern on laboratory testing, marked by disproportionately elevated ALP and GGT relative to transaminases, reflects biliary epithelial injury and impaired bile secretion rather than hepatocellular damage. Transaminases may be mildly elevated due to back-pressure hepatocyte injury, but the dominant finding remains cholestatic.
If the obstruction is not relieved, two dangerous complications can develop. First, stagnant bile becomes a culture medium for ascending bacterial infection, producing acute cholangitis. Second, if the stone impacts at the ampulla of Vater, it can obstruct the pancreatic duct simultaneously, triggering acute gallstone pancreatitis.
02Classification and Clinical Manifestation
Secondary choledocholithiasis
DESCRIPTION
Stones originating in the gallbladder that migrate into the CBD; accounts for approximately 85 to 95 percent of cases
CLINICAL FEATURES
Same composition as gallbladder stones (cholesterol or black pigment). Often accompanied by concurrent cholelithiasis or history of biliary colic
Primary choledocholithiasis
DESCRIPTION
Stones forming de novo within the CBD itself; more common in Asian populations
CLINICAL FEATURES
Usually brown pigment stones. Associated with biliary stasis, strictures, recurrent pyogenic cholangitis, and parasitic biliary infections
Asymptomatic
DESCRIPTION
Incidentally discovered on imaging or intraoperative cholangiography
CLINICAL FEATURES
No pain, no jaundice, normal or near-normal labs. Still warrants treatment due to risk of future obstruction or cholangitis
Symptomatic, uncomplicated
DESCRIPTION
Partial or intermittent obstruction without infection or pancreatitis
CLINICAL FEATURES
Biliary colic (colicky RUQ/epigastric pain), fluctuating jaundice, dark urine, pale stools, pruritus
Complicated by cholangitis
DESCRIPTION
Complete obstruction with ascending bacterial infection
CLINICAL FEATURES
Charcot triad: fever with rigors, jaundice, RUQ pain. May progress to Reynolds pentad (add altered mental status and hypotension), indicating septic cholangitis requiring emergent decompression
Complicated by gallstone pancreatitis
DESCRIPTION
Stone impacted at the ampulla of Vater obstructing the pancreatic duct
CLINICAL FEATURES
Severe epigastric pain radiating to the back, nausea, vomiting, markedly elevated lipase (greater than 3 times the upper limit of normal), with concurrent cholestatic lab pattern
CLASSIFICATION | DESCRIPTION | CLINICAL FEATURES |
|---|---|---|
Secondary choledocholithiasis | Stones originating in the gallbladder that migrate into the CBD; accounts for approximately 85 to 95 percent of cases | Same composition as gallbladder stones (cholesterol or black pigment). Often accompanied by concurrent cholelithiasis or history of biliary colic |
Primary choledocholithiasis | Stones forming de novo within the CBD itself; more common in Asian populations | Usually brown pigment stones. Associated with biliary stasis, strictures, recurrent pyogenic cholangitis, and parasitic biliary infections |
Asymptomatic | Incidentally discovered on imaging or intraoperative cholangiography | No pain, no jaundice, normal or near-normal labs. Still warrants treatment due to risk of future obstruction or cholangitis |
Symptomatic, uncomplicated | Partial or intermittent obstruction without infection or pancreatitis | Biliary colic (colicky RUQ/epigastric pain), fluctuating jaundice, dark urine, pale stools, pruritus |
Complicated by cholangitis | Complete obstruction with ascending bacterial infection | Charcot triad: fever with rigors, jaundice, RUQ pain. May progress to Reynolds pentad (add altered mental status and hypotension), indicating septic cholangitis requiring emergent decompression |
Complicated by gallstone pancreatitis | Stone impacted at the ampulla of Vater obstructing the pancreatic duct | Severe epigastric pain radiating to the back, nausea, vomiting, markedly elevated lipase (greater than 3 times the upper limit of normal), with concurrent cholestatic lab pattern |
03Diagnostic Workup
Liver function tests (LFTs)
ROLE
Initial laboratory panel in any patient with suspected biliary obstruction
KEY FINDINGS
Elevated direct bilirubin, elevated ALP and GGT (cholestatic pattern). Mild transaminase elevation possible. Lipase should be checked to rule out concurrent pancreatitis
Transabdominal ultrasound (TUS)
ROLE
Best initial imaging test
KEY FINDINGS
CBD dilation greater than 6 mm (greater than 8 mm in post-cholecystectomy patients). May visualize stones in the CBD, but sensitivity for CBD stones is only 25 to 50 percent. Highly sensitive for gallbladder stones and ductal dilation
Magnetic resonance cholangiopancreatography (MRCP)
ROLE
Non-invasive confirmatory test for intermediate probability
KEY FINDINGS
Sensitivity 85 to 95 percent for CBD stones. No radiation, no sedation. Excellent anatomic detail of the biliary tree
Endoscopic ultrasound (EUS)
ROLE
Non-invasive confirmatory test, superior for small stones
KEY FINDINGS
Sensitivity 89 to 99 percent, particularly for stones smaller than 5 mm that MRCP may miss. Requires sedation and endoscopy
ERCP (endoscopic retrograde cholangiopancreatography)
ROLE
Gold standard: both diagnostic and therapeutic
KEY FINDINGS
Direct visualization, sphincterotomy, stone extraction, and stent placement in a single procedure. Reserved for patients with high probability of CBD stones because it carries procedural risks (post-ERCP pancreatitis, perforation, bleeding)
Intraoperative cholangiogram (IOC)
ROLE
Used during cholecystectomy to detect unsuspected CBD stones
KEY FINDINGS
Real-time fluoroscopic imaging of the biliary tree through the cystic duct. If stones are found, surgeon may proceed with laparoscopic CBD exploration or plan post-operative ERCP
TEST | ROLE | KEY FINDINGS |
|---|---|---|
Liver function tests (LFTs) | Initial laboratory panel in any patient with suspected biliary obstruction | Elevated direct bilirubin, elevated ALP and GGT (cholestatic pattern). Mild transaminase elevation possible. Lipase should be checked to rule out concurrent pancreatitis |
Transabdominal ultrasound (TUS) | Best initial imaging test | CBD dilation greater than 6 mm (greater than 8 mm in post-cholecystectomy patients). May visualize stones in the CBD, but sensitivity for CBD stones is only 25 to 50 percent. Highly sensitive for gallbladder stones and ductal dilation |
Magnetic resonance cholangiopancreatography (MRCP) | Non-invasive confirmatory test for intermediate probability | Sensitivity 85 to 95 percent for CBD stones. No radiation, no sedation. Excellent anatomic detail of the biliary tree |
Endoscopic ultrasound (EUS) | Non-invasive confirmatory test, superior for small stones | Sensitivity 89 to 99 percent, particularly for stones smaller than 5 mm that MRCP may miss. Requires sedation and endoscopy |
ERCP (endoscopic retrograde cholangiopancreatography) | Gold standard: both diagnostic and therapeutic | Direct visualization, sphincterotomy, stone extraction, and stent placement in a single procedure. Reserved for patients with high probability of CBD stones because it carries procedural risks (post-ERCP pancreatitis, perforation, bleeding) |
Intraoperative cholangiogram (IOC) | Used during cholecystectomy to detect unsuspected CBD stones | Real-time fluoroscopic imaging of the biliary tree through the cystic duct. If stones are found, surgeon may proceed with laparoscopic CBD exploration or plan post-operative ERCP |
The diagnostic approach to choledocholithiasis is driven by pretest probability stratification. Every patient with suspected biliary obstruction should first undergo liver function tests and a transabdominal ultrasound. The ultrasound is the best initial test because it is non-invasive, widely available, and highly sensitive for detecting CBD dilation, which serves as an indirect sign of obstruction. However, the ultrasound has limited sensitivity for directly visualizing stones within the CBD, particularly in the distal duct where bowel gas interferes.
Based on the combination of clinical presentation, lab results, and ultrasound findings, the patient is stratified into low, intermediate, or high probability categories for CBD stones.
Patients with high probability (CBD dilation on ultrasound plus a visible CBD stone, or concurrent cholangitis) should proceed directly to ERCP, which is the gold standard and most accurate test. ERCP allows simultaneous diagnosis and treatment through sphincterotomy and stone extraction.
Patients with intermediate probability (abnormal LFTs with CBD dilation but no visible stone, or age over 55 with abnormal LFTs alone) should undergo MRCP or EUS before ERCP. These non-invasive tests serve as a gatekeeping step to avoid unnecessary ERCP and its associated risks. EUS is slightly more sensitive for small stones (under 5 mm), while MRCP provides better overall anatomic mapping.
Patients with low probability should proceed to cholecystectomy with intraoperative cholangiography if clinical suspicion persists, rather than pre-operative biliary imaging.
A critical testing pearl: if the patient presents with concurrent cholangitis (Charcot triad or Reynolds pentad), the priority shifts from diagnosis to emergent biliary decompression via ERCP. Do not delay with MRCP or EUS in a septic patient.
04Management and Treatment
Confirmed CBD stone, no cholangitis
MANAGEMENT
ERCP with sphincterotomy and stone extraction
DETAILS
Performed electively. Followed by cholecystectomy within 2 to 4 weeks to prevent recurrence
CBD stone with acute cholangitis
MANAGEMENT
Urgent/emergent ERCP within 24 to 48 hours
DETAILS
IV fluid resuscitation, broad-spectrum antibiotics (piperacillin-tazobactam 3.375 g IV every 6 hours, or ciprofloxacin plus metronidazole), followed by ERCP for decompression. Cholecystectomy after recovery
CBD stone with gallstone pancreatitis
MANAGEMENT
Supportive care first, then early ERCP if cholangitis coexists or bilirubin is rising; otherwise cholecystectomy with IOC during same admission
DETAILS
Aggressive IV hydration (lactated Ringer at 1.5 mL/kg/hr initially), NPO, pain control. If cholangitis is present, ERCP within 24 hours. Cholecystectomy ideally before discharge to prevent recurrent episodes
Stone found on intraoperative cholangiogram
MANAGEMENT
Laparoscopic CBD exploration or post-operative ERCP
DETAILS
Surgeon may attempt transcystic stone retrieval or choledochotomy intraoperatively. If unsuccessful, post-operative ERCP with sphincterotomy
Large stones (greater than 15 mm) or impacted stones
MANAGEMENT
Mechanical or electrohydraulic lithotripsy during ERCP
DETAILS
Fragmentation before extraction. May require multiple sessions. Temporary biliary stent placement if complete clearance is not achieved
Patients unfit for ERCP (elderly, comorbid)
MANAGEMENT
Percutaneous transhepatic cholangiography (PTC) with drainage, or long-term biliary stent
DETAILS
PTC is an alternative decompression route. Long-term stenting with periodic exchanges is a palliative option
Post-ERCP cholecystectomy
MANAGEMENT
Laparoscopic cholecystectomy within 2 to 4 weeks
DETAILS
Prevents recurrent stone migration. Delay beyond 6 weeks increases risk of recurrent biliary events
CLINICAL SCENARIO | MANAGEMENT | DETAILS |
|---|---|---|
Confirmed CBD stone, no cholangitis | ERCP with sphincterotomy and stone extraction | Performed electively. Followed by cholecystectomy within 2 to 4 weeks to prevent recurrence |
CBD stone with acute cholangitis | Urgent/emergent ERCP within 24 to 48 hours | IV fluid resuscitation, broad-spectrum antibiotics (piperacillin-tazobactam 3.375 g IV every 6 hours, or ciprofloxacin plus metronidazole), followed by ERCP for decompression. Cholecystectomy after recovery |
CBD stone with gallstone pancreatitis | Supportive care first, then early ERCP if cholangitis coexists or bilirubin is rising; otherwise cholecystectomy with IOC during same admission | Aggressive IV hydration (lactated Ringer at 1.5 mL/kg/hr initially), NPO, pain control. If cholangitis is present, ERCP within 24 hours. Cholecystectomy ideally before discharge to prevent recurrent episodes |
Stone found on intraoperative cholangiogram | Laparoscopic CBD exploration or post-operative ERCP | Surgeon may attempt transcystic stone retrieval or choledochotomy intraoperatively. If unsuccessful, post-operative ERCP with sphincterotomy |
Large stones (greater than 15 mm) or impacted stones | Mechanical or electrohydraulic lithotripsy during ERCP | Fragmentation before extraction. May require multiple sessions. Temporary biliary stent placement if complete clearance is not achieved |
Patients unfit for ERCP (elderly, comorbid) | Percutaneous transhepatic cholangiography (PTC) with drainage, or long-term biliary stent | PTC is an alternative decompression route. Long-term stenting with periodic exchanges is a palliative option |
Post-ERCP cholecystectomy | Laparoscopic cholecystectomy within 2 to 4 weeks | Prevents recurrent stone migration. Delay beyond 6 weeks increases risk of recurrent biliary events |
The cornerstone of treatment is ERCP with endoscopic sphincterotomy and stone extraction. During this procedure, a side-viewing endoscope is advanced into the duodenum, and the ampulla of Vater is cannulated. A sphincterotomy is performed to widen the biliary orifice, and stones are removed using a balloon catheter or retrieval basket. The success rate for stone clearance exceeds 90 percent.
For uncomplicated choledocholithiasis without signs of infection, ERCP is performed on a semi-elective basis. The patient should receive nothing by mouth for at least 6 to 8 hours before the procedure. Post-ERCP, the most feared complication is post-ERCP pancreatitis, which occurs in 3 to 7 percent of cases. Prophylactic rectal indomethacin (100 mg) is administered immediately before or after the procedure to reduce this risk. Temporary pancreatic duct stenting is another preventive measure in high-risk patients.
When cholangitis is present, the timeline compresses. The patient must receive hemodynamic stabilization with IV fluids and empiric broad-spectrum antibiotics targeting gram-negative enteric organisms and anaerobes. Antibiotic regimens include piperacillin-tazobactam 3.375 g IV every 6 hours or a combination of a fluoroquinolone (ciprofloxacin 400 mg IV every 12 hours) with metronidazole (500 mg IV every 8 hours). ERCP for biliary decompression should occur within 24 to 48 hours. In cases of septic (Reynolds pentad) cholangitis with hemodynamic instability, emergent decompression is required.
After successful stone clearance, elective laparoscopic cholecystectomy should be performed within 2 to 4 weeks. The gallbladder is the source of the stones in secondary choledocholithiasis, and leaving it in place results in a recurrence rate of up to 25 percent within 2 years. In patients with gallstone pancreatitis, cholecystectomy should ideally occur during the same hospitalization once the pancreatitis has resolved, to prevent readmission with recurrent events.
05Differential Diagnosis and Distractors
Acute cholangitis
WHY IT IS SIMILAR
Both present with jaundice, RUQ pain, and elevated cholestatic labs. Cholangitis is actually a complication of choledocholithiasis
KEY DISCRIMINATOR
Cholangitis adds high fever with rigors (Charcot triad). Choledocholithiasis alone does not cause fever or systemic toxicity. The presence of fever and leukocytosis shifts the diagnosis to cholangitis
Acute cholecystitis
WHY IT IS SIMILAR
RUQ pain, tenderness, and association with gallstones
KEY DISCRIMINATOR
Cholecystitis produces a positive Murphy sign, fever, and leukocytosis but typically no jaundice and no significant cholestatic lab abnormalities. Jaundice and elevated ALP/GGT point toward CBD obstruction, not gallbladder inflammation
Pancreatic head adenocarcinoma
WHY IT IS SIMILAR
Both cause obstructive jaundice with CBD dilation, elevated direct bilirubin, and cholestatic enzymes
KEY DISCRIMINATOR
Malignant obstruction is classically painless jaundice with progressive weight loss and a palpable, nontender gallbladder (positive Courvoisier sign). Choledocholithiasis causes colicky pain and a non-palpable gallbladder
Cholangiocarcinoma (Klatskin tumor)
WHY IT IS SIMILAR
Obstructive jaundice, cholestatic labs, biliary dilation
KEY DISCRIMINATOR
Cholangiocarcinoma produces painless, progressive jaundice and is often located at the hepatic duct bifurcation (hilar). Imaging shows a hilar mass or stricture rather than an intraluminal stone
Mirizzi syndrome
WHY IT IS SIMILAR
Jaundice with gallstone disease and CBD obstruction
KEY DISCRIMINATOR
In Mirizzi syndrome, a stone impacted in the cystic duct or gallbladder neck externally compresses the common hepatic duct. The CBD itself is stone-free. Cross-sectional imaging or MRCP reveals the extrinsic compression pattern
Primary sclerosing cholangitis (PSC)
WHY IT IS SIMILAR
Cholestatic labs, biliary strictures, recurrent episodes
KEY DISCRIMINATOR
PSC is strongly associated with ulcerative colitis, shows multifocal strictures and beading of intrahepatic and extrahepatic ducts on cholangiography, and has elevated p-ANCA. There is no single obstructing stone
Hepatitis (viral or alcoholic)
WHY IT IS SIMILAR
Jaundice and elevated bilirubin
KEY DISCRIMINATOR
Hepatitis causes a hepatocellular pattern with transaminases markedly elevated (often over 1000 for viral), while ALP/GGT are only mildly elevated. The pattern is the inverse of what is seen in biliary obstruction
DIFFERENTIAL | WHY IT IS SIMILAR | KEY DISCRIMINATOR |
|---|---|---|
Acute cholangitis | Both present with jaundice, RUQ pain, and elevated cholestatic labs. Cholangitis is actually a complication of choledocholithiasis | Cholangitis adds high fever with rigors (Charcot triad). Choledocholithiasis alone does not cause fever or systemic toxicity. The presence of fever and leukocytosis shifts the diagnosis to cholangitis |
Acute cholecystitis | RUQ pain, tenderness, and association with gallstones | Cholecystitis produces a positive Murphy sign, fever, and leukocytosis but typically no jaundice and no significant cholestatic lab abnormalities. Jaundice and elevated ALP/GGT point toward CBD obstruction, not gallbladder inflammation |
Pancreatic head adenocarcinoma | Both cause obstructive jaundice with CBD dilation, elevated direct bilirubin, and cholestatic enzymes | Malignant obstruction is classically painless jaundice with progressive weight loss and a palpable, nontender gallbladder (positive Courvoisier sign). Choledocholithiasis causes colicky pain and a non-palpable gallbladder |
Cholangiocarcinoma (Klatskin tumor) | Obstructive jaundice, cholestatic labs, biliary dilation | Cholangiocarcinoma produces painless, progressive jaundice and is often located at the hepatic duct bifurcation (hilar). Imaging shows a hilar mass or stricture rather than an intraluminal stone |
Mirizzi syndrome | Jaundice with gallstone disease and CBD obstruction | In Mirizzi syndrome, a stone impacted in the cystic duct or gallbladder neck externally compresses the common hepatic duct. The CBD itself is stone-free. Cross-sectional imaging or MRCP reveals the extrinsic compression pattern |
Primary sclerosing cholangitis (PSC) | Cholestatic labs, biliary strictures, recurrent episodes | PSC is strongly associated with ulcerative colitis, shows multifocal strictures and beading of intrahepatic and extrahepatic ducts on cholangiography, and has elevated p-ANCA. There is no single obstructing stone |
Hepatitis (viral or alcoholic) | Jaundice and elevated bilirubin | Hepatitis causes a hepatocellular pattern with transaminases markedly elevated (often over 1000 for viral), while ALP/GGT are only mildly elevated. The pattern is the inverse of what is seen in biliary obstruction |
06Traps and High-Yield Pearls
The most common way students lose points on choledocholithiasis questions is by confusing the diagnostic pathway with the therapeutic pathway. A vignette describing a patient with RUQ pain, jaundice, and mildly elevated ALP may tempt you to jump straight to ERCP, but ERCP is only the first-line step when the pretest probability is high (visible CBD stone on ultrasound, cholangitis, or bilirubin over 4 mg/dL with a dilated duct). For intermediate-probability patients, the correct next step is MRCP or EUS, not ERCP. Ordering ERCP too early exposes the patient to unnecessary procedural risk, and that is exactly the reasoning the question is testing.
Another common trap involves distinguishing choledocholithiasis from cholangitis. Both originate from CBD stones, but the addition of fever transforms the diagnosis into cholangitis and changes the management priority from elective workup to emergent decompression plus antibiotics. If the vignette includes fever and rigors alongside jaundice and RUQ pain, the answer is cholangitis, not uncomplicated choledocholithiasis.
Watch for Courvoisier sign as a discriminator. A palpable, nontender gallbladder in a jaundiced patient suggests malignant obstruction (pancreatic head cancer or cholangiocarcinoma), not stone disease. In choledocholithiasis, the gallbladder is chronically inflamed and fibrotic from prior stone disease, so it does not distend and is not palpable. This is a classic board differentiator.
Finally, do not forget the post-procedural step. After successful ERCP with stone clearance, the exam will frequently ask about the next step in management. The answer is cholecystectomy, not observation. Leaving the gallbladder in situ means the stone factory remains operational, and recurrence rates are unacceptably high. In the setting of gallstone pancreatitis, cholecystectomy should be done during the same admission, not scheduled as an outpatient procedure weeks later. This sequencing question is heavily tested.