Objective: To investigate risk factors associated with hypovitaminosis D in adult patients infected with HIV/aids, at a referral hospital in Maceió, Brazil. Subjects and methods: This cross-sectional study involved 125 patients evaluated from April to September 2013 by means of interviews, review of medical records, physical examination, and laboratory tests. The data were analyzed using the SPSS ® software, version 17.0; the prevalence of hypovitaminosis D and mean levels of vitamin D were determined. The association between hypovitaminosis D and the independent variables was assessed using the Chi-square or the Fisher's exact tests; mean vitamin D concentrations were analyzed using Kolmogorov-Smirnov, Mann-Whitney, and Kruskal-Wallis tests. The level of significance was set at 5% across tests. Results: The prevalence of hypovitaminosis D was 24%, with a significant association with higher household income (p < 0.05). Higher vitamin D levels were associated with female gender (p < 0.001), no use of sunscreen (p < 0.05), and previous opportunistic infections (p < 0.01). Lower values were associated with the use of antiretroviral medication (p < 0.05), overweight and obesity (p < 0.01). Conclusion: Lower vitamin D concentrations were significantly associated with well-known risk factors for hypovitaminosis D: use of sunscreen, antiretroviral medication, overweight, and obesity. The prevalence of hypovitaminosis D in this study, considering values > 20 ng/mL or > 30 ng/mL as vitamin D sufficiency, was lower to that of previous studies with HIV-infected patients, a fact that might be related to the low latitude and high intensity of solar radiation of the location of the present study. Arch Endocrinol Metab. 2015;59(1):34-41