Short and long sleep duration are associated with increased risk of type 2 diabetes. We aimed to investigate whether genetic variants for fasting glucose or type 2 diabetes associate with short or long sleep duration and whether sleep duration modifies the association of genetic variants with these traits.