Objective To explore the effects of nursing management based on theory of planned behavior (TPB) on self-efficacy, health attitude and health behaviors in patients during stroke convalescence. Methods A total of 102 patients during stroke convalescence in the hospital from October 2022 to April 2023 were enrolled and randomly divided into observation group and control group, and each group had 51 patients. The control group was given routine nursing, while observation group was additionally given TPB-based nursing management. After 6 months of observation, the indexes including cognitive function, limb function [mini-mental state examination (MMSE), Fugl-Meyer assessment (FMA)], health belief [Champion health belief model scale (CHBMS)], self-efficacy [stroke self-efficacy questionnaire (SSEQ)], health behaviors [health promotion lifestyle profile (HPLP)], compliance of medication and life-style, and psychological state [Hamilton anxiety scale (HAMA), Hamilton depression scale (HAMD)] in the two groups were compared. Results After intervention, scores of MMSE, FMA, CHBMS, SSEQ and HPLP were higher in observation group than those in control group (all P<0.05). The compliance rates of medication (96.08%), diet control (90.20%), stopping smoking and drinking (96.08%), and appropriate exercise (82.35%) in observation group were respectively higher than those in control group (80.39%, 72.55%, 80.39%, 56.86%) (all P<0.05), while the score of HAMA and HAMD were lower in observation group than those in control group (all P<0.05). Conclusions TPB-based nursing management is beneficial to improve health attitude and self-efficacy in patients during stroke convalescence, thereby enhancing behavior control, promoting the maintenance of healthy behaviors, relieving negative psychological emotions and promoting health management.