Aims: The investigators assessed temporal trends in incidence and prevalence of heart failure and its variation over time, by age, sex, region, and socioeconomic status in a large general population cohort from the UK, between 2002 and 2014. Methods: Investigators evaluated primary and secondary electronic health records of 4 million individuals from the Clinical Practice Research Datalink (CPRD), a cohort that is representative of the UK population in terms of age and sex. Results: A total of 4,045,144 patients contributed data between Jan 1, 2002, and Dec 31, 2014. From 2002 to 2014, mean age at diagnosis increased from 76.5 (12.0) to 77.0 (12.9) years. During this period, heart failure incidence (standardized by age and sex) decreased, similarly for men and women, by 7%; however, the estimated absolute number of individuals with newly diagnosed heart failure in the UK increased by 12%, mostly due to an increase in population size and age. The estimated absolute number of prevalent heart failure cases in the UK increased even more, by 23%. Socioeconomically deprived individuals were more likely to develop heart failure and at an earlier age, than were affluent individuals. Conclusion: Despite the decline in standardized HF incidence, the absolute number of incident and prevalent cases of heart failure increased largely due to older age and increase in comorbidities of the patients with heart failure. Disparities in heart failure incidence by sex, socioeconomic status, and region point to potential opportunities for more targeted and equitable prevention strategies.