spectro logoSkip to Main Content
No options found
ED-XRF Product Line

What is XRF and How Does X-Ray Fluorescence Work

X-ray fluorescence (XRF) is a fast, non-destructive analytical technique used to identify and quantify the elemental composition of a material. When exposed to X-rays, a sample emits characteristic secondary (fluorescent) X-rays that are unique to each element. Measuring the energy and intensity of these emissions reveals which elements are present and in what concentrations.

XRF works on solids, liquids, and powders with little or no sample preparation and is valued for its speed, accuracy, repeatability, and versatility. Depending on the analyzer configuration, qualitative detection may extend to lighter elements (with specialized optics and detectors), while quantitative analysis typically begins with fluorine (F) and extends up to heavy elements such as thorium and uranium. Under optimized conditions, XRF delivers sub-ppm detection limits and can measure concentrations up to 100% for major components, often simultaneously in a single measurement.

Originally developed for geological analysis, XRF is now widely used for quality control, material verification, compliance screening, and research across metallurgy, environmental laboratories, manufacturing, and cultural heritage science.

XRF Analysis and Principle: A (Complete) Guide

This guide provides a clear overview of X-ray fluorescence (XRF) analysis, explaining the fundamental physics behind how X-rays interact with matter and how characteristic fluorescence is used to identify and quantify elements.

What you´ll learn on this page:
 

  • The physics behind XRF—what X‑rays are, how they interact with matter, and how fluorescence reveals elemental composition.
  • The step‑by‑step XRF process, including excitation, emission, detection, and data analysis.
  • The role of transitions & intensity in quantification.
  • The advantages of XRF for real‑world decision making.
  • Why sample preparation is the key to accuracy—and how to choose the right method by sample type and analytical goal.
     

Get an overview in this informative video:
 

What is X-Ray Fluorescence

When a sample is irradiated with X‑rays, its atoms can emit secondary (fluorescent) X‑rays at energies that are unique to each element. By measuring these energies (for identification) and their intensities (for quantification), an XRF analyzer produces a complete elemental fingerprint of the sample. Because the sample is not consumed or chemically altered, XRF is classed as non‑destructive. 

 

X-ray Fluorescence Principle

What are X‑Rays?

X‑rays are high‑energy electromagnetic radiation with short wavelengths that can penetrate materials and interact with their atoms. In XRF, this interaction promotes inner‑shell ionization—ejecting an electron and creating a vacancy. As the atom relaxes, an electron from a higher shell drops down to fill the vacancy, releasing energy as a characteristic X‑ray. The energy of this emitted photon corresponds to the difference between the shells, which is element‑specific. 

Interaction of X‑Rays with Matter

When X‑rays enter a sample, several processes can occur: the photoelectric effect (inner‑shell ionization), scattering (Compton & Rayleigh), and absorption. The photoelectric effect is the primary mechanism for XRF because it creates the vacancy that leads to characteristic fluorescence. Scattering produces background signal that analyzers account for during quantification, while absorption attenuates both the incoming X‑rays and the outgoing fluorescence; its magnitude depends on matrix composition and photon energy. Modern analyzers maximize useful fluorescence and minimize confounding effects through smart optics, filters, calibration, and software corrections.

 

Interaction with Matter

The Basic Process of XRF Analysis (Step‑by‑Step)

  1. Excitation
    An X‑ray source (tube or, in specialized instruments, a radioisotope) emits primary X‑rays that bombard the sample. The energy is chosen to efficiently ionize the shells of the elements of interest. Collimators, filters, and optics shape the beam and reduce noise. Solution tip: For light elements, use configurations that increase low‑energy throughput (appropriate filters/optics). For heavy elements, ensure sufficient tube voltage/current for robust excitation.
  2. Emission
    Ionized atoms relax via electron transitions (e.g., L→K, M→L), emitting characteristic X‑rays (Kα, Kβ, Lα, etc.). Each line has a known energy, enabling element identification. Solution tip: Use line selection (e.g., K vs L series) that balances sensitivity and matrix absorption for your sample type.
      

    XRF Basic Process

  3. Detection
    A detector (commonly a Silicon Drift Detector—SDD—in ED‑XRF; or crystals and detectors in WD‑XRF) measures the energy and intensity of emitted photons. In ED-XRF, the result is a spectrum—peaks at specific energies representing elements, with peak heights/areas relating to concentrations. Solution tip: Prioritize detectors with high energy resolution for complex, multi‑element matrices. Stability and count rate management are vital for accurate quantification.
  4. Analysis
    Software performs peak identification (element mapping), background subtraction and deconvolution (resolving overlaps), matrix corrections (Fundamental Parameters or empirical calibration), and quantification (converting intensities to concentrations). It also supports reporting & compliance outputs (pass/fail, limits, certifications).
     

    XRF Analysis


    XRF spectrum showing characteristic elemental peaks

    Solution tip: Adopt robust calibration (standards representative of your matrix), drift correction / standardization, and QA routines (check samples) to keep data reliable over time.

