Every day, the evaluation of classical distribution networks (DNs) to smart grids (SGs) has become a necessity, and renewable energy sources (RESs) are an important part for smart grids. One of the most significant problems for RESs is the sustainability of energy, because the raw material storage is not possible for renewable energy sources as photovoltaic (PV), wind, etc. Therefore, energy storage systems (ESSs) have an important place for RESs and SGs. The aim of this paper is ESS location selection for selected distribution networks. In this paper, a PV array is modelled and connected to DN randomly as unlicensed manufacturers, and a location planning algorithm (LPA) for location selection of ESSs is studied for higher energy quality at DNs. The location is determined for optimum ESS usage connecting the ESS to the correct bus decreases the power losses and increases the voltage levels. Besides, energy can be stored at the peak-off time, and stored energy can be used at the peak times for the lower cost with the usage of ESSs. Thus, the optimum usage of ESSs will be provided for RESs and SGs.