HomeExplainers › Medicine

Medicine

How MRI Machines Work: Imaging the Body With Magnets

Open Brief Staff July 6, 2026 6 min read
Key points

A patient lying inside an MRI scanner is surrounded by a magnetic field roughly 20,000 to 60,000 times stronger than the Earth's own. Nothing about that field is dangerous on its own — it doesn't ionize anything, doesn't damage cells, and passes through the body without being felt. What it does is line up a specific type of atomic nucleus inside every cell so precisely that a second, much weaker radio signal can be used to map exactly where that nucleus sits and what kind of tissue surrounds it.

The Nucleus That Makes It Possible

The atom MRI cares about is hydrogen, specifically the single proton at its core. Hydrogen is abundant in the body because it's a component of water and fat, and both make up a large fraction of every organ, muscle, and blood vessel. Each of these protons behaves like an infinitesimally small bar magnet, spinning on its own axis. Scattered randomly, their magnetic effects cancel each other out and produce nothing measurable. Once the scanner's main magnet switches on, though, a small majority of those protons twist to align with the field, roughly the way iron filings snap into rows near a magnet on a tabletop. That alignment, multiplied across trillions of protons in a single slice of tissue, is what the machine will manipulate and measure.

Knocking Protons Out of Line on Purpose

Once the protons are aligned, the scanner fires a precisely tuned radio-frequency pulse into the body. This pulse is matched to the exact frequency at which hydrogen protons absorb energy, a phenomenon called resonance, and it tips the aligned protons out of their resting position. The instant the pulse stops, the protons begin drifting back into alignment with the main magnetic field, a process called relaxation. As they relax, they give off a tiny radio signal of their own, and that returning signal is what the scanner's receiver coils actually pick up. Nothing about this step involves radiation passing through tissue the way an X-ray beam does; the body is briefly excited by radio waves and then measured as it settles back down.

Why Different Tissues Look Different

The speed at which protons relax depends heavily on their surroundings. Protons in fluid-rich tissue like cerebrospinal fluid relax slowly, while protons bound up in dense, fatty, or fibrous tissue relax much faster. Radiologists exploit this by running different pulse sequences — T1-weighted, T2-weighted, and others — each tuned to highlight a different aspect of that relaxation timing. A T2-weighted sequence makes fluid appear bright, which is useful for spotting swelling or a tumor with high water content, while a T1-weighted sequence gives fat a bright signal and is better for showing normal anatomical structure. None of this changes what's physically happening in the body; it changes which part of the relaxation process the machine chooses to listen to.

Turning Signals Into a Slice

A radio signal alone doesn't say where in the body it came from. To localize it, the scanner layers on additional, weaker magnetic fields called gradients, which vary slightly in strength from one end of the body to the other. Because the resonant frequency of a proton depends on the exact strength of the magnetic field it sits in, protons at different positions end up emitting signals at very slightly different frequencies and phases. A computer records this raw frequency data and runs it through a mathematical transform to reconstruct a two-dimensional image, slice by slice, until an entire volume — a knee joint, a section of brain, an abdomen — has been mapped. The same core physics that governs how CT scans build up a 3D image slice by slice from a completely different signal source is at work here in spirit, even though CT relies on X-ray absorption and MRI relies on proton relaxation.

Why the Machine Is So Loud, and Why Metal Is Forbidden

Anyone who has been inside an MRI scanner remembers the noise: a rhythmic banging and buzzing that can run well over 100 decibels. That sound comes from the gradient coils physically flexing as they switch on and off thousands of times during a scan, vibrating against their mountings inside the machine's housing. It's also why metal objects are a serious hazard near an MRI suite. The main magnetic field is always on, even when no scan is running, and a loose steel object can become a fast-moving projectile, while implanted devices like some pacemakers or aneurysm clips can heat up or shift under the field's force. Screening patients and staff for metal before they enter the room isn't a formality; it's the primary safety control for the entire technology, similar in spirit to how the National Institute of Biomedical Imaging and Bioengineering describes MRI safety screening as the first and most critical step in any scan.

Trade-Offs Against Other Imaging

MRI's biggest advantage is soft-tissue contrast: it distinguishes gray matter from white matter, cartilage from tendon, and healthy tissue from inflamed tissue far better than CT or X-ray can. The trade-off is time and cost. A single MRI sequence can take several minutes, and a full scan often runs 30 to 60 minutes, compared to seconds for a CT slice. Patients with claustrophobia, certain implants, or an inability to stay still for that long may need sedation or an alternative scan entirely. Which imaging method a physician orders usually comes down to what needs to be seen: bone detail and speed favor CT or X-ray, while soft tissue, nerve, and joint detail favor MRI.

The short version

MRI works by aligning hydrogen protons in the body with a strong magnetic field, knocking them out of alignment with a radio pulse, and measuring the radio signal they emit as they relax back into place. Different tissues relax at different speeds, which is what creates image contrast, and additional gradient magnets let the scanner pinpoint exactly where each signal originated. Because it uses magnetism and radio waves rather than ionizing radiation, it's especially suited to detailed, repeatable imaging of soft tissue.