Brushless direct current motor is widely used in industrial production because of its simple structure, wide speed range and low noise. To improve the operation efficiency of brushless DC motor and reduce the production and application costs, the optimization of brushless DC motor is analyzed by introducing the JAYA algorithm. This method determines the optimal parameters of a brushless DC motor using the theory of electromagnetic structure parameter selection and efficiency calculation. The population diversity of the JAYA algorithm is improved through an empirical learning strategy, and an adaptive strategy is introduced to balance the development ability and search performance of the algorithm. This ensures population diversity and improves convergence speed. The experiment showcases that the improved JAYA algorithm has a lower rank average in unimodal function operations, demonstrating stronger local development ability and better stability. It exhibits strong search ability in many local optima of multimodal functions. Moreover, the motor's average efficiency after optimization is 94.48%. The algorithm reaches the global optimum after approximately 40 iterations and offers faster convergence speed and higher accuracy. The adaptive JAYA algorithm is stable at around 93% when the number of iterations reaches 90, with a maximum efficiency of 95.3%. It is 5–12 percentage points higher than the other three comparison algorithms. The optimal solution of the motor parameters in the adaptive JAYA algorithm is closest to the theoretical parameter optimization value, meeting both the constraints of variables and the constraints of the model. The stator diameter, tooth magnetic induction, winding current density, air gap magnetic induction, and stator yoke magnetic induction values are 201.5 mm, 1.8 T, 2.049 A/mm2, 0.63 T, and 0.91 T, respectively. The research overcomes the problem of parameter optimization in the optimization design of brushless DC motor, improving their economic value of brushless DC motor in industrial production and application.