In this study, we clarified that ERLIN2 and CDK5RAP3 were ERS-related genes with important prognostic and immunological values in PCa by comprehensive bioinformatics analysis and simple basic experiment, and established the clinic-pathologically relevant prognostic nomogram, as well as the risk prognostic model Riskscore = (− 0.1918) * ERLIN2 + (0.5254) * CDK5RAP3. Here, CDK5RAP3 is linked to posterior cortical atrophy.