MRI Physics

MRI gradients and spatial encoding: slice selection, frequency and phase

Learning objectives

  • Explain how a magnetic field gradient makes frequency depend on position
  • Work out slice thickness from RF bandwidth and gradient strength
  • Describe frequency encoding and phase encoding
  • Link gradient performance to scan speed, noise and nerve stimulation
Diagram of the three gradient coils in an MRI scanner
The three gradient coil sets (x, y and z) inside a cylindrical MRI scanner. Diagram: Francesco Santini, CC BY-SA 3.0, via Wikimedia Commons.

Making frequency depend on position

Protons precess at the Larmor frequency, which is proportional to the magnetic field: f = γ̄B, where γ̄ = 42.58 MHz/T for hydrogen. If the field were the same everywhere, every proton would give the same frequency and we could not tell where the signal came from. Three extra coils, the gradient coils (x, y and z), add a small field that changes linearly with position:

f(x) = γ̄ · (B0 + Gx · x)

With a gradient switched on, frequency becomes a label for position. The image is built from three uses of this idea: slice selection, frequency encoding and phase encoding. The gradient direction for each is chosen freely, which is why MRI can image in any plane without moving the patient.

1. Slice selection

During the RF pulse a gradient is applied along the slice direction. Only protons whose frequency falls within the pulse’s bandwidth are excited. The slice thickness is:

slice thickness = RF bandwidth / (γ̄ · G)
gamma_bar = 42.58e6        # Hz per tesla
G  = 10e-3                  # 10 mT/m
bw = 1000                   # 1 kHz RF bandwidth
print(bw / (gamma_bar * G) * 1000, "mm")   # ≈ 2.35 mm

Thinner slices need a stronger gradient or a narrower RF bandwidth (a longer pulse). Changing the centre frequency of the pulse moves the slice.

2. Frequency encoding

While the echo is being recorded, a readout gradient is switched on. Each column of the image now emits a slightly different frequency, and the Fourier transform separates them. The receiver bandwidth and the readout gradient together set the field of view in that direction. The fat–water chemical shift appears along this direction as a spatial shift, which is why chemical shift artefact is seen in the frequency-encoding direction.

3. Phase encoding

Diagram of the phase-encoding principle
Phase encoding: while the gradient is on, spins precess at different rates; when it is switched off they return to the same frequency but keep a phase difference that depends on position. Diagram: Dzenanz, public domain, via Wikimedia Commons.

The third direction is encoded with a brief gradient before the readout. While it is on, spins precess at different rates; when it is switched off, they return to the same frequency but keep a phase difference that depends on position. Each repetition uses a different phase-encoding step, filling one line of k-space. For a conventional 2D sequence:

scan time = TR × number of phase-encoding steps × number of averages

Because phase encoding needs one step per line, it is the slow direction. That is why parallel imaging and partial Fourier reduce phase-encoding steps to save time, and why motion artefacts appear along the phase-encoding direction.

Gradient performance

PropertyMeaningWhy it matters
Amplitude (mT/m)Strength of the gradientThinner slices, higher resolution, stronger diffusion weighting
Slew rate (T/m/s)How fast the gradient can be switchedShorter TE and TR, faster EPI, less distortion
Duty cycleHow long high gradients can be sustainedLong diffusion and EPI scans heat the gradient coils

Fast-switching gradients cause the loud knocking noise of MRI (the coils move slightly inside the main field) and can cause peripheral nerve stimulation. Scanners limit gradient switching to stay within safety limits.

References

  • Lauterbur PC. Image formation by induced local interactions: examples employing nuclear magnetic resonance. Nature 1973;242:190–191.
  • McRobbie DW, Moore EA, Graves MJ, Prince MR. MRI from Picture to Proton. 3rd ed. Cambridge University Press; 2017.

Related articles

Last reviewed: 7 November 2026. Educational content for researchers, clinicians and students. Values are typical examples; local protocols, scanner software and manufacturer guidance take priority.

MRISpin Team

MRISpin team combines decades of experience in MRI research, clinical practice, and science communication. Meet the people driving MRISpin’s mission.

Related Articles

Back to top button