Sepsis is a major health problem with an increasing number of incidences. Infection will trigger a more complex, varied, and prolonged host response, where pro-inflammatory and anti-inflammatory mechanisms contribute to clearance of infection and tissue recovery, but may also lead to organ dysfunction and secondary infection. Various recent studies have shown the relationship between vitamin D and sepsis. Vitamin D acts as a stimulator of antimicrobial peptide production and prevents excessive inflammation. Therefore, vitamin D insufficiency and deficiency are associated with the risk of sepsis. This cross-sectional study involved 29 subjects with sepsis and 23 subjects with septic shock. Serum vitamin D levels were measured using the ELISA (enzyme-linked immunosorbent assay) method with results in ng/ml. Vitamin D levels were found to be lower in sepsis than in septic shock (p=0.119) but not statistically significant. Vitamin D levels were also lower in the elderly (> 60 years) compared to < 60 years subjects, but not statistically significant (p=0.837). Furthermore, vitamin D levels were significantly lower in female patients than male patients (p=0.01). In addition, vitamin D levels were significantly lower in patients with comorbidities in both males and females than in patients without comorbidities. Vitamin D levels are not related to the severity of sepsis but are influenced by age, sex, and comorbidity factors.