ImportanceFamily caregiving after critical illness has been associated with several adverse health outcomes, including various aspects of mental health, but research focusing specifically on family members of stroke survivors is limited.ObjectivesTo examine the associations of stroke in a partner or parent with the risk of depression, substance use disorders, anxiety disorders, and self-harm or suicide.Design, Setting, and ParticipantsThis nationwide, population-based cohort study used data from Danish nationwide administrative and clinical registries (2004-2021). Participants included partners and adult children of survivors of stroke. Data analysis was performed from March to December 2023.ExposureHaving a partner or parent who survived stroke.Main Outcomes and MeasuresThe Aalen-Johansen estimator was used to compute propensity score–weighted 3-year absolute risks, risk differences, and risk ratios for depression, substance use disorders, anxiety disorders, and self-harm or suicide among partners or children of survivors of stroke compared with partners or children of survivors of myocardial infarction (MI) and matched individuals from the general population.ResultsThe study included a total of 1 923 732 individuals: 70 917 partners of stroke survivors (median [IQR] age, 68 [59-76] years; 46 369 women [65%]), 70 664 partners of MI survivors (median [IQR] age, 65 [55-73] years; 51 849 women [73%]), 354 570 partners of individuals from the general population (median [IQR] age, 68 [59-76] years; 231 833 women [65%]), 207 386 adult children of stroke survivors (median [IQR] age, 45 [36-52] years; 99 382 women [48%]), 183 309 adult children of MI survivors (median [IQR] age, 42 [33-49] years; 88 078 women [48%]), and 1 036 886 adult children of individuals from the general population (median [IQR] age, 45 [36-52] years; 496 875 women [48%]). Baseline characteristics were well balanced across cohorts after propensity score weighting. Among partners of stroke survivors, the 3-year absolute risk was 1.0% for depression, 0.7% for substance use disorders, 0.3% for anxiety disorders, and 0.04% for self-harm or suicide. Risk ratio point estimates for the assessed outcomes ranged from 1.14 to 1.42 compared with the general population and from 1.04 to 1.09 compared with partners of MI survivors. The elevated risk of depression in partners of stroke survivors was more pronounced after severe or moderate stroke than after mild stroke. Among adult children of stroke survivors, the 3-year absolute risk was 0.6% for depression, 0.6% for substance use disorders, 0.2% for anxiety disorders, and 0.05% for self-harm or suicide. Both absolute risks and risk ratios for adult children of stroke survivors were smaller than those reported in the partner analyses.Conclusions and RelevanceIn this cohort study of partners and adult children of stroke survivors, risks of several mental health conditions and self-harm or suicide were moderately higher compared with the general population and, to a lesser extent, partners and adult children of MI survivors. These findings highlight the potential consequences of stroke among family members, particularly partners, and its findings may possibly serve as a quantitative foundation for the development of future stroke rehabilitation services.