Objectives: The aim of this study was to investigate vitamin D deficiency, the relationship between vitamin D and cardiac function in inpatients with heart failure. Methods: The study was designed as a cross - sectional investigation, in which 130 patients (65 patients with heart failure, 65 patients without heart failure) were admitted to the Department of Cardiology, Cho Ray Hospital from July 2016 to April 2017.