Multiple Transitions & Intensity

An element’s spectrum can display multiple lines (Kα, Kβ, Lα…). Which line you use depends on energy resolution and overlap with neighboring elements, matrix absorption (lower‑energy lines are more attenuated in heavy matrices), and detector efficiency across the energy range. Under controlled conditions, the peak intensity scales with concentration. Quantitative XRF relies on calibration curves (or fundamental parameter models) to convert intensity to accurate wt% or ppm values, with corrections for geometry, surface condition, and matrix effects.

 

  • High-Speed Processing: The process handles each X-ray one by one but with high speed. Modern detectors can handle 1 million counts per second and more. Therefore the spectrum can be recorded quasi-simultaneously. Even with a short measurement time, the spectrum can give sufficient information to calculate intensities, which can be used to determine the composition of the sample.
  • Impact of Measurement Time: Using a longer measurement time allows for better statistics resulting in better precision and better peak-to-background thus resulting in improved detection limits. The intensities follow a “Poisson”-statistics. The table below shows the influence of the number of counts on the statistical error of the analysis:
Number of counts NAbs. error √NRel. error in %
1001010 %
10,0001001 %
1,000,0001,0000.1 %

Photon count versus statistical error in XRF

 

Advantages of XRF Analysis

  • Non‑destructive: Samples are preserved—vital for rare, expensive, or irreplaceable items.
  • Minimal sample preparation: Many routine checks are possible without extensive prep, cutting time and cost.
  • Wide elemental coverage: From light elements (with specialized setups) to heavy metals, enabling broad application.
  • High sensitivity: Sub‑ppm detection under optimized conditions; major constituents measured confidently up to 100%.
  • Versatility: Works across solids, powders, and liquids; adaptable to field and lab environments.
  • Speed & cost‑effectiveness: Results in seconds to minutes; avoids reagent use and complex wet chemistry.
  • Multi‑element analysis: A single scan can deliver a comprehensive elemental profile for decision‑making.

     

XRF Sample Preparation: Key to Accurate Elemental Analysis

While XRF is often non‑destructive, proper sample preparation can dramatically improve precision and accuracy—especially for light elements, heterogeneous materials, or coated surfaces. The best prep depends on sample type and analytical goals.

 

  • No preparation (direct analysis): Suitable for clean, homogeneous surfaces and rapid screening.
  • Sample cups for powders & liquids: Fill powders, granulates, or liquids into XRF cups using suitable films for stable presentation.
  • Surface cleaning (glass/alloys): Remove dust, oil, corrosion, or coatings that obscure base material.
  • Oxide/coating removal: Gently remove oxides, plating, paint, or scale to reveal the substrate.
  • Machining/polishing (metal alloys): Polish or machine to a flat, smooth finish for uniform measurement geometry.
  • Pulverization (powders): Crush/mill samples to reduce particle size; improves homogeneity and reduces particle effects.
  • Pressed powder pellets (with binder): Blend powder with a binder and press into pellets for mechanical stability and better surface finish.
  • Pressed powder pellets (without binder): Press fine powder in Al cups / steel rings for support when binders may interfere.
  • Fused beads (oxidic samples): Mix with flux (e.g., lithium tetraborate/metaborate), fuse to create a homogeneous glass and minimize matrix effects.

Why Sample Preparation Matters in XRF Analysis

Two concepts drive the need for preparation: information depth & attenuation, and matrix effects & heterogeneity.

Information Depth & Attenuation

For a given photon energy and matrix, the detectable fluorescence originates from a limited information depth. Heavier matrices attenuate low‑energy fluorescence more strongly, reducing the depth from which useful signal escapes. This effect is summarized by the attenuation length—the thickness at which fluorescence is reduced by a factor of 1/e. Low‑energy lines are more surface‑sensitive, so contaminated or rough surfaces can bias results unless cleaned or polished.

 

XRF Attenuation

Matrix Effects & Heterogeneity

