Updated August 2026 15 min read Materials Testing

X-Ray Diffraction (XRD) for Metallurgical Analysis: Principles and Applications

X-ray diffraction is the primary bulk technique for identifying and quantifying crystalline phases, measuring residual stress, and characterizing microstructural parameters such as crystallite size and texture in metals and alloys. This guide develops the Bragg diffraction principle underlying the technique and its major metallurgical applications, from retained austenite quantification to sin-squared-psi residual stress measurement, positioning XRD alongside the imaging and atomic-scale techniques covered elsewhere on MetallurgyZone.

Key Takeaways

  • XRD identifies crystalline phases from the unique pattern of diffraction peak positions and intensities each produces, governed by Bragg’s law, n*lambda = 2*d*sin(theta).
  • Rietveld whole-pattern refinement enables accurate quantitative phase analysis in multi-phase steels and alloys, including cases where simple peak-ratio methods fail due to overlapping reflections.
  • ASTM E975 provides a standardless XRD method for quantifying retained austenite in heat-treated steel, valid down to about 1 volume percent, based on integrated peak intensities and theoretical weighting factors.
  • The sin-squared-psi method converts the angular shift of a diffraction peak with sample tilt into a quantitative near-surface residual stress value, sampling only the shallow depth penetrated by the X-ray beam.
  • Diffraction peak broadening encodes both crystallite size and lattice microstrain; the Scherrer equation isolates size alone under a no-strain assumption, while the Williamson-Hall method separates the two contributions using their different angular dependence.
  • XRD is a bulk, statistically averaged technique and is complementary to, not a replacement for, direct-imaging methods such as SEM and atom-scale techniques such as atom probe tomography.

The Bragg Diffraction Principle

X-ray diffraction exploits the constructive interference of X-rays elastically scattered by the periodic array of atoms in a crystalline lattice. When X-rays of wavelength lambda strike a set of parallel lattice planes separated by spacing d at incidence angle theta, rays reflected from successive planes travel different path lengths. Constructive interference, producing a measurable diffraction peak, occurs only when this path length difference equals a whole number of wavelengths, the condition expressed by Bragg’s law.

Bragg's Law:

n * lambda = 2 * d * sin(theta)

where:
  n      = order of reflection (integer)
  lambda = X-ray wavelength (commonly Cu K-alpha, 1.5406 Angstrom)
  d      = interplanar spacing of the diffracting (hkl) plane
  theta  = angle of incidence (and diffraction) measured from the plane

Because each crystalline phase has a characteristic set of lattice plane spacings determined by its crystal structure and lattice parameter, each phase produces a unique pattern of diffraction peak positions, a principle used directly for phase identification and connected to the crystal structure fundamentals in our iron-carbon phase diagram guide.

Phase Identification and Quantitative Phase Analysis

Search-Match Identification

Routine phase identification compares the measured diffraction pattern, a plot of intensity against diffraction angle 2-theta, against reference patterns held in databases such as the ICDD Powder Diffraction File, matching peak positions and relative intensities to identify the crystalline phases present in an unknown sample.

Rietveld Refinement

For quantitative phase analysis in multi-phase metallurgical samples, particularly where reflections from different phases overlap, whole-pattern Rietveld refinement is the preferred method. Rather than measuring individual peak areas, Rietveld refinement calculates a complete theoretical diffraction pattern for each candidate phase from its known crystal structure and iteratively adjusts structural, microstructural, and instrumental parameters until the calculated pattern converges with the measured data. This approach simultaneously yields phase fractions, refined lattice parameters, crystallite size, and microstrain from a single measurement, and is the basis for the retained austenite and phase-fraction analysis routinely applied in heat-treated steel development, connecting to the transformation behaviour covered in our martensite formation guide.

Retained Austenite Quantification (ASTM E975)

ASTM E975 provides a standardless XRD method for quantifying retained austenite in steel with near-random crystallographic orientation, applicable to heat-treated low-alloy, medium- to high-carbon steels where retained austenite is a common and mechanically significant constituent. The method calculates austenite volume fraction directly from the integrated intensities of selected non-overlapping ferrite/martensite and austenite diffraction peaks, combined with theoretical structure-factor weighting terms, without requiring an internal or external calibration standard.

