a meta analysis of some trials suggests that magnesium supplementation can improve some sleep metrics including scores on the Pittsburgh Sleep Quality Index and also can improve sleep efficiency and duration yet the results across different studies are very very mixed um there's quite a few studies out there showing that magnesium supplementation has has no effect on sleep