The aim of the paper is to present rational methods of multicriteria optimization of the shape and structure of energy-saving buildings, as well as optimization of heat sources taking into account the energy criteria. Mathematical model describing heat losses and gains in a building during the heating season was selected and refined. It takes into consideration heat losses through walls, roof, floor and transparent partitions as well as heat gains due to insolation across transparent partitions. Particular attention was paid to a more detailed description of heat gains due to solar radiation, depending on the position of partitions relative to their north–south axis and the degree of their use. The problem of multicriteria optimization of individual homes and blocks of flats was formulated on the basis of the following criteria: • minimum construction costs, including cost of materials, erection, heating installations together with the cost of heat sources, • minimum seasonal demand of heating energy, • minimum of pollution emitted by heat sources installed in the building. The following were accepted as the global optimization criteria allowing to find the preferred solution: • minimum building construction costs and its running costs over N-years’ period together with minimum environment pollution during that period, • minimum distance from the point belonging to the compromise set to the ideal point. The method of solving the above formulated problem consists in decomposing it into three part-problems: • optimization of internal partitions of the building, • optimization of the shape of building, • optimization of heat sources. Part-problems must be co-ordinated subsequently.