The prevalence of type 2 diabetes mellitus (T2DM) complicated with osteoporosis (OP) is increasing yearly. Early prevention, detection and treatment of OP are important in postmenopausal patients with T2DM. This study aimed to explore the correlation between insulin resistance and bone mineral density (BMD), and OP in postmenopausal patients with T2DM. In this study, postmenopausal patients with T2DM who visited our hospital from January 2021 to March 2022 were divided into the OP group (n = 91) and non-OP group (n = 119) according to whether they were complicated with OP or not. The general data of patients, BMD, blood routine, glucose metabolism, lipid metabolism, liver and kidney function indexes were collected, and the homeostatic model assessment for IR (HOMA-IR), the triglyceride-glucose (TyG) index and the metabolic score for IR (METS-IR) were calculated. A weighted multivariate linear regression model assessed the correlation between insulin resistance (IR) related indexes and lumbar spine, femoral neck, and hip BMD. A weighted logistic regression model assessed the odds ratios (ORs) and 95% confidence intervals (95% CIs) for the association between the IR-related indexes and OP risk. The nonlinear relationship was also evaluated by smooth curve fitting (SCF) and a weighted generalized additive model (GAM). Moreover, the Receiver-operating characteristics (ROC) curve was used to analyze the predictive efficiency of METS-IR in postmenopausal patients with T2DM with OP. HOMA-IR, TyG, and METS-IR in the OP group were lower than those in the non-OP group (all P < 0.05). Weighted multiple linear regression after adjusting covariates showed that METS-IR was positively correlated with the lumbar spine, femoral neck, and hip BMD (βMETS-IR = 0.006,0.005,0.005, all P < 0.001). The results of weighted Logistic regression and GAM showed that when METS-IR < 44.5, each unit of increased METS-IR value was associated with a decreased OP risk of 12% (P = 0.002). When METS-IR ≥ 44.5, there was no significant correlation between METS-IR and the risk of OP (OR = 1.00, P = 0.934). Similar trends were not observed in HOMA-IR and TyG. The ROC suggested helpful discriminative power of the METS-IR index for T2DM. We confirmed that METS-IR, as a novel alternative marker of IR, had a positive association with BMD in postmenopausal patients with T2DM, and METS-IR was a protective factor for OP in a specific range.