Abstract Objectives Combining radiotherapy with immune checkpoint inhibitor (ICI) treatment has emerged as an important therapeutic regimen. However, this combined treatment may increase the risk of pneumonitis. The aim of this study is to analyze the incidence and risk factors for pneumonitis in non-small cell lung cancer (NSCLC) patients receiving combined thoracic radiotherapy and ICI (RT + ICI) treatment in the real-world clinical setting, offering a reference and guidance for clinical physicians. Methods This study identified 447 patients with pathologically confirmed NSCLC at West China Hospital of Sichuan University from 2016 to 2021. Clinical characteristics, treatment regimens, immune-related adverse events (irAEs), and hematological data were collected and analyzed. Results Patients receiving combined RT + ICI treatment had a higher risk of developing pneumonitis than those receiving ICI treatment alone (26.9 vs. 6.7 %, p<0.001). The multivariate logistic analysis identified the following independent risk factors for pneumonitis in patients undergoing combined RT + ICI treatment: history of lung disease (p=0.032), first-line ICI treatment (p=0.001), anti-PD-L1 instead of anti-PD-1 treatment (p=0.035), and the development of immunotherapy-related thyroid dysfunction (p=0.019). The independent risk factors were incorporated into a nomogram to predict the incidence of pneumonitis. The area under the receiver operating characteristic curve is 0.727, suggesting an acceptable predictive efficacy. Conclusions Compared to ICI monotherapy, NSCLC patients receiving the combination of thoracic radiotherapy and ICI treatment are at higher risk of developing pneumonitis. The nomogram holds promise for facilitating the risk assessment and early identification of pneumonitis in NSCLC patients receiving combined RT + ICI treatment.