AIM: To compare the effect of University of Wisconsin (UW) solution with or without metformin, an AMP-activated protein kinase (AMPK) activator, for preserving standard and marginal liver grafts of young and aged rats ex vivo by hypothermic machine perfusion (HMP). METHODS: Eighteen young (4 mo old) and 18 aged (17 mo old) healthy male SD rats were selected and randomly divided into three groups: control group, UW solution perfusion group (UWP), and UW solution with metformin perfusion group (MUWP). Aspartate aminotransferase (AST), alanine aminotransferase (ALT), lactate dehydrogenase (LDH), interleukin-18 (IL-18), and tumor necrosis factor-alpha (TNF-α) in the perfused liquid were tested. The expression levels of AMPK and endothelial nitric oxide synthase (eNOS) in liver sinusoidal endothelial cells were also examined. Additionally, microscopic evaluation of the harvested perfused liver tissue samples was done. RESULTS: AST, ALT, LDH, IL-18 and TNF-α levels in the young and aged liver-perfused liquid were, respectively, significantly lower in the MUWP group than in the UWP group (P < 0.05), but no significant differences were found between the young and aged MUWP groups. Metformin increased the expression of AMPK and eNOS protein levels, and promoted the extracellular release of nitric oxide through activation of the AMPK-eNOS mediated pathway. Histological examination revealed that in the MUWP group, the extent of liver cells and tissue damage was significantly reduced compared with the UWP group. CONCLUSION: The addition of metformin to the UW preservative solution for ex vivo HMP can reduce rat liver injury during cold ischemia, with significant protective effects on livers, especially of aged rats.