Postoperative air leakage is the most common complication in surgery for malignant lung tumors, leading to extended hospital stays and substantial medical expenses. This study aimed to identify the incidence and characteristics of intraoperative and postoperative air leaks in both robotic-assisted thoracic surgery (RATS) and video-assisted thoracic surgery (VATS), as well as the causes of persistent air leakage following RATS. We conducted a retrospective analysis of patients who underwent lung resection for malignant lung tumors at our institution from October 2018 to August 2022. We compared the incidence rates of intraoperative air leak, postoperative air leak, and persistent air leak between patients who underwent RATS and those who underwent VATS. Background factors were adjusted using propensity score matching. A subanalysis was performed to compare unexpected air leaks, defined as air leaks not observed intraoperatively but confirmed postoperatively. The study included 295 cases of RATS and 227 cases of VATS. In both the overall population and the matched group (187 cases each for RATS and VATS), RATS demonstrated a significantly higher incidence of persistent air leaks compared to VATS (11% vs 3%, p < 0.01; 9% vs 3%, p = 0.02, respectively). RATS also had a significantly higher incidence of unexpected air leaks compared with VATS (29% vs 18%, p = 0.05). Although there was no statistically significant difference in hospital stays, RATS showed a higher incidence of postoperative persistent air leaks and unexpected postoperative air leaks than VATS.