XRF intensity depends not only on concentration but also on absorption/enhancement caused by the sample’s matrix. In heterogeneous samples, particle size, mineralogy, and coatings change the effective path of X‑rays and fluorescence, altering measured intensities. Improve homogeneity (pulverization, pressed pellets, fused beads), and use matrix‑matched calibrations or Fundamental Parameters with verified standards to achieve accurate, reproducible results.

Matrix-dependent scattering effects in XRF analysis.

Solution‑Oriented Guidance: Choosing the Right Prep by Scenario

  • Rapid screening / compliance checks (e.g., RoHS): Direct analysis or minimal cleaning; accept slightly higher uncertainty for speed; configure software for pass/fail thresholds and audit‑ready reports.
  • Precise alloy identification / PMI: For a high-quality analysis use a flat surface, consider polishing/machining; remove oxides/coatings; use appropriate line sets to handle overlaps; maintain instrument standardization and verify with CRMs.
  • Geological majors (SiO₂, Al₂O₃, Fe₂O₃, CaO…): Prefer fused beads to reduce mineralogical effects; maintain flux:sample ratios, fusion temperature/time, and cooling profiles; calibrate with matrix‑matched standards.
  • Powders with variable particle sizes: Pulverize and sieve if necessary; press into pellets; use consistent binder percentages; record preparation parameters for traceability.
  • Liquids or slurries: Use sealed cups with appropriate films; consider settling/stratification; standardize fill height, film choice, and measurement geometry.

     

Quality Assurance: Getting Repeatable, Defensible Results

  • Routine instrument standardization (drift checks with stable references).
  • Calibration verification using CRMs (certified reference materials).
  • Replicate measurements on critical samples to assess precision.
  • Documented sample prep SOPs (particle size, polishing grade, fusion recipe).
  • Automated reporting with clear uncertainty statements, limits, and traceability (who/when/how).

     

Common Pitfalls—and How to Avoid Them

  • Surface contamination: Clean or polish; measure background or use filters to reduce interference.
  • Particle size/segregation effects when analyzing powders: Pulverize to fine, consistent grain size; use pressed pellets.
  • Coating/substrate confusion: Decide whether you are measuring coating thickness / composition or substrate; prep accordingly.
  • Incorrect film choice for cups: Select films with appropriate X‑ray transmission and chemical resistance; keep film taut and wrinkle‑free.
  • Overlooking matrix‑specific calibration: Use matrix‑matched standards; apply Fundamental Parameters with validation.

     

Putting It All Together: A Practical Workflow

  1. Define the goal: Screening, compliance, PMI, research, or majors/minors quantification.
  2. Classify sample type: Solid (alloy), powder, granulate, liquid, coated part.
  3. Choose preparation: None, clean/polish, cup, pellet (± binder), fused bead.
  4. Set method parameters: Tube voltage/current, filters, counting time, number of replicates, typically predefined in the analyzer software
  5. Calibrate/verify: Use standards or CRMs; run drift checks.
  6. Measure & review spectrum: Confirm peak IDs, check overlaps/background.
  7. Quantify & report: Apply corrections; include limits/uncertainties; archive prep/measurement metadata.
  8. Refine SOPs: Capture lessons learned for faster, better future analyses.

     

Why Choose SPECTRO’s XRF Spectrometers?

SPECTRO provides a diverse array of X-ray Fluorescence (XRF) analyzers for elemental analysis across various materials and applications. This includes portable spectrometers like

  • the compact handheld XRF SPECTRO xSORT for on-the-spot metal analysis, scrap sorting and non-metal applications (geology, mining, environmental & compliance screening)
  • and the SPECTROSCOUT, which delivers lab-quality analysis in the field.

SPECTRO also offers an extensive selection of bench-top XRF spectrometers like the SPECTRO XEPOS, SPECTROCUBE and SPECTRO MIDEX for specialized elemental analysis, multi-purpose laboratory spectrometers for trace element analysis, and a wide range of online solutions. Whatever your specifications, SPECTRO can meet them.

 

Ready to achieve accurate, repeatable XRF results—fast? Talk to the Spectro team about the optimal analyzer configuration, calibration strategy, and sample preparation SOPs for your materials. 

 

Contact us to get tailored guidance and a demo.

Related Resources

Discover additional information about XRF technology.

Related Products

Discover our XRF products.

Resource Library

Explore Our Resources

The SPECTRO resource library includes a large number of white papers, application reports, webinars, case studies, brochures etc. for a broad range of applications.

Lets Talk - Contact Us

Let´s Talk

Ready to move forward? Contact us to discuss your needs and explore the right solution together.