Autism spectrum disorder (ASD) represents a heterogeneous group of disorders, which presents a substantial challenge to diagnosis and treatment. Over the past decade, considerable progress has been made in the identification of genetic risk factors for ASD that define specific mechanisms and pathways underlying the associated behavioural deficits. In this Review, we discuss how some of the latest advances in the genetics of ASD have facilitated parsing of the phenotypic heterogeneity of this disorder. We argue that only through such advances will we begin to define endophenotypes that can benefit from targeted, hypothesis-driven treatments. We review the latest technologies used to identify and characterize the genetics underlying ASD and then consider three themes-single-gene disorders, the gender bias in ASD, and the genetics of neurological comorbidities-that highlight ways in which we can use genetics to define the many phenotypes within the autism spectrum. We also present current clinical guidelines for genetic testing in ASD and their implications for prognosis and treatment.