ASTM E975 direct comparison method (simplified concept):

V_austenite = I_austenite / (R_austenite)
              ------------------------------------------------
              [I_austenite / R_austenite] + [I_ferrite / R_ferrite]

where I = integrated peak intensity (measured)
      R = theoretical intensity factor (from structure, multiplicity,
          Lorentz-polarization, and temperature factors for each hkl)

Method is standardless (no calibration sample required), valid for
retained austenite content down to approximately 1 volume percent.

The method requires correction when significant carbide content is present, since carbide reflections can interfere with the selected austenite and ferrite peaks, and its accuracy depends on the near-random crystallographic orientation assumption; strongly textured samples, common in heavily cold-worked or directionally solidified material, require additional correction or a texture-aware analysis approach, a consideration linked to the anisotropy concepts in our crystallographic texture guide.

Residual Stress Measurement: The Sin-Squared-Psi Method

XRD residual stress measurement relies on the fact that elastic strain in the crystal lattice, caused by residual (or applied) stress, produces a measurable shift in diffraction peak position relative to the strain-free d-spacing. The sin-squared-psi (sin²ψ) method measures this peak shift for a chosen lattice plane across a series of sample tilt angles, psi, relative to the diffraction plane normal.

Sin-squared-psi method (biaxial stress state, isotropic material):

d(phi,psi) = d0 * [1 + ((1+nu)/E) * sigma_phi * sin^2(psi)] - (nu/E)*d0*(sigma_1+sigma_2)

Simplified working relation:

sigma_phi = (E / (1+nu)) * (1/d0) * (d(d)/d(sin^2 psi))

where:
  d0     = strain-free interplanar spacing
  E, nu  = X-ray elastic constants (may differ slightly from bulk values)
  sigma_phi = residual stress in direction phi at the sample surface

A linear relationship between measured d-spacing and sin²ψ is expected for an isotropic, homogeneous stress state; the slope of this line, combined with the material’s X-ray elastic constants, converts directly into a stress value. Because the technique relies on a diffracted beam that has travelled through and back out of the material, it samples only a shallow near-surface volume, typically a few to a few tens of microns deep depending on the X-ray source and material absorption, making it well suited to characterizing shot-peened, ground, or welded surface layers, and complementary to the destructive hole-drilling and layer-removal techniques used for deeper residual stress profiles.

Applications of XRD Residual Stress Measurement

  • Verifying compressive residual stress depth and magnitude after shot peening or laser peening of fatigue-critical components.
  • Assessing weld residual stress fields adjacent to the fusion line and HAZ, relevant to the reheat and lamellar cracking mechanisms discussed elsewhere on this site.
  • Quality control of grinding processes, where excessive tensile residual stress (“grinding burn”) can significantly reduce fatigue life.
  • Evaluating case-hardened or nitrided component surface stress states as part of heat treatment process validation.

Crystallite Size and Microstrain Analysis

Diffraction peaks are not infinitely sharp; their width and shape encode information about crystallite (coherently diffracting domain) size and lattice microstrain, local variation in d-spacing caused by dislocations and other lattice defects. Peaks broaden as crystallite size decreases below roughly 100-200 nanometres and as microstrain increases.

Scherrer equation (crystallite size, assumes negligible strain broadening):

D = (K * lambda) / (beta * cos(theta))

where:
  D      = mean crystallite size
  K      = shape factor (commonly ~0.89-0.94)
  lambda = X-ray wavelength
  beta   = peak breadth (FWHM, instrument-corrected), in radians
  theta  = Bragg angle

Williamson-Hall method (separates size and strain broadening):

beta_hkl * cos(theta) = (K*lambda / D) + 4*epsilon*sin(theta)

Plotting beta*cos(theta) against sin(theta) across multiple reflections
yields crystallite size D from the intercept and microstrain epsilon
from the slope.

