Osteoporosis and osteoporosis-related fractures exhibits a higher prevalence among females, particularly those aged 50 and above, implying a potential association between sex hormones and bone mineral density (BMD). However, the precise role of sex hormones in BMD remains elusive. Meanwhile, estradiol-to-testosterone ratio (E