The AST/ALT ratio provided an AUC value of 0.81 (95% CI 0.77–0.84) for osteopenia or osteoporosis in patients with T2DM. Here, GPT is linked to osteoporosis.