Electrification of Peru's rural areas is an issue of vital importance for economic growth. However, these areas still have poor quality electricity service or operate in a stand-alone mode with high cost of energy. To address this problem, one of the most promising strategies proposes the use of renewable energy technologies through the implementation of microgrids. In this context, this research develops the analysis of 37 cases of rural villages throughout Peru in order to obtain the optimal microgrid design and the most feasible areas for its implementation, considering the associated costs, geographic location, and load characteristics. For this purpose, an optimization process is carried out using Homer Pro software with the aim of sizing the microgrid with the minimum net present cost and cost of energy. Then, an iterative process is developed in Matlab software to map cost values, renewable contribution, emissions, the energy charge and the annual savings in the utility bill. This analysis considers five scenarios base on a grid-connected microgrid (with sensitivity values of grid sellback price) and an off-grid microgrid system. The results show the geographic distribution of all the annual utility saving bill. For the grid-connected microgrid condition, it presents a profit