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 e and mass m, the moment equals g(e/2m) times its spin angular momentum, where the dimensionless g-factor carries the physics.

A classical ball of charge spinning on its axis would have g=1. In 1928 Paul Dirac's relativistic equation for the electron predicted g=2 exactly, one of its early triumphs. Measurement shows the true value is a little larger, g≈2.002319, 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.