The Scherrer equation alone is adequate for a first-order size estimate when strain broadening is genuinely negligible, but the Williamson-Hall method, which uses multiple reflections and exploits the different angular dependence of size and strain broadening, is preferred where both effects are expected to contribute, such as in heavily cold-worked or nanocrystalline metallurgical samples, connecting to the strengthening mechanisms discussed in our strain hardening and cold working guide.

Texture Analysis

Because rolled, drawn, or otherwise deformed metals commonly develop preferred crystallographic orientation (texture), XRD pole figure measurement, which records diffracted intensity for a chosen reflection as a function of sample orientation, provides a direct, quantitative map of the degree and character of texture present. Texture measurement is significant both because it can bias other XRD quantitative analyses, including the retained austenite method above, if not properly accounted for, and because texture itself governs directional variation in yield strength, formability, and magnetic properties in sheet products, a topic developed further in our crystallographic texture guide.

XRD Compared with SEM and Atom Probe Tomography

TechniqueInformation ProvidedLength ScaleSample Volume
XRDPhase identification and quantification, texture, residual stress, crystallite size/microstrainAngstrom (lattice) to bulk statistical averageBulk (mm to cm scale, statistically averaged)
SEMDirect real-space imaging of microstructural morphology, with EDS for local chemistry~1 nm to mmSurface and near-surface, point-by-point
Atom Probe TomographyThree-dimensional, atom-by-atom chemical mappingSub-nanometreNeedle-shaped specimen, tens of nanometres wide

These three techniques are complementary rather than competing. XRD provides statistically representative, quantitative bulk-phase and stress information rapidly and non-destructively, but cannot directly image individual grains, precipitates, or interfaces. A complete metallurgical characterization programme, particularly for advanced alloy development, typically draws on all three: XRD to establish bulk phase fractions and stress state, SEM to visualize and correlate microstructural morphology, and atom probe tomography to resolve fine-scale segregation or precipitate chemistry that neither bulk nor imaging techniques alone can capture. Related SEM-based characterization is developed in our metallographic sample preparation guide.

Sample Preparation Considerations

Avoiding a Biased Result

Conventional metallographic grinding and polishing introduces a mechanically deformed near-surface layer that can both mask the true bulk crystallographic texture and introduce spurious apparent residual stress unrelated to the material’s actual service-relevant stress state. For quantitative retained austenite and residual stress measurement in particular, careful electropolishing or chemical etching to remove this deformed layer is essential; skipping this step is one of the most common sources of misleading XRD results in metallurgical laboratories.

Industrial Significance

XRD is a routine, high-value quality control and research tool across steelmaking, heat treatment, surface engineering, and failure analysis, providing rapid, quantitative answers to questions that optical and electron microscopy alone cannot resolve, particularly retained austenite content, residual stress state, and precise phase identification in complex multi-phase alloys. Its non-destructive nature and standardized methods, including ASTM E975 and the sin-squared-psi residual stress technique, make it a common companion to hardness testing, metallography, and the more spatially resolved SEM and atom probe methods across both production quality control and advanced materials research settings.

Frequently Asked Questions

