In my thesis, I analyzed the solar potential of the vertical envelope and the energy balance of buildings. I have selected 5 different models of buildings that most often appear in construction. Their usable area and volume vary by a maximum of 1%, making the results easier to compare. All buildings were analyzed at Novo mesto. I then checked the duration of solar potential for all 5 forms of buildings and for 3 different positions (orientations) in the space, i.e. in the south, southeast and east direction. I performed the analysis of the isolation using the SketchUp program and the LSS Chronolux plug-in and checked the solar potential in the days 21.3, 21.6. and 21.12. To make it easier to compare, I chose the analysis by means of a weighted isolation, which represents the duration of solar potential in proportion to the solar surface of the building envelope. The buildings with the most solar potential are buildings with a maximum receiving area in the south direction. I checked the energy balance for identical quantity but 2 different positions of transparent surfaces on the building envelope. The first variant was a larger quantity of openings on the south side of the envelope and the second variant on the east side of the envelope. I received the power consumption for heating, cooling, solar gain and transmission losses through the TOST program. The smallest energy consumption for heating and less transmission losses are in buildings with more compact design or buildings with a smaller shape factor. Buildings with a slightly higher shape factor have the most solar gains and the smallest energy consumption for cooling. Since the differences between solar gains and the consumption of energy for cooling are smaller compared to the difference between energy consumption for heating and transmission losses, buildings with a smaller shape factor represent the most optimal option. This is building 3 with a plan view of a rectangular shape with the largest surface of the facade and openings facing the south. The largest factor that affects all the characteristics considered is therefore a shape factor.