The state of charge (SOC) is a core parameter in the battery management system for LMFP batteries. Accurate SOC estimation is crucial for ensuring the safety and reliability of energy storage applications and new energy vehicles. In order to achieve better SOC estimation accuracy, this article proposes an adaptive whale optimization algorithm (WOA) with chaotic mapping to improve the BP neural network (BPNN) model. The SOC estimation accuracy of the BPNN model was improved by utilizing WOA to find the optimal target weight values and thresholds. Comparative simulation experiments (including constant current and working condition discharge experiments) were conducted in Matlab/Simulink R2018a to verify the proposed algorithm and the other four algorithms. The experimental results show that the proposed algorithm had higher SOC estimation accuracy than the other four algorithms, and its prediction errors were less than 1%. This indicates that the proposed SOC estimation method has better prediction accuracy and stability, and has certain theoretical research significance.