How Does an MRI Machine Use Magnets to Create Medical Images?

Magnetic resonance imaging (MRI) uses powerful magnets, radio waves, and computer processing to create detailed pictures of structures inside the human body. Unlike X-rays and computed tomography (CT) scans, MRI does not use ionizing radiation. Instead, it takes advantage of the magnetic properties of hydrogen atoms, which are abundant in water and fat throughout the body.

The central magnet inside an MRI machine creates a strong, stable magnetic field that influences the behavior of hydrogen nuclei in the body. Radio waves briefly disturb their alignment, and specialized receiver coils detect the signals they produce as they return toward their original state. A computer then processes these signals to construct detailed images of organs, muscles, bones, blood vessels, and other tissues.

Understanding this process requires looking at how magnets interact with the body, how hydrogen atoms generate detectable signals, and how an MRI scanner turns those signals into medical images.

Why MRI machines use powerful magnets

The human body contains large amounts of hydrogen because water and many biological molecules contain hydrogen atoms. Each hydrogen atom has a nucleus consisting of a single proton. This proton behaves like a tiny magnet because of a quantum mechanical property called spin.

Spin is an intrinsic property of subatomic particles. It is not literally the same as a small ball physically rotating, but it gives the proton a magnetic moment, meaning it responds to magnetic fields in a predictable way.

Under ordinary conditions, the magnetic moments of hydrogen nuclei point in many different directions. Their overall magnetic effects largely cancel one another, making it difficult to detect a useful signal from the body.

An MRI machine changes this situation by surrounding the patient with a strong, carefully controlled magnetic field. This field encourages hydrogen nuclei to adopt preferred orientations, creating a small but measurable net magnetization within the body’s tissues.

The main magnet is therefore the foundation of MRI. Its strength and stability help determine the quality of the signals that the scanner can detect and use to construct images.

Most clinical MRI systems use superconducting magnets. These magnets contain coils made from materials that, when cooled to extremely low temperatures, conduct electricity with virtually no electrical resistance. Once an electrical current is established in the coils, it can continue flowing with very little energy loss, maintaining a powerful magnetic field.

The superconducting coils are housed in a specially designed cryogenic system that keeps them cold. This arrangement allows MRI machines to produce strong magnetic fields continuously without requiring enormous amounts of electrical power to maintain the current.

How hydrogen nuclei respond to a magnetic field

When a person enters an MRI scanner, the main magnetic field affects the hydrogen nuclei throughout the body.

Protons can occupy two possible energy states in the presence of the magnetic field. One state has a magnetic orientation aligned with the field and a slightly lower energy. The other has an orientation opposed to the field and a slightly higher energy.

There are slightly more protons in the lower-energy state than in the higher-energy state. Although the difference is very small, the enormous number of hydrogen nuclei in the body produces a measurable overall magnetic effect.

This collective effect is called net magnetization.

Hydrogen nuclei also undergo a motion called precession. Rather than simply pointing steadily in one direction, their magnetic moments rotate around the direction of the main magnetic field, much like the axis of a spinning top moves around the direction of gravity.

The frequency of this motion is called the Larmor frequency. It depends on the strength of the magnetic field and the type of atomic nucleus being examined.

For hydrogen nuclei, a stronger magnetic field produces a higher precession frequency. This predictable relationship allows MRI systems to apply radio waves at precisely controlled frequencies to interact with the nuclei.

The combination of magnetic alignment and precession makes it possible for the scanner to manipulate hydrogen nuclei and detect their responses.

How radio waves produce an MRI signal

The main magnet establishes the magnetic environment, but radio waves are needed to generate the signal used for imaging.

An MRI scanner contains radiofrequency coils that transmit carefully timed pulses of electromagnetic energy. These pulses are tuned to the Larmor frequency of hydrogen nuclei in the magnetic field.

When a radiofrequency pulse reaches the body, it transfers energy to the hydrogen nuclei and changes the direction of the net magnetization. The magnetization is tipped away from its original alignment with the main magnetic field.

