BackgroundElectronic health records (EHR) provide rich, diverse, longitudinal real-world data, offering valuable opportunities to study antecedent risk factors for cognitive decline. However, the extent to which such records have been utilized to understand the risk factors of cognitive decline remains unclear.MethodsWe conducted a systematic review following PRISMA guidelines. We retrieved relevant articles published between January 1, 2010, and April 30, 2023, from PubMed, Web of Science, and CINAHL. Inclusion criteria were studies utilizing EHR to study risk factors for cognitive decline, including subjective cognitive decline, mild cognitive impairment, and dementia. Each article was screened by at least two reviewers. Data elements were manually extracted based on a predefined schema. The studied risk factors were reported.ResultsOf 1,593 articles identified, 80 research articles were selected. Seventy (87.5%) were retrospective cohort studies, 53 (66.3%) used datasets with greater than 10,000 patients, and 69 (86.3%) used EHR datasets from the United States or United Kingdom. Furthermore, 39 (48.8%) targeted medical conditions, 23 (28.8%) related to medical interventions, and 14 (17.5%) related to lifestyle, socioeconomic status, and environmental factors. The majority of studied medical conditions were associated with an elevated risk of cognitive decline, whereas medical interventions addressing these conditions often reduced the risk.ConclusionEHRs have significantly advanced our understanding of medical conditions, interventions, lifestyle, socioeconomic status, and environmental factors related to the risk of cognitive decline.HighlightsElectronic health records are increasingly analyzed to discern dementia risk factors.Eighty articles have been published and most of them were retrospective cohort studies.Most risk factors addressed were related to medical conditions and interventions.A few articles studied lifestyle, socioeconomic status, and environmental factors.