Hepatic ischemia–reperfusion (IR) injury is a serious clinical problem that complicates liver resection and transplantation. Despite recent advances in understanding of the pathophysiology of hepatic IR injury, effective interventions and therapeutics are still lacking. Here, we examined the role of transient receptor potential melastatin 2 (TRPM2), a Ca2+-permeable, non-selective cation channel, in mediating hepatic IR injury. Our data showed that TRPM2 deficiency attenuated IR-induced liver dysfunction, inflammation, and cell death in mice. Moreover, RNA sequencing analysis indicated that TRPM2-induced IR injury occurs via ferroptosis-related pathways. Consistently, as a ferroptosis inducer, (1S,3R)-RSL3 treatment induced mitochondrial dysfunction in hepatocytes and a TRPM2 inhibitor suppressed this. Interestingly, TRPM2-mediated calcium influx caused mitochondrial calcium accumulation via the mitochondrial Ca2+-selective uniporter and increased the expression level of arachidonate 12-lipoxygenase (ALOX12), which results in mitochondrial lipid peroxidation during hepatic IR injury. Furthermore, hepatic IR injury-induced ferroptosis was obviously relieved by a TRPM2 inhibitor or calcium depletion, both in vitro and in vivo. Collectively, these findings demonstrate a crucial role for TRPM2-mediated ferroptosis in hepatic IR injury via increased Ca2+-induced ALOX12 expression, indicating that pharmacological inhibition of TRPM2 may provide an effective therapeutic strategy for hepatic IR injury-related diseases, such as during liver resection and transplantation.