What is X-ray diffraction and how does it work?
X-ray diffraction (XRD) is an analytical technique that exploits the constructive interference of X-rays scattered by the periodic lattice planes of a crystalline material. When Bragg’s law is satisfied for a given lattice plane spacing and X-ray wavelength, a diffraction peak is recorded at the corresponding angle. Because each crystalline phase produces a unique pattern of peak positions and intensities determined by its crystal structure, XRD provides a direct, quantitative fingerprint of the phases present in a metallurgical sample.
What is Bragg’s law and why is it central to XRD?
Bragg’s law, n*lambda = 2*d*sin(theta), relates the X-ray wavelength (lambda), the spacing between crystallographic planes (d), and the angle of incidence (theta) at which constructive interference, and therefore a diffraction peak, occurs. It is central to XRD because it directly connects the measurable diffraction angle to the interplanar spacing, which in turn is determined by the crystal structure and lattice parameter of each phase present, forming the basis for both phase identification and quantitative structural analysis.
How does XRD quantify retained austenite in steel?
ASTM E975 provides a standardless method for quantifying retained austenite in steel with near-random crystallographic orientation, calculating the austenite volume fraction directly from the integrated intensities of non-overlapping ferrite/martensite and austenite diffraction peaks combined with theoretical structure-factor weighting terms, without requiring an internal or external calibration standard. The method is valid down to about 1 volume percent retained austenite and requires correction when significant carbides or strong crystallographic texture are present.
How does XRD measure residual stress?
The sin-squared-psi method measures the shift in diffraction peak position for a chosen lattice plane as the sample is tilted through a series of psi angles relative to the diffraction plane. Elastic lattice strain caused by residual stress produces a linear relationship between the measured d-spacing and sin-squared(psi); the slope of this relationship, combined with the material’s X-ray elastic constants, is converted directly into a residual stress value in the near-surface region sampled by the X-ray penetration depth, typically a few to a few tens of microns for common X-ray sources.
What is Rietveld refinement and why is it used in metallurgical XRD?
Rietveld refinement is a whole-pattern fitting method that models the entire measured diffraction pattern using calculated patterns for each candidate crystalline phase, adjusting structural, microstructural, and instrumental parameters until the calculated and measured patterns converge. In metallurgy it is widely used for accurate quantitative phase analysis in multi-phase steels and alloys, including cases with overlapping peaks that simple peak-intensity-ratio methods cannot resolve reliably, and it can simultaneously refine lattice parameters, crystallite size, and microstrain.
How does XRD determine crystallite size and microstrain?
Diffraction peaks broaden as crystallite size decreases below roughly 100-200 nm and as lattice microstrain (local variation in d-spacing caused by dislocations and defects) increases. The Scherrer equation relates peak breadth to crystallite size alone under the simplifying assumption that strain broadening is negligible, while the Williamson-Hall method separates the two contributions by plotting peak breadth against diffraction angle across multiple reflections, since size broadening and strain broadening have different angular dependence.
How is XRD different from SEM and atom probe tomography for metallurgical analysis?
XRD is a bulk, statistically averaged technique that probes a macroscopic sample volume to identify and quantify crystalline phases, texture, residual stress, and crystallite size, but does not directly image individual microstructural features or provide atomic-scale chemical mapping. Scanning electron microscopy (SEM) provides direct real-space imaging of microstructural morphology at length scales from roughly 1 micron down to a few nanometres, and atom probe tomography provides three-dimensional, atom-by-atom chemical mapping at sub-nanometre resolution from a needle-shaped specimen. The three techniques are complementary rather than competing, and a complete metallurgical characterization programme typically draws on all three.
What sample preparation is required for metallurgical XRD?
Bulk phase identification generally requires a flat, representative sample surface with minimal preferred orientation from prior machining or grinding, since surface deformation can both introduce spurious near-surface residual stress and mask the true bulk phase texture. For quantitative retained austenite and residual stress measurement, careful electropolishing or chemical etching is commonly used to remove any mechanically deformed surface layer introduced by conventional metallographic grinding and polishing, since that deformed layer would otherwise bias the measurement.

Recommended Reference Reading

Elements of X-Ray Diffraction (Cullity & Stock)

The standard foundational reference on XRD theory, technique, and application to metals.

View on Amazon

Residual Stress Measurement by X-Ray Diffraction (SAE)

Applied reference for the sin-squared-psi method and X-ray elastic constants.

View on Amazon

ASM Handbook Vol. 10: Materials Characterization

Comprehensive reference covering XRD alongside SEM, TEM, and atom probe techniques.

View on Amazon

Introduction to Rietveld Refinement

Practical guide to whole-pattern fitting and quantitative phase analysis methodology.

View on Amazon

Disclosure: MetallurgyZone participates in the Amazon Associates programme. If you purchase through these links, we may earn a small commission at no extra cost to you. This helps support free technical content on this site.

Further Reading

garg5917@gmail.com

← Previous
Sulfide Stress Cracking (SSC) in Sour Service: Mechanism and Control
Next →
EBSD (Electron Backscatter Diffraction) in Metallurgy: Principles and Applications