Skip to content

Spin in Magnetic Fields

Spin becomes experimentally visible because spin often carries a magnetic moment. In a magnetic field, the basic coupling is

H=−μ⋅B.H = -\boldsymbol\mu\cdot\mathbf B.

For a spin degree of freedom with

μ=γS,\boldsymbol\mu=\gamma\mathbf S,

the Hamiltonian is

H=−γS⋅B.H = -\gamma\mathbf S\cdot\mathbf B.

For spin-1/21/2,

S=ℏ2σ,\mathbf S=\frac{\hbar}{2}\boldsymbol\sigma,

so

H=−γℏ2 B⋅σ.H = -\frac{\gamma\hbar}{2}\, \mathbf B\cdot\boldsymbol\sigma.

This page explains the static-field Hamiltonian, sign conventions, energy splitting, and symmetry meaning. The actual precession dynamics is treated separately in Larmor Precession.

A magnetic field couples to a magnetic moment, not to the abstract word “spin” by itself. The proportionality between magnetic moment and spin is model-dependent:

μ=γS.\boldsymbol\mu = \gamma\mathbf S.

The gyromagnetic ratio γ\gamma contains the charge, mass, gg factor, and sign convention. For a particle of charge qq, mass mm, and spin gg factor gg, one often writes

γ=gq2m.\gamma = g\frac{q}{2m}.

For an electron, it is common to define e>0e>0 and q=−eq=-e. The Bohr magneton is

μB=eℏ2me.\mu_B=\frac{e\hbar}{2m_e}.

Then the electron spin magnetic moment is conventionally written

μS=−gsμBSℏ,\boldsymbol\mu_S = -g_s\mu_B \frac{\mathbf S}{\hbar},

with gs≃2g_s\simeq2 at leading order. The minus sign is physical: the electron magnetic moment points opposite to its spin angular momentum.

Take a uniform field

B=B0z^.\mathbf B=B_0\hat{\mathbf z}.

The spin Hamiltonian is

H=−γB0Sz=−γℏB02σz.H = -\gamma B_0S_z = -\frac{\gamma\hbar B_0}{2}\sigma_z.

The SzS_z eigenstates are also energy eigenstates:

Sz∣+z⟩=ℏ2∣+z⟩,Sz∣−z⟩=−ℏ2∣−z⟩.S_z|+z\rangle = \frac{\hbar}{2}|+z\rangle, \qquad S_z|-z\rangle = -\frac{\hbar}{2}|-z\rangle.

Their energies are

E+z=−γℏB02,E−z=γℏB02.E_{+z} = -\frac{\gamma\hbar B_0}{2}, \qquad E_{-z} = \frac{\gamma\hbar B_0}{2}.

The positive energy splitting is

ΔE=ℏ∣γ∣B0.\Delta E = \hbar|\gamma|B_0.

Which state is lower depends on the sign of γB0\gamma B_0. For an electron with B0>0B_0>0 and the convention μS=−gsμBS/ℏ\boldsymbol\mu_S=-g_s\mu_B\mathbf S/\hbar, the lower-energy state has spin anti-aligned with B\mathbf B because the magnetic moment is aligned with B\mathbf B.

Any spin-1/21/2 Hamiltonian of the form

H=b⋅σH=\mathbf b\cdot\boldsymbol\sigma

has eigenvalues ±∣b∣\pm|\mathbf b|. A spin in a magnetic field corresponds to

b=−γℏ2B.\mathbf b = -\frac{\gamma\hbar}{2}\mathbf B.

Therefore the energy eigenstates are spin states along the direction of b\mathbf b, not always along the direction of B\mathbf B. If γ>0\gamma>0, the lower-energy state has spin along B\mathbf B. If γ<0\gamma<0, the lower-energy state has spin opposite B\mathbf B.

This is the clean two-level-system viewpoint. It is developed more generally in Spin-1/2 as a Canonical System and Pauli-Matrix Hamiltonians.

The splitting of spin or angular-momentum energy levels by a magnetic field is a Zeeman effect. For the simple spin-1/21/2 Hamiltonian above, the transition angular frequency associated with the two levels is

