Higher fasting blood glucose levels in women with diabetes, anemia, and decreased renal function were associated with an increased risk of osteoporosis. Clinicians should be vigilant about glucose control in patients with diabetes to reduce the risk of fracture.