Background: To those patients with advanced lung cancer, the ultimate objective is to improve the quality of life, and lung function is an important factor affecting quality of life. We detect lung function of patients with lung cancer and study the correlation between lung function and the patients' survival time, to provide reference for evaluation of disease progression and prognosis. Methods: Lung function was detected on 59 cases of lung cancer and 63 normal controls. The relationship between lung function indexes and survival time was analyzed. Results: There was significant difference in ventilation function and diffusing capacity between lung cancer group and control group. Vital capacity (VC), Forced expiratory volume in one second (FEV1), Forced vital capacity (FVC), peak expiratory flow (PEF), peak expiratory flow% (PEF%), Maximal ventilatory volume (MVV) were positively correlated to survival time in patients with advanced lung cancer (r = 0.28522064, 0.28053851, 0.28289252, 0.26908133, 0.26335034, 0.28409036, P < 0.05), residual volume/total lung capacity was negatively correlated to survival time (r = −0.30760097, P < 0.05). Conclusions: The lung function decrease in the patients with lung cancer. Vital capacity (VC), Forced expiratory volume in one second (FEV1), Forced vital capacity (FVC), peak expiratory flow (PEF), peak expiratory flow% (PEF%), Maximal ventilatory volume (MVV), and residual volume/total lung capacity are correlated to survival time in patients with advanced lung cancer. The lung function indexes are important marker of prognosis of patients with lung cancer.