The popularity of permanent magnet synchronous motors (PMSMs) has increased in recent years due to their high efficiency, compact size, and low maintenance needs. Calculating iron loss in PMSMs is crucial for designing and optimizing PMSMs to achieve high efficiency and a long lifespan, as this can significantly affect motor performance. However, multiple factors influence the accuracy of iron loss calculations in PMSMs, including the intricate magnetic behavior of the motor under different operating conditions, as well as the influence of the motor’s dynamic behavior during the operation process. This paper proposes a method based on particle swarm optimization (PSO) and a recurrent neural network (RNN) to estimate the iron loss in PMSMs, independent of the empirical iron loss formula. This method establishes an iron loss calculation model considering high-order harmonics, rotating magnetization, and temperature factors. Accounting for the multifactor influence, the model studies the law of loss change under different magnetic flux densities, frequencies, and temperature conditions. To avoid the deviation problem caused by conventional polynomial fitting, a multilayer RNN and PSO are used to train and optimize the neural network. Iron loss in complex cases beyond the measurement range can be accurately estimated. The proposed method helps achieve a PMSM iron loss calculation model with broad applicability and high accuracy.