In further subgroup analyses stratified by gender, age, and waist circumference (WC), we observed a significantly higher risk of NAFLD associated with the ALT/HDL-C ratio among individuals aged ≥45 years, males, and those who were abdominal obesity. This evidence concerns the gene GPT and metabolic dysfunction-associated steatotic liver disease.