The article presents the principles and algorithms of the finite element method in solving geotechnical problems taking into account seismic impacts for determining the stress-strain state of structures and slope stability, implemented in the Midas GTS NX software package. GTS NX allows you to perform calculations of various types of geotechnical problems and solve complex geotechnical problems in a single software environment. GTS NX covers the entire range of engineering and geotechnical projects, including calculations of the "base-structure" system, deep pits with various mounting options, tunnels of complex shape, consolidation and filtration calculations, as well as calculations for dynamic actions and stability calculations. At the same time, all types of calculations in GTS NX can be performed both in 2D and in 3D. The author does not claim to be the author of the finite element method, but he cannot do without pointing out the basic equations, as this affects the definition of the boundaries of use, the formulation of algorithms for constructing calculation schemes and the analysis of calculation results.