Objective: To compare the prevalence of vitamin D deficiency and fracture history in nursing home residents and community-dwelling elderly subjects and to explore the association of vitamin D levels with various characteristics. Materials and methods: Sixty-six nursing home residents and 139 community-dwelling elderly subjects participated. Marital status, medical history, medication including vitamin D supplements, smoking, past fractures were assessed. Weight and height were measured and body mass index calculated. Serum 25-hydroxyvitamin D (25-OHD), PTH, Ca, phosphate, creatinine and eGFR were determined. Results: In the nursing home residents 25-OHD was lower