A trim coil is a set of wire loops built into an MRI scanner that fine-tunes the magnetic field to keep it as uniform as possible. Without trim coils, the main magnetic field would have small inconsistencies that distort images, blur details, and cause signal loss. Clinical MRI systems need field uniformity within 0.5 parts per million (ppm) or better across the imaging area, and trim coils are what make that level of precision achievable.
Why the Magnetic Field Needs Correction
An MRI scanner’s main magnet produces a strong, mostly uniform field. But “mostly” isn’t good enough. The human body itself disrupts the field because different tissues interact with it differently. Bone, air pockets in the sinuses, and the boundary between tissue and air all create small local distortions. Even the shape of the scanner bore and tiny manufacturing imperfections in the magnet contribute to unevenness.
These field variations, even at the scale of a few parts per million, cause real problems in the final image. They can produce geometric warping, where structures appear shifted from their true position. They cause signal dropout, where parts of the image go dark. And they create blurring that obscures fine anatomical detail. The effect is especially pronounced in fast imaging techniques like echo planar imaging (EPI), which is commonly used for brain scans and functional MRI.
How Trim Coils Work
Trim coils sit inside the scanner bore, typically between the main magnet and the patient. Each coil carries a precisely controlled electrical current that generates a small, targeted magnetic field. By adjusting the current in each coil independently, the scanner can produce corrective fields that cancel out the unwanted variations in the main field. This process is called active shimming.
Most commercial MRI systems include trim coils that produce what are known as first- and second-order corrections. Think of these as addressing the broadest, most gradual field distortions across the imaging volume. Higher-field research scanners, like those operating at 7 Tesla, often add third-order coils to handle more complex distortion patterns. The coil designs themselves are based on specific mathematical field patterns called spherical harmonics, a concept that dates back to the late 1950s in MRI engineering.
The key advantage of trim coils over other correction methods is that they’re adjustable in real time. The scanner can update the current flowing through each coil before every scan, or even between individual slices during a scan, to account for the specific anatomy of the patient on the table.
Active Shimming vs. Passive Shimming
Trim coils represent the “active” approach to field correction, but MRI scanners also use a complementary method called passive shimming. Passive shimming involves placing small pieces of ferromagnetic material (usually iron pellets) at strategic locations inside the scanner bore. These pieces subtly reshape the magnetic field based on their position and mass.
Each approach has strengths that the other lacks. Passive shims are better at correcting complex, high-order field distortions that would require impractically many coils to fix electrically. They use no power and generate no heat. But they can’t be adjusted once the scanner is running, and rearranging them for different patients or scan types is impractical.
Active trim coils handle the lower-order, broader distortions efficiently and can be recalibrated for each patient in seconds. They also correct for subject-specific distortions caused by individual anatomy, something fixed passive shims can’t do. In practice, most MRI systems use both: passive shims are installed during scanner setup to handle the magnet’s intrinsic imperfections, while trim coils handle the patient-specific and scan-specific adjustments.
What Happens During a Shim Sequence
When you lie down in an MRI scanner and there’s a brief pause before imaging begins, part of that time is spent on shimming. The scanner runs a quick field-mapping sequence that measures the magnetic field across the area of interest. Software then calculates the optimal current for each trim coil to minimize the measured distortions. The currents are set, and imaging begins.
This entire process is automated and typically takes just a few seconds. For routine imaging, it happens once at the start of the exam. For more demanding applications, the scanner may re-shim between different scan orientations or body regions.
When Shimming Matters Most
Standard anatomical scans are relatively forgiving of small field imperfections. But certain MRI applications demand much tighter field uniformity, and trim coil performance becomes critical.
- Magnetic resonance spectroscopy (MRS) measures the chemical composition of tissue by detecting tiny differences in signal frequency from different molecules. Even slight field variations broaden the spectral peaks and make them overlap, rendering the measurement unreliable. Accurate spectroscopy depends on sharp, well-separated peaks, and that requires excellent shimming.
- Echo planar imaging (EPI) is the workhorse technique behind functional brain imaging and diffusion-weighted scans. It’s highly sensitive to field distortions, which cause geometric warping and signal voids, particularly near the sinuses and ear canals where air-tissue boundaries create steep field gradients.
- Fat suppression techniques rely on the small frequency difference between water and fat signals. If the field isn’t uniform, fat suppression fails unevenly across the image, leaving bright fat signal in some areas and not others. For applications like radiation therapy planning, field uniformity below 0.5 ppm is recommended specifically to ensure reliable fat-water separation.
- High-field MRI (3T and above) amplifies all field distortions proportionally. A distortion that’s barely noticeable at 1.5 Tesla becomes twice as large at 3 Tesla and nearly five times as large at 7 Tesla. This is why higher-field scanners invest in more trim coil channels and more sophisticated shimming algorithms.
Field Homogeneity Targets
The precision trim coils need to achieve depends on what the scanner is being used for. For routine clinical imaging, the accepted standard is field uniformity better than 0.5 ppm across a 35-centimeter sphere in the center of the scanner. Systems used for spectroscopy or fast EPI-based imaging need to reach 0.1 ppm or better over that same volume.
For specialized applications like stereotactic radiosurgery planning, where geometric accuracy directly affects treatment targeting, the recommendation tightens to 0.3 ppm. These numbers may sound abstract, but at a field strength of 3 Tesla, 1 ppm corresponds to a frequency shift of about 128 Hz. That’s enough to shift a voxel by several millimeters in a fast EPI scan or completely obscure a metabolite peak in spectroscopy.
Trim coils are, in essence, the fine-tuning mechanism that makes the difference between an MRI scanner that produces usable images and one that produces excellent ones. Every scan you’ve ever had in an MRI machine relied on trim coils working correctly in the background, silently correcting for the imperfect reality of magnetic fields interacting with human tissue.

