Supplementing with vitamin D can improve sleep but only if you are vitamin D deficient. A meta-analysis from 2018 analyzing the "association between vitamin d deficiency and sleep disorders" concluded that people who have low levels of vitamin D are more likely to suffer from sleep disorders.