› Spin Precession Simulator Back
Quantum and Magnetic Resonance Simulator

Spin Precession Simulator — Larmor Precession and NMR/MRI Basics

Quick answer
Larmor precession occurs at angular frequency ω_L = γ·B₀ (γ = gyromagnetic ratio, B₀ = static field), i.e. f_L = ω_L/(2π). Transverse magnetization decays as M_x(t) = M₀·cos(ω_L·t)·e^(−t/T₂); protons (γ = 2.675×10⁸ rad/s/T) precess at about 63.86 MHz in a 1.5 T MRI field.

Visualize Larmor precession of a magnetic moment in a static field. Adjust B_0, gamma, T_1 and T_2 to see why protons precess at 63.86 MHz in a 1.5T MRI scanner.

Parameters
Preset
Nuclide Preset
Static magnetic field B_0
T
Gyromagnetic ratio γ (×10⁷ rad/s/T)
×10⁷
RF amplitude B_1 (µT)
µT
Initial tip angle θ₀
°
Longitudinal relaxation time T_1
s
Transverse relaxation time T_2
s
RF pulse (B_1)
Rotating Frame
Relaxation (T_1/T_2)

The default value γ = 26.75×10⁷ rad/s/T is for protons (¹H). The physical constraint T_2 ≤ T_1 is enforced automatically.

Results
—
Larmor f_L
—
Polar angle θ
—
Mx (rotating frame)
—
My (rotating frame)
—
Mz
—
M_xy (transverse)
—
|M|
—
Rabi ω₁/2π
0.0
Time t [ms]
Bloch sphere: precession of the magnetization M
B₀ axis (z) Magnetization M Precession trajectory RF B₁

M precesses in a cone about B₀. With RF on it nutates toward the transverse plane (Rabi). In the rotating frame the precession appears frozen.

M_z(t) recovery and M_xy(t) free induction decay (FID)
M_z(t) Longitudinal Relaxation (T₁) M_xy(t) FID Envelope (T₂) · oscillation is schematic
Results
—
Larmor frequency f_L
—
Larmor angular freq omega_L
—
Longitudinal T_1
—
Transverse T_2
Theory & Key Formulas

A magnetic moment μ in a static magnetic field B_0 precesses about the field axis at a constant angular velocity under the torque dμ/dt = γ μ × B_0.

Larmor angular frequency ω_L and Larmor frequency f_L. γ is the gyromagnetic ratio:

$$\omega_L = \gamma B_0, \qquad f_L = \frac{\omega_L}{2\pi}$$

Rabi nutation driven by a resonant RF field (B_1). 90° pulse duration:

$$\omega_1 = \gamma B_1, \qquad t_{90} = \frac{\pi}{2\,\omega_1}$$

Free precession after a 90° pulse (transverse relaxation decays exponentially with T_2):

$$M_x(t) = M_0\cos(\omega_L t)\,e^{-t/T_2}$$

Saturation recovery of longitudinal magnetization (longitudinal relaxation has time constant T_1):

$$M_z(t) = M_0\left(1 - e^{-t/T_1}\right)$$

For a proton (γ = 2.675×10⁸ rad/s/T) in a 1.5T MRI field, the Larmor frequency is approximately 63.86 MHz.

What is the Spin Precession Simulator?

