The nuclear magnetic moment is the magnetic moment of an atomic nucleus and arises from the spin of the protons and neutrons. It is mainly a magnetic dipole moment; the quadrupole moment does cause some small shifts in the hyperfine structure as well. All nuclei that have nonzero spin also possess a nonzero magnetic moment and vice versa, although the connection between the two quantities is not straightforward or easy to calculate.