The association between single-nucleotide polymorphisms (SNPs) in the vitamin D metabolic pathway and lung function is unknown. We examined the association between five SNPs on DHCR7, GC, CYP2R1, and CYP24A1 along with serum 25-hydroxyvitamin D (25(OH)D) levels and lung function in older Korean men (n = 758) and women (n = 837). Lung function was determined by forced vital capacity (FVC) and forced expiratory volume in 1 s (FEV1) from the data in the Korea Nutrition and Health Examination Survey 2011–2012. Genetic risk score (GRS) was calculated by the number of 25(OH)D-decreasing alleles of the five SNPs. Our results showed that increases in GRS were associated with reduced 25(OH)D levels (p < 0.05 for both sexes). In the entire population, FVC and FEV1 were associated with both GRS and 25(OH)D levels. In women, FVC and FEV1 were negatively associated with GRS (β-coefficient (95% CI): −0.022 (−0.039, −0.005) and −0.020 (−0.035, −0.005), respectively; both p < 0.05), but not with 25(OH)D. However, in men, FVC and FEV1 were positively associated with 25(OH)D (β-coefficient (95% CI): 0.008 (0.001, 0.016) and 0.008 (0.002, 0.015), respectively; both p < 0.05), but not with GRS. In conclusion, lung function was associated with genetic variation in Korean women and with 25(OH)D in Korean men.