What Is an X-Ray? How It Works and What It Shows

An X-ray is a form of electromagnetic radiation with wavelengths short enough to pass through soft tissue but not through dense materials like bone or metal. When a machine fires a controlled beam of this radiation through your body, a detector on the other side captures whatever comes through, producing an image that maps the internal structures based on what blocked the beam and what didn’t. The technology dates to Wilhelm Röntgen’s accidental discovery in 1895, when a nearby screen coated with barium platinocyanide glowed during an experiment with cathode rays, revealing an invisible form of energy that could penetrate solid objects.1Canadian Journal of Chemistry. Revisiting the discovery of X-rays with modern spectroscopy: X-ray spectroscopic studies of barium platinocyanide That basic principle, firing radiation through matter and reading what comes out the other side, still underpins every X-ray image taken today, though the detectors and applications have changed enormously.

How an X-Ray Image Forms

The X-ray machine contains a tube that accelerates electrons at high speed toward a metal target, usually tungsten. When the electrons slam into the target, their sudden deceleration releases energy in the form of X-ray photons. These photons travel in a focused beam toward whatever is being imaged, whether that’s your chest, your hand, or a piece of luggage at an airport.

What makes the image possible is that different materials absorb X-rays at different rates. Bone, which is dense and rich in calcium, absorbs a large share of the photons and appears white on the resulting image. Soft tissues like muscle and organs absorb less, showing up in shades of gray. Air, which barely absorbs X-rays at all, appears black. This is why a chest X-ray so clearly outlines the ribs and spine against the dark, air-filled lungs: the contrast between dense and airy structures is extreme.

The detector sitting behind you during the exposure captures the pattern of photons that made it through. Older systems used film coated with silver halide crystals, which darkened proportionally to radiation exposure. Modern systems use flat-panel digital detectors, which convert X-rays either indirectly (first into light via a scintillator, then into an electrical signal via a photodiode) or directly into electrical charge using a semiconductor material.2PubMed Central. Flat-panel detectors: how much better are they? Early clinical studies of these digital detectors showed image quality at least as good as traditional film, with the added benefit of potential dose reduction.3PubMed. Digital radiography with large-area flat-panel detectors The digital signal can be instantly displayed on a screen, adjusted for brightness and contrast, stored electronically, and sent to a radiologist anywhere in the world.

What a Standard X-Ray Can Show

The classic use of X-rays is detecting broken bones. Fractures appear as dark lines or gaps in the bright white outline of a bone, and standard X-rays remain the first-line imaging tool for suspected fractures of the limbs, ribs, and spine. Beyond broken bones, plain X-rays are used to spot dislocated joints, bone infections, certain bone tumors, and the alignment of the skeleton after orthopedic surgery.

Chest X-rays are among the most commonly ordered imaging studies worldwide. They can reveal pneumonia (areas of consolidation in the lung fields), fluid around the lungs, an enlarged heart, and signs of conditions like tuberculosis or lung cancer. In a small study of patients with suspected community-acquired pneumonia, chest X-rays identified the infection in roughly 93% of confirmed cases, though the technique did miss a few and was less reliable at spotting accompanying fluid collections compared to ultrasound or CT.4PubMed Central. Diagnostic Accuracy of Chest x-Ray and Ultrasonography in Detection of Community Acquired Pneumonia; a Brief Report That said, for most patients with respiratory symptoms, a chest X-ray is the logical starting point because it is fast, inexpensive, and widely available.

Dental X-rays deserve separate mention because they represent one of the most frequent encounters people have with X-ray technology. Bitewing radiographs, those small images taken while you bite down on a tab, are the standard for catching cavities between teeth that are invisible to the naked eye. Intraoral bitewing images remain the gold standard for detecting these cavities, outperforming panoramic views that capture the full jaw in a single sweep.5PubMed Central. Accuracy of Digital Bitewing Radiography versus Different Views of Digital Panoramic Radiography for Detection of Proximal Caries Panoramic X-rays still have their place for assessing wisdom teeth, jaw structure, and orthodontic planning, but for cavity detection specifically, the smaller, targeted images are more reliable.

Where Standard X-Rays Fall Short

Plain X-rays are essentially shadow pictures, and shadows have their limits. Because X-rays collapse a three-dimensional body into a two-dimensional image, structures can overlap and hide each other. A small fracture in the wrist, for example, might be invisible on one angle but obvious when the wrist is rotated and re-imaged. This is why radiologists often request at least two views of the same body part.

