Background Accumulating evidence indicates that elevated polyamine levels are closely linked to tumor initiation and progression. However, the precise role of polyamine metabolism in hepatocellular carcinoma (HCC) remains poorly understood.Methods We conducted differential expression analysis on bulk RNA sequencing data from The Cancer Genome Atlas (TCGA) and Gene Expression Omnibus (GEO) to identify 65 polyamine metabolism-related genes. By employing unsupervised consensus clustering, AddModuleScore, single-sample gene set enrichment analysis (ssGSEA), and weighted gene co-expression network analysis (WGCNA), we identified polyamine metabolism-related genes at both the bulk RNA-seq and single-cell RNA-seq (scRNA-seq) levels. Utilizing 101 machine learning algorithms, we constructed a polyamine metabolism-related signature (PMRS) and validated its predictive power across training, testing, and external validation cohorts. Additionally, we developed a prognostic nomogram model by integrating PMRS with clinical variables. To explore immune treatment sensitivity, we assessed tumor mutation burden (TMB), tumor immune dysfunction and exclusion (TIDE) score, mutation frequency, and immune checkpoint genes expression. Immune cell infiltration was analyzed using the CIBERSORT algorithm. Finally, RT-qPCR experiments were conducted to validate the expression of key genes.Results Using 101 machine learning algorithms, we established a polyamine metabolism-related signature comprising 9 genes, which exhibited strong prognostic value for HCC patients. Further analysis revealed significant differences in clinical features, biological functions, mutation profiles, and immune cell infiltration between high-risk and low-risk groups. Notably, TIDE analysis and immune phenotype scoring (IPS) demonstrated distinct immune treatment sensitivities between the two risk groups. RT-qPCR validation confirmed that these 9 genes were highly expressed in normal cells but significantly downregulated in tumor cells.Conclusions Our study developed a polyamine metabolism-based prognostic risk signature for HCC, which may provide valuable insights for personalized treatment strategies in HCC patients.