Skip to content

Imaging

How medical imaging works: X-ray, CT, MRI and ultrasound

The physics behind the four most familiar imaging methods in plain language, with an interactive comparison and an animated look at how X-rays pass through tissue.

  • 5 min read
  • 12 cited sources
  • Sources checked October 2026

Educational content, not medical advice. It explains general science and does not replace a conversation with a qualified clinician about your own health, tests or treatment.

Four ways to see inside the body

Medical imaging produces pictures of tissues and structures inside the body.[1] The four most familiar methods rely on very different physics. X-ray radiography and Computed tomography use X-rays,[1][2] Magnetic resonance imaging uses a strong magnet and radiofrequency pulses,[3] and Ultrasound uses sound waves.[4]

Compare the four methods

Highlight:
Comparison of X-ray, CT, MRI and ultrasound imaging
PropertyX-rayCTMRIUltrasound
What it usesX-rays — high-energy electromagnetic radiation — passing through the body to a detectorX-rays from a source and detector that rotate around the patientA strong magnet and radiofrequency pulsesSound waves above the range of human hearing, usually in the megahertz range
How the picture formsA “shadow” image: bone white, soft tissue grey, air blackA computer builds cross-sectional slices, usually 1–10 mm thick, that can be stacked into 3DSignals from protons realigning with the magnet; the timing differs between tissuesEchoes from tissue boundaries; distance comes from echo time and the speed of sound
Often used forBroken bones and bone changes, lung infections, dental problems, mammographyDetailed cross-sections; contrast agents can highlight blood vessels or the digestive tractSoft tissues: brain, spinal cord, nerves, muscles, ligaments and tendonsSoft tissue and fluid; Doppler measures and visualises blood flow
LimitationsOverlapping structures are flattened into one imageA higher dose than a plain X-ray (about 6.1 mSv for a chest CT vs 0.1 mSv for a chest X-ray)Strong magnetic field (a concern with some implants); noise up to 120 dB on some scannersNot good for imaging bone or air-filled tissue such as the lungs
Ionizing radiationYesYesNoNo

Showing all four methods.

Choose a method to highlight it, or show only methods that avoid ionizing radiation. Sources:[1][2][3][4][5]

X-rays: pictures made of shadows

X-rays are a form of electromagnetic radiation, like visible light but with higher energy, which lets them pass through most objects, including the body.[1] Wilhelm Röntgen found this previously unknown, penetrating radiation in 1895 while studying cathode rays, and was awarded the Nobel Prize in Physics in 1901.[6]

When X-rays travel through the body to a detector on the other side, the image records the “shadows” of the structures they crossed.[1] Different tissues absorb X-rays to different degrees: dense bone absorbs much of the radiation, while muscle, fat and organs let more of it through. That is why bone appears white, soft tissue appears in shades of grey, and air appears black.[5] This weakening of the beam is called Attenuation.

How tissue density shapes an X-ray image

Diagram: X-rays passing through air, soft tissue and bone to a detectorX-rays travel from a source on the left. Most pass straight through air, some are absorbed in soft tissue, and most are absorbed in bone. The detector on the right is black behind air, grey behind soft tissue and white behind bone.X-raysourceWhat the X-rays pass throughairsoft tissuesoft tissue with boneDetector / image

Few X-rays reach the detector

Dense bone absorbs much of the radiation. Few X-rays reach the detector behind it, so bone appears white.

Diagram — proportions are illustrative and not to scale.

Pick a path through the diagram. Fewer X-rays reach the detector behind denser material, so that part of the image is brighter. Sources:[5][1]

CT: X-rays from every angle

In a CT scanner, a motorised X-ray source and detector rotate quickly around the patient, and a computer turns the signals into cross-sectional images, or “slices”. Because overlapping tissue is removed, a slice can show more detail than a conventional X-ray.[1] Each slice usually represents 1 to 10 millimetres of tissue, depending on the machine, and successive slices can be stacked digitally into a three-dimensional image.[2]

Contrast agents help particular structures stand out. An iodine-based agent injected into the bloodstream helps show blood vessels, and barium-based agents taken by mouth are used to image the digestive tract.[2]

Allan Cormack and Godfrey Hounsfield shared the 1979 Nobel Prize in Physiology or Medicine “for the development of computer assisted tomography”.[8] CT values are expressed in Hounsfield units, which the next article explores.[9]

MRI: listening to protons

MRI uses a powerful magnet to align the protons in the body’s tissues. A radiofrequency pulse knocks them out of equilibrium; when the pulse is switched off, sensors detect the energy released as the protons realign with the magnetic field. The time this takes and the energy released differ between tissues, which is what creates contrast in the image.[3]

