In this paper, an energy management algorithm of a PVCS formulated with mixed-integer linear programming is presented to minimize the total energy cost of the participation of EV users in V2G service. Additionally, the research conducts a technical analysis of different EV charging technologies via Polysun software. A photovoltaic (PV)-powered charging station (PVCS) formed by PV modules and a stationary storage system with a public grid connection can provide cost-efficient and reliable charging strategies for EV batteries. Moreover, the utilization of vehicle-to-grid (V2G) service is a promising solution, as. To achieve net-zero goals and accelerate the global energy transition, the International Energy Agency (IEA) stated that countries need to triple renewable energy capacity from that of 2022 by 2030, with the development of solar photovoltaics (PV) playing a crucial role. Additionally, the. As the federal government moves toward fleet electrification, site decarbonization, and deployment of local distributed energy resources (DERs), agencies should consider both managed and bidirectional charging. Photovoltaics, energy storage and charging are connected by a DC bus, the storage and charging efficiency are greatly improved compared with the traditional AC bus. The system adopts a distributed design and.