Bragg's Law Calculator

Calculate Bragg diffraction angle, d-spacing, or wavelength using nλ = 2d sin θ. Includes higher-order reflections, momentum transfer, and X-ray source reference.

Crystal / Source Presets

Interplanar distance
Bragg Angle θ
15.8522°
sin θ = nλ/(2d)
31.7043°
Scattering angle measured in diffractometers
d-Spacing
2.8200 Å
Interplanar distance
Wavelength
1.5406 Å
≈ 0.1541 nm
X-ray Energy
8.048 keV
E = 12.398 / λ(Å)
Momentum Transfer q
2.2281 Å⁻¹
q = 4π sin θ / λ

Diffraction Geometry

Incident beam → Crystal planes (d = 2.82 Å) → Diffracted beam
θ = 15.85° · 2θ = 31.70°

Higher-Order Reflections

Order nθ (°)2θ (°)rel. intensity
115.85231.704
233.11466.229
355.032110.063

Common X-ray Source Lines

SourceLineλ (Å)E (keV)
CuKα₁1.54068.048
Cu1.39228.905
MoKα₁0.710717.44
CoKα₁1.7896.93
CrKα₁2.28975.415
AgKα₁0.559422.16
Planning notes, formulas, and examples

About the Bragg's Law Calculator

The **Bragg's Law Calculator** solves the X-ray (or neutron, electron) diffraction equation nλ = 2d sin θ for any of the three unknowns: Bragg angle, d-spacing, or wavelength. It also computes higher-order reflections, the momentum transfer vector q, and X-ray photon energy — everything you need for interpreting diffraction patterns.

Bragg's Law is the cornerstone of crystallography — it relates the wavelength of incident radiation, the spacing between crystal planes, and the angles at which constructive interference (diffraction peaks) occur. William Lawrence Bragg and his father William Henry Bragg won the 1915 Nobel Prize for pioneering crystal-structure determination with X-rays.

Use the presets for common crystals (NaCl, Si, diamond, graphite) and X-ray sources (Cu Kα, Mo Kα, neutron), or enter custom parameters. The higher-order tables and source references make it easier to move between a quick angle check and a more realistic diffraction interpretation. That way the angle, wavelength, and spacing stay tied to the same crystallographic context instead of being handled as separate values. It also makes it easier to compare several peaks or source options without mixing angle conventions.

When This Page Helps

Bragg-angle calculations are easy to write down but surprisingly easy to mishandle when wavelength, order, and spacing all change at once. This calculator keeps the diffraction angle, d-spacing, wavelength, energy, and reciprocal-space quantity together so you can move between measurement and structure with fewer transcription mistakes. It is particularly helpful when comparing instrument readings against expected lattice spacings from a known crystal.

How to Use the Inputs

  1. Select a crystal/source preset or enter d-spacing and wavelength manually.
  2. Choose what to solve for: Bragg angle, d-spacing, or wavelength.
  3. Set the diffraction order n (usually 1 for primary reflections).
  4. Read the Bragg angle, 2θ, photon energy, and momentum transfer.
  5. Review higher-order reflections and common X-ray lines in the tables.
  6. Enter θ directly when solving for d-spacing or wavelength.
Formula used
Bragg's Law: nλ = 2d sin θ Solve for θ: θ = arcsin(nλ / 2d) Solve for d: d = nλ / (2 sin θ) Solve for λ: λ = 2d sin θ / n X-ray Energy: E (keV) = 12.398 / λ (Å) Momentum Transfer: q = 4π sin θ / λ

Example Calculation

Result: θ = 15.86°, 2θ = 31.71°

NaCl has a (200) d-spacing of 2.82 Å. With Cu Kα X-rays (1.5406 Å), the first-order Bragg angle is about 15.86° (2θ = 31.71°).

Tips & Best Practices

  • Cu Kα (1.5406 Å) is the most common lab X-ray source for powder XRD.
  • For synchrotron work, λ is tunable — use the "solve for λ" mode to plan experiments.
  • Higher-order peaks (n = 2, 3, ...) appear at larger angles and are weaker.
  • Systematic absences (missing peaks) reveal the Bravais lattice type.
  • Always check for Kβ contamination — a Ni filter removes Cu Kβ.

Keep Track Of Which Quantity Is Measured

In many diffraction problems, the instrument gives you 2θ while the equation is written in terms of θ. That single factor-of-two slip is one of the most common sources of wrong d-spacing results. Use the calculator to keep the measured detector angle and the Bragg angle clearly separated.

Order Matters, But First-Order Peaks Are Usually The Starting Point

Higher-order solutions can exist for the same wavelength and plane spacing, but they appear at different angles and are often weaker or absent depending on the structure factor and instrument setup. Checking multiple orders is useful, but starting with n = 1 usually gives the clearest connection between the measured line and the lattice spacing.

Units Connect The Physics

One strength of Bragg's Law is that it links angle, wavelength, spacing, photon energy, and reciprocal space in one compact relation. That also means unit slips can spread quickly. Keep angstroms, keV, and degrees consistent when moving between source data, instrument output, and structural interpretation.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Bragg's Law is the condition for constructive interference of waves scattered by regularly spaced crystal planes: nλ = 2d sin θ. It links the diffraction geometry directly to the lattice spacing.