---
title: "X-ray fluorescence and element identification | Sandbox Physics"
description: "Calibrate the energy axis and compare the sample with a blank. Use the remaining X-ray lines to identify their elements."
canonical_url: "https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/xray-fluorescence-and-element-lines/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/learn/experiments-on-the-microscopic-world/xray-fluorescence-and-element-lines/"
last_modified: "2026-11-25"
---

[Volume 7 · Learning the Microscopic World from Experiments](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/)

# How does an X-ray spectrum identify elements?

Calibrate the energy axis and compare the sample with a blank. Use the remaining X-ray lines to identify their elements.

Before you start: [Volume 6 Chapter 6](https://sandboxphysics.com/learn/quantum-physics/atomic-spectra-and-ramsey/) on atomic transitions and [Chapter 1](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/signals-calibration-and-background/) on calibration and blanks. [Volume 4 Chapter 2](https://sandboxphysics.com/learn/light-and-imaging/thin-lenses-and-imaging/) and [Chapter 4](https://sandboxphysics.com/learn/light-and-imaging/diffraction-and-resolution/) introduce imaging and resolution.

After this chapter you can: Read a fluorescence spectrum, compare a peak with reference energies and explain the ambiguity when two lines overlap.

An X-ray fluorescence spectrum identifies elements through peaks at characteristic energies. The detector records counts in channels. Before matching a peak to an element, calibrate the channel energies, account for background, and check that the source could excite the proposed transition. Estimating how much of the element is present requires a further model of line strengths.

## 4.1 Characteristic energies identify candidate lines

An incident X-ray can remove an inner-shell electron if it carries enough energy. When an electron from a higher shell fills the vacancy, it can emit an X-ray. Let $E_i$ and $E_f$ be the initial and final atomic energies for emission. The photon takes the difference.

$$
E_\gamma=E_i-E_f.
$$

For a vacancy in the K shell, the $K_\alpha$ group comes from the L shell and the main $K_\beta$ lines come from the M shell. The energies differ from element to element.

NIST's tabulation places the main $K_\alpha$ components of iron and copper near $6.40\,\mathrm{keV}$ and $8.05\,\mathrm{keV}$. The source energy required to create a K vacancy is higher than the emitted line energy. The K edges of iron and copper are near $7.11\,\mathrm{keV}$ and $8.98\,\mathrm{keV}$. An $8\,\mathrm{keV}$ source can excite iron K fluorescence. In the Lab, copper stays in the specimen but its K lines disappear when no photons cross the copper edge.

## 4.2 Calibration and background change what you can read

The detector sorts pulses by size. Write $x$ for the nominal energy coordinate associated with a channel. A linear calibration over the measured range has the form

$$
E=gx+b.
$$

Two known reference energies determine the gain $g$ and offset $b$. A third reference checks the calibration on a separate record. A monochromatic line has a finite measured width. In the default Lab acquisition, the calibrated full width at half maximum is about $124\,\mathrm{eV}$. The principal copper $K_\alpha$ components are separated by about $20\,\mathrm{eV}$, so the detector shows them as a single group. The iron and copper groups are much farther apart.

A dark exposure estimates the detector counts acquired without source photons. A separate blank measures the illuminated holder without a sample. To compare them with the sample, let $S$ and $B$ be sample and blank counts in one channel, $D$ the estimated dark rate there, $t_S$ and $t_B$ their exposure times, and $M_S$ and $M_B$ their monitored incident photon totals. The corrected signal per incident photon is

$$
Y=\frac{S-Dt_S}{M_S}-\frac{B-Dt_B}{M_B}.
$$

The correction can yield negative values in individual channels due to counting fluctuations. To judge whether a peak is present, examine several adjacent channels and the uncertainty of the fit. The Lab uses line-group shapes and a calibrated detector response to estimate peak areas from these records.

- Thin alloy
- Below the copper edge

**Figure 4.1** Simulated spectra of an iron–copper alloy on a calibrated energy axis after the dark and blank corrections. Peak locations can be compared with reference energies. The vertical scale uses counts per channel per billion incident photons.

## 4.3 Line area also depends on the specimen and detector

A fluorescence photon from deep in the specimen can be absorbed before reaching the detector. The incident beam also weakens before reaching that depth. For one incident energy, let $u$ be the mass depth measured normal to the surface, and let $\theta_i$ and $\theta_f$ be the incidence and takeoff angles above the surface. With mass attenuation coefficients $\mu_i$ for the incident beam and $\mu_f$ for the emitted line, the relative attenuation weight is

$$
W(u)=\exp\!\left[-u\left(\frac{\mu_i}{\sin\theta_i}+\frac{\mu_f}{\sin\theta_f}\right)\right].
$$

In a uniform layer, the contribution from deeper material declines with both path lengths. Changing the takeoff angle changes the outgoing path even when the composition stays fixed. The detector then counts only a fraction of the photons that arrive.

For a thin sample with matched geometry and excitation, absorption within the sample can be small. Pure-element standards then give a sensitivity for each element. In the Lab's thick-layer preset, the thin-sample estimate underestimates the copper fraction. The absorption-corrected fit uses the declared areal density and matrix fraction, then tests its estimate against an independently generated mixed standard. The result is conditional on those inputs. Thickness, matrix composition and chemical state require additional evidence.

## 4.4 Test the line assignment in the Lab

In [X-ray Fluorescence Spectrometer](https://sandboxphysics.com/labs/xray-fluorescence-spectrometer/), choose **Thin alloy**. The preset records a simulated sample and matching references. Compare **Raw counts** with **Blank-subtracted peaks**. Open **Raw references, checks and retained records** to find the separate dark, blank and energy-reference counts. Read the iron and copper groups near $6.40\,\mathrm{keV}$ and $8.04\,\mathrm{keV}$ on the corrected spectrum.

Switch to **Below the copper edge**. Check whether the copper group survives when the source energy becomes $8\,\mathrm{keV}$. The iron group remains, while the copper peaks shrink to counting fluctuations. The Lab withholds the quantitative fraction because the pure copper standard is also unexcited. Then try **A hard tail excites copper**. The higher-energy component restores a copper signal from the same mixture. Use the retained records or export the spectra to compare the line groups on their separately calibrated axes.

## 4.5 Exercises

1. Which shell supplies the electron that fills a K vacancy in a $K_\alpha$ transition?
2. Can a monochromatic $8.00\,\mathrm{keV}$ source drive copper K fluorescence if the copper K edge is $8.98\,\mathrm{keV}$?
3. Two references place nominal coordinates $x=6$ and $x=8$ at energies $6.02\,\mathrm{keV}$ and $8.04\,\mathrm{keV}$. Find $g$ and $b$.
4. With the calibration in Exercise 3, the third reference falls at $x=7$ and has known energy $7.05\,\mathrm{keV}$. How far does the calibrated energy differ?
5. A channel has $S=130$ and $B=30$. Both exposures have the same duration and the same incident photon total $M$. What is $Y$?
6. Would a detector with $124\,\mathrm{eV}$ full width at half maximum usually resolve lines separated by $20\,\mathrm{eV}$?
7. At the same composition, why can changing the angle above the surface change an element's line area?
8. An expected copper line is absent. Give two acquisition checks before inferring a low copper fraction.

Exercise 1

An L-shell electron fills the K-shell vacancy. The emitted photon carries the difference in binding energy between the two shells.

Exercise 2

No. Each primary photon falls below the energy needed to create the copper K vacancy.

Exercise 3

$g=(8.04-6.02)/(8-6)=1.01$ and $b=6.02-1.01\times6=-0.04\,\mathrm{keV}$.

Exercise 4

The calibrated energy is $1.01\times7-0.04=7.03\,\mathrm{keV}$, which is $20\,\mathrm{eV}$ below the known value.

Exercise 5

The two dark terms cancel because $t_S=t_B$ and $M_S=M_B=M$. The result is $Y=(130-30)/M=100/M$.

Exercise 6

Generally no at this width. The response broadens each line much more than the spacing between them, and the two responses strongly overlap.

Exercise 7

A shallower takeoff angle makes the fluorescence photons travel farther through the sample before they exit. More of them can be absorbed within the sample.

Exercise 8

Check for source photons above the copper K edge. Under the same settings, check whether a copper reference gives a resolvable peak above the blank and counting fluctuations.

## Test it in the Lab

Change one setting at a time, then compare what you see with the tables and answers in this chapter.

[X-ray Fluorescence Spectrometer → Excite an iron–copper sample with photons, retain spectra and standards, and compare thin-sample calibration with conditional absorption corrections.](https://sandboxphysics.com/labs/xray-fluorescence-spectrometer/)

## Sources and reading scope

1. [NIST, X-Ray Transition Energies Database](https://www.nist.gov/pml/x-ray-transition-energies-database)

   The database tabulates characteristic transition energies by element and supplies reference positions for matching fluorescence lines.

2. [Tom Schoonjans et al., The xraylib Library for X-ray–Matter Interactions](https://bib-pubdb1.desy.de/record/95410/files/main.pdf)

   The methods describe fluorescence line production and the cross sections needed to predict line intensities.

[← Chapter 3 · How do two-dimensional images reveal a particle’s three-dimensional shape?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/cryo-em-reconstruction/) [Chapter 5 · How do counts reveal neutrino oscillations? →](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/counts-and-neutrino-oscillations/)

Chapters in this volume

- [1. What does an instrument record directly?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/signals-calibration-and-background/)
- [2. How does diffraction reveal crystal plane spacing?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/diffraction-and-crystal-spacing/)
- [3. How do two-dimensional images reveal a particle’s three-dimensional shape?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/cryo-em-reconstruction/)
- [4. How does an X-ray spectrum identify elements?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/xray-fluorescence-and-element-lines/)
- [5. How do counts reveal neutrino oscillations?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/counts-and-neutrino-oscillations/)
- [6. How does the end of a beta spectrum constrain neutrino mass?](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/beta-endpoint-and-neutrino-mass/)

## Keep reading

Interactive Physics Textbook · Reading path

### Learning the Microscopic World from Experiments

1. [Article **What does an instrument record directly?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/signals-calibration-and-background/)
2. [Article **How does diffraction reveal crystal plane spacing?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/diffraction-and-crystal-spacing/)
3. [Article **How do two-dimensional images reveal a particle’s three-dimensional shape?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/cryo-em-reconstruction/)
4. [You are here **How does an X-ray spectrum identify elements?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/xray-fluorescence-and-element-lines/)
5. [Article **How do counts reveal neutrino oscillations?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/counts-and-neutrino-oscillations/)
6. [Article **How does the end of a beta spectrum constrain neutrino mass?**](https://sandboxphysics.com/learn/experiments-on-the-microscopic-world/beta-endpoint-and-neutrino-mass/)

1 more group

### Other articles that use the same experiments

Each experiment from this article that another series also uses, followed by the articles there.

1. [Lab **X-ray Fluorescence Spectrometer**](https://sandboxphysics.com/labs/xray-fluorescence-spectrometer/)
2. [Article **Why X-ray fluorescence depends on sample thickness**](https://sandboxphysics.com/stories/instruments/xray-fluorescence-spectrometer/)
