The HMgO and magnesium monohydroxide (HOMg) have been reinvestigated using the complete active space self-consistent field (CASSCF) and multiconfiguration second-order perturbation theory (CASPT2) methods with the contracted atomic natural orbital (ANO) basis sets. The geometries of all stationary points along the potential energy surfaces (PESs) were optimized at the CASSCF/ANO levels. The ground and the first excited states of HMgO are predicted to be X