Hypothyroidism is a prevalent endocrine disorder and is associated with a variety of metabolic disturbances. This study aimed to investigate the polygenic variants associated with hypothyroidism risk and the interaction of polygenic risk scores (PRS) with dietary patterns in influencing disease risk in 56,664 participants aged >40 in a hospital-based cohort. The participants were classified as having hypothyroidism (n = 870) diagnosed by a physician and no hypothyroidism (n = 55,794). Genetic variants associated with hypothyroidism were identified using a genome-wide association study (GWAS). Genetic variants interacting with each other were selected using a generalized multifactor dimensionality reduction analysis, and the PRS generated was evaluated for interaction with lifestyle parameters. Coffee, alcohol, meat intake, and a Korean balanced diet were inversely associated with hypothyroidism risk, as were selenium, copper, and manganese intakes. White blood cell (WBC) counts and serum alkaline phosphatase and triglyceride concentrations were positively associated with hypothyroidism risk, as were osteoporosis and thyroid cancer. The GMDR analysis generated a three-single nucleotide polymorphism (SNP) model comprising dual oxidase-1 (DUOX1)_rs1648314; thyroid-stimulating hormone receptor (TSHR)_rs75664963; and major histocompatibility complex, class-II, DQ Alpha-1 (HLA-DQA1)_rs17426593. The PRS derived from the three- and seven-SNP models were associated with a 2.11- and 2.32-fold increase in hypothyroidism risk, respectively. Furthermore, the PRS from the three-SNP model showed interactions with WBC counts, wherein the positive association with hypothyroidism risk was more pronounced in participants with low WBC counts than those with high WBC counts (≥4 × 109 /L). Dietary patterns, such as the plant-based diet (PBD) and the Western-style diet (WSD), along with smoking status, exhibited interactions with the PRS, influencing hypothyroidism risk. In participants with a high PRS, those in the high-PBD, low-WSD, and smoker groups had a higher proportion of hypothyroidism than those in the low-PBD, high-WSD, and non-smoker groups. In conclusion, genetic variants related to immunity and thyroid hormone secretion were linked to hypothyroidism risk, and their PRS interacted with PBD and WSD intake and smoking status. These results contribute to a better understanding of hypothyroidism and its prevention strategies for precision medicine intervention.