Surfactant proteins (SPs) are important for normal lung function and innate immunity of the lungs and their genes have been identified with significant genetic variability. Changes in quantity or quality of SPs due to genetic mutations or natural genetic variability may alter their functions and contribute to the host susceptibility for particular diseases. Alternatively, SP single nucleotide polymorphisms (SNPs) can serve as markers to identify disease risk or response to therapies, as shown for other genes in a number of other studies. In the current study, we evaluated associations of SFTP SNPs with idiopathic pulmonary fibrosis (IPF) by studying novel computational models where the epistatic effects (dominant, additive, recessive) of SNP-SNP interactions could be evaluated, and then compared the results with a previously published hypersensitivity pneumonitis (HP) study where the same novel models were used. Mexican Hispanic patients (IPF=84 & HP=75) and 194 healthy control individuals were evaluated. The goal was to identify SP SNPs and SNP-SNP interactions that associate with IPF as well as SNPs and interactions that may be unique to each of these interstitial diseases or common between them. We observed: 1) in terms of IPF, i) three single SFTPA1 SNPs to associate with decreased IPF risk, ii) three SFTPA1 haplotypes to associate with increased IPF risk, and iii) a number of three-SNP interactions to associate with IPF susceptibility. 2) Comparison of IPF and HP, i) three SFTPA1 and one SFTPB SNP associated with decreased risk in IPF but increased risk in HP, and one SFTPA1 SNP associated with decreased risk in both IPF and HP, ii) a number of three-SNP interactions with the same or different effect pattern associated with IPF and/or HP susceptibility, iii) one of the three-SNP interactions that involved SNPs of SFTPA1, SFTPA2, and SFTPD, with the same effect pattern, was associated with a disease-specific outcome, a decreased and increased risk in HP and IPF, respectively. This is the first study that compares the SP gene variants in these two phenotypically similar diseases. Our findings indicate that SNPs of all SFTPs may play an important role in the genetic susceptibility to IPF and HP. Importantly, IPF and HP share some SP genetic variants, suggesting common pathophysiological mechanisms and pathways regarding surfactant biogenesis, but also some differences, highlighting the diverse underlying pathogenic mechanisms between an inflammatory-driven fibrosis (HP) and an epithelial-driven fibrosis (IPF). Alternatively, the significant SNPs identified here, along with SNPs of other genes, could serve as markers to distinguish these two devastating diseases.