XRD Calculator Back
Materials Science

X-Ray Diffraction (XRD) Calculator

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

Crystal Parameters
Crystal structure
Lattice constant a (&Angstrom;)
&Angstrom;
X-ray source
Crystallite size L (nm)
nm
Results
-
Strongest peak 2θ
-
d-spacing
-
Active peaks
-
Width
Diffraction pattern
Unit cell
Peak list
#hkld (&Angstrom;)WidthIntensity
Theory & key formulas

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

Scherrer: $B = K\lambda/(L\cos\theta)$

What This Simulator Shows

X-ray diffraction peaks appear only when Bragg's law is satisfied and the selected crystal structure allows that reflection. Changing the lattice constant moves the peak positions, while changing crystallite size changes peak broadening.

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

How To Read The Results

The bar chart shows relative diffraction intensity versus 2θ. The unit-cell sketch gives a quick visual check of the selected lattice. The peak table lists the strongest allowed reflections with hkl index, d-spacing, 2θ, and Scherrer width.

Applications And Limits

XRD is useful for phase identification, lattice-constant checks, crystallite-size estimation, and residual-stress screening. Peak positions are usually more reliable than peak heights in a simplified simulator, because real intensities depend on texture, absorption, instrument broadening, and sample preparation.

How to Use

  1. Input lattice parameters: set cubic a-value (2.0–4.0 Å) or tetragonal a and c values using sliders or text fields
  2. Specify X-ray wavelength λ (0.5–2.5 Å, typical Cu Kα = 1.5406 Å)
  3. Click Calculate to generate d-spacings via Bragg's law (nλ = 2d sinθ) and identify peak positions, intensities, and broadening from strain/crystallite size

Worked Example

CuO tetragonal structure: a = 4.68 Å, c = 3.42 Å, Cu Kα λ = 1.5406 Å. The (110) reflection yields d = 3.31 Å, 2θ = 26.8°. The (200) peak appears at 2θ = 38.6° with d = 2.34 Å. Using Scherrer equation with crystallite size D = 50 nm, peak width β ≈ 0.17° FWHM. A 0.3% lattice strain broadens peaks by additional 0.08°.

Practical Notes

  1. For phase identification on polycrystalline samples, match experimental 2θ positions to ICDD database entries; strongest peaks typically correspond to lowest d-spacings
  2. Peak broadening increases with decreasing crystallite size—nanoparticles (5–20 nm) show widths exceeding 1° FWHM
  3. Preferred orientation in thin films shifts relative intensities; monoclinic systems require (hkl) structure factor calculations for accurate peak heights