To address the demand for low noise and high stealthiness in ships and other vessels, this paper innovatively proposes an inertial magnetic levitation actuator based on non-uniform-sized Halbach permanent magnet arrays. To improve control accuracy, it is necessary to establish an accurate analytical model of the magnetic field and then obtain an accurate electromagnetic force model. However, the distortion of the magnetic field at the ends produces end effects, resulting in thrust fluctuations that affect the actuator’s control accuracy. Therefore, considering the end effects is necessary to establish an accurate analytical model of the magnetic field. To analyze the end leakage magnetic field of the Halbach array, the concept of a mechanical pseudo-cycle in the actuator is proposed, and the cycle of a Fourier series is redefined. A completed analytical expression of the Halbach array magnetic field distribution is derived by the new Fourier series, in which the end leakage magnetic field is contained. The accuracy of the proposed method is verified by solving the analytical model of the magnetic field, and the analytical results are compared with finite element simulations and experimental tests.