The amount of tipping depends on the strength and duration of the radiofrequency pulse. A pulse can rotate the net magnetization by a particular angle, commonly 90 or 180 degrees, depending on the imaging sequence being used.

Once the pulse ends, the hydrogen nuclei begin returning toward their equilibrium state. During this process, their changing magnetic behavior produces a signal that receiver coils can detect.

This is the basis of the term magnetic resonance.

The scanner does not directly photograph hydrogen atoms. Instead, it detects electromagnetic signals associated with changes in the collective magnetization of hydrogen nuclei. These signals contain information about the tissues from which they originate.

How hydrogen nuclei return to equilibrium

After a radiofrequency pulse, the hydrogen nuclei gradually return toward their original magnetic condition through two related processes called relaxation.

The first is T1 relaxation, also known as longitudinal relaxation. It describes how quickly the net magnetization recovers along the direction of the main magnetic field.

During this process, excited hydrogen nuclei transfer energy to their surrounding molecular environment. The surrounding environment is sometimes called the lattice, which is why T1 relaxation is also known as spin-lattice relaxation.

Different tissues recover at different rates. For example, fat and water-rich tissues generally have different T1 relaxation times. These differences help MRI scanners distinguish between tissue types.

The second process is T2 relaxation, or transverse relaxation. It describes how quickly the hydrogen nuclei lose their coordinated motion in the plane perpendicular to the main magnetic field.

Although the nuclei initially precess in a relatively coordinated way after a radiofrequency pulse, their magnetic interactions with one another and small variations in their local magnetic environments cause them to gradually lose synchronization.

As this coordination decreases, the detectable signal becomes weaker.

T1 and T2 relaxation provide different kinds of information about tissue composition and molecular surroundings. MRI scanners use these differences to create images with varying contrast.

A third concept, called T2-star (T2*), describes signal loss caused by both interactions between nuclei and variations in the magnetic field. These variations can result from imperfections in the scanner’s magnetic field or differences in the magnetic properties of nearby tissues.

Together, these relaxation processes explain why different tissues produce different signal patterns even when they contain similar amounts of hydrogen.

How an MRI machine determines where signals come from

Detecting a signal from the body is not enough to create an image. The scanner must also determine where that signal originated.

MRI machines accomplish this using additional magnetic fields produced by components called gradient coils.

These coils create small, controlled variations in the main magnetic field across the body. As a result, hydrogen nuclei at different locations experience slightly different magnetic field strengths.

Because the Larmor frequency depends on magnetic field strength, hydrogen nuclei in different locations precess at slightly different frequencies.

This allows the scanner to distinguish signals according to their positions.

MRI uses three main types of spatial encoding.

Slice selection identifies a particular section of the body. The scanner applies a magnetic field gradient while transmitting a radiofrequency pulse. Because the precession frequency varies with position, the pulse affects hydrogen nuclei within a selected frequency range, corresponding to a particular slice.

Frequency encoding helps identify the position of signals along one direction within that slice. A magnetic field gradient causes hydrogen nuclei at different locations to produce signals at different frequencies.

Phase encoding provides positional information along another direction. The scanner briefly applies a gradient that causes hydrogen nuclei in different locations to accumulate different amounts of phase, or differences in the timing of their precession.

By combining these methods, the scanner can determine the spatial origins of the signals it receives.

The gradients are switched on and off in carefully timed sequences. Their rapid changes produce the familiar knocking, buzzing, and tapping sounds associated with MRI examinations.

How computers turn magnetic signals into images

The signals detected by MRI receiver coils are not initially recognizable pictures. They are measurements containing information about the strength, frequency, and timing of signals from different locations.

The scanner organizes these measurements into a mathematical data space called k-space.

K-space does not represent the body as a conventional picture. Instead, it contains spatial frequency information that a computer can use to reconstruct an image.

Using a mathematical operation called the Fourier transform, the scanner converts the collected data into a spatial representation of the body’s internal structures.

