Cognitive impairment has been reported in patients with myocardial infarction despite a successful reperfusion therapy. Several modes of cell death are involved in brain damage during cardiac ischemia/reperfusion (I/R) injury. Although apoptosis, necroptosis, and ferroptosis inhibitors provided neuroprotection against cerebral I/R injury, the effects of these cell death inhibitors on the brain following cardiac I/R injury have never been investigated. We hypothesized that apoptosis, necroptosis, and ferroptosis inhibitors attenuate brain damage following cardiac I/R injury. One-hundred and twenty-six male rats were used: 6 rats were assigned to sham operation and 120 rats were subjected to 30-min regional cardiac ischemia and 120-min reperfusion. Rats in cardiac I/R group were pretreated with either vehicle (n = 12) or one of cell death inhibitors. Rats treated with apoptosis, necroptosis, or ferroptosis inhibitor were subdivided into three different doses including low (L), medium (M), and high (H) doses (n = 12/group). Z-VAD, necrostatin-1 (Nec-1), and ferrostatin-1 (Fer-1) were used as apoptosis, necroptosis, and ferroptosis inhibitor, respectively. Rats were sacrificed at the end of reperfusion, and the brain was used to analyze dendritic spine density, Alzheimer’s disease (AD)-related proteins, blood–brain barrier (BBB) tight junction proteins, mitochondrial function, inflammation, and cell death. Our data showed that cardiac I/R led to brain damage and only apoptosis occurred in the hippocampus after cardiac I/R injury. In the cardiac I/R group, treatment with M-Z-VAD and all doses of Nec-1 decreased hippocampal apoptosis and amyloid beta aggregation, thereby reducing dendritic spine loss. M- and H-Fer-1 also reduced dendritic spine loss by suppressing ACSL4, TNF-α, amyloid beta, and tau hyperphosphorylation. Moreover, Bax/Bcl-2 was decreased in all treatment regimen except L-Z-VAD. Additionally, M-Z-VAD and M-Fer-1 partially attenuated mitochondrial dysfunction. Only L-Nec-1 preserved BBB proteins. In conclusion, cell death inhibitors prevented hippocampal dendritic spine loss caused by cardiac I/R injury through different mechanisms.