3-Hydroxy-6-methyl-2-nitropyridine was used in the synthesis of 3-methoxy-6-methyl-2-nitropyridine.Molecular structure and corresponding vibrational assignments of 3-hydroxy-6-methyl-2-nitropyridine have been investigated using density functional theory (DFT).