How Does an X-Ray Work? A Simple Explanation

An X-ray works by shooting a beam of high-energy light through your body and capturing what comes out the other side. Dense structures like bone absorb most of the beam and show up white on the image, while soft tissues and air let more of it pass through and appear in shades of gray or black. The whole process takes a fraction of a second, and the result is essentially a shadow picture of your insides.

What Happens Inside the Machine

The heart of every X-ray machine is a sealed glass or metal tube with two key parts: a cathode and an anode. The cathode is a small filament that heats up and releases a stream of electrons, similar to how an old incandescent light bulb works. Those electrons fly across the vacuum inside the tube at tremendous speed and slam into the anode, a metal target typically made of tungsten. Tungsten can handle extreme heat without melting, which matters because less than 1% of the electron energy actually converts into X-rays. The rest becomes heat.

When the electrons hit the tungsten target, their energy transforms into X-ray photons, a form of light with far more energy than visible light. These photons shoot out of the tube in a focused beam aimed at whichever part of your body the technologist needs to see. A lead-lined housing surrounds the tube to make sure the beam only goes where it’s supposed to.

How the Beam Creates an Image

Once the X-ray beam enters your body, different tissues interact with it in different ways based on their density and atomic makeup. Bone is packed with calcium, a relatively heavy element, so it absorbs a large share of the X-ray photons before they can reach the detector on the other side. That’s why bone appears bright white on the final image. Metal (like a surgical screw or a swallowed coin) is even denser and blocks nearly all the photons, showing up as solid white.

Muscle and fluid are less dense than bone, so they absorb fewer photons and appear gray. Fat is darker gray. Air, which fills your lungs, barely stops any photons at all and shows up black. Radiologists use the technical terms “radiopaque” for structures that block X-rays (white) and “radiolucent” for structures that let them pass (black), but the principle is straightforward: the denser the material, the whiter it looks.

This is also why you’re asked to remove jewelry, belt buckles, and other metal objects before an X-ray. Metal absorbs so many photons that it creates bright white spots or streaks on the image, potentially hiding the anatomy your doctor needs to see.

From Photons to a Picture on Screen

Older X-ray systems used photographic film, but most facilities today use digital detectors. These detectors contain a layer called a scintillator, which converts incoming X-ray photons into visible light. That light then hits a grid of tiny electronic sensors (similar in concept to the sensor in a digital camera) that translate the light into an electrical signal. A computer processes those signals and assembles them into a grayscale image in seconds.

Digital imaging has a practical advantage beyond speed. Technologists can adjust the brightness and contrast of the image after it’s taken, sometimes avoiding the need for a repeat exposure. The images also store electronically, making them easy to share between doctors.

How Contrast Agents Help See Soft Tissue

Standard X-rays are great for bones and lungs but struggle to distinguish between two soft tissues sitting right next to each other, like a tumor against the liver or the walls of your digestive tract. That’s where contrast agents come in. These are substances containing heavy atoms, most commonly iodine or barium, that absorb X-rays much more effectively than the surrounding tissue.

If your doctor needs to see your esophagus or intestines, you might swallow a barium solution that coats the lining and makes it visible. For blood vessels or certain organs, an iodine-based contrast is injected into a vein. In both cases, the contrast material temporarily makes soft structures show up clearly on the image by increasing how many X-ray photons they absorb.

How Much Radiation You Actually Get

A standard chest X-ray delivers about 0.1 millisieverts of radiation. To put that in perspective, the average person in the U.S. absorbs roughly 3.1 millisieverts per year just from natural background sources like cosmic rays and radon in the soil. A single chest X-ray is equivalent to about 10 hours of that everyday background exposure.

X-ray doses vary by body part. Imaging a hand or foot uses less radiation than a chest X-ray, while an abdominal X-ray uses somewhat more. CT scans, which take many X-ray images from different angles to build a 3D picture, deliver significantly higher doses than a single plain X-ray.

How Radiation Exposure Is Minimized

Every diagnostic X-ray in the U.S. follows a principle called ALARA: As Low As Reasonably Achievable. This means the technologist adjusts the machine’s settings based on your body size, the body part being imaged, and the clinical question your doctor is trying to answer, using just enough radiation to produce a clear image and no more.

Lead aprons and thyroid shields are the most visible form of protection. A standard 0.5 mm lead-equivalent apron blocks roughly 96% of the X-ray scatter that might reach parts of your body not being imaged. The technologist also steps behind a shielded barrier or into another room during the exposure, since they perform dozens of X-rays a day and small doses add up over time.

The guiding philosophy behind every X-ray order is that the diagnostic benefit should clearly outweigh the small radiation risk. For most people, the chance of catching a fracture, pneumonia, or other condition far exceeds the negligible cancer risk from a single exposure.