X-rays are one of the most common tools used in modern medicine. You’ve probably had one done at some point—whether for a broken bone, a chest scan, or dental checkup. But have you ever wondered how X-rays actually work?
In this guide, we’ll break it all down in a way that’s easy to understand. From how they were discovered to what happens during an X-ray, you’ll learn everything you need to know.

What Are X-Rays?
X-rays are a type of energy—just like visible light—but with much more power. They belong to a group of waves called electromagnetic radiation. Because X-rays have high energy, they can pass through many materials that light cannot, like skin and soft tissues.
However, not everything lets X-rays pass through. Dense materials like bones, metal, or tumors block the rays. This is why bones show up clearly on an X-ray image while soft tissues appear darker.
A Quick History of X-Rays
X-rays were discovered by accident in 1895 by a German physicist named Wilhelm Conrad Roentgen. He noticed that a special kind of light could pass through solid objects and leave images on photographic film. Since he didn’t know exactly what kind of rays they were, he called them “X,” which stands for “unknown.”
Soon after, doctors realized how useful this new discovery could be. X-rays allowed them to see inside the body without surgery—a major breakthrough in medicine.
How Do X-Rays Work?
An X-ray machine sends a controlled burst of X-ray beams through your body. On the other side of your body is a detector, usually film or a digital sensor, which captures the image.
Here’s what happens step by step:
-
You’re positioned correctly: A technician will ask you to sit, lie down, or stand, depending on the part of the body being scanned.
-
The X-ray beam is directed: The machine focuses the X-rays on the specific area.
-
The image is captured: X-rays pass through your body and are absorbed at different rates. Bones block most rays, so they appear white. Soft tissues absorb fewer rays, appearing in shades of gray. Air, like in the lungs, appears black.
-
The image is reviewed: A radiologist or doctor examines the image to diagnose any issues.
Why Are X-Rays Used?
Doctors use X-rays for many reasons, such as:
-
Checking for broken bones or fractures
-
Spotting lung infections, such as pneumonia or tuberculosis
-
Finding foreign objects in the body
-
Detecting dental problems, like cavities or impacted teeth
-
Helping diagnose joint or spine issues
-
Locating tumors or abnormal growths
Some X-rays are also used with contrast dyes to better view organs or blood vessels. These are often called contrast X-rays and help doctors get a clearer picture.
Are X-Rays Safe?
Yes, X-rays are generally safe when used properly. The amount of radiation you’re exposed to is very small and is carefully controlled by medical staff. In fact, we’re all exposed to some natural background radiation every day—from the sun, soil, and even the food we eat.
Doctors will only order an X-ray when it’s needed and will always try to minimize the radiation dose. Special lead aprons or shields may be used to protect parts of your body not being scanned.
Note for pregnant women: X-rays are usually avoided during pregnancy unless absolutely necessary.
What to Expect During an X-Ray
If you’ve never had an X-ray, there’s no need to worry. The procedure is fast, painless, and usually done in a few minutes.
-
No need for special prep (unless your doctor tells you)
-
You may need to remove jewelry or metal items
-
The technician will guide you through each step
-
You may be asked to hold still for a few seconds
Results are often available within hours or a day. Your doctor will go over them with you and discuss any next steps.
Final Thoughts
X-rays have changed the way we diagnose and treat illnesses. They provide a safe, quick, and painless way to look inside the body without making a single cut. Understanding how they work not only reduces fear but also helps you feel more prepared the next time your doctor orders one.
So the next time you get an X-ray, you’ll know what’s happening—and why.
