The g factor is typically measured using techniques such as Electron Spin Resonance (ESR) or Nuclear Magnetic Resonance (NMR). These methods involve applying a magnetic field to the sample and measuring the resonance frequencies of the spins. The g factor can then be calculated by comparing these frequencies to the known values of the magnetic field and the spin quantum numbers.