An algorithm of determination of mechanical stresses and deformations of the magnetic circuit shape, caused by forces of magnetic origin, is presented in this paper. The mechanical stresses cause changes of magnetizing characteristics of the magnetic circuit. The mutual coupling of magnetic and mechanical fields was taken into account in the algorithm worked out. A computational experiment showed that it was possible to include the interaction of both fields into one numerical model. The elaborated algorithm, taking into account the impact of mechanical stresses on magnetic parameters of construction materials, can be used in both the 2D and the 3D type field-model.