Take magnesium 1 to 2 hours before bedtime to relax and feel drowsy if you're using it to promote sleep. Finally, magnesium supplements work best when taken everyday at the same time of day to maintain stable magnesium levels.