Electric vehicles are known to contribute to the reduction of emissions of polluting gases and noise pollution. Therefore, it is predicted that in the coming years there will be a trend towards their mass use. This study presents an optimal design of an autonomous electric vehicle charging station that can make use of renewable energy. The technical-economic analysis is simulated using the HOMER energy software. Two plans are presented: the first is an autonomous system using solar panels and batteries, while the second system is connected to the conventional grid. To obtain an overview of the energy resources, the city of Guayaquil is taken as an example. The results were obtained from a simulation used in the development of this research in which local energy resources, policies regarding the use of electric vehicles, and respective economic viability are analysed.