XRD Calculator Back
Materials Science

X-Ray Diffraction (XRD) Calculator

Select crystal structure and X-ray wavelength to calculate allowed reflections, d-spacings, 2-theta angles, and Scherrer broadening. Diffraction pattern visualization.

Parameters

Parameter A50
Parameter B25

About

Select crystal structure and X-ray wavelength to calculate allowed reflections, d-spacings, 2-theta angles, and Scherrer broadening. Diffraction pattern visualization.

Result 1
Result 2

What is X-Ray Diffraction?

🧑‍🎓
What exactly is X-ray diffraction, and how can it tell us about a crystal's structure?
🎓
Basically, it's like shining a light through a very fine grating. When X-rays hit the ordered layers of atoms in a crystal, they scatter and interfere with each other. They only create a strong signal, or "peak," when they bounce off in phase. This condition is described by Bragg's Law. In the simulator above, try changing the crystal structure from FCC to BCC—you'll instantly see a different set of allowed peaks appear.
🧑‍🎓
Wait, really? So the pattern of peaks is like a fingerprint for the crystal? What does the "d-spacing" slider control?
🎓
Exactly! The peak positions are a direct fingerprint. The "d-spacing" is the distance between the atomic planes that are doing the diffracting. A common case is in metallurgy: the spacing between planes in steel (a BCC structure) is different from in aluminum (FCC). In the simulator, slide the "d-spacing" parameter. You'll see all the peak angles shift because Bragg's Law directly links spacing and angle.
🧑‍🎓
That makes sense. But I see a "Crystallite Size" parameter too. What does the size of the crystal grains have to do with the diffraction pattern?
🎓
Great question! It affects the *width* of the peaks, not their position. Think of it like this: a tiny crystal has fewer atomic planes to scatter from, so the diffraction condition gets a bit "fuzzy." This broadening is described by the Scherrer equation. For instance, in catalyst nanoparticles, small size is critical for activity. Try reducing the crystallite size in the tool—you'll see the peaks become beautifully broader, simulating a real measurement.

Physical Model & Key Equations

The core condition for constructive interference of X-rays scattered from crystal planes is given by Bragg's Law. It relates the X-ray wavelength, the interplanar spacing, and the diffraction angle.

$$ n\lambda = 2d \sin\theta $$

Where:
n = order of reflection (usually 1)
λ = wavelength of the incident X-ray (e.g., Cu Kα = 1.5406 Å)
d = interplanar spacing between crystal planes
θ = Bragg angle (half of the measured 2θ peak position)

The width of a diffraction peak increases as the crystallite size decreases. The Scherrer equation estimates the average crystallite size from this broadening.

$$ \tau = \frac{K \lambda}{\beta \cos\theta} $$

Where:
τ = mean crystallite size
K = dimensionless shape factor (≈0.9)
λ = X-ray wavelength
β = peak width at half maximum intensity (in radians)
θ = Bragg angle of the peak
This tells us that broader peaks (larger β) correspond to smaller nanocrystals.

Real-World Applications

Materials Identification & Quality Control: XRD is the definitive method for identifying crystalline phases. For instance, in the pharmaceutical industry, it's used to verify that a drug compound is in the correct polymorphic form, as different forms can have vastly different bioavailability and stability.

Nanotechnology & Catalyst Design: The Scherrer analysis is crucial here. Scientists synthesize nanoparticles for catalysts or quantum dots. By measuring peak broadening in the XRD pattern, they can directly calculate the average particle size, which governs the material's reactivity and optical properties.

Residual Stress Analysis: Stress in a material slightly distorts the crystal lattice, changing the d-spacings. By measuring precise shifts in peak positions, engineers can map residual stresses in critical components like turbine blades or welded joints, predicting fatigue life and preventing failure.

Geology & Mineralogy: Geologists use portable XRD analyzers in the field to identify mineral compositions in rocks and soils on-site. This is vital for mining exploration, archaeological studies, and understanding soil composition for agriculture and construction.

Common Misconceptions and Points to Note

