The torque is given by the rate of change of angular momentum with time
Moreover the torque acting on a magnetic moment in a magnetic field is given by The gyromagnetic ratio is defined by the ratio of magnetic moment to angular momentum, which are antiparallel due to the negative charge of electrons. Therefore we obtain An orbiting electron with charge e=-e0 gives rise to a current I in a loop covering an area F. Its magnetic moment m is given by (SI units) In cgs units .However, the magnetic moment caused by the spin of an electron is larger. The appropriate gyromagnetic factor can be calculated by solving Dirac's equation. However, experiments give , which can be verified using perturbation theory in quantumelectrodynamics.
Finally we can calculate the gyromagnetic ratio