MSD Manual

Please confirm that you are not located inside the Russian Federation

honeypot link

Magnetic Resonance Imaging (MRI)


Mehmet Kocak

, MD, Rush University Medical Center

Reviewed/Revised Apr 2021 | Modified Sep 2022
Topic Resources

In magnetic resonance imaging (MRI), a strong magnetic field and very high frequency radio waves are used to produce highly detailed images. MRI does not use x-rays and is usually very safe. (See also Overview of Imaging Tests Overview of Imaging Tests Imaging tests provide a picture of the body’s interior—of the whole body or part of it. Imaging helps doctors diagnose a disorder, determine how severe the disorder is, and monitor people after... read more .)

Procedure for MRI

For MRI, a person lies on a motorized table that is moved into the narrow interior of a large tubular scanner, which produces a strong magnetic field. Normally, protons (positively charged parts of an atom) in tissues are in no particular arrangement. But when protons are surrounded by a strong magnetic field, as in an MRI scanner, they line up with the magnetic field. Then, the scanner emits a pulse of radio waves, which momentarily knocks the protons out of line. As the protons line up with the magnetic field again, they release energy (called signals). The strength of the signal varies by tissue. The MRI scanner records these signals. A computer is used to analyze the signals and produce images.

Examiners can change how various tissues appear on a scan by varying the radio wave pulses, the strength and direction of the magnetic field, and other factors. For example, fat tissue appears dark on one type of scan and bright on another. These different scans provide complementary information, so more than one is often obtained.

Before the test, people remove most or all of their clothing and are given a gown that has no buttons, snaps, zippers, or other metal on it to wear. All metal objects (such as keys, jewelry, and cell phones) and other objects that could be affected by the magnetic field (such as credit cards and watches) should be left outside the MRI scanning room. People must lie still when images are taken and may have to hold their breath at times. Because the scanner makes loud banging noises, people may be given headphones or ear plugs to wear. A scan may take 20 to 60 minutes. After the test, people can resume their usual activities immediately.

Uses of MRI

MRI is preferred to computed tomography Computed Tomography (CT) In computed tomography (CT), which used to be called computed axial tomography (CAT), an x-ray source and x-ray detector rotate around a person. In modern scanners, the x-ray detector usually... read more Computed Tomography (CT) (CT) when doctors need more detail about soft tissues—for example, to image abnormalities in the brain, spinal cord, muscles, and liver. MRI is particularly useful for identifying tumors in these tissues.

MRI is also used to do the following:

  • Measure certain molecules in the brain that distinguish a brain tumor from a brain abscess

  • Identify abnormalities in female reproductive organs and fractures in the hip and pelvis

  • Help doctors evaluate joint abnormalities (such as tears in ligaments or cartilage in the knee) and sprains

  • Help doctors evaluate bleeding and infection

MRI is also used when the risks of CT are high. For example, MRI may be preferred for people who have had a reaction to the iodinated contrast agents Radiographic Contrast Agents During imaging tests, contrast agents may be used to distinguish one tissue or structure from its surroundings or to provide greater detail. Contrast agents include Radiopaque contrast agents... read more used in CT and for pregnant women (because radiation can cause problems in the fetus).

MRI done after a gadolinium contrast agent is injected into a vein helps doctors evaluate inflammation, tumors, and blood vessels. Injecting this agent into a joint helps doctors get a clearer picture of joint abnormalities, particularly if they are complex (as in injuries or degeneration of ligaments and cartilages in the knee).

Variations of MRI

Functional MRI

This technique detects metabolic changes that occur when the brain is active. Thus, it can show which areas of the brain are active when a person does a specific task, such as reading, writing, remembering, calculating, or moving a limb. Functional MRI can be used in research and clinical settings, for example, to plan brain epilepsy surgeries.

Perfusion MRI

With this technique, doctors can estimate blood flow in a particular area. This information can be useful during a stroke to determine whether blood flow to parts of the brain is decreased. It can also be used to identify areas where blood flow is increased—for example, in tumors.

Diffusion-weighted MRI

This technique detects changes in water movement in cells that are not functioning normally. It is used primarily to identify early stroke. It is also used to detect certain brain disorders and to determine whether tumors have spread to the brain, or to differentiate a brain abscess from a tumor. Use of this technique to image areas other than the brain is limited. Diffusion-weighted MRI is often combined with other techniques to evaluate tumors, mostly in the brain.

Magnetic resonance spectroscopy

This technique uses radio waves that are emitted almost continuously rather than in pulses as in conventional MRI. Magnetic resonance spectroscopy is used to detect brain disorders, such as seizure disorders, Alzheimer disease, and brain tumors and abscesses. It can distinguish between the dead debris inside an abscess and multiplying cells inside a tumor.

