A spinning electric charge acts like a small magnet, and its magnetic moment says how strongly: how hard it twists to line up with a magnetic field. For a particle of charge 𝑒 and mass 𝑚, the moment equals 𝑔 (𝑒/2𝑚) times its spin angular momentum, where the dimensionless g-factor carries the physics.
A classical ball of charge spinning on its axis would have 𝑔 =1. In 1928 Paul Dirac's relativistic equation for the electron predicted 𝑔 =2 exactly, one of its early triumphs. Measurement shows the true value is a little larger, 𝑔 ≈2.002 319, and the small excess is the anomalous magnetic moment.
The electron's moment is very close to one Bohr magneton, about 9.27 ×10−24 joules per tesla. Magnetic moments are also practical: hospital MRI scanners work by flipping the magnetic moments of protons in the body's water.