Abstract Aiming at the problem of non-negligible target scale in the state estimation of magnetic targets, a state estimation method that requires only the measurement data of a single three-axis magnetic sensor and is insensitive to the initial value is proposed. Firstly, the state estimation model of a single three-component magnetic sensor is established based on a magnetic dipole array. A signal preprocessing method is designed to reject useless signals and keep the waveform intact. Five swarm intelligent optimization algorithms such as Particle Swarm Optimization (PSO), Artificial Hummingbird Algorithm (AHA), Artificial Rabbits Optimization (ARO), Grey Wolf Optimizer (GWO), and Improved GWO (IGWO) are introduced to perform state optimization, and two methods, such as Conjugate Gradient Least Squares (CGLS), and Stepwise Regression (SR), are introduced to calculate the magnetic moment parameters, and PSO-CGLS, AHA-CGLS, AHA-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, ARO-CGLS, and ARO-CGLS are designed in combination. CGLS, ARO-CGLS, GWO-CGLS, IGWO-SR, IGWO-CGLS, and six state estimation methods. In order to address the problem that the parameter optimization range is too large, the state to be estimated is adjusted from the initial state to the state at the moment of the maximum value of the magnetic field modulus, and the method of positive transverse distance estimation is used to narrow the range of positive transverse position optimization. Finally, numerical simulation tests and ship model tests are used for verification, and the results show that the proposed methods are accurate and can meet the needs of precise target state estimation.