MRI does not use ionizing radiation and is especially useful for soft tissues such as the brain, spinal cord, nerves, muscles, ligaments and tendons. Its strong magnetic field is a safety consideration for people with some implants, and some scanners produce sound up to 120 decibels, so ear protection may be needed. Gadolinium-based contrast agents are sometimes given.[3]

Paul Lauterbur described how to form images from nuclear magnetic resonance signals in Nature in 1973,[10] and shared the 2003 Nobel Prize in Physiology or Medicine with Peter Mansfield “for their discoveries concerning magnetic resonance imaging”.[11]

Ultrasound: imaging with echoes

Ultrasound probes, called transducers, produce sound waves above the threshold of human hearing (above 20 kHz); most work at much higher frequencies, in the megahertz range. The waves reflect off boundaries between tissues, such as between fluid and soft tissue, and the scanner uses the speed of sound and the time each echo takes to return to calculate how far away each boundary is.[4]

A gel on the skin keeps air pockets from blocking the sound. Ultrasound does not use ionizing radiation, but it is not good at imaging bone or air-containing tissue such as the lungs. Doppler ultrasound measures and visualises blood flow. The FDA and many professional societies discourage casual uses such as keepsake videos and recommend ultrasound only when there is a true medical need.[4]

A note on radiation dose

X-ray imaging and CT use Ionizing radiation, which can harm living tissue. The risk increases with the number of exposures over a lifetime, although the risk of developing cancer from imaging radiation is generally considered very small. Children are more sensitive to ionizing radiation than adults.[1]

Whole-body dose is expressed as effective dose, in millisieverts (mSv). RadiologyInfo estimates that the average person in the U.S. receives about 3 mSv per year from natural background radiation. An adult chest X-ray is about 0.1 mSv, comparable to 10 days of background radiation, and a CT of the chest about 6.1 mSv, comparable to 2 years. Actual doses vary with the patient and the equipment.[12]

Sources

Every source below was read and checked when this article was written. Links open the original publisher.

  1. [1]Medical X-rays. National Institute of Biomedical Imaging and Bioengineering (NIH). www.nibib.nih.gov/science-education/science-topics/medical-x-rays(opens in a new tab)
  2. [2]Computed Tomography (CT). National Institute of Biomedical Imaging and Bioengineering (NIH). www.nibib.nih.gov/science-education/science-topics/computed-tomography-ct(opens in a new tab)
  3. [3]Magnetic Resonance Imaging (MRI). National Institute of Biomedical Imaging and Bioengineering (NIH). www.nibib.nih.gov/science-education/science-topics/magnetic-resonance-imaging-mri(opens in a new tab)
  4. [4]Ultrasound. National Institute of Biomedical Imaging and Bioengineering (NIH). www.nibib.nih.gov/science-education/science-topics/ultrasound(opens in a new tab)
  5. [5]Bone X-ray (Radiography). RadiologyInfo.org (RSNA & ACR). www.radiologyinfo.org/en/info/bonerad(opens in a new tab)
  6. [6]Wilhelm Conrad Röntgen — Facts (Nobel Prize in Physics 1901). NobelPrize.org. www.nobelprize.org/prizes/physics/1901/rontgen/facts(opens in a new tab)
  7. [7]Chest X-ray (Radiography). RadiologyInfo.org (RSNA & ACR). www.radiologyinfo.org/en/info/chestrad(opens in a new tab)
  8. [8]The Nobel Prize in Physiology or Medicine 1979 (Cormack & Hounsfield). NobelPrize.org. www.nobelprize.org/prizes/medicine/1979/summary(opens in a new tab)
  9. [9]Xue Z, Antani S, Long LR, et al. Window Classification of Brain CT Images in Biomedical Articles. AMIA Annual Symposium Proceedings, 2012. pmc.ncbi.nlm.nih.gov/articles/PMC3540547(opens in a new tab)
  10. [10]Lauterbur PC. Image Formation by Induced Local Interactions: Examples Employing Nuclear Magnetic Resonance. Nature 242, 1973. www.nature.com/articles/242190a0(opens in a new tab)
  11. [11]The Nobel Prize in Physiology or Medicine 2003 (Lauterbur & Mansfield). NobelPrize.org. www.nobelprize.org/prizes/medicine/2003/summary(opens in a new tab)
  12. [12]Radiation Dose (X-ray safety). RadiologyInfo.org (RSNA & ACR). www.radiologyinfo.org/en/info/safety-xray(opens in a new tab)