This technique is also used to evaluate metabolic disorders in muscles and the nervous system.

Magnetic resonance angiography (MRA)

Magnetic resonance angiography can show blood flow through arteries and veins or blood flow only in one direction and thus show only arteries or only veins. As in CT angiography, a computer is used to remove all tissues except the blood vessels from the image.

Often, a gadolinium contrast agent is injected into a vein to outline blood vessels. The examiner carefully times the scanning so that the images are taken when gadolinium is concentrated in the blood vessels being evaluated.

MRA is used to evaluate blood vessels of the brain, heart, abdominal organs, arms, and legs. It is used to detect the following:

  • Aortic aneurysms

  • Aortic dissection

  • Narrowed arteries in the limbs

  • Blood clots in veins of the limbs and pelvis

  • Blood flow to tumors

  • Tumors that are affecting blood vessels

Magnetic resonance venography

This term refers specifically to MRA of veins. It is often used to detect a blood clot in a vein that carries blood away from the brain (cerebral venous thrombosis) and to monitor the effect of treatment on this disorder.

Echo planar imaging

This ultrafast technique produces sequences of images in seconds. It can be used to image the brain, heart, and abdomen. Because it is fast, movement by the person being examined does not blur the images as much. Also, the technique can provide information about how tissues are functioning.

However, it requires special equipment and is more likely to misrepresent certain structures than conventional MRI because of the nature of the technique.

Disadvantages of MRI

The time needed for MRI is longer than that needed for CT. Also, MRI is usually less likely to be immediately available than CT. Thus, CT may be better in emergencies, such as serious injuries and stroke. MRI is also more expensive than CT.

Other disadvantages include

  • Claustrophobia and sometimes difficulty fitting within the MRI scanner because it is a small, enclosed space

  • The effects of the magnetic field on metal devices implanted in the body

  • Reactions to the contrast agent

Problems related to the small enclosed space

Space in the MRI scanner is small and enclosed, making some people feel claustrophobic, even people who usually are not anxious about confined spaces. Some obese people have difficulty fitting within the scanner.

Some MRI scanners (called open MRI scanners) have an open side and a larger interior. In them, people may feel less claustrophobic, and obese people may fit more easily. The images produced in open MRI scanners may be inferior to those produced by enclosed scanners depending on the magnet strength, but they can still be used to make a diagnosis.

People who are anxious about MRI can be given an antianxiety drug, such as alprazolam or lorazepam, 15 to 30 minutes before scanning.

Magnetic field effects

Usually, MRI is not used if people have

  • Certain materials (such as shrapnel) in specific parts of their body, especially in the eye

  • Implanted devices that can be affected by powerful magnetic fields

These devices include some cardiac pacemakers, defibrillators, cochlear implants, and magnetic metallic clips used to treat aneurysms. The magnetic field used in MRI can cause an implanted device to move, overheat, or malfunction. The device is more likely to be affected if it was implanted within the previous 6 weeks (because scar tissue, which can help hold the device in place, has not yet formed). These devices can also distort MRI images.

Some devices, such as common dental implants, an artificial hip, or rods used to straighten the spine, are not affected by MRI.

Before MRI is done, people who have any implanted devices should tell their doctor, who can determine whether imaging is safe.

The MRI magnetic field is very strong and always on. Thus, if a metal object (such as an oxygen tank or an IV pole) is near the entrance of the scanning room, the object may be pulled into the scanner at high speed. The person being evaluated may be injured, and separating the object from the magnet may be difficult.

Reactions to the MRI contrast agent

Gadolinium contrast agents can cause headache, nausea, pain and a sensation of cold at the injection site, distortion of taste, and dizziness.

These agents are much less likely to cause severe reactions than the iodinated contrast agents used in conventional and CT angiography.

However, nephrogenic systemic fibrosis—a severe, life-threatening disorder—can develop when gadolinium agents are used in people who already have severe kidney problems or who are undergoing dialysis. In nephrogenic systemic fibrosis, the skin, connective tissue, and organs thicken. Red or dark patches may develop on the skin, the skin may feel tight, movement is difficult and limited, and organs may malfunction. To prevent this disorder from developing, doctors do the following:

  • Determine how well the kidneys are functioning by checking the person's medical record and doing blood and urine tests

  • Use gadolinium only when necessary, and when it is necessary, use the lowest dose and the safest agent possible

  • Consider other imaging tests in people with severe kidney problems

quiz link

Test your knowledge

Take a Quiz!