The resulting image is made up of pixels in two-dimensional scans or voxels in three-dimensional scans. Each pixel or voxel represents the signal characteristics of a small region of tissue.

The brightness of each region depends on several factors, including hydrogen content, T1 and T2 relaxation times, magnetic field strength, and the timing and design of the imaging sequence.

This explains why the same tissue can appear bright in one MRI image and dark in another. The scanner can adjust its sequence to emphasize particular tissue characteristics.

The computer can also combine information from multiple slices to produce detailed three-dimensional representations of organs and other structures.

Why different tissues appear differently on MRI scans

One of MRI’s greatest advantages is its ability to distinguish between soft tissues that may look similar on other imaging tests.

Different tissues contain different amounts of hydrogen and have different molecular environments. These differences influence how their hydrogen nuclei respond to magnetic fields, how quickly they relax, and how strong their detected signals become.

Water-rich tissues, fatty tissues, muscles, and organs therefore produce different signal characteristics.

MRI examinations use specific imaging sequences to emphasize these differences.

A T1-weighted image highlights differences in T1 relaxation. Fat often appears relatively bright, while simple fluids generally appear darker.

A T2-weighted image emphasizes differences in T2 relaxation. Water-rich structures and areas of increased fluid content often appear bright, making these images useful for identifying swelling, inflammation, and certain types of tissue damage.

A proton-density-weighted image emphasizes differences in the concentration of hydrogen nuclei that contribute to the signal, with less emphasis on T1 and T2 contrast.

These are not the only available imaging approaches. MRI systems can also use specialized techniques to examine blood flow, chemical composition, tissue movement, and the movement of water molecules.

The choice of sequence depends on the medical question being investigated. A radiologist may interpret several different types of MRI images together to understand a condition more accurately.

How MRI can reveal more than anatomical structures

Although MRI is widely used to examine anatomy, its capabilities extend beyond producing pictures of organs and tissues.

One important application is functional MRI, commonly called fMRI. This technique detects changes in blood oxygenation associated with brain activity.

When a region of the brain becomes more active, its demand for oxygen increases. Blood flow to that region also changes, often delivering more oxygenated blood than the active tissue immediately needs.

Oxygenated and deoxygenated hemoglobin have different magnetic properties. These differences influence the MRI signal, allowing the scanner to detect changes associated with brain activity.

The resulting technique is called the blood oxygen level-dependent, or BOLD, method.

Functional MRI does not directly measure electrical activity in neurons. Instead, it detects changes in blood oxygenation that are indirectly associated with neural activity.

Another specialized technique is diffusion-weighted imaging. It measures how the movement of water molecules affects the MRI signal.

Water molecules move continuously through tissues. Their movement is restricted or influenced by the microscopic structure of surrounding cells and membranes.

In certain medical conditions, these movement patterns change. Diffusion-weighted MRI is particularly useful for detecting acute ischemic stroke, in which reduced blood supply damages brain tissue.

MRI can also examine blood vessels through magnetic resonance angiography, or MRA. Some MRA techniques use differences in blood movement to make vessels visible without requiring an injected contrast agent. Other techniques use contrast materials to improve vascular detail.

These applications demonstrate how the same basic magnetic principles can support different kinds of medical information.

Why MRI does not use X-ray radiation

MRI differs from conventional X-ray imaging and CT scanning because it does not rely on ionizing radiation.

X-rays are high-energy electromagnetic waves that can pass through the body and are absorbed to different degrees by different tissues. CT scanners use multiple X-ray measurements to reconstruct cross-sectional images.

MRI instead uses a strong magnetic field and radiofrequency waves. Radiofrequency energy is non-ionizing, meaning it does not have enough energy to remove electrons from atoms in the way ionizing radiation can.

This makes MRI useful when detailed soft-tissue imaging is needed without exposing the patient to X-ray radiation.

However, the absence of ionizing radiation does not mean MRI has no safety considerations.

