This paper proposes a methodological way to compensate for the imbalance between energy generation and consumption using a battery block from electric vehicles as an energy reservoir through the well-known vehicle-to-grid system (V2G). This method is based on a simulation process developed by the authors that takes into consideration the daily fluctuations in energy consumption as well as the power level generated by an energy source, either conventional, renewable, or hybrid. This study shows that for very large electric vehicle fleets, the system is rendered non-viable, since the remaining energy in the battery block that allows the electric vehicle to be usable during the daytime avoids having to compensate for the energy grid imbalance, only allowing it to cover a percentage of the energy imbalance, which the proposed methodology may optimize. The analysis of the proposed methodology also shows the viability of the system when being applied to a small fleet of electric vehicles, not only compensating for the energy imbalance but also preserving the required energy in the battery of the electric vehicle to make it run. This method allows for predicting the optimum size of an electric vehicle battery, which depends on the energy generation level, coverage factor of the energy imbalance, and size of the electric vehicle fleet.