Considering fast depletion of fossil fuels and consequently draining their sources on the other side, energy issue tended to be the main concern of the worldwide future policies. Due to new statistics and investigations, domestic buildings consume around 40% of global used energy. So, investigation and investment on this sector could lead the energy plans to advance rapidly. Through recent years, renewable energy sources (RES) considered as inevitable replacement for consisting fossil fuels. In future buildings, the electricity is generated from harvested RES in building itself. In this kind of buildings; known as Net-Zero Energy Building (NZEB), the annual net energy of the building is zero, meaning the building produces exact or even more energy as it consumes during a year. Emergence of the NZEB is tied to extensive research, prediction and planning on their elements which fortunately most of its needed element have developed sufficiently. In this paper a grid-connected NZEB is simulated in order to obtain the optimized constructional design in terms of availability and system costs.