The growing number of electric vehicles (EVs) imposes greater stress on the power grid. One prospective remedy for this issue is the installation of a bidirectional charger that is also adept at aiding the power grid. The charging and discharging of the battery in an EV are both accomplished by bidirectional converters, one of which is an AC-DC and the other is a DC-DC. Changing the operating mode of a DC-DC converter can lead to it behaving differently. The plug-in hybrid electric car (PHEV) might work as an automobile that transmits power from "vehicle to grid." (V2G). Electric car batteries can engage in bidirectional electricity exchange with the grid. The objective of the paperwork is to design a control approach for efficient power flow for V2G and G2V in EV. Peak load reduction, load balancing, voltage control, and enhanced electrical system stability can be achieved as a consequence. The utility grid can absorb the distributed stored power provided by V2G equipment in the manner of rotatory reserve power. The ability to transfer battery energy back to the power grid through V2G technology contributes to the enhancement of electrical system stability. If there is a bidirectional discharging circuit available, there is also an opportunity to supply power from the grid. In the framework of G2V and V2G in EVs, the research effort focuses on the battery parameter, the voltage of the inverter, and the grid. We will be designing and building bidirectional charges for the battery in EV using MATLAB Simulink for this present work. The simulation focuses on two primary modes of operation: - V2G and G2V. Both of these modes are depicted.