You put your backpack in the tray, it disappears through a curtain of lead rubber strips and, two seconds later, someone on the other side is looking at a screen where your laptop is a blue rectangle and your sandwich is an orange blob. The airport baggage scanner is not taking photographs. It fires X-rays at the bag and counts how many photons make it through. From that count, and from the way each material slows the radiation down, it works out what each silhouette is made of.
An X-ray tube sweeping the belt
The heart of the machine is a vacuum tube with a cathode that emits electrons and a tungsten anode. The electrons are accelerated by a potential difference of 140 to 160 kilovolts and slam into the target: as they decelerate abruptly they emit a continuous X-ray spectrum, the so-called bremsstrahlung or braking radiation, with a maximum energy equal to the applied voltage. A collimator turns that cone into a very thin fan, less than a millimetre thick, that crosses the belt vertically.
The belt moves at about 0.2 metres per second. On the opposite side is a bar of scintillation detectors coupled to photodiodes: every millimetre of the bag is sampled thousands of times per second and the whole thing is assembled as a line image, much like a document scanner. Typical resolution is around one millimetre, enough to tell a phone’s casing from its battery.
The law that turns shadows into numbers
When a beam of initial intensity I₀ passes through a thickness x of material, the intensity that comes out is I = I₀ · e^(−μx). The coefficient μ (linear attenuation) depends on density, on the material’s effective atomic number and on photon energy. The detector does not see arbitrary greys: it measures attenuation and turns it into a numeric value per pixel. Two objects of the same thickness but different composition let different amounts of radiation through, and that is where all the information lives.
Two effects compete inside the material
In the energy range of an airport scanner, two mechanisms dominate. The first is the photoelectric effect: a photon knocks an electron out of an inner shell of the atom and disappears. Its probability rises very steeply with atomic number, roughly as Z to the fourth power, and falls with the cube of the energy. That is why lead, with Z=82, blocks X-rays far more than aluminium, with Z=13, even at similar weights.
The second is Compton scattering: a photon hits an electron, loses part of its energy and changes direction. This process depends mostly on how many electrons there are per unit volume — that is, on density — and hardly at all on atomic number. An organic material such as polyethylene attenuates little and almost entirely through Compton; a metal attenuates a lot and mostly through the photoelectric effect.
Two stacked detectors and a subtraction
Here is the trick that makes the colour image possible. Many machines use dual detection: a first, thin scintillator layer preferentially absorbs low-energy photons; behind it, a thicker second layer catches the survivors. Comparing the top and bottom signals gives the ratio between low- and high-energy attenuation. That ratio, the dual-energy index, is practically independent of thickness and very sensitive to effective atomic number: it lets the system estimate which element is present, not just how much material there is.
The software maps that pair of measurements — density and effective Z — onto a conventional colour palette. Orange for light organic matter: carbon, hydrogen, oxygen, nitrogen; plastics, clothing, food, paper, and also explosives and drugs. Green for inorganic materials of medium atomic number, such as glass, some ceramics and salts. Blue or black for dense metals: steel, copper, zinc, and a special opaque tone for whatever barely lets anything through.
When the bag becomes a CT scanner
The latest generation of machines, explosive detection systems or EDS, go beyond two-view radiography. They rotate the tube and detectors around the bag, or use a fixed ring of sources and sensors, and reconstruct a three-dimensional volume with one-cubic-millimetre voxels, much like a medical CT. With dozens of projections from different angles they can compute the true mass density of each object, not just its projected attenuation.
That is the number that allows discrimination. A solid organic object with a density between 1.3 and 1.8 grams per cubic centimetre and a certain homogeneity is suspicious: it looks too much like a plastic explosive such as RDX or PETN. The system measures, compares against a library of signatures and flags the bag. The human operator decides afterwards; the machine only prioritises.
What the scanner cannot see
The technique has known limits. A very thin metal foil can be mistaken for a dense plastic; two overlapping objects add up in the projection and hide their geometry; a knife’s orientation relative to the beam changes its profile. That is where rules that seem arbitrary come from: taking the laptop out of the backpack stops its dense battery from covering what lies underneath; separating liquids reduces the number of organic layers piled into a single silhouette.
The dose is irrelevant to the passenger: on the order of 0.1 microsieverts per scan, less than what you receive in a couple of minutes of flight at ten thousand metres. The delicate part is not the radiation or the tube, but the algorithm that decides what is normal and what deserves a second look: most alerts are false positives, and the real work is reducing that noise without letting through what matters.
Next time you see your backpack in orange and blue, remember: you are not looking at a photo of your things, but at a map of atomic numbers calculated from how many photons were left behind.






