To analyze graft survival and the outcome of the corneal endothelium after corneal transplantation in a single model to predict the long-term prognosis of these grafts. Cohort study. Data were recorded prospectively and then analyzed retrospectively. One thousand one hundred forty-four consecutive eyes of 1144 patients who underwent corneal transplantation between 1992 and 2006. Penetrating keratoplasty and deep anterior lamellar keratoplasty. Slit-lamp examination and wide-field specular microscopy results. A joint analysis of endothelial cell loss and time to graft failure was undertaken. From midterm simultaneous analysis of graft survival and endothelial cell loss, long-term graft survival was predicted. The observed 5- and 10-year graft survival estimates were, respectively, 74% and 64%. The average endothelial cell density (cell loss) was 2270 cells/mm(2) before surgery, 1058 cells/mm(2) (-53%) during the sixth postoperative year, and 865 cells/mm(2) (-61%) during the 10th postoperative year. Overall, the predicted graft survival estimate was 27% at 20 years and 2% at 30 years. Both observed and predicted graft survival were higher in patients who had undergone lamellar keratoplasty than in patients who had undergone penetrating keratoplasty and had normal recipient endothelium and higher in patients who had undergone penetrating keratoplasty and had normal recipient endothelium than in patients who had undergone penetrating keratoplasty and had impaired recipient endothelium. For corneal diseases involving the endothelium, penetrating keratoplasty seems to be a good therapeutic approach in elderly patients because the graft life-span may be similar to the patient life expectancy. Conversely, for younger patients, penetrating keratoplasty is only a midterm therapeutic approach. For corneal diseases not involving the endothelium, deep anterior lamellar keratoplasty seems to be a promising therapeutic approach with higher long-term expected survival.