Electric Vehicles (EVs) are creating a significant challenge on the electric grid as they demand huge amounts of power for their charging. On-site power generation through renewable energy sources (RES) is one of the viable approaches to meet the demands of EVs and other loads of a campus. Hence, an optimal sizing of a hybrid PV–Wind system is considered in this work to build a Net Zero Energy Campus (NZEC). Generally, EVs are scheduled after obtaining the size of RES through a sizing procedure. As a unique approach of this work, a smart EV charging framework is developed to model the profile of EV charging demand and this modeled load profile of EV is considered along with the local load profile of the campus for optimal sizing procedure. The size of PV–Wind sources are optimized by minimizing three objective functions such as the annual operating cost of the system (AOC), loss of power supply probability (LPSP) and total energy transfer (TET). The optimization is carried out by Non-Dominated Sorting Genetic Algorithm II (NSGA II). The maximum utilization of RES and the reduced grid congestion attained through the proposed sizing approach showcase the grid friendliness of the designed NZEC.