Background: Trastuzumab, a targeted therapy for breast cancer, is associated with cardiotoxicity (TIC). Buyang Huanwu Decoction (BYHWD) has shown cardioprotective potential, and its active components, calycosin and luteolin, may mitigate cardiac injury, although the underlying mechanisms remain unclear. Objective: This study aimed to identify the key active components of BYHWD and to investigate their protective effects against trastuzumab-induced cardiotoxicity, with a focus on ferroptosis-related mechanisms. Materials and Methods: A Quantitative Structure-Activity Relationship (QSAR) model was used to screen active BYHWD compounds targeting TIC. Cell viability (CCK-8) and migration (Transwell) assays evaluated cardiomyocyte injury and drug effects. Mechanistic studies, including flow cytometry, Western blotting, and GSH/GSSG assays, were performed to assess ferroptosis. In vivo, a rat TIC model was established, and cardiac function and histopathological changes were evaluated using echocardiography and H&E/Masson staining. Results: QSAR screening identified calycosin and luteolin as key bioactive compounds targeting TIC-related proteins. Trastuzumab (500 mu g. mL(-1)) significantly reduced cardiomyocyte viability (p<0.0001), which was reversed by calycosin and luteolin (p<0.001). Mechanistically, both compounds upregulated Nrf2/GPX4 signaling (p<0.0001), reduced oxidative stress, and inhibited ferroptosis. In vivo, calycosin and luteolin significantly improved cardiac function (EF, FS, LVEF, LVFS; p<0.0001) and alleviated myocardial injury and fibrosis, demonstrating robust cardioprotective effects. Conclusion: Calycosin and luteolin, identified via QSAR screening, attenuate trastuzumab-induced cardiotoxicity by activating the Nrf2/GPX4 pathway, thereby inhibiting ferroptosis and preserving cardiac function.