When your doctor orders an imaging test, you may wonder about X-ray vs ultrasound and why one was picked over the other. The short answer: they work in different ways and show different parts of the body best. An X-ray uses a small amount of radiation, while an ultrasound uses sound waves, and the FDA says ultrasound has no ionizing radiation exposure.
Quick answer
What is the difference between an X-ray and an ultrasound?
An X-ray sends a small amount of ionizing radiation through the body, so dense parts like bone show up white. An ultrasound uses sound waves and no ionizing radiation. NIBIB says ultrasound is not well suited to bone or air-filled lungs. Your doctor picks the test that best shows the area in question.

X-ray vs ultrasound: how each test works
An X-ray machine sends X-ray waves through the part of the body being checked, and the image is recorded on a computer or film. MedlinePlus explains that dense structures such as bone block most of the X-rays and appear white, while structures that contain air appear black.
An ultrasound works more like an echo. A handheld probe called a transducer sends sound waves into the body and picks up the echoes that bounce back, and a computer turns them into a picture. NIBIB’s page on how ultrasound imaging works notes that a gel on the skin keeps air pockets from blocking the sound waves.
| Feature | X-ray | Ultrasound |
|---|---|---|
| How it makes a picture | X-rays pass through the body to a detector | Sound waves and their echoes |
| Ionizing radiation | Yes, a small amount | None |
| Often used for | Broken bones, lung infections such as pneumonia, teeth | Organs, blood vessels, thyroid, muscles, pregnancy |
| Limits | Radiation risk adds up with more exposures | Not well suited to bone or air-filled lungs |
| Preparation | Remove jewelry and metal; tell staff if pregnant | Depends on the body part |
| How it feels | Painless; some positions may be uncomfortable | Usually no discomfort; the gel feels cold |

Why would your doctor order an ultrasound instead of an X-ray?
Doctors choose the test that best shows the part of the body they need to see. Because bone blocks most X-rays, breaks show up clearly. NIBIB says ultrasound is not well suited to bone or air-filled tissue like the lungs, so it is often used for organs, blood vessels and muscles instead.
When an X-ray fits
NIBIB lists broken bones, pneumonia and other lung infections, and dental problems among the things X-rays detect. MedlinePlus says a chest X-ray may be ordered for a persistent cough, chest pain, trouble breathing or fever. If you have had a cough that won’t go away, a chest X-ray is one test your doctor may bring up.
When an ultrasound fits
NIBIB says ultrasound images the heart, blood vessels, thyroid, breast, abdominal organs, skin and muscles, and it is widely used in pregnancy. Some ultrasounds need you to prepare, such as fasting before an abdominal ultrasound.
Sometimes a doctor orders both. If you’re not sure why a test was chosen, ask at your visit.

Is ultrasound safer than an X-ray?
Ultrasound does not use ionizing radiation, which is the main safety difference. The FDA says ultrasound has an excellent safety record, though it can heat tissue slightly, so it should be used only when there is a medical reason. MedlinePlus lists no known risks for a diagnostic ultrasound.
X-rays do carry a small risk. NIBIB says ionizing radiation can harm living tissue, but the risk of cancer from an X-ray is generally considered very small, and it rises with the number of exposures over a lifetime. The FDA’s page on medical X-ray imaging benefits and risks says the benefit of a medically appropriate X-ray generally far outweighs that risk.
Two groups need extra care. NIBIB and MedlinePlus say children are more sensitive to radiation, and MedlinePlus says babies in the womb are too. Always tell the team if you are or might be pregnant before any X-ray.
Good to know: Safer does not always mean better for the question at hand. An ultrasound may not show a problem that an X-ray would, so your doctor weighs what each test can see.

An example: what happens at a thyroid ultrasound
A thyroid ultrasound shows how an ultrasound visit usually goes. MedlinePlus says a provider usually orders one after an exam finds a lump (nodule) on the thyroid, an enlarged thyroid called a goiter, or unusual lymph nodes nearby.
- You lie down with a pillow under your neck so your neck stretches back a little.
- A technician puts a water-based gel on your neck.
- A handheld wand moves over the skin while a computer builds the picture.
- No special preparation is needed, and you should feel very little discomfort.
This imaging test is separate from a thyroid blood test and how to prepare for it.

Questions to ask before an imaging test
These questions come from the FDA’s advice for patients:
- Is there a test without ionizing radiation that would be just as useful?
- Do I need to prepare, and if so, how?
- For a child: does the facility use reduced radiation settings for children?
- Should I bring a record of my past X-rays and scans?
The FDA suggests keeping a record of your imaging history to share when a new exam comes up. Whatever test you have, follow the instructions from the imaging facility. For a step by step look at the X-ray visit itself, see what to expect at an X-ray, from check-in to results.

Frequently asked questions
Can an ultrasound show a fracture?
Usually an X-ray is the test for a broken bone. NIBIB says ultrasound is not well suited to imaging bones, though it can show bones in a fetus or small baby. X-rays detect broken bones because dense bone blocks most of the X-ray and shows up white on the image.
Why would a doctor order both an X-ray and an ultrasound?
Each test shows different things. An X-ray is strong for bone and the lungs, while an ultrasound shows organs, blood vessels and muscles. Using both can give a fuller picture. Ask your doctor what each test is meant to check, since the reason depends on your symptoms.
Do you need to prepare for an ultrasound?
It depends on the body part. MedlinePlus says preparation depends on the area being examined. A thyroid ultrasound needs no special preparation, while some abdominal ultrasounds ask you to fast first. Follow the instructions from the imaging facility, and call ahead if anything is unclear.
Is a thyroid ultrasound painful?
No. MedlinePlus says you should feel very little discomfort during a thyroid ultrasound. The gel may feel cold on your skin. The test uses sound waves, not radiation, and MedlinePlus lists no documented risks for it.
Who reads my X-ray or ultrasound images?
MedlinePlus says diagnostic radiologists are doctors who specialize in interpreting medical images. Your own doctor then uses those findings along with your exam and history. How and when you get results varies, so ask the office that ordered the test how it will share them with you.
Questions about an imaging test?
If you’re unsure why a test was ordered or how to prepare, contact our office and ask before your appointment.
Imaging is one part of a checkup; see also the routine blood work at an annual physical.
Sources
- U.S. Food and Drug Administration, “Ultrasound Imaging,” checked November 19, 2026.
- U.S. Food and Drug Administration, “Medical X-ray Imaging,” checked November 19, 2026.
- National Institute of Biomedical Imaging and Bioengineering, “Ultrasound,” checked November 19, 2026.
- National Institute of Biomedical Imaging and Bioengineering, “Medical X-rays,” checked November 19, 2026.
- MedlinePlus, “X-ray,” checked November 19, 2026.
- MedlinePlus, “Ultrasound,” checked November 19, 2026.
- MedlinePlus, “Thyroid ultrasound,” checked November 19, 2026.
- MedlinePlus, “Chest x-ray,” checked November 19, 2026.
- MedlinePlus, “Imaging and radiology,” checked November 19, 2026.
This article is general health information, not medical advice, and does not replace a visit. If you think you have an emergency, call 911. For questions about your own health, contact your doctor’s office.

