In this paper, a mathematical model is used to determine the force and impulse of the weapon's firing. The force and impulse of the weapon's firing are determined during the whole firing process, which consists of two stages: the stage projectile moving inside the barrel and the stage at the final action stage of combustion gas. The input parameters of the UK-59 machine gun in the Czech Republic were selected to verify the mathematical model. The results of the article are the law of combustion gas pressure in the barrel, the law of combustion gas pressure in the gas chamber, and the law of force and impulse of the shot corresponding to different types of muzzle devices. This result is consistent with the experimental results presented in the document [32], the error is less than 3%. Besides, the article also analyzes the influence of some muzzle device types on the firing force and firing impulse. The method of numerical integration has been applied to solve the problem using Matlab software. The research results of the article are a reliable theoretical basis for determining the firing forces, serving the problem of designing the mount as well as the firing stability of the weapon when firing. This is the basis for the optimal selection and design of the muzzle device used in the weapon.