BackgroundScience, technology, engineering, and mathematics (STEM) professionals are regarded as the highly skilled labor force that fosters economic productivity, enterprise innovation, and international competitiveness of a country. This study aims to understand the genetic predisposition to STEM occupations and investigate its associations with regional economic performance. We conducted a genome-wide association study on the occupational choice of STEM jobs based on a sample of 178,976 participants from the UK Biobank database.ResultsWe identified two genetic loci significantly associated with participants’ STEM job choices: rs10048736 on chromosome 2 and rs12903858 on chromosome 15. The SNP heritability of STEM occupations was estimated to be 4.2%. We also found phenotypic and genetic evidence of assortative mating in STEM occupations. At the local authority level, we found that the average polygenic score of STEM is significantly and robustly associated with several metrics of regional economic performance.ConclusionsThe current study expands our knowledge of the genetic basis of occupational choice and potential regional disparities in socioeconomic developments.Supplementary InformationThe online version contains supplementary material available at 10.1186/s40246-023-00488-2.