Soft tissues are the bigger blind spot. Because muscle, cartilage, ligaments, and organs all absorb X-rays at similar rates, they blend together on a standard image. This is a well-known limitation in conditions like rheumatoid arthritis, where conventional X-rays cannot detect early inflammatory changes in the soft tissues or the earliest stages of bone erosion. MRI and ultrasound are far better at visualizing those early joint changes.6PubMed. Imaging in rheumatoid arthritis–status and recent advances for magnetic resonance imaging, ultrasonography, computed tomography and conventional radiography By the time rheumatoid damage shows up on a plain X-ray, significant joint destruction may have already occurred. The same general problem applies to detecting early cartilage damage in the knee, subtle tendon tears, or small tumors in organs surrounded by other soft tissue.

This doesn’t mean standard X-rays are outdated. For many clinical questions, particularly involving bones, lungs, and the abdomen, they remain the fastest and most cost-effective first step. The point is knowing what the tool can and cannot answer, so that when a plain X-ray comes back looking normal but symptoms persist, neither you nor your doctor treats a clean image as a clean bill of health.

Contrast Agents and How They Expand the Picture

One way to get around the soft-tissue limitation is to temporarily change the absorption characteristics of the tissue you want to see. That’s what contrast agents do. When you swallow barium sulfate for an upper GI study or receive an injection of an iodine-based solution before a CT scan, you’re introducing a substance with a high atomic number into your body. Iodine (atomic number 53) and barium (atomic number 56) absorb X-rays far more efficiently than the surrounding tissues, so blood vessels, the digestive tract, or a tumor’s blood supply suddenly stand out bright white against the gray background.7PubMed Central. X-ray-computed tomography contrast agents

This technique is what allows angiograms, where doctors thread a catheter into a blood vessel and inject iodine contrast to map the arteries of the heart or brain in real time under fluoroscopy (a continuous, live-feed version of X-ray imaging). Without contrast, those vessels would be nearly invisible. With it, a blockage or aneurysm becomes strikingly visible. The trade-off is that contrast agents carry a small risk of allergic reactions and can strain the kidneys in people with pre-existing kidney disease, so their use is always weighed against the diagnostic benefit.

CT Scans and Other X-Ray-Based Technologies

A CT scan is, at its core, a large number of X-ray images taken from many angles around the body and then computationally reconstructed into a three-dimensional picture. The scanner rotates an X-ray tube and detector array around you while you lie on a moving table, producing cross-sectional slices that can be stacked into a full 3D volume.8La Rivista del Nuovo Cimento. Advanced X-ray techniques to study the alteration of pigments in paintings This eliminates the overlap problem of standard X-rays: instead of shadows piled on top of each other, each slice shows a clean cross-section at a specific depth.

CT is indispensable for diagnosing internal bleeding after trauma, staging cancers, evaluating complex fractures, and detecting conditions like pulmonary embolism (blood clots in the lungs). It delivers substantially more radiation than a standard X-ray, which is why it’s reserved for situations where the diagnostic payoff justifies the dose.

DEXA (dual-energy X-ray absorptiometry) is another specialized X-ray technique, this one designed to measure bone mineral density. It uses two X-ray beams at different energy levels to distinguish bone from soft tissue with high precision. DEXA is the most common method for evaluating osteoporosis, comparing your bone density against age-matched standards to produce a T-score that categorizes bone health. That said, DEXA can sometimes misclassify bone health because it measures density alone and does not capture information about the internal architecture of the bone.9PubMed Central. DEXA and Imaging in Osteoporosis Complementary technologies like high-resolution peripheral quantitative CT can fill that gap by creating detailed 3D images of the internal bone structure.

Mammography, another X-ray application, uses low-energy X-rays optimized for imaging breast tissue. And fluoroscopy, mentioned earlier, provides real-time moving X-ray images used during procedures like catheter placement, joint injections, and barium swallow studies. All of these are variations on the same fundamental principle of passing X-rays through the body and reading the pattern of absorption.

Radiation, Risk, and the Safety Principles

X-rays are ionizing radiation, meaning each photon carries enough energy to knock electrons off atoms in your body’s cells. When that happens to DNA, it can cause molecular damage: breaking chemical bonds within the DNA strand directly, or generating reactive oxygen species from surrounding water molecules that go on to damage DNA indirectly.10PubMed Central. Effects of Low-Dose X-Ray on Cell Growth, Membrane Permeability, DNA Damage and Gene Transfer Efficiency Your cells have repair mechanisms for this kind of damage, and most of the time the repair is successful. But at high enough doses, or with enough accumulated exposure over a lifetime, the risk of that repair failing and a cell becoming cancerous goes up.

For context, the dose from a single chest X-ray is tiny, roughly equivalent to a few days of natural background radiation from the environment. A dental bitewing is even less. A CT scan of the abdomen delivers considerably more, on the order of several years’ worth of background radiation in a single session. The key point is that risk scales with dose and accumulates over a lifetime, which is why medical professionals don’t order imaging casually.