The strong magnetic field can attract or move certain metal objects, creating serious hazards. Ferromagnetic materials, such as some types of iron-containing metals, can be pulled toward the scanner with considerable force.

Certain implanted medical devices, including some pacemakers, aneurysm clips, and other electronic or metallic devices, may also interact with the magnetic field or radiofrequency energy.

Many modern implants are designed for safe use under specified MRI conditions, but their compatibility must be verified before scanning.

Radiofrequency energy can also heat body tissues, while rapidly changing gradient fields may stimulate nerves in some circumstances. MRI facilities use established safety procedures to manage these risks.

Patients should inform medical staff about implanted devices, previous surgeries, metal fragments, and other relevant medical or occupational exposures before an examination.

What happens during an MRI examination

An MRI examination usually takes place in a dedicated room containing the scanner, which often has a large cylindrical opening surrounded by the main magnet.

The patient lies on a movable table that slides into the scanner. Depending on the body part being examined, a specialized receiver coil may be placed around or near the relevant area to detect signals more effectively.

Before scanning begins, the technologist positions the patient and provides hearing protection because the gradient coils produce loud noises during imaging.

Once the examination starts, the scanner applies a sequence of magnetic gradients and radiofrequency pulses. The receiver coils collect signals generated by the hydrogen nuclei, and the computer processes the information into images.

Patients are generally asked to remain still because movement can blur the images or produce artifacts that interfere with interpretation.

Some examinations require a contrast agent, commonly a gadolinium-based substance, to make particular structures or abnormalities easier to see. These agents alter the magnetic relaxation behavior of nearby hydrogen nuclei, changing the resulting signal.

Contrast is not necessary for every MRI examination. Its use depends on the medical question, the body part being examined, and the patient’s medical circumstances.

The length of an examination varies according to the number and type of imaging sequences required.

After scanning, a radiologist examines the images, looking for changes in anatomy, tissue characteristics, or blood flow that may help explain a patient’s symptoms or monitor a medical condition.

What determines the quality of an MRI image

Several factors influence how clearly an MRI machine can display internal structures.

Magnetic field strength is one important factor. Clinical MRI scanners commonly operate at field strengths such as 1.5 tesla and 3 tesla. A tesla is the unit used to measure magnetic field strength.

Higher field strengths can provide stronger signals and may allow finer image detail or faster examinations. However, stronger magnets do not automatically produce better images in every situation. They can also increase certain artifacts, distortions, and safety considerations.

The design and placement of receiver coils are also important. Coils positioned close to the body part being examined can detect signals more effectively, improving image quality.

Another major factor is the signal-to-noise ratio. This describes how strong the useful MRI signal is compared with unwanted background variation, or noise. A higher signal-to-noise ratio generally makes structures easier to distinguish.

The scanning sequence, acquisition time, patient movement, and reconstruction methods also influence the final image.

MRI is therefore not simply a matter of using the strongest possible magnet. Producing a useful medical image requires balancing magnetic field strength, signal detection, spatial resolution, scanning time, and the specific diagnostic information needed.

Why magnets are essential to modern MRI

The MRI machine transforms an invisible physical property of hydrogen nuclei into detailed medical information. Its main magnet creates an organized magnetic environment, radiofrequency pulses disturb the alignment of hydrogen nuclei, and the resulting signals reveal differences in the tissues throughout the body.

Gradient coils provide positional information, while computer algorithms reconstruct the detected signals into images that physicians can examine.

The remarkable feature of MRI is that it can distinguish between many types of soft tissue by measuring how hydrogen nuclei behave in different molecular environments. This allows doctors to investigate the brain, spinal cord, joints, muscles, internal organs, and blood vessels without using ionizing radiation.

The magnets do not directly photograph the inside of the body. They make it possible to generate, control, and detect signals from the body’s own hydrogen nuclei. That interaction between magnetism, radio waves, and computation is what makes modern magnetic resonance imaging possible.

Looking For Something Else?