Objective To compare the bone mineral density between human immunodeficiency virus (HIV)-infected individuals/acquired immunodeficiency syndrome (AIDS) patients before antiretroviral therapy (ART) initiation and healthy people, and to conduct subgroup analyses based on age and menopausal status. Methods A retrospective case-control study was conducted. Clinical data of 99 HIV-infected individuals/AIDS patients (HIV/AIDS group) before ART initiation and 99 healthy physical examinees (healthy control group) were collected from Liuzhou People's Hospital between July 2021 and June 2023. Lumbar spine bone mineral density (L1-L4 T-scores and total T-score) was measured by dual-energy X-ray absorptiometry. Both groups were sub-divided into the young subgroup (premenopausal women and men aged <50 years) or the elderly subgroup (postmenopausal women and men aged ≥50 years). Bone mineral density was compared between groups and subgroups. Results In the overall population, the L2, L3, L4 T-scores, and total in the HIV/AIDS group were lower than those in the healthy control group (all P<0.05), while no statistically significant difference in L1 T-score was observed between the two groups (P>0.05). Subgroup analysis results showed that there was no statistically significant difference in L1, L2, L3, L4, or total T-score between the young HIV/AIDS subgroup and the young healthy control subgroup among premenopausal women and men aged <50 years (all P>0.05); among postmenopausal women and men aged ≥50 years, the elderly HIV/AIDS subgroup had lower L1, L2, L3, L4, and total T-scores, higher detection rate of osteoporosis, and worse bone mineral density grading than the elderly healthy control subgroup (all P<0.05). Conclusion Abnormal bone metabolism already exists in HIV-infected individuals/AIDS patients prior to ART initiation, among them, postmenopausal women and men aged ≥50 years are high-risk populations for decreased bone mineral density and osteoporosis. Therefore, routine bone mineral density detection should be performed clinically for HIV-infected individuals/AIDS patients even before ART initiation to guide the optimization of ART regimens and bone health intervention.