The guiding principle in radiation safety is known as ALARA, meaning “as low as reasonably achievable.” In practice, this means collimating the X-ray beam tightly to expose only the area of interest, optimizing exposure settings for the smallest dose that still produces a diagnostic image, and using protective shielding such as lead aprons and thyroid collars when appropriate.11PubMed. Radiation safety considerations for diagnostic radiology personnel More recently, updated frameworks have pushed this further, emphasizing that imaging should be ordered based on individual clinical need rather than as a routine procedure, and that exposure parameters should be adjusted for body size, with particular attention to reducing doses for children.12Brazilian Oral Research. Principles of radiological protection and application of ALARA, ALADA, and ALADAIP: a critical review

For the patient, the practical takeaway is straightforward. A medically necessary X-ray almost always has benefits that far outweigh the minuscule radiation risk. The situations to push back on are unnecessary repeat imaging, imaging ordered “just in case” without a clear clinical question, or duplicate scans because records weren’t transferred between providers. Keeping a personal record of your imaging history can help avoid redundant exams.

Experimental X-Ray Techniques in Medicine

Conventional X-ray imaging relies entirely on how much radiation a tissue absorbs, but researchers are developing methods that also exploit how X-rays change direction as they pass through tissue. Phase-contrast X-ray imaging detects these subtle shifts in the X-ray beam’s wave pattern, producing images with far greater contrast between similar soft tissues than standard absorption-based imaging can achieve. A study applying phase-contrast tomography to human breast tissue identified a malignant cancer with a pixel size of 92 micrometers and a radiation dose that was roughly 74% lower than conventional phase-contrast tomography methods, while maintaining high resolution.13PubMed Central. High-resolution, low-dose phase contrast X-ray tomography for 3D diagnosis of human breast cancers This technique is still mostly in the research phase, but it hints at a future where X-ray-based breast imaging could be both sharper and gentler than current mammography.

X-Rays Outside the Hospital

Medical imaging is the most familiar application of X-rays, but the same physics powers a surprisingly wide range of other fields.

In structural biology, X-ray crystallography is the most widely used technique for determining the three-dimensional shapes of proteins and other large biological molecules.14PubMed Central. x ray crystallography The process involves growing a crystal of the molecule of interest, firing an X-ray beam through it, and analyzing the resulting diffraction pattern, a complex arrangement of spots whose geometry reveals where each atom sits in three-dimensional space.15PubMed. Developments in x-ray crystallographic structure determination of biological macromolecules The use of synchrotron radiation, which provides extremely intense and tunable X-ray beams, has allowed researchers to solve structures that would be impossible with conventional lab X-ray sources by exploiting wavelength-dependent absorption effects.16PubMed. Determination of macromolecular structures from anomalous diffraction of synchrotron radiation This technique has been foundational in drug design, virology, and understanding the molecular machinery of cells.

Security screening is another major application. Airport scanners use X-rays to peer inside luggage, relying on the same absorption differences that make bones visible in medical imaging. Dense objects like metal weapons appear bright, while organic materials like clothing and food show up differently. A recent prototype backscatter X-ray scanner for luggage screening demonstrated the ability to detect irregularly shaped contraband hidden inside bags and could distinguish plastic panels as thin as about 1 mm against a steel background.17Journal of Instrumentation. Development of prototype backscatter X-ray security scanner for luggage inspection Backscatter systems are distinctive because they capture photons that bounce back from the object rather than those that pass through it, which is useful for spotting materials that a standard transmission X-ray might miss.

Art conservators and historians have increasingly turned to X-ray methods to study paintings without touching or damaging them. Techniques like X-ray fluorescence, X-ray absorption spectroscopy, and X-ray diffraction can identify the specific elements and compounds in a paint layer, revealing which pigments an artist used, how those pigments have chemically degraded over time, and whether there are hidden compositions beneath the visible surface.8La Rivista del Nuovo Cimento. Advanced X-ray techniques to study the alteration of pigments in paintings This kind of analysis can inform restoration decisions and settle debates about attribution and authenticity.

X-Ray Astronomy

Many objects in space, including black holes, neutron stars, and the superheated gas in galaxy clusters, emit X-rays rather than visible light. Earth’s atmosphere absorbs these cosmic X-rays before they reach the ground, so X-ray telescopes must be placed in orbit or, as some researchers are now proposing, on the lunar surface. A concept called the AXIS telescope aims to achieve a dramatic increase in collecting area over current X-ray observatories while maintaining comparable imaging sharpness.18PubMed Central. X-ray astronomy from the lunar surface The moon’s lack of atmosphere and its stable surface make it an appealing platform for the kind of large, precisely aligned optics that next-generation X-ray astronomy demands. These telescopes don’t produce images of your bones, but they rely on the same fundamental interaction between X-ray photons and matter that makes medical imaging possible.