The building sector is one of the largest energy consumers in the world, comprising about 40% of the total energy consumption in numerous countries. Early design decisions have a significant impact on the energy performance of buildings. The paper presents the multi-variable optimization of the selected design parameters in a single-family building in temperate climate conditions. The influence of four types of windows, their size, building orientation, insulation of external wall, roof and ground floor and infiltration on the life cycle costs (LCC) is analyzed. Optimal selection of the design parameters is carried out using genetic algorithms by coupling the building performance simulation program EnergyPlus with optimization environment. The simulations were conducted for seven optimization cases. The analysis is performed for two variants of a building with heating and cooling systems and with a heating system only. Depending on the analyzed case, the life cycle costs decreased from 7% to 34% LCC value of the reference building. In the case of temperate climate, the building optimization (in terms of heat demand only) substantially reduces the heating costs, yet the summer thermal comfort conditions deteriorate significantly.