Hepatocellular carcinoma (HCC) is associated with high mortality rate. This study investigated the status of lipid metabolism-related genes in HCC. Bulk transcriptomic and single-cell sequencing data for HCC were retrieved from public databases. The single-cell sequencing data was subjected to dimensionality reduction, which facilitated the annotation of distinct cell subpopulations and marker gene expression analysis within each subpopulation. Genes associated with lipid metabolism in liver cells were identified, and a machine-learning model was developed using the bulk transcriptomic data randomly partitioned into training and validation sets. The efficacy of the model was validated using these two sets. A multifactorial Cox analysis on the model genes combined with clinical features, led to the identification of age, HMGCS2, HNRNPU, and RAN as independent prognostic factors, which were included in the nomogram model construction and validation. A weighted gene co-expression analysis of all genes of the bulk transcriptome samples revealed the correlation between gene modules and risk score. Genes with cor > 0.4 in the highest-expressing module were selected for Gene Ontology and Kyoto Encyclopedia of Genes and Genomes functional enrichment analysis. Immune-related analysis was conducted based on seven algorithms for immune cell infiltration prediction. For the genes in the nomogram model, the expression in clinical pathological factors was also analyzed. The drug sensitivity analysis offered a reference for the selection of targeting drugs. This investigation provides novel insights and a theoretical basis for the prognosis, treatment, and pharmaceutical advancements for patients diagnosed with HCC.