Gradients, Slice Selection & Spatial Encoding
Turning one signal into a map of space
Magnetic field gradients make Larmor frequency a function of position. We work through slice-selective excitation, frequency encoding (readout), and phase encoding, and show how the time-bandwidth product and gradient amplitude set slice thickness and field of view.
By the end you will be able to
- 1Describe how a gradient maps spatial position onto resonant frequency
- 2Design a slice-selective excitation from an RF bandwidth and gradient strength
- 3Differentiate frequency and phase encoding and their roles in 2D acquisition
- 4Relate gradient timing to field of view, resolution and the k-space trajectory
Prerequisites: Spin, Magnetization & the Larmor Equation
From One Signal to a Map of Space
A spinning sample in a perfectly uniform field emits a single resonance at one frequency, . The receiver coil integrates contributions from every excited proton in the body and reports one number per instant in time. There is no information about where any of that signal came from. The entire enterprise of MR imaging is the trick of making frequency and phase depend on position, so that a measurement in time can be inverted into a measurement in space.
The instrument that accomplishes this is the gradient coil: a set of windings that superimpose a small, spatially linear field on top of . By controlling the amplitude and timing of three orthogonal gradients, we select a slice, encode one in-plane axis by frequency, and encode the orthogonal axis by phase. This lesson derives each of those operations from the Larmor relation and shows how gradient area, not gradient amplitude alone, is the master variable that fixes field of view and resolution.
Linear Gradients and the Position-Dependent Larmor Frequency
A magnetic field gradient is a controlled spatial variation of the -component of the main field. We define three gradient amplitudes, , , and , collected into a vector with units of millitesla per meter (mT/m). The total longitudinal field at position is the base field plus the linear ramp.
- static main field strength (T)
- gradient amplitude vector (T/m)
- position vector (m)
Because the Larmor frequency is proportional to the local field, the resonance frequency now carries spatial information. Substituting Eq. 3.1 into gives the foundational equation of spatial encoding.
- local angular Larmor frequency (rad/s)
- gyromagnetic ratio, 2.675 times 10 to the 8 rad per s per T for protons
Slice Selection
Selective excitation confines the flip to a thin slab. We apply a slice-select gradient (call it for an axial slice) at the same time as a shaped radiofrequency pulse. The gradient spreads the Larmor frequency linearly along , so each plane resonates at its own frequency. An RF pulse contains only a finite band of frequencies, (its transmit bandwidth), so it can only tip the spins whose Larmor frequency falls inside that band.
Set the bandwidth condition equal to the gradient-induced spread across the slice. Spins from to span a frequency range . Solving for the slab thickness gives the master slice equation.
- slice thickness (m)
- RF transmit bandwidth (Hz)
- slice-select gradient amplitude (T/m)
Two practical levers follow directly. To get a thinner slice, either narrow the RF bandwidth or increase the gradient . To move the slice off isocenter to position , shift the RF center frequency by , with no change to the gradient. Worked example: with MHz/T, an RF bandwidth of 1000 Hz and mT/m give m, about 2.3 mm.
Slice Profile and the Time-Bandwidth Product
The slice profile (signal versus ) is approximately the Fourier transform of the RF envelope. A rectangular profile would require an infinitely long sinc pulse, so real pulses are truncated sinc shapes that trade off pulse duration against profile sharpness. The governing dimensionless quantity is the time-bandwidth product , where is the pulse duration. Typical excitation pulses use to ; higher TBW gives sharper slice edges at the cost of a longer pulse and more specific absorption rate.
The Slice-Refocusing Lobe
During the second half of a symmetric RF pulse, spins across the slice accrue different phases because is still imposing a position-dependent frequency. By the end of excitation the transverse magnetization is dephased across the slice, which would reduce the net signal. The fix is a negative gradient lobe applied immediately after, whose area is approximately half the area of the slice-select lobe (for a symmetric pulse, the effective excitation occurs near the pulse center). This refocusing lobe rewinds the through-slice phase to zero, restoring coherent signal. Forgetting it, or mis-setting its area, causes a global signal loss that is uniform across the image, an easy artifact to misread as low gain.
Frequency (Readout) Encoding
After exciting a slice we must localize signal within the slice plane. The first in-plane axis is encoded by switching on a readout gradient (say ) while the signal is being sampled. Each column of spins at position then precesses at its own offset frequency . The received signal is a superposition of these tones, and a one-dimensional Fourier transform of the digitized echo separates them, mapping each frequency back to its position .
Sampling sets the limits. If we acquire complex points at dwell time (so the total readout duration is ), the receiver bandwidth is . The Nyquist theorem requires that the highest spatial frequency in the object fit within this sampling band; frequencies outside it alias (wrap around) in the image. The range of resolvable spatial positions, the field of view along the readout, follows from equating the receiver bandwidth to the frequency spread across the FOV.
- readout field of view (m)
- total receiver bandwidth, equals 1 over dwell time (Hz)
- sampling dwell time (s)
Phase Encoding
The orthogonal in-plane axis cannot use a second simultaneous readout gradient, because a single sampled time series cannot separate two frequency axes at once. Instead we use phase encoding. Before readout, a gradient is pulsed for a fixed duration . While it is on, spins at position precess faster or slower and acquire a position-dependent phase . When is switched off, that phase is frozen into the transverse magnetization and persists through the readout.
A single phase-encode step gives one phase ramp across , which is not enough to resolve the axis. We repeat the entire excitation-and-readout cycle many times, stepping the area of the phase-encode gradient on each repetition. Each step imposes a different spatial-frequency ramp along , and after steps the orthogonal axis is fully sampled. The price is time: total scan time scales with the number of phase-encode steps, which is why phase encoding usually dominates the duration of a 2D acquisition.
Unifying the Picture: k-Space
Slice selection, frequency encoding, and phase encoding look like three different operations, but they are the same operation applied along different axes and bookkept by a single quantity: the spatial frequency . Define as the time integral of the gradient. Its value at any instant is set purely by the accumulated gradient area up to that moment, regardless of whether that area was delivered as a tall brief pulse or a low long one.
- spatial frequency coordinate (cycles per m)
- instantaneous gradient vector (T/m)
- gyromagnetic ratio in Hz/T, 42.58 MHz/T for protons
In this language, the received signal is the Fourier transform of the spin density , sampled along whatever trajectory the gradients trace: . The readout gradient sweeps continuously during sampling (one horizontal line). Each phase-encode step jumps to a different (selects which line). The image is recovered by an inverse 2D Fourier transform of the filled k-space matrix.
From this single integral, the geometry of the image falls out as two reciprocal relationships. The extent of k-space you cover, , sets the spatial resolution, and the spacing between k-space samples, , sets the field of view.
| Image property | k-space quantity | Relationship | | --- | --- | --- | | Field of view (FOV) | sample spacing Δk | FOV = 1 / Δk | | Pixel size (resolution) | maximum extent k(max) | Δr = 1 / (2 · k(max)) | | Readout line direction | k(x) swept during sampling | filled in one TR | | Phase-encode direction | k(y) stepped between TRs | one line per TR |
Explore: Trajectories and Sampling in k-Space
The KSpaceExplorer below lets you change how k-space is sampled and watch the reconstructed image respond. Try shrinking the sampled extent () to see resolution blur, then widen the sample spacing () to provoke aliasing wrap. Note how the bright center governs overall contrast while the periphery sharpens edges.
Shepp–Logan phantom
log magnitude · DC at center
inverse Fourier transform
All samples — the complete image.
Putting the Numbers Together
The three operations chain into a complete 2D acquisition. Slice select with plus a shaped RF pulse confines excitation to a slab of thickness . A phase-encode blip sets the line. The readout sweeps across one line while the receiver samples at bandwidth , fixing . Repeat over phase-encode steps to fill k-space, then inverse Fourier transform. A representative worked set of parameters appears below.
| Parameter | Symbol | Representative value | | --- | --- | --- | | Field strength | B0 | 1.5 T | | Slice-select gradient | Gz | 10 mT/m | | RF bandwidth | Δf | 1000 Hz → 2.3 mm slice | | Readout gradient | Gx | 8 mT/m | | Receiver bandwidth | BW | 32 kHz → ~94 mm FOV | | Matrix | Nx × Ny | 256 × 256 | | Max gradient amplitude | G(max) | 40 mT/m typical clinical |
Imaging for this lesson
Explore the correct real MRI for this topic — yours to scroll, window and render.
A volume is a stack of slices, each frequency- and phase-encoded. Toggle the gray-matter probability map to see encoded signal become a labelled spatial map.
Brain & head
Scroll to change slice · click-drag to move the crosshair · right-click-drag to window (brightness/contrast).
Check your understanding
1.An RF pulse with a transmit bandwidth of 1000 Hz is applied with a slice-select gradient. If you want to make the excited slice thinner without changing the RF pulse, what should you do?
2.Why must the entire excitation-and-readout cycle be repeated many times when phase encoding, while frequency encoding can resolve its axis in a single readout?
3.In k-space, the spacing between sampled points (delta k) and the maximum sampled extent (k-max) determine image geometry. Which pairing is correct?
4.A radiologist lowers the receiver bandwidth to improve SNR on a 1.5 T study. What is the most likely consequence?
5.Why is a negative slice-refocusing gradient lobe applied immediately after a symmetric slice-selective RF pulse?