ω0=ΔEℏ=∣γ∣B0.\omega_0 = \frac{\Delta E}{\hbar} = |\gamma|B_0.

In atomic spectroscopy, the same magnetic-dipole idea appears in more elaborate forms:

HZ=−μ⋅B,H_Z = -\boldsymbol\mu\cdot\mathbf B,

but μ\boldsymbol\mu may include orbital, spin, total-angular-momentum, nuclear, and effective-medium contributions. Weak-field atomic shifts are often written schematically as

ΔE=gJμBBmJ,\Delta E = g_J\mu_BBm_J,

under assumptions about the coupling regime and sign conventions. There is no universal Zeeman formula without specifying the relevant magnetic moment.

For magnetic-moment and gg-factor conventions, see Magnetic Moments and g-Factors. For historical context and atomic spectroscopy, see Magnetic Moments and Zeeman Effect Revisited. For degenerate level splitting and the weak-field to Paschen–Back hierarchy, see Zeeman Effect as a Perturbation Example. The compact Hamiltonian card is Spin in Magnetic Field Hamiltonian.

With no magnetic field, an isolated spin Hamiltonian proportional to the identity has full rotational symmetry in spin space. A fixed field B=B0z^\mathbf B=B_0\hat{\mathbf z} selects an axis and leaves only rotations about that axis as symmetries.

For

H=−γB0Sz,H=-\gamma B_0S_z,

one has

[H,Sz]=0,[H,S_z]=0,

but

[H,Sx]≠0,[H,Sy]≠0[H,S_x]\ne0, \qquad [H,S_y]\ne0

when γB0≠0\gamma B_0\ne0. The component along the field is conserved; transverse components are not stationary. This is the operator reason a spin expectation value not aligned with the field precesses.

The magnitude remains fixed:

[H,S2]=0.[H,S^2]=0.

Thus the field splits orientations within a spin multiplet but does not change the spin quantum number ss.

For spin-1/21/2, the time-reversal operator flips S\mathbf S. A fixed magnetic field is therefore time-reversal breaking; the comparison becomes covariant only when B\mathbf B is reversed as an external field. See Time Reversal for Spin-1/2 Particles.

The Heisenberg equation gives

dSdt=γ S×B,\frac{d\mathbf S}{dt} = \gamma\,\mathbf S\times\mathbf B,

up to the sign convention in γ\gamma. The expectation value of spin therefore rotates around the magnetic field with angular frequency magnitude

ωL=∣γ∣B0.\omega_L=|\gamma|B_0.

This is Larmor precession. The present page records the Hamiltonian and the frequency scale; Larmor Precession treats the time evolution, Bloch-sphere trajectories, and sign conventions in more detail.

A static field creates a splitting. A transverse oscillating field can drive transitions between the two levels. For example,

B(t)=B0z^+B1cos⁡(ωt)x^\mathbf B(t) = B_0\hat{\mathbf z} + B_1\cos(\omega t)\hat{\mathbf x}

gives a Hamiltonian with a diagonal static term and a transverse term proportional to σx\sigma_x. Transitions are strongest near

ω≃ω0.\omega\simeq\omega_0.

This is the basic idea behind magnetic resonance. The experimental technique is introduced in Magnetic Resonance, and the driven two-level-system dynamics belongs to Rabi Oscillations: First Encounter.

A uniform magnetic field changes spin energies and causes precession. It does not by itself spatially split a neutral beam. Stern–Gerlach separation requires a field gradient, because the force on a magnetic moment depends on the spatial derivative of the interaction energy:

Fz≃μz∂Bz∂z.F_z \simeq \mu_z \frac{\partial B_z}{\partial z}.

Thus two related but distinct uses of magnetic fields should be kept separate:

  • a uniform field defines a spin Hamiltonian and Zeeman splitting;
  • an inhomogeneous field can correlate spin or magnetic-moment projection with spatial path.

