Cancer associations for coding variants in ATM and CHEK2 were evaluated using whole-exome sequence data from UK Biobank linked to cancer registration data (348 488 participants), and analysed both as a retrospective case-control and a prospective cohort study. Here, CHEK2 is linked to cancer.