BackgroundThis study aims to deeply explore the relationship between m6A methylation modification and peripheral immune cells in patients with advanced sepsis and mine potential epigenetic therapeutic targets by analyzing the differential expression patterns of m6A-related genes in healthy subjects and advanced sepsis patients.MethodsA single cell expression dataset of peripheral immune cells containing blood samples from 4 patients with advanced sepsis and 5 healthy subjects was obtained from the gene expression comprehensive database (GSE175453). Differential expression analysis and cluster analysis were performed on 21 m6A-related genes. The characteristic gene was identified based on random forest  algorithm, and the correlation between the characteristic gene METTL16 and 23 immune cells in patients with advanced sepsis was evaluated using single-sample gene set enrichment analysis.ResultsIGFBP1, IGFBP2, IGF2BP1, and WTAP were highly expressed in patients with advanced sepsis and m6A cluster B. IGFBP1, IGFBP2, and IGF2BP1 were positively correlated with Th17 helper T cells. The characteristic gene METTL16 exhibited a significant positive correlation with the proportion of various immune cells.ConclusionIGFBP1, IGFBP2, IGF2BP1, WTAP, and METTL16 may accelerate the development of advanced sepsis by regulating m6A methylation modification and promoting immune cell infiltration. The discovery of these characteristic genes related to advanced sepsis provides potential therapeutic targets for the diagnosis and treatment of sepsis.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12859-023-05379-w.