This study identified two biomarkers, CD28 and PF4, as predictors of prognosis in IPF through bioinformatics analysis and constructed a prognostic model. This evidence concerns the gene CD28 and idiopathic pulmonary fibrosis.