The eigenvalues and eigenfunctions of Dirac–Pauli equation have been obtained for a neutron with anomalous magnetic moment (AMM) in the presence of a strong magnetic field with cylindrical symmetry. In our calculations, the Nikiforov and Uvarov (NU) method has been used. Using the eigenfunctions and construction of the ladder operators, we show that these generators satisfy su(2) Lie algebra and computed the second-order Casimir operator of the lie algebra