When a monochromatic beam of X-rays strikes a crystalline lattice, the regularly spaced atomic planes act as semi-transparent mirrors. At precisely defined angles, waves reflected from successive planes emerge perfectly in phase, producing an intense constructive interference peak. This geometric relationship — first articulated by William Lawrence Bragg in 1913 — remains the single most important equation in X-ray crystallography.
The Bragg's Law calculator resolves the fundamental diffraction condition $n\lambda = 2d\sin\theta$ for any unknown variable — the Bragg angle $\theta$, the interplanar spacing $d$, or the incident wavelength $\lambda$ — given the remaining known parameters. Beyond the primary equation, it simultaneously evaluates the scattering vector $q$, maximum observable diffraction order $n_{\max}$, and theoretical resolution limit $d_{\min}$, providing a complete feasibility assessment before a single photon reaches the detector.
Required Crystallographic Parameters
The following variables must be defined (or selected as the solve target) to execute a valid Bragg condition analysis:
- Diffraction Order ($n$) — a positive integer representing the number of wavelengths constituting the path difference between adjacent reflected wavefronts. First-order ($n = 1$) reflections dominate routine powder diffractometry.
- Wavelength ($\lambda$), in Ångströms (Å) — the monochromatic wavelength of the incident probe beam. May be entered manually or auto-populated by selecting a standard X-ray anode source (Cu Kα, Mo Kα, Co Kα, Fe Kα, or Ag Kα).
- Interplanar Spacing ($d$), in Ångströms (Å) — the perpendicular distance separating two adjacent parallel crystallographic planes defined by their Miller indices $(hkl)$.
- Bragg Angle ($\theta$), in Degrees (°) — the angle between the incident beam and the diffracting lattice plane at which the constructive interference condition is satisfied. Not to be confused with the total detector angle $2\theta$.
Deriving the Diffraction Condition from First Principles
The Geometric Path-Difference Argument
Consider two parallel X-ray wavefronts incident on adjacent atomic planes separated by spacing $d$. The lower beam must travel an additional distance — entering the crystal deeper by $d\sin\theta$ and exiting by the same amount — before it rejoins the upper beam. The total path difference is therefore:
$$\Delta = 2d\sin\theta$$
Constructive interference occurs exclusively when this path difference equals an integer multiple of the wavelength. This constraint yields the Bragg equation:
$$n\lambda = 2d\sin\theta$$
where $n = 1, 2, 3, \ldots$ is the diffraction order.
Algebraic Rearrangements for Each Target Variable
Depending on the experimental unknown, the equation is rearranged as follows.
Solving for the Bragg angle:
$$\theta = \arcsin!\left(\frac{n\lambda}{2d}\right)$$
This form is used most frequently — a known crystal structure ($d$) and chosen radiation source ($\lambda$) predict where peaks will appear on the diffractogram.
Solving for interplanar spacing:
$$d = \frac{n\lambda}{2\sin\theta}$$
This is the standard structure-determination mode: observed peak positions yield lattice spacings.
Solving for wavelength:
$$\lambda = \frac{2d\sin\theta}{n}$$
Employed in energy-dispersive diffraction or when calibrating an unknown source against a reference crystal.
The Scattering Vector and Reciprocal-Space Representation
While the $2\theta$ peak position is the directly measured experimental observable, it is instrument-dependent — the same crystal will produce peaks at different $2\theta$ values when examined with Cu Kα versus Mo Kα radiation. The scattering vector magnitude $q$ eliminates this dependency:
$$q = \frac{4\pi\sin\theta}{\lambda}$$
Because $q$ is expressed in reciprocal Ångströms (Å⁻¹), it provides a universal coordinate for comparing diffraction data collected at different wavelengths — including laboratory X-ray tubes, synchrotron beamlines, and spallation neutron sources. This is precisely why modern crystallographic databases and pair distribution function (PDF) analyses report data in $q$-space rather than $2\theta$-space.
Maximum Observable Order and the Resolution Boundary
The physical constraint $\sin\theta \leq 1$ imposes a hard ceiling on the diffraction order:
$$n_{\max} = \left\lfloor \frac{2d}{\lambda} \right\rfloor$$
When $n = n_{\max}$ and $\theta$ approaches 90°, the crystal can no longer produce higher-order reflections for that wavelength. Simultaneously, the theoretical resolution limit — the smallest interplanar spacing resolvable by a given wavelength — is fixed at:
$$d_{\min} = \frac{\lambda}{2}$$
This hard physical boundary explains why Cu Kα radiation ($\lambda = 1.5406$ Å) cannot resolve features finer than approximately 0.77 Å. Reaching sub-Ångström resolution demands shorter-wavelength probes: Mo Kα ($\lambda = 0.7107$ Å) extends $d_{\min}$ to ~0.36 Å, while synchrotron hard X-rays or electron diffraction push this limit further still.
Standard X-Ray Emission Lines and Crystallographic Reference Data
Characteristic Radiation from Common Anode Materials
The choice of X-ray tube anode governs wavelength, penetration depth, fluorescence background, and ultimately data quality. The table below summarizes the Kα₁ emission lines of the five most widely deployed laboratory anode materials.
| Anode Material | Kα₁ Wavelength (Å) | Kβ₁ Wavelength (Å) | Excitation Voltage (kV) | Primary Application Domain |
|---|---|---|---|---|
| Cu (Copper) | 1.5406 | 1.3922 | 8.98 | Powder XRD (PXRD), general-purpose crystallography |
| Mo (Molybdenum) | 0.7107 | 0.6323 | 20.00 | Single-crystal diffraction, heavy-element compounds |
| Co (Cobalt) | 1.7890 | 1.6208 | 7.71 | Fe-bearing minerals and steels (avoids Fe fluorescence) |
| Fe (Iron) | 1.9373 | 1.7566 | 7.11 | Specialized metallurgical analysis |
| Ag (Silver) | 0.5594 | 0.4970 | 25.52 | High-resolution pair distribution function (PDF) studies |
Copper Kα dominates routine powder diffractometry for compelling reasons: its wavelength provides excellent angular separation for most inorganic $d$-spacings, the high thermal conductivity of copper anodes permits sustained high-power operation, and the vast majority of reference patterns in the ICDD Powder Diffraction File (PDF-4+) are indexed against Cu radiation. Conversely, Mo Kα is the standard for single-crystal work on small molecules because its shorter wavelength compresses the diffraction cone into a smaller angular range, allowing full reciprocal-space coverage with less detector motion.
Interplanar Spacings for Common Crystal Structures
To contextualize typical $d$-spacing magnitudes encountered in practice, the following table lists representative reflections for well-characterized reference materials.
| Material | Crystal System | Miller Indices $(hkl)$ | $d$-Spacing (Å) | $2\theta_{\text{Cu Kα}}$ (°) |
|---|---|---|---|---|
| Silicon (Si) | Cubic (Fd3m) | (111) | 3.1355 | 28.44 |
| Silicon (Si) | Cubic (Fd3m) | (220) | 1.9201 | 47.30 |
| Corundum (α-Al₂O₃) | Trigonal (R3c) | (012) | 3.4790 | 25.58 |
| Corundum (α-Al₂O₃) | Trigonal (R3c) | (104) | 2.5520 | 35.15 |
| LaB₆ (NIST SRM 660c) | Cubic (Pm3m) | (100) | 4.1569 | 21.36 |
| LaB₆ (NIST SRM 660c) | Cubic (Pm3m) | (110) | 2.9393 | 30.39 |
| NaCl (Halite) | Cubic (Fm3m) | (200) | 2.8210 | 31.70 |
| Quartz (α-SiO₂) | Trigonal (P3₂21) | (101) | 3.3434 | 26.64 |
These reference compounds serve as external calibration standards. LaB₆ (NIST SRM 660c) and Si (NIST SRM 640f) are the certified standards for instrument profiling because their sharp, well-separated reflections enable precise determination of zero-offset, peak asymmetry, and instrumental broadening.
Interpreting Diffraction Data and Experimental Strategy
How Wavelength and Spacing Govern Angular Resolution
The sensitivity of peak position to structural changes is encoded in the differential form of Bragg's law. Taking the derivative with respect to $d$:
$$\Delta\theta \approx -\frac{n\lambda}{2d^2\cos\theta},\Delta d$$
This relationship reveals that angular sensitivity increases at higher $2\theta$ values (where $\cos\theta$ shrinks), making high-angle reflections disproportionately valuable for detecting subtle lattice distortions — a principle exploited in residual stress measurement by the $\sin^2\psi$ method.
Conversely, at low $2\theta$ values the same $\Delta d$ produces a smaller angular shift, which is why phase identification relies heavily on the first few strong reflections but lattice parameter refinement demands data extending to high angles.
Diffraction Order Versus Miller Index Equivalence
While the calculator retains the diffraction order $n$ for pedagogical completeness, modern Rietveld refinement software — including GSAS-II, FullProf, and TOPAS — treats all reflections as first-order ($n = 1$). A second-order reflection from planes $(hkl)$ is mathematically identical to a first-order reflection from planes $(2h,;2k,;2l)$ with half the spacing:
$$2\lambda = 2d_{hkl}\sin\theta ;\equiv; 1 \cdot \lambda = 2!\left(\frac{d_{hkl}}{2}\right)!\sin\theta = 2,d_{2h,2k,2l}\sin\theta$$
This equivalence is not merely notational. The structure factor $F(hkl)$ determines whether a reflection is systematically absent. Treating higher orders as distinct Miller indices ensures that extinction rules (e.g., FCC: $h, k, l$ all odd or all even) are applied correctly and automatically during structure solution.
Recognizing Physically Impossible Conditions
The argument of the arcsine function is constrained to the interval $[-1, 1]$. When the combination of $n$, $\lambda$, and $d$ yields:
$$\frac{n\lambda}{2d} > 1$$
no real Bragg angle exists — the diffraction condition is physically impossible. In practice, this situation arises when attempting to observe high-order reflections from closely spaced planes using a long-wavelength source. The calculator flags this as an invalid parameter set, preventing erroneous structural conclusions before data collection begins.
This constraint is also the quantitative justification for switching radiation sources: if a target $d$-spacing falls below $d_{\min} = \lambda/2$ for Cu Kα, the experiment must migrate to Mo Kα, a synchrotron beamline, or an electron diffraction instrument.
Frequently Asked Questions
The $2\theta$ scale is tied to a specific wavelength. A peak appearing at $2\theta = 28.44°$ on a copper-source diffractometer shifts to $2\theta = 13.09°$ if the same sample is measured with molybdenum radiation. The scattering vector $q = 4\pi\sin\theta/\lambda$ removes this wavelength dependence entirely, producing an instrument-invariant coordinate.
This becomes critical when comparing laboratory powder data with synchrotron or neutron measurements. Databases like the Inorganic Crystal Structure Database (ICSD) increasingly provide $q$-indexed patterns for precisely this reason. In pair distribution function analysis and small-angle X-ray scattering (SAXS), $q$-space is the only practical representation because data from multiple beamline energies must be merged seamlessly.
Cobalt radiation ($\lambda = 1.7890$ Å) is specifically chosen when analyzing iron-rich specimens — steels, iron ores, ferrites, and Fe-bearing geological minerals. The reason is X-ray fluorescence interference: the Cu Kα photon energy (8.04 keV) sits just above the Fe K absorption edge (7.11 keV), causing iron atoms to fluoresce and flood the detector with a high, featureless background that buries weak diffraction peaks.
Co Kα photons (6.93 keV) fall below the Fe absorption edge, eliminating fluorescent excitation. The trade-off is a modest reduction in angular resolution due to the longer wavelength, and slightly broader peaks. For non-ferrous samples, Cu Kα remains the superior choice for its tighter peaks and broader reference database coverage.
This limit defines the smallest periodic structural feature that a given wavelength can resolve. For Cu Kα, $d_{\min} \approx 0.77$ Å — sufficient for resolving most inorganic crystal structures but too coarse for resolving individual light-atom positions (C–C bonds ~1.54 Å are resolvable, but hydrogen positions at ~0.37 Å interatomic separation are not).
Switching to Mo Kα ($d_{\min} \approx 0.36$ Å) or a short-wavelength synchrotron line enables collection of higher-resolution data in reciprocal space, which is essential for precise electron density mapping and charge density studies. When even shorter probes are required — for instance, to image individual atomic columns — the experiment transitions to transmission electron microscopy (TEM), where electron wavelengths at 200 kV are approximately 0.025 Å, far exceeding X-ray resolution capability.
Precision Crystallography Through Automated Bragg Analysis
Manual evaluation of the Bragg condition — converting between angular and reciprocal-space representations, checking feasibility constraints, computing maximum diffraction orders — is a routine source of transcription and rounding errors, particularly when comparing data across multiple radiation sources.
Automated computation of $\theta$, $d$, $\lambda$, $q$, $n_{\max}$, and $d_{\min}$ from a single parameter set eliminates unit-conversion mistakes, enforces the $\sin\theta \leq 1$ physical boundary before measurements are attempted, and provides immediate cross-source comparability through the scattering vector. For diffraction experiments where beam time is expensive and sample availability is limited, confirming geometric feasibility computationally — rather than discovering an impossible reflection empirically — represents a significant saving in both time and resources.