MRI uses magnetic field gradients to spatially encode signals from hydrogen nuclei. By applying gradients in three orthogonal directions, the scanner assigns unique frequency and phase characteristics to protons at different locations. This data fills 'k-space', a mathematical representation of spatial frequencies, which is then transformed into anatomical images via Fourier analysis.
What are magnetic field gradients?
In MRI, the main static magnetic field (called B₀) makes all hydrogen nuclei (protons) precess at the same frequency—this is called the Larmor frequency. But if every proton resonates identically, we can’t tell where the signal comes from. That’s where gradients come in.
A gradient is an additional, linearly varying magnetic field superimposed on B₀. It makes the total magnetic field strength change slightly across space—stronger at one end, weaker at the other. Because precession frequency depends on field strength (via the Larmor equation), protons now precess at different frequencies depending on their position along the gradient direction.
There are three orthogonal gradients:
- Slice-select gradient (usually z-axis): selects a thin slice of tissue.
- Frequency-encoding gradient (usually x-axis): makes protons precess at different frequencies along x.
- Phase-encoding gradient (usually y-axis): briefly alters phase along y before readout.
Together, these allow 3D localisation of MR signals.
How does slice selection work?
To image a specific slice (e.g., axial brain), we apply the slice-select gradient while transmitting a radiofrequency (RF) pulse. Only protons whose Larmor frequency matches the RF pulse’s frequency will absorb energy and flip—this is resonance.
Because the gradient makes frequency vary linearly with position, only a narrow band of protons (a slice) resonates. The slice thickness depends on:
- Gradient strength (stronger = thinner slice)
- RF bandwidth (narrower bandwidth = thinner slice)
After excitation, the slice-select gradient is turned off.
What happens during frequency and phase encoding?
Once a slice is excited, we need to locate signals within that slice.
Frequency encoding
During signal readout (when we listen to the MR signal), we turn on the frequency-encoding gradient. Protons along this axis now precess at different frequencies. The scanner records a mixture of frequencies—each corresponding to a column of tissue.
Phase encoding
Before readout, we briefly apply the phase-encoding gradient. This causes protons along that axis to accumulate different phases (i.e., they get slightly out of sync). When the gradient is turned off, they return to the same frequency but retain their phase offset.
By repeating the scan many times—each time with a different strength of the phase-encoding gradient—we collect data with varying phase shifts. This builds up a full map of spatial information.
What is k-space?
k-space is not a physical space—it’s a mathematical matrix that stores raw MRI data. Each point in k-space contains information about spatial frequencies (how rapidly signal intensity changes across the image), not direct anatomy.
- The centre of k-space holds low spatial frequencies (overall image contrast and brightness).
- The edges hold high spatial frequencies (fine detail and edges).
k-space is filled line by line: each repetition of the pulse sequence adds one line, determined by the phase-encoding step. The number of phase-encoding steps equals the number of lines in k-space (and often the image matrix size, e.g., 256).
How do we get an image from k-space?
The MR image is reconstructed by applying a 2D inverse Fourier transform to k-space data. This mathematical operation converts spatial frequency information into a spatial map of signal intensities—the final image.
If k-space is incompletely filled (e.g., fewer phase-encoding steps), the image may appear blurred or have reduced resolution. Partial k-space techniques (like half-Fourier) exploit symmetry to speed up scans but may reduce signal-to-noise ratio.
Why does this matter clinically and for exams?
Understanding gradients and k-space helps explain:
- How scan parameters affect image quality (e.g., more phase-encoding steps = higher resolution but longer scan time).
- Artefacts like wrap-around (aliasing) or ghosting (from motion during phase encoding).
- Trade-offs between speed, resolution, and signal-to-noise.
For the FRCR exam, you must know:
- The role of each gradient.
- That k-space is not an image—it’s raw data.
- That image reconstruction uses Fourier transformation.
- That phase encoding is repeated many times; frequency encoding occurs once per readout.
Common misconceptions
- k-space ≠ anatomy: It looks like a blurry version of the image but isn’t interpretable directly.
- Gradients don’t image alone: They work together with RF pulses and timing.
- Phase encoding is slow: Because it requires many repetitions, it’s often the bottleneck in scan time.
Further reading: Farr’s Physics for Medical Imaging provides excellent diagrams and deeper mathematical context.
Keep going
- Next step: FRCR Part 1 Physics Question Bank
- Related: Free FRCR Physics Revision Notes
- Related: Spin echo vs gradient echo sequences
- Gradients make the magnetic field vary linearly across space, enabling spatial encoding.
- Three orthogonal gradients: slice-select, frequency-encode, phase-encode.
- k-space stores raw MRI data as spatial frequencies, not anatomy.
- Image is reconstructed via 2D inverse Fourier transform of k-space.
- Centre of k-space = contrast; edges = detail.
- Phase encoding is repeated for each line; frequency encoding occurs once per readout.
- Slice thickness depends on gradient strength and RF bandwidth.
- Confusing k-space with the final image—it is not anatomical.
- Mixing up which gradient does what (e.g., thinking frequency encoding selects the slice).
- Assuming phase encoding happens only once—it’s repeated for each k-space line.
- Forgetting that Fourier transformation converts k-space to image.
- Believing stronger gradients always improve image quality—they can increase noise or artefacts.
Lock this in with exam-style MRI questions and worked explanations on FRCRbank.
Start practising →- Gradient:
- An additional magnetic field that varies linearly across space, used to encode position in MRI.
- Larmor frequency:
- The precession frequency of hydrogen nuclei in a magnetic field, proportional to field strength.
- k-space:
- A mathematical matrix storing raw MRI data as spatial frequencies; not directly interpretable as an image.
- Fourier transform:
- A mathematical operation that converts k-space data into a spatial image.
- Phase encoding:
- Application of a gradient to impart position-dependent phase shifts, repeated for each k-space line.
- Frequency encoding:
- Application of a gradient during signal readout to create position-dependent frequency differences.
- Slice selection:
- Use of a gradient and RF pulse to excite only a specific slice of tissue.
FAQ
Why can’t we image without gradients?
Without gradients, all protons precess at the same frequency, so the scanner cannot determine where signals originate. Gradients introduce position-dependent frequency and phase differences, enabling spatial localisation.
Is k-space the same as the MR image?
No. k-space is a data matrix of spatial frequencies. The actual image is only visible after applying a Fourier transform to k-space.
Why is phase encoding slower than frequency encoding?
Phase encoding must be repeated once for each line in k-space (e.g., 256 times), whereas frequency encoding occurs just once per signal readout.
What determines slice thickness?
Slice thickness is controlled by the strength of the slice-select gradient and the bandwidth of the RF pulse. A stronger gradient or narrower RF bandwidth produces a thinner slice.