The second is the apparatus logic behind Stern–Gerlach Revisited.

  • Forgetting that the magnetic field couples to μ\boldsymbol\mu, whose relation to S\mathbf S includes sign and gg factor.
  • Treating the electron magnetic moment as parallel to electron spin.
  • Writing H=−γS⋅BH=-\gamma\mathbf S\cdot\mathbf B without specifying the sign convention for γ\gamma.
  • Assuming the lower-energy state is always ∣+z⟩|+z\rangle when B=B0z^\mathbf B=B_0\hat{\mathbf z}.
  • Confusing Zeeman splitting in a static field with Rabi oscillations driven by a transverse time-dependent field.
  • Using a spin-only Hamiltonian when orbital magnetic coupling or spatial motion in a vector potential is important.
  • Assuming a uniform field produces Stern–Gerlach beam splitting.
  • J. J. Sakurai and J. Napolitano, Modern Quantum Mechanics, 3rd ed., Cambridge University Press, 2020.
  • C. Cohen-Tannoudji, B. Diu, and F. Laloë, Quantum Mechanics, Wiley, 1977.
  • R. Shankar, Principles of Quantum Mechanics, 2nd ed., Springer, 1994.
  • C. P. Slichter, Principles of Magnetic Resonance, 3rd ed., Springer, 1990.
  • A. Abragam, The Principles of Nuclear Magnetism, Oxford University Press, 1961.
  1. For H=−(γℏB0/2)σzH=-(\gamma\hbar B_0/2)\sigma_z, find the two energies and the positive splitting.
Solution

The σz\sigma_z eigenvalues are +1+1 and −1-1. Therefore

E+z=−γℏB02,E−z=γℏB02.E_{+z} = -\frac{\gamma\hbar B_0}{2}, \qquad E_{-z} = \frac{\gamma\hbar B_0}{2}.

The signed difference is

E−z−E+z=γℏB0.E_{-z}-E_{+z} = \gamma\hbar B_0.

The positive splitting is

ΔE=ℏ∣γ∣B0.\Delta E = \hbar|\gamma|B_0.
  1. For an electron with e>0e>0, μS=−gsμBS/ℏ\boldsymbol\mu_S=-g_s\mu_B\mathbf S/\hbar, and B=B0z^\mathbf B=B_0\hat{\mathbf z} with B0>0B_0>0, which spin state is lower in energy?
Solution

The Hamiltonian is

H=−μS⋅B=gsμBB0Szℏ.H = -\boldsymbol\mu_S\cdot\mathbf B = g_s\mu_BB_0 \frac{S_z}{\hbar}.

For ∣+z⟩|+z\rangle,

E+z=gsμBB02.E_{+z} = \frac{g_s\mu_BB_0}{2}.

For ∣−z⟩|-z\rangle,

E−z=−gsμBB02.E_{-z} = -\frac{g_s\mu_BB_0}{2}.

Thus ∣−z⟩|-z\rangle is lower. The spin is anti-aligned with the field, while the magnetic moment is aligned with the field.

  1. Show that SzS_z is conserved but SxS_x is not for H=−γB0SzH=-\gamma B_0S_z.
Solution

Since HH is proportional to SzS_z,

[H,Sz]=−γB0[Sz,Sz]=0.[H,S_z]=-\gamma B_0[S_z,S_z]=0.

For SxS_x,

[H,Sx]=−γB0[Sz,Sx].[H,S_x] = -\gamma B_0[S_z,S_x].

Using

[Sz,Sx]=iℏSy,[S_z,S_x]=i\hbar S_y,

one gets

[H,Sx]=−iℏγB0Sy,[H,S_x] = -i\hbar\gamma B_0S_y,

which is generally nonzero.

  1. A spin has ∣γ∣/(2π)=42.58 MHz/T|\gamma|/(2\pi)=42.58\,\mathrm{MHz/T} in a field of 3.0 T3.0\,\mathrm T. What is the transition frequency?
Solution

The transition frequency in cycles per second is

f0=ω02π=(42.58 MHz/T)(3.0 T).f_0 = \frac{\omega_0}{2\pi} = \left( 42.58\,\mathrm{MHz/T} \right) (3.0\,\mathrm T).

Thus

f0≈127.7 MHz.f_0 \approx 127.7\,\mathrm{MHz}.