Here the authors identify the gene programs encoding the morphological and functional characteristics of cardiomyocytes during the transition from early hypertrophy to heart failure via single-cell transcriptomics, establishing a key role for p53 signalling. This evidence concerns the gene TP53 and heart failure.