🙋
"Spin precession" is not a familiar term. Is this what powers MRI machines?
🎓
It is literally the heart of MRI. Roughly, an atomic nucleus acts like a tiny magnet, and when you place it in a strong field it starts tracing a cone around the field axis. That is Larmor precession. The picture is just like a spinning top precessing under gravity: the field B_0 plays the role of gravity, and the gyromagnetic ratio gamma plays the role of the top's geometry. Raise B_0 on the slider and the Larmor frequency f_L card scales linearly with it.
🙋
The default 1.5T gives 63.86 MHz. What exactly is "spinning" at 63 MHz?
🎓
It means a proton (hydrogen nucleus) sitting in a 1.5T field precesses about 63.86 million times every second. An MRI scanner sends a radio pulse at exactly that frequency to make the protons resonate. When the pulse stops, the protons emit a radio signal at the same frequency, and the scanner picks it up to build an image. Try setting B_0 to 3T on the simulator — the Larmor frequency jumps to about 127 MHz. That higher frequency is why 3T scanners give stronger signal.
🙋
The T_1 and T_2 sliders stretch and squeeze the lower curves. What is the difference?
🎓
T_1 is the time for spins to realign with the field direction, while T_2 is the time for the precessing magnetization in the xy plane to lose phase coherence. White matter and grey matter in the brain have different T_1 and T_2, so different MRI sequences make one bright and the other dark. That is exactly how MRI contrast works. If you try to push T_2 above T_1 the tool clamps it, because losing phase coherence faster than reaching equilibrium is physically impossible.
🙋
I have heard fat and water differ a lot. How different are their relaxation times?
🎓
Good question. At 1.5T fat has T_1 around 0.3 s and T_2 around 0.08 s — both short. Pure water has T_1 around 4 s and T_2 around 2 s — much longer. In a T_1-weighted image (short TR) fat looks bright and water looks dark, while in a T_2-weighted image (long TE) water looks bright and fat looks darker. Slide T_1 from 0.3 to 4.0 in the simulator and watch how the blue recovery curve changes — that is exactly the contrast mechanism you see in clinical scans.

FAQ

gamma is the ratio of the nuclear magnetic moment mu to the angular momentum L (gamma = mu/L) and is a fixed constant for each nucleus. The proton has a large g-factor of about 5.586, giving the large value gamma = 2.675×10⁸ rad/s/T. This is the main reason hydrogen is the nucleus of choice for MRI. ¹³C has gamma = 6.73×10⁷ and ³¹P has 1.08×10⁸, spanning roughly a decade across nuclei. The Larmor frequency therefore changes with the nucleus even at the same B_0, and multinuclear NMR simply retunes the receiver to match.
The T_1 process (longitudinal relaxation) involves energy exchange with the lattice and necessarily also dephases the spins. The T_2 process (transverse relaxation) can additionally come from pure spin-spin dephasing without energy loss. So T_2 relaxation is at least as fast as T_1 relaxation, which gives the constraint T_2 ≤ T_1 in time-constant terms. In most biological tissues T_2 is a few times smaller than T_1, while in pure water both are nearly equal. In real MRI imaging T_2* (T-two star), the apparent T_2 including field inhomogeneity, often dominates signal decay.
An RF pulse at the Larmor frequency drives Rabi oscillation about the B_1 axis. A 90 degree pulse is timed to tip the magnetization fully into the xy plane; a 180 degree pulse flips it to the negative z direction. After a 90 degree pulse the precessing magnetization in xy produces the FID (free induction decay) signal. 180 degree pulses are used in spin-echo sequences to refocus T_2* dephasing. Every MRI imaging sequence is built from combinations of these basic pulses.
Even for the same nucleus, the surrounding electrons produce a small shielding field that depends on the molecular environment. The Larmor frequency therefore shifts by a tiny amount (parts per million, ppm), and this chemical shift is essential for determining molecular structure. In the ¹H NMR of ethanol CH₃CH₂OH, for example, the CH₃, CH₂ and OH protons give peaks at distinct positions, letting chemists read off the structure. In MRI the same effect produces the fat shift artifact, suppressed by fat-saturation sequences.

Real-world applications

Medical imaging (MRI): The largest application by far. Proton Larmor precession is exploited to non-invasively map the distribution of water in the body, with no ionizing radiation. MRI provides soft-tissue contrast inaccessible to X-ray or CT and is now central to diagnosing brain tumors, spinal injuries, cartilage damage, and myocardial infarction. 1.5T is the clinical workhorse, 3T is increasingly common for high resolution, and 7T systems serve research hospitals.

NMR spectroscopy for chemical structure: In organic chemistry, pharmacology and biochemistry, NMR is indispensable for determining molecular structures. Chemical shifts and J-couplings reveal connectivity between atoms, confirming new drug candidates and natural product structures. Protein NMR, which solves three-dimensional protein structures in solution, is one of the two pillars of structural biology alongside X-ray crystallography.

Solid-state physics and materials science: Solid-state NMR (MAS-NMR) is a powerful probe of local structure in glass, ceramics and battery materials, providing atomic-scale information even in non-crystalline samples. In lithium-ion battery research, Li NMR tracks structural changes in cathode materials during charge and discharge cycles.

Common misconceptions and pitfalls

