MRI machines use three distinct types of magnets working together to produce detailed images of the inside of your body, all without radiation. The main magnet creates a powerful, constant magnetic field that forces hydrogen atoms in your tissues to line up in an orderly way. Gradient coils then make small, controlled variations in that field to pinpoint exact locations in three-dimensional space. The whole process is built on the fact that your body is mostly water, and water is full of hydrogen.
The Main Magnet: Creating the Field
The core of every MRI machine is a large superconducting magnet that generates a constant magnetic field. Most clinical MRI systems operate between 1.5 and 3 Tesla, which is roughly 30,000 to 60,000 times stronger than Earth’s magnetic field. Research centers are increasingly exploring ultra-high-field systems at 7 Tesla or above for even finer detail.
Each hydrogen atom in your body behaves like a tiny bar magnet with its own north and south pole, spinning on an axis. Normally, these miniature magnets point in random directions, so their effects cancel out. When you lie inside the MRI scanner, the powerful static field forces those hydrogen protons to align along the same axis, much like compass needles snapping toward north. This uniform alignment creates a net magnetic signal that the machine can detect and manipulate.
Keeping this field perfectly uniform matters enormously. Even tiny inconsistencies distort the final image. That’s where shim coils come in. These are smaller, independently controlled coils positioned around the imaging area. They generate correction fields that counteract local disturbances, compensating for everything from manufacturing imperfections to the way your own body slightly warps the field. The shimming process is customized for each patient and runs throughout the scan to maintain field quality.
How the Machine Reads Your Tissues
Aligning hydrogen protons is only the setup. To actually produce an image, the scanner sends a brief burst of radio waves, called a radiofrequency (RF) pulse, tuned to the exact spinning frequency of those aligned protons. This is the “resonance” in magnetic resonance imaging. The pulse lasts just a few milliseconds, but it transfers enough energy to knock the protons out of alignment, tipping their collective magnetization into a different plane.
The moment the RF pulse switches off, the protons begin snapping back to their original alignment with the main magnetic field. As they do, they release the absorbed energy as faint radio signals. A receiver coil inside the scanner picks up these signals. Different tissues release energy at different rates: fat recovers quickly, water-rich tissues like cerebrospinal fluid recover slowly, and muscle falls somewhere in between. These timing differences are what give MRI its remarkable ability to distinguish soft tissues from one another, producing contrast that X-rays and CT scans simply cannot match.
Gradient Coils: Pinpointing Location
The RF signal tells the machine what type of tissue is responding, but not where that tissue is. That spatial information comes from gradient coils, a second set of magnets built into the scanner bore. Gradient coils make the magnetic field slightly stronger at one end of the body and slightly weaker at the other, creating a smooth, controlled slope across the imaging area.
This slope has a clever consequence. Because the spinning frequency of hydrogen protons depends on the strength of the surrounding field, protons at different positions along the gradient spin at slightly different speeds. The scanner can then decode position from frequency: a proton spinning faster is located where the field is stronger, and one spinning slower sits where the field is weaker. By applying gradients in three perpendicular directions (head to toe, left to right, front to back), the machine encodes full three-dimensional location data into the signal.
Gradient coils switch on and off rapidly during a scan, cycling through many orientations and strengths to build up enough spatial data for a complete image. This rapid switching is also the source of the loud banging and knocking sounds you hear during an MRI. The coils carry large electrical currents in the presence of the powerful static field, which generates substantial forces on the coil conductors. Those forces cause the conductors to vibrate, and the vibrations radiate outward as acoustic pressure waves. The noise can exceed 100 decibels, which is why you’re given earplugs or headphones before a scan.
Keeping the Magnets Running
The main magnet in most MRI scanners is superconducting, meaning its wire coils carry electrical current with zero resistance. To reach that superconducting state, the coils must be cooled to extremely low temperatures, traditionally using a bath of liquid helium at around minus 269 degrees Celsius. Once the current is flowing, it circulates indefinitely without an external power source, so the magnet stays “on” 24 hours a day, 7 days a week, even when no one is being scanned.
Liquid helium is expensive and increasingly scarce, so newer MRI designs are moving toward cryogen-free systems that use mechanical coolers instead of a helium bath. These systems reduce the size and weight of the machine and eliminate one of the biggest safety risks in traditional MRI: a sudden loss of superconductivity called a quench, where all the stored energy converts to heat instantly, boiling off helium gas that can displace oxygen in the room. Cryogen-free technology is considered a mainstream direction for next-generation scanners.
Safety Around a Permanent Magnetic Field
Because the main magnet is always on, the area around an MRI machine requires strict safety controls. The magnetic field extends beyond the walls of the scanner bore, creating what’s called a fringe field. MRI facilities are designed so that the walls of the magnet room contain the 5-Gauss line, a boundary beyond which the field is weak enough to be considered safe for people with implanted medical devices like pacemakers. MRI suites use a four-zone system, with the magnet room itself (Zone IV) being the most restricted. Access is only possible by passing through a screening area (Zone III) where staff verify that no one carries ferromagnetic objects, which could be pulled toward the magnet at dangerous speed.
If you have a medical implant, its MRI compatibility falls into specific categories. “MR Unsafe” means you cannot enter the scanner room at all while the implant is in place. “MR Conditional” means a scan is possible under certain conditions, such as limiting the scanner’s field strength to 1.5 Tesla, using a bandaging kit to secure the implant, or in some cases surgically removing part of the device beforehand. Newer implant designs are increasingly engineered to be MR Conditional. For instance, some modern cochlear implants contain magnets that can rotate and reorient themselves during a scan rather than being wrenched out of position by the field.
Putting It All Together
An MRI scan is a carefully orchestrated sequence involving all three magnet systems simultaneously. The main magnet holds hydrogen protons in alignment. The RF system tips them over and listens for the signal they emit as they recover. The gradient coils stamp each signal with precise location data. A computer then assembles thousands of these spatially encoded signals into cross-sectional images, which can be stacked to create a full 3D view of the body.
The entire process takes anywhere from 15 minutes to over an hour depending on the body part, the level of detail needed, and how many image sequences the radiologist requests. Different pulse sequences, meaning different patterns of RF pulses and gradient timing, emphasize different tissue properties. One sequence might highlight fluid-filled structures, another might make blood vessels stand out, and yet another might reveal subtle differences in tissue density. All of these variations are achieved by changing how the magnets and radio waves interact, without ever altering the hardware itself.

