Biliary tract cancer is an uncommon malignancy with a poor survival rate. We evaluated p16 gene alteration as a prognostic marker for this disease. We studied p16 gene alterations by sequencing, methylation, and loss of heterozygosity of chromosome 9p in 118 biliary tract carcinomas, including 68 gallbladder cancers, 33 extrahepatic bile duct cancers, and 17 ampullary cancers. Survival was evaluated in 57 patients with gallbladder carcinomas, 27 with bile duct carcinomas, and 16 with ampullary carcinomas with and without somatic p16 alterations detected by two different methods. p16 gene alterations including silent mutations were present in 61.8% gallbladder cancers, 54.5% bile duct cancers, and 70.6% ampullary cancers. p16 gene nonsilent mutations, p16 methylation, and loss of chromosome 9p21-22 that targets p14, p15, and p16 genes were present in 13 of 53 (24.5%), 8 of 54 (14.8%), and 32 of 44 (72.7%) gallbladder tumors; 5 of 25 (20.0%), 5 of 31 (16.1%), and 12 of 21 (57.1%) bile duct tumors; and 3 of 13 (23.1%), 6 of 15 (40.0%), and 8 of 16 (50.0%) ampullary tumors, respectively. The mean survival of patients with gallbladder cancers without p16 alterations was 21.5 +/- 14.8 months compared with 12.1 +/- 11.4 months for patients with p16 alterations (P = 0.02). Alteration of p16 gene alone or in combination with alterations of other tumor suppressor genes on chromosome 9p is a prognostic indicator in gallbladder carcinoma, with more favorable survival rates associated with carcinomas lacking p16 gene alterations.