AIMS: Several countries struggle with general practitioner (GP) burnout, recruitment and retention. The reasons are not well understood. The aim of this study was to predict the tenure of young GPs in the GP scheme and detect important predictors for remaining or leaving. METHODS: Using data from Norwegian registries, LASSO Cox regression models were applied to identify variables, including the personal attributes, appointment details, patient profiles and workload indicators of GPs that predicted GP tenure among GPs under 40 years who joined the Norwegian GP scheme between 1 January 2010 and 31 December 2018. GPs were followed until leaving the scheme or until 31 December 2020. RESULTS: We followed a total of 2038 GPs aged under 40 years old at recruitment. Of these, 499 (24.5%) resigned by 31 December 2020. The most important predictors for remaining in the GP scheme throughout the follow-up period were (a) having a high activity-based income and (b) being a specialist in general medicine. The most important predictors for leaving the GP scheme were (a) working more than 50 days per year in the emergency room and (b) working in less central areas.