The title compound, C9H13N3O, crystallizes in the monoclinic space group C2/c and all non-hydrogen atoms are within 0.1 Å of the molecular mean plane. In the crystal, the hydrogen-bonding pattern results in [001] chains built up from fused R22(6) and R22(10) rings; the former consists of N—H...N bonds and the latter N—H...O bonds. Electrostatic and dispersion forces are major contributors to the lattice energy, which was estimated by DFT calculations to be −215.7 kJ mol−1.