When you start using this tool, there are a few common pitfalls to watch out for. First is the case of confusing the lattice constant 'a' with the crystallite size 'L'. The lattice constant is the distance between atoms (the size of the unit cell), measured in Ångströms (Å). On the other hand, the crystallite size L is the "extent" of an ordered region, like in a single crystal, and is typically measured in nanometers (nm). For example, even for aluminum with a lattice constant of about 3.6 Å, L can be around 10 nm (=100 Å) for a nanoparticle, representing completely different scales.

Next is the point that "the Scherrer equation is not a panacea". While it's true that decreasing L in the tool broadens the peak width, the actual measured width is strongly influenced not only by "crystallite size" but also by factors like instrumental resolution and crystal strain (distortion). Therefore, when you back-calculate L from experimental data, you often need techniques like instrumental function correction or the "Williamson-Hall plot," which separates the influence of strain using multiple peaks.

Finally, don't forget that "the calculated 2θ values are ideal". In actual measurements, peak positions can easily shift by a few tenths of a degree due to sample absorption, surface roughness, offset, etc. During identification, you should focus on the "pattern of relative peak positions." For instance, in practical work, it's useful to develop a big-picture perspective, like understanding what the ratio of the 2θ values for the (111) and (200) peaks should be for an FCC structure.

Related Engineering Fields

The calculations performed by this XRD tool are useful not just in materials science. Crystal information is key in many adjacent engineering fields. In semiconductor engineering, high-resolution XRD (HR-XRD) is essential for evaluating the crystal quality of epitaxially grown thin films and measuring stress in strained silicon. The peak positions calculated by the tool are observed as "peak shifts" due to lattice mismatch between the substrate and the film, from which stress is quantified.

It's also crucial in the field of catalyst chemistry. In supported metal catalysts, very small crystallites (L of a few nm) are dispersed on a surface, not the simple structures assumed by the tool. The resulting XRD pattern often shows only broad peaks, which is precisely where the Scherrer equation proves its worth, used to estimate the size of active sites (particle diameter). For example, the performance of automotive exhaust gas purification catalysts strongly correlates with this particle size.

Furthermore, it finds applications in residual stress measurement and phase transformation tracking. For instance, quenched steel forms a martensite phase, which has a body-centered tetragonal (BCT) structure, resulting in peak positions slightly different from those of ordinary BCC iron. By comparing measured patterns with results calculated by slightly varying the lattice constant in the tool, you can monitor the progress of the transformation. In this way, the calculation tool becomes a powerful compass for interpreting "what is happening."

For Further Learning

Once you're comfortable using the tool, the next step is to delve deeper into the underlying theory. A good first step is to engage with the concept of "reciprocal space". The diffraction angles we calculate with the tool are actually a physical representation of "reciprocal lattice vectors." Bragg's law $2d\sin\theta = \lambda$ can be written very simply in reciprocal space as the condition where the scattering vector $\vec{k}-\vec{k_0}$ coincides with a reciprocal lattice point $\vec{g}_{hkl}$, i.e., $\vec{k}-\vec{k_0} = \vec{g}_{hkl}$. Gaining this perspective makes it easier to understand why the conditions for reflection (the structure factor) change with crystal structure, as an operation of Fourier transforming the atomic arrangement.

Mathematically, learning the basics of Fourier series/transforms is a shortcut. The diffraction intensity from a crystal is given by the squared magnitude of the Fourier transform of the electron density distribution within the unit cell (i.e., the squared absolute value of the structure factor). The "allowed reflections" shown by the tool are the (hkl) combinations for which this structure factor is non-zero. For example, you can consider yourself proficient when you can explain why the (200) reflection is forbidden in the diamond structure using Fourier transforms based on the two-atom basis.

As a next concrete topic, I recommend looking into "Rietveld analysis". This technique goes beyond calculating individual peaks as the tool does; it simultaneously fits the entire measured diffraction profile with numerous parameters like lattice constants, crystallite size, and microstrain. It's a core technology in commercial software. Learning this enables you to perform quantitative analysis of XRD data. This tool is an excellent entry point for experiencing the "first principles" needed to interpret those results.