This paper presents an optimized fuzzy logic control (FLC) applied to four-wheel independent-drive electric vehicles (FWID-EVs). The controller is developed to act as an Electronic Differential (ED), which changes the in-wheel motors torques to correct the vehicle trajectory during some specific maneuvers. The simulation determines the rotation, the lateral and longitudinal displacement of the vehicle, in which the nonlinear Magic Formula is applied to define the tires slip, associated with the load transfer during curves or drive/break situations and with the steering input. According to the literature, several parameters are used to provide stability controls of similar vehicles, for example, the sideslip angle and yaw rate. Therefore, a parameter influence analysis is carried out to find out the most relevant parameters to be monitored in the investigated FWID-EV. Once the relevant input parameters are defined, an optimum ED FLC is developed by means of a genetic algorithm multi-objective optimization with the objective of minimizing the trajectory error of the FWID-EV under a combination of the Sine with Dwell and constant steering standard maneuvers. The results show the best control configuration is a combination of steer and sideslip angles, with a reduced number of rules and less processing time (0.71 s). Besides, the proposed control presents a reduction in the trajectory error, improvement up to 95.1%, emphasizing that the parameter influence analysis allows finding an optimum, more efficient, and time-saving control solution. Therefore, a simple adjustment in the variables inputs can decrease the control process, without overshadowing the dynamic behavior.