Immune thrombocytopenia (ITP), an acquired autoimmune disease, is characterized by immune-mediated platelet destruction. A biomarker is a biological entity that contributes to disease pathogenesis and reflects disease activity. Metabolic alterations are reported to be associated with the occurrence of various diseases. As metabolic biomarkers for ITP have not been identified. This study aimed to identify metabolism-related differentially expressed genes as potential biomarkers for pathogenesis of ITP using bioinformatic analyses.The microarray expression data of the peripheral blood mononuclear cells were downloaded from the Gene Expression Omnibus database (GSE112278 download link: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE112278). Key module genes were intersected with metabolism-related genes to obtain the metabolism-related key candidate genes. The hub genes were screened based on the degree function in the coytoscape sofware. The key ITP-related genes were subjected to functional enrichment analysis. Immune infiltration analysis was performed using a single-sample gene set enrichment analysis algorithm to evaluate the differential infiltration levels of immune cell types between ITP patient and control. Molecular subtypes were identified based on the expression of hub genes. The expression of hub genes in the ITP patients was validated using quantitative real-time polymerase chain reaction analysis. This study identified five hub genes (ADH4, CYP7A1, CYP1A2, CYP8B1, and NR1H4), which were be associated with the pathogenesis of ITP, and two molecular subtypes of ITP. Among these hub genes, CYP7A1 and CYP8B1 involved in cholesterol metabolism,were further verified in clinical samples.