Bragg's Law Calculator

Calculate d-spacing from diffraction angles or solve for θ using Bragg's equation

Equation: nλ = 2d sin θ. This calculator assumes monochromatic X-ray radiation and ideal Bragg reflection conditions. Peak positions from experimental data may require zero-shift correction.

Input Parameters

⚡ Auto-Update

Standard X-ray sources or enter custom wavelength/energy. Synchrotron users: select "Custom energy (keV)" to input beam energy directly.

First-order (n=1) is standard for most XRD analysis. Higher orders are typically absorbed into Miller indices.

Peak position from your diffractogram. Most instruments report 2θ directly.

Add uncertainty (σ) for error propagation
° (2θ)

Enter σ in the same unit as your angle input. Propagated uncertainty σd will be calculated using: σd = d · cot(θ) · σθ

Reference databases: Compare calculated d-spacings against ICDD PDF-4+, COD (Crystallography Open Database), or AMCSD for phase identification.

Results

d-Spacing
Å

Phase identification tip: Match multiple d-spacings (at least 3 strongest peaks) against reference patterns for reliable phase identification. Single-peak matching is ambiguous.

Quick Reference: Common d-Spacings

Cu Kα₁

Click any row to auto-fill values. 2θ angles update automatically when you change the X-ray source.

Material Plane (hkl) d (Å) 2θ (°)

Understanding Bragg's Law

Bragg's Law describes the fundamental relationship governing X-ray diffraction from crystalline materials. When X-rays interact with regularly spaced atomic planes, constructive interference occurs only when the path difference between waves reflected from adjacent planes equals an integer multiple of the wavelength.

The Bragg Equation: nλ = 2d sin θ, where n is the diffraction order (integer), λ is the X-ray wavelength, d is the interplanar spacing, and θ is the Bragg angle (half of the measured 2θ).

When to Use This Calculator

  • Phase identification: Convert peak positions (2θ) to d-spacings for database matching
  • Lattice parameter determination: Calculate d-spacings to extract unit cell dimensions
  • Peak prediction: Determine expected 2θ positions for known crystal structures
  • Experimental planning: Check if reflections are accessible with your X-ray source

d-Spacing and Crystal Structure

The interplanar spacing (d) depends on the crystal system and Miller indices (hkl):

  • Cubic: d = a / √(h² + k² + l²)
  • Tetragonal: 1/d² = (h² + k²)/a² + l²/c²
  • Hexagonal: 1/d² = (4/3)(h² + hk + k²)/a² + l²/c²
  • Orthorhombic: 1/d² = h²/a² + k²/b² + l²/c²

Energy vs. Wavelength

X-ray wavelength and energy are related by: λ (Å) = 12.398 / E (keV). This calculator accepts either input format. Synchrotron beamlines typically specify energy in keV, while laboratory sources are characterized by wavelength.

Practical Considerations

  • 2θ vs θ: Diffractometers typically display 2θ (detector angle). The Bragg angle θ is half this value. This calculator accepts both formats.
  • Zero-point error: Experimental 2θ values may have systematic offset. Calibrate with a standard (Si, LaB₆) for precise d-spacing determination.
  • Kα splitting: At high 2θ (>~70°), Kα₁/Kα₂ doublet splitting becomes visible. Use Kα₁ for precise work.
  • Accessible range: Most laboratory diffractometers cover 2θ = 10–140°. Some reflections may be inaccessible with certain X-ray sources.

Physical constraint: For real solutions, sin θ ≤ 1, which requires nλ ≤ 2d. If d < λ/2, no diffraction can occur. This limits which reflections are observable with a given X-ray source.

Diffraction Order (n)

While Bragg's Law includes diffraction order n, in practice n=1 is almost always used. Higher-order reflections (n=2, 3...) appear at the same position as lower-order reflections from planes with smaller d-spacings. For example, the (200) reflection is conventionally reported rather than second-order (111).

Common X-ray Sources

The choice of X-ray source affects accessible d-spacing range and resolution:

  • Cu Kα (λ = 1.5406 Å): Most common for general crystallography. Good balance of penetration and resolution.
  • Mo Kα (λ = 0.7107 Å): Higher penetration, useful for absorbing samples and single-crystal work.
  • Co Kα (λ = 1.7890 Å): Reduces fluorescence from Fe-containing samples.
  • Synchrotron: Tunable wavelength, high intensity for specialized applications.

Sources & Citations

Bragg, W. H., & Bragg, W. L. (1913). The Reflection of X-rays by Crystals. Proceedings of the Royal Society A, 88(605), 428–438. doi:10.1098/rspa.1913.0040
Cullity, B. D., & Stock, S. R. (2014). Elements of X-Ray Diffraction (3rd ed.). Pearson Education.
International Centre for Diffraction Data (ICDD). Powder Diffraction File (PDF-4+). www.icdd.com
Crystallography Open Database (COD). Open-access database of crystal structures. www.crystallography.net/cod
Values restored from your last session.

AI & Computational Tools for Researchers

Explore our curated guides to the best free AI tools for literature discovery, data analysis, computational modeling, and more.

6d piezo alignement system