Patients with advanced cancer sometimes travel to locations that have the treatment that they need. We explored the prognostic factors of survival in patients with advanced lung cancer who travel long distances in Taiwan. We obtained data from the National Taiwan University Hospital (NTUH) Integrated Medical Database. Patients who received a diagnosis of stage IV lung cancer from 2010 to 2019 and were treated in NTUH and its Hsinchu and Yunlin branches were enrolled. Factors associated with survival were analyzed using a Cox hazard regression model. In total, 6178 patients with stage IV lung cancer were enrolled. Young age, female sex, smaller primary tumor size, better performance, and non-squamous cell non-small cell histology were independently associated with longer survival. Treatment in medical centers and long travel distances (>50km) were associated with longer survival in the univariate analysis but not in the multivariate analysis (hazard ratio [HR]: 1.04, p=0.361; HR: 0.99, p=0.775, respectively). Participation in clinical trials was associated with longer survival in the univariate (HR: 0.53, p<0.001) and multivariate analyses (HR: 0.62, p<0.001). For the 1144 patients in the Hsinchu area, enrolment in clinical trials was an independent prognostic factor (HR: 0.72, p=0.040), whereas treatment in medical centers was not (HR: 0.95, p=0.635). Long travel distances and treatment in medical centers were not independently associated with survival for patients with advanced lung cancer. Enrolment in clinical trials was an independent prognostic factor.