The most common misconception is to think that "the Larmor frequency is the speed at which the nucleus itself spins." In reality the Larmor frequency is the quantum-mechanically defined angular frequency of precession of the nuclear magnetic moment, distinct from any rotation of the nucleus on its own axis. Saying that a proton in 1.5T precesses at 63.86 MHz means the magnetization vector traces about 63.86 million circuits per second around the field axis. The precession circle in the top panel of this simulator is the intuitive classical (Bloch) picture of that motion.

Another frequent error is to treat T_1 and T_2 as freely independent parameters. Physically T_2 must satisfy T_2 ≤ T_1, because any T_1 process also contributes to dephasing. The simulator therefore clamps T_2 back to T_1 if you try to exceed it. In biological tissues T_2 is often 10–30 percent of T_1, while in liquids with fast molecular motion such as pure water the two are close (T_1 ≈ T_2 ≈ several seconds). MRI sequence parameters (TE and TR) are chosen specifically to exploit these tissue-dependent T_1/T_2 differences.

Finally, remember that this simulator visualizes only the classical Bloch free precession and does not include quantum effects, gradient fields, selective excitation or k-space sampling (RF enters only as a continuous-wave B₁ nutation). Real MRI imaging adds spatial encoding by gradient fields, selective excitation pulses, k-space sampling, and Fourier reconstruction. Use this tool as an introduction to the starting point of NMR and MRI — Larmor precession and relaxation — and study textbooks or clinical training for the full pulse-sequence and imaging pipeline.

How to Use

  1. Set the static magnetic field B₀ with the slider (0.1–10 T); clinical scanners are typically 1.5 T or 3 T.
  2. Set the gyromagnetic ratio γ. The slider is in units of 10⁷ rad/s/T (protons: 26.75, equivalent to 42.58 MHz/T); the nucleus menu fills it in for ¹H, ¹³C, ³¹P, ¹⁵N and ¹⁹F.
  3. Enter T₁ (longitudinal relaxation, 0.01–5 s) and T₂ (transverse relaxation, 0.001–2 s) in seconds. Typical tissue values are T₁ ≈ 0.5–2 s and T₂ ≈ 0.05–0.2 s; T₂ is clamped to T₁.
  4. The Larmor frequency f_L = γB₀/2π and angular frequency ω_L = γB₀ update in real time; press Play to animate the precession on the Bloch sphere.

Worked Example

For proton imaging at 1.5 T, enter B₀ = 1.5 T and γ = 26.75 (×10⁷ rad/s/T, i.e. 2.675×10⁸ rad/s/T). The tool reports f_L = 63.86 MHz and ω_L = 4.013×10⁸ rad/s. With T₁ = 0.80 s and T₂ = 0.100 s (grey-matter order of magnitude) and the “90° pulse → FID” preset, M_z recovers to 63% of M₀ at t = T₁ and M_xy decays to 37% at t = T₂. At 3.0 T the frequency doubles to 127.7 MHz, which changes RF-coil design and tuning.

Practical Notes

  1. Higher B₀ (3.0 T vs. 1.5 T) doubles the Larmor frequency, improving signal-to-noise ratio but increasing RF power deposition and off-resonance artifacts in wide imaging bandwidths.
  2. T₁ and T₂ are tissue-specific: cerebrospinal fluid behaves like water, with T₁ and T₂ of a few seconds, which is why it appears bright on T₂-weighted images while fat (T₁ ≈ 0.3 s, T₂ ≈ 0.08 s at 1.5 T) appears bright on T₁-weighted images.
  3. The precession frequency depends only on B₀ and γ, whereas T₁ and T₂ depend on tissue, temperature and field strength (T₁ in particular lengthens with B₀), so sequence timing must be re-tuned when moving between scanners.

🎬 Watch it in motion

Spin Defies Gravity | How a Gyroscope Works
Spin Defies Gravity | How a Gyroscope Works
Euler's Disk | Spin That Races Before It Stops #Shorts
Euler's Disk | Spin That Races Before It Stops #Shorts
Spherical Pendulum | An Orbit That Precesses #Shorts
Spherical Pendulum | An Orbit That Precesses #Shorts
Larmor Precession | A Magnet That Nods Forever #Shorts
Larmor Precession | A Magnet That Nods Forever #Shorts