The decomposition of formic acid into H2 and CO2 was successfully performed using a ruthenium hydride catalyst, without any concomitant CO evolution. The reaction mechanism is investigated by means of density functional theory calculations (DFT). The generated H2 was further exploited in a fuel cell to produce electricity. The catalytic hydrogenation of conjugated olefins, using this dihydrogen generation procedure, is also reported.