Immunogenic cell death (ICD) is a novel cell death mechanism that activates and regulates the immune system against cancer. However, its prognostic value in liver cancer remains unclear. Here, several algorithms such as correlation analysis, Cox regression analysis, and Lasso regression analysis were carried out to evaluate the prognostic value of ICD-related genes in patients with liver cancer. Three ICD-related prognostic genes, the prion protein gene (PRNP), dynamin 1-like gene (DNM1L), and caspase-8 (CASP8), were identified and used to construct a risk signature. Patients with liver cancer were categorized into high- and low-risk groups using the ICD-related signature. Subsequently, a multivariate regression analysis revealed that the signature was an independent risk factor in liver cancer [hazard ratio (HR) = 6.839; 95% confidence interval (CI) = 1.625–78.785]. Patient survival was also predicted using the risk model, with area under the curve values of 0.75, 0.70, and 0.69 for 1-, 3-, and 5-year survival, respectively. Finally, a prognostic nomogram containing the clinical characteristics and risk scores of patients was constructed. The constructed ICD-related signature could serve as a prognostic and immunotherapeutic biomarker in liver cancer.