Retrospective analysis to identify the risk factors for air embolism following computed tomography (CT)-guided percutaneous transthoracic needle biopsy (TNB). A retrospective analysis of patients who underwent CT-TNB at The First Affiliated Hospital of Zhengzhou University and Xuzhou Cancer Hospital from January 2017 to December 2021 was performed. A total of 21 factors relevant to air embolisms were collected. Risk factors associated with air embolisms were determined by the least absolute shrinkage and selection operator (LASSO). The receiver-operator characteristic (ROC) was used to assess the ability of these factors to identify air embolisms. Of these 32,748 patients, 28 experienced air embolisms (19 at The First Affiliated Hospital of Zhengzhou University (incidence, 1.46%) and nine at Xuzhou Cancer Hospital (incidence, 0.69%); total incidence, 2.16%). Only seven patients exhibited symptoms (symptom rate, 25.00%). A total of 21 patients were asymptomatic at the time of swept-source CT. No deaths occurred. We found through univariate and multivariate analysis that eight out of these 21 factors are associated with the occurrence of air embolism. The area under the ROC curve was 0.721, indicating good predictive power (P<0.05). Cough during the procedure, hemoptysis during the procedure, the distance between the mass and the pulmonary vein, the presence of a cavity in the lesion, lesion location, number of samples, abnormalities in the patient's coagulation mechanism, and the puncture position may be the risk factors for air embolism in CT-TNB.