ObjectiveThis study aimed to investigate the knowledge, attitude and practice (KAP) of poststroke depression (PSD) among patients with PSD and their family members.DesignWeb-based cross-sectional study.SettingThis study was conducted in Heilongjiang Province between October 2022 and April 2023.ParticipantsPatients with PSD and their family members.Primary and secondary outcome measuresKAP scores.MethodThe self-administered questionnaire comprised demographic characteristics, knowledge dimension, attitude dimension and practice dimensions.ResultsA total of 489 valid questionnaires were collected, with the average age of the subjects was 54.68±13.80 years, and including 258 (53.09%) patients who had a stroke. The mean scores for KAP were 6.36±2.66 (possible range: 0–10), 29.07±5.18 (possible range: 8–40) and 37.50±8.49 (possible range: 10–50), respectively. Concerning KAP scores, no differences were found between patients with PSD and their family members. Multivariate logistic regression analysis showed that retirement (OR=0.29, 95% CI 0.11 to 0.77, p=0.012) and monthly income less than ¥2000 (OR=0.46, 95% CI 0.27, 0.79, p=0.005) were independently associated with adequate knowledge. Knowledge (OR=2.12, 95% CI 1.44 to 3.14, p<0.001) was independently associated with positive attitude. Knowledge (OR=3.85, 95% CI 2.53 to 5.86, p<0.001) and attitude (OR=1.62, 95% CI 1.06 to 2.47, p=0.024) were independently associated with proactive practice.ConclusionPatients and their family members had insufficient knowledge, positive attitude and moderate practice towards PSD. Retirement and low monthly income were associated with insufficient knowledge, while knowledge was associated with positive attitude and proactive practice.