BACKGROUND: Idiopathic pulmonary fibrosis (IPF) is a degenerative respiratory condition characterized by significant mortality rates and a scarcity of available treatment alternatives. Cuproptosis, a novel form of copper-induced cell death, has garnered attention for its potential implications. The study aimed to explore the diagnostic value of cuproptosis-related hub genes in patients with IPF. Additionally, multiple bioinformatics analyses were employed to identify immune-related biomarkers associated with the diagnosis of IPF, offering valuable insights for future treatment strategies. METHODS: Four microarray datasets were selected from the Gene Expression Omnibus (GEO) collection for screening. Differentially expressed genes (DEGs) associated with IPF were analyzed. Additionally, weighted gene coexpression network analysis (WGCNA) was employed to identify the DEGs most associated with IPF. Ultimately, we analyzed five cuproptosis-related hub genes and assessed their diagnostic value for IPF in both the training and validation sets. Additionally, four immune-related hub genes were screened using a protein-protein interaction (PPI) network and evaluated through the receiver operating characteristic (ROC) curve. Lastly, single-cell RNA-seq was employed to further investigate differential gene distribution. RESULTS: We identified a total of 92 DEGs. Bioinformatics analysis highlighted five cuproptosis-related genes as candidate biomarkers, including three upregulated genes ( CONCLUSION: The research methodically depicted the intricate interplay among five cuproptosis-related genes, four immune-related hub genes, and IPF, offering new ideas for diagnosing and treating patients with IPF.