The hot tensile deformation behaviors of AZ31B magnesium alloy are investigated over wide ranges of forming temperature and strain rate. Considering the effects of strain on material constants, a comprehensive constitutive model is applied to describe the relationships of flow stress, strain rate and forming temperature for AZ31B magnesium alloy. The results show that: (1) The effects of forming temperature and strain rate on the flow behaviors of AZ31B magnesium alloy are significant. The true stress–true strain curves exhibit a peak stress at small strains, after which the flow stress decreases until large strain, showing an obvious dynamic softening behavior. A considerable strain hardening stage with a uniform macroscopic deformation appears under the temperatures of 523 and 573K. The strain hardening exponent (n) increases with the increase of strain rate or the decrease of forming temperature. There are not obvious strain-hardening stages when the forming temperature is relatively high, which indicates that the dynamic recrystallization (DRX) occurs under the high forming temperature, and the balance of strain hardening and DRX softening is easy to obtain. (2) The predicted stress–strain values by the established model well agree with experimental results, which confirm that the established constitutive equation can give an accurate and precise estimate of the flow stress for AZ31B magnesium alloy.