Solar energy has grown exponentially around the world because it is clean and renewable, with this, photovoltaic plants are installed for its consumers as well as to relieve the electrical system of the country and guarantee the reliability. In this way, carrying out a correct dimensioning and finding a layout for the execution of a solar plant is important because it can increase or minimize the electrical losses as well as the investment. This study uses the genetic algorithm in order to find better layout to optimize the energy loss on an implanted solar power plant and resize the conductors by current capacity and voltage drop, the study shows how to program Excel to solve the multi-positioning problem through the genetic algorithm in a solar power plant. The results show that the optimization proposed by the genetic algorithm was able to reduce electrical losses by 75% and the net present value over a period of 25 years was reduced by 25%. Future research will be carried out considering 3D plans covering solar plants that are installed on the roof.