Prior studies have suggested that smoking, alcohol consumption, and living situation may be associated with poststroke mortality, but evidence on how these associations vary by age, sex, and stroke type remains limited. We examined associations of alcohol consumption, smoking, and living situation with 30-day case-fatality in hospitalised patients with ischaemic stroke or intracerebral haemorrhage, stratified by age, sex, and stroke type. This nationwide cohort study included stroke patients admitted between 2015 and 2023 from the Danish Stroke Registry. Thirty-day case-fatality was analysed using Kaplan–Meier and Cox regression stratified by stroke type, age, and sex, with multiple imputation for missing data. Among 94,668 patients (median age 73 years; IQR 64–81 years; 56