Aiming at the shortcomings of only optimizing the gear ratios of two-speed transmission in the optimization process of two-speed powertrain parameters of electric vehicles, the optimization of two-speed powertrain parameters of electric vehicles based on genetic algorithm is proposed. The optimization process is to optimize the main performance parameters of the drive motor and the gear ratios of two-speed transmission. That is, taking the economy and dynamic of the electric vehicle as the fitness function, the gear ratios of two-speed transmission is optimized under the main performance parameters of different drive motors, so as to find the powertrain parameter with the best fitness function value. Among them, the AMESim software is used to build the vehicle optimization model, the genetic algorithm is improved by MATLAB, and the improved genetic algorithm is used to optimize the vehicle optimization model. The results show that the optimization of the vehicle’s economic and dynamic performance has been improved, indicating that this optimization method is effective.