Production of high purity hydrogen by the irreversible reaction of magnesium or magnesium hydride with proton-containing compounds was investigated. It is shown that hydrogen generation via the interaction of magnesium with organic acids is profitable.