Background: Lung cancer (LC) is the first and most lethal cancer in the world; identifying new methods to treat it, such as immune checkpoint inhibitors (ICIs), is needed. ICIs treatment is very effective, but it comes bundled with a series of immune-related adverse events (irAEs). Restricted mean survival time (RMST) is an alternative tool for assessing the patients’ survival when the proportional hazard assumption (PH) fails. Methods: We included in this analytical cross-sectional observational survey patients with metastatic non-small-cell lung cancer (NSCLC), treated for at least 6 months with ICIs in the first- and second-line settings. Using RMST, we estimated the overall survival (OS) of patients by dividing them into two groups. A multivariate Cox regression analysis was performed to determine the impact of the prognostic factors on OS. Results: Seventy-nine patients were included (68.4% men, mean age 63.8), and 34/79 (43%) presented irAEs. The OS RMST of the entire group was 30.91 months, with a survival median of 22 months. Thirty-two out of seventy-nine (40.5%) died before we ended our study. The OS RMST and death percentage favored the patients who presented irAEs (long-rank test,p= 0.036). The OS RMST of patients with irAEs was 35.7 months, with a number of deaths of 12/34 (35.29%), while the OS RMST of the patients without irAEs was 17 months, with a number of deaths of 20/45 (44.44%). The OS RMST by the line of treatment favored the first line of treatment. In this group, the presence of irAEs significantly impacted the survival of these patients (p= 0.0083). Moreover, patients that experienced low-grade irAEs had a better OS RMST. This result has to be cautiously regarded because of the small number of patients stratified according to the grades of irAEs. The prognostic factors for the survival were: the presence of irAEs, Eastern Cooperative Oncology Group (ECOG) performance status and the number of organs affected by metastasis. The risk of dying was 2.13 times higher for patients without irAEs than for the patients who presented irAEs, (CI) 95% of 1.03 to 4.39. Moreover, by increasing the ECOG performance status by one point, the risk of death increased by 2.28 times, with a CI 95% of 1.46 to 3.58, while the involvement of more metastatic organs was associated with a 1.60 times increase in the death risk, with a CI 95% of 1.09 to 2.36. Age and the type of tumor were not predictive for this analysis. Conclusions: The RMST is a new tool that helps researchers to better address the survival in studies with ICIs treatment where the PH fails, and the long-rank test is less efficient due to the existence of the long-term responses and delayed treatment effects. Patients with irAEs have a better prognosis than those without irAEs in the first-line settings. The ECOG performance status and the number of organs affected by metastasis must be considered when selecting patients for ICIs treatment.