Purpose This study aims to ensure safe operation of buildings in the mining area.Design/methodology/approachThe strain energy value was taken as one of the parameters characterizing the deformation process at critical stages in these problems and providing a link between them. Based on the data obtained for the structural element of loading diagrams and assessment of the stress–strain state of the structure as a whole, the maximum permissible horizontal deformations of the soil around the foundation are determined, at which the building elements reach the stress–strain state preceding the loss of bearing capacity. For this purpose, a parameter is used that characterizes the deformation process at the stages of critical deformation in these problems and provides a link between them. This parameter is the value of strain energy.FindingsBased on the obtained force behavior diagrams of structural elements and assessment of the stress–strain state of the structure as a whole, the maximum permissible horizontal ground deformations in the vicinity of the foundation are determined, at which the building elements reach the stress–strain state preceding the loss of bearing capacity.Originality/valueThe research provides new data in the form of regularities of deformation behavior of building structures in the zones of mine workings. These data formed the basis for the normative documentation being developed. The research results were used for the development of internal instructions of a large mining enterprise.