How MRI Machines Work: Magnetic Fields, Radio Waves, and Human Tissue
MRI machines produce detailed images of soft tissue without radiation, using powerful magnets and radio waves. Discover the physics of magnetic resonance and how it became medicine's sharpest diagnostic tool.
What Makes MRI Different?
Magnetic Resonance Imaging (MRI) is a medical imaging technology that produces detailed, three-dimensional images of the body's internal structures without using ionizing radiation. Unlike X-rays or CT scans, which rely on radiation passing through tissue, MRI exploits the magnetic properties of hydrogen atoms already present in the body's water and fat molecules.
This makes MRI particularly valuable for imaging soft tissues: the brain, spinal cord, muscles, tendons, cartilage, and abdominal organs, which X-rays see poorly. The combination of safety, resolution, and soft-tissue contrast has made MRI one of medicine's most powerful diagnostic tools since its introduction in the early 1980s.
Nuclear Magnetic Resonance: The Core Physics
MRI is based on a physical phenomenon called Nuclear Magnetic Resonance (NMR), discovered by Felix Bloch and Edward Purcell in 1946 (for which they shared the 1952 Nobel Prize in Physics). The key insight is that atomic nuclei with an odd number of protons or neutrons possess a property called spin, behaving like tiny bar magnets.
Hydrogen nuclei (single protons) are ideal for MRI because hydrogen is extraordinarily abundant in the human body, present in every water molecule and every fat molecule. When placed in a strong external magnetic field, hydrogen protons align with the field (the low-energy state) or against it (the high-energy state). The population of protons is slightly biased toward the low-energy alignment, creating a net magnetization that can be manipulated and measured.
The Main Magnet: Creating Alignment
The large cylindrical tube you enter during an MRI scan houses a superconducting electromagnet that generates a powerful, uniform magnetic field, typically 1.5 or 3 Tesla (30,000 to 60,000 times the strength of Earth's magnetic field). This magnet must be kept at around 4 Kelvin (minus 269 degrees Celsius) using liquid helium cooling to maintain superconductivity.
The powerful field aligns the patient's hydrogen protons. They do not simply point along the field; they precess around it like spinning tops, wobbling at a characteristic frequency called the Larmor frequency, which is proportional to the field strength. For a 1.5 T scanner, this is about 64 MHz, in the radio-frequency range of the electromagnetic spectrum.
Radio Frequency Pulses: Tipping the Magnetization
Once the protons are aligned and precessing, the MRI machine transmits a brief radiofrequency (RF) pulse at precisely the Larmor frequency. This resonance condition allows the RF pulse to efficiently transfer energy to the protons, tipping their net magnetization away from alignment with the main field.
When the RF pulse is switched off, the protons relax back toward their equilibrium alignment, releasing the absorbed energy as a faint RF signal that the machine detects with receiver coils. The rate of this relaxation, measured as two time constants called T1 and T2, differs between tissue types. Fat, water, gray matter, white matter, muscle, and tumor tissue all have distinct T1 and T2 values. By choosing acquisition parameters that weight the image by T1 or T2 contrast, radiologists can selectively highlight or suppress different tissues.
Gradient Coils: Creating Spatial Information
The RF signal described above would come from all protons in the body simultaneously. To create a spatially resolved image, MRI scanners use gradient coils that superimpose small, carefully controlled variations in magnetic field strength across the patient in three dimensions.
Because the Larmor frequency is proportional to field strength, protons at different locations precess at slightly different frequencies when a gradient is applied. By analyzing the frequency spectrum of the detected signal during readout, the scanner can determine which signal came from which location along each axis. This process, called Fourier encoding, allows the scanner to reconstruct a complete three-dimensional image from the detected RF signals. The loud knocking noise you hear in an MRI scanner comes from the gradient coils being rapidly switched on and off.
Contrast Agents and Functional MRI
Injecting a contrast agent (typically a gadolinium-based compound) highlights regions where the blood-brain barrier is disrupted, revealing tumors, inflammation, and infection by changing local T1 relaxation times. Contrast-enhanced MRI is indispensable in cancer staging and neurological evaluation.
Functional MRI (fMRI) maps brain activity by detecting changes in blood oxygenation. Active neurons consume more oxygen, increasing local blood flow and changing the MRI signal through the BOLD effect (Blood Oxygen Level Dependent). fMRI has become the dominant tool in cognitive neuroscience for mapping which brain regions activate during specific tasks.
Safety, Limitations, and the Future
MRI's main safety advantage is the absence of ionizing radiation. However, the powerful magnetic field poses hazards: metallic implants (pacemakers, cochlear implants, aneurysm clips) can be dangerous in or near the scanner. Patients must be carefully screened and all metal removed from the scanning environment.
Limitations include cost (scanners cost $1 to 3 million and require dedicated shielded rooms), claustrophobia in some patients, and imaging time (a typical scan takes 20 to 60 minutes). Newer open MRI designs reduce claustrophobia but typically use lower field strengths and produce less detailed images. Ultra-high-field scanners at 7 Tesla are enabling new research applications, and advances in rapid acquisition sequences and AI-assisted image reconstruction are steadily improving speed and quality.
Related Articles
how things work
How 3D Printers Work: FDM, SLA, and Why They're Changing Manufacturing
Understand the technology behind 3D printing, including FDM and SLA processes, the materials used, and how additive manufacturing is transforming industries worldwide.
10 min read
how things work
How Air Conditioning Reshaped Modern Civilization
Willis Carrier's 1902 invention for a printing plant became the technology that enabled Sun Belt migration, transformed architecture, and now consumes 10% of global electricity.
9 min read
how things work
How Airplane Wings Generate Lift: The Physics of Flight
Lift is the upward force that keeps aircraft airborne, and its real explanation is more nuanced than the popular Bernoulli story. This article explains how wings actually work using correct aerodynamics.
9 min read
how things work
How Batteries Work: Chemistry, Types, and Applications
Understand the chemistry behind batteries, how they store and release electrical energy, the major battery types, and their applications in modern technology.
8 min read