Bragg Calculator
https://xraytools.com/bragg
Converts between the angle a reflection is observed at and the spacing of the lattice planes that produced it, through λ = 2d sin θ.
- You supply
- Either an angle (θ or 2θ) or a d-spacing, and the anodes you want it answered for.
- Reading it
- One row per anode, quoted to the figures you typed — never fewer than four significant figures and never more than the wavelength constant carries. n.a. means that radiation cannot reach the reflection at all: nothing with d < λ/2 diffracts.
Worked examples: NaCl (200) · quartz (101)
Earlier on the path: Lattice explorer Next on the path: HKL Calculator On From planes to a powder pattern, step 2 of 7
Notation here: d · θ, 2θ — what each one means here
See also: Lattice explorer · HKL Calculator · Peak Finding · Line Broadening · Powder Indexing · The Ewald Construction
What each input changes
- Convert
- Which direction the conversion runs. Everything else on the page is the same one relation; this only says which end you are holding.
- Emission line
- Which wavelength the angles are computed at. Kα1 moves every angle slightly against the Kα mean; Kβ moves them a long way, which is what an unfiltered pattern shows.
Teaching with this page
- Objective
- After this page a learner can convert between a measured angle and a lattice spacing in either direction, and say which quantity the instrument supplied.
- Start from
- this worked example
- Ask first
- A powder diffractometer reports a line at 31.7°. Is that the angle to put into Bragg’s law?
- Watch for
- “Yes — it is the angle the instrument measured”
- Then
- HKL Calculator
Check yourself: A powder diffractometer reports a line at 31.7°. Is that the angle to put into Bragg’s law?
Not as it stands — the instrument reports 2θ Yes — it is the angle the instrument measured
What a diffractometer reports is the angle between the incident and the diffracted beam, 2θ. Bragg’s law is written with θ, the angle each of those beams makes with the planes, so the reported figure is halved before it goes in. Halving twice, or not at all, moves every d by about a factor of two, and it is the commonest arithmetic mistake in the subject. This page offers both as separate modes rather than guessing which you have.
Input
Results
| Mo: | 0.8409 Å |
|---|---|
| Cu: | 1.824 Å |
Wavelengths are Kα.
How the reflection works
BA and BC are wavefronts: every point on one is the same distance along the beam, so the lower ray’s extra path is exactly what lies between them — AD on the way in and DC on the way out.
BD = d joins the two reflection points, and the wavefronts meet the lower ray square — the right angles are marked at A and at C. So ABD and CBD are right-angled triangles with BD as the hypotenuse and the angle at B equal to θ, which puts AD and DC opposite it: AD = DC = BD sin θ = d sin θ = 0.3554 Å. AD + DC = 2d sin θ = 0.7107 Å, and that is λ = 0.7107 Å. Setting the two equal is Bragg’s law with nothing in between: the waves come away in step here, and away from this angle they fall out of step. How fast they do so is what sets the width of the line — the drop is abrupt only for a perfect crystal of unlimited extent, which is what this figure draws.
The path difference above is one wavelength, and any whole number of them would do as well: the general law is nλ = 2d sin θ, with n the order of the reflection. Crystallography folds n away rather than carrying it: the nth order from (hkl) is written as the first order from (nh nk nl), whose spacing is d(hkl)/n. The second order from (100) is the reflection called 200. That is why every other page here writes λ = 2d sin θ with no n in it, and why a d-spacing always belongs to a named set of indices.
The angle, the plane spacing and the wavelength along each ray are to scale; nothing else in the figure is — the height of the wave stands for no length here. The atoms are drawn evenly along each plane at a spacing this page does not know and does not need — Bragg’s law says nothing about the arrangement within a plane, which is why it holds whatever that arrangement is. θ is measured from the plane and not from its normal, so the angle between the incoming and outgoing beams — the one a diffractometer reads — is 2θ.
Drawn for Mo Kα. Every other row is the same figure at that anode’s own angle.
How this is calculated
Every other row is the same equation with that anode’s wavelength in place of this one. Results are quoted to the figures you typed — never fewer than four significant figures and never more than the wavelength constant carries.
Characteristic wavelengths
| Anode | Energy Kα / keV | Kα / Å in use | Kα1 / Å | Kα2 / Å | Kβ / Å |
|---|---|---|---|---|---|
| Ag | 22.11 | 0.560868 | 0.5594075 | 0.563789 | 0.497069 |
| Mo | 17.44 | 0.710730 | 0.709300 | 0.713590 | 0.632288 |
| Cu | 8.04 | 1.541838 | 1.540562 | 1.544390 | 1.392218 |
| Co | 6.93 | 1.790260 | 1.788965 | 1.792850 | 1.62079 |
| Fe | 6.40 | 1.937355 | 1.936042 | 1.939980 | 1.75661 |
| Cr | 5.41 | 2.29100 | 2.28970 | 2.293606 | 2.08487 |
Kα here is the 2:1 weighted mean of Kα1 and Kα2. An unmonochromated tube delivers the two lines separately; the mean is the single effective wavelength to compute with when the doublet is not resolved, which is ordinary laboratory data, and it is what this site uses unless you say otherwise. Choose Kα1 if a monochromator or a Johansson mirror removes the Kα2 component. Kα2 is not offered on its own, because no experiment runs on it alone — it is listed only because the Kα1/Kα2 splitting is why high-angle peaks look doubled. Kβ is what the filter or monochromator removes; compute with it to find out where the ghost peaks of an unfiltered pattern fall.
Kα is not an independent constant: it is (2 × Kα1 + Kα2) / 3, which reproduces every Kα value in this table to its own last digit.
Values taken from B. B. He, Two-Dimensional X-Ray Diffraction, John Wiley & Sons, Hoboken, NJ, Second edition, 2018.
Where this comes from
- The reflection of X-rays by crystals
W. H. Bragg and W. L. Bragg, Proc. R. Soc. A 1913, 88, 428–438 · doi:10.1098/rspa.1913.0040
The law this page solves, in the paper where the crystals were actually measured. Worth reading for how little of it is theory: the spacings come out of a spectrometer.