Phase boundaries of classical and quantum phase transitions of two-dimensional Bose–Hubbard model with two- and three-body on-site interactions in a magnetic field are obtained analytically in a unified theoretical frame. All results illustrate that the introduction of magnetic field enhances the stability of normal state and Mott insulator.