Bragg’s law calculator: d-spacing from 2θ
Bragg’s law, nλ = 2d sin θ, links the angle of an X-ray diffraction peak to the spacing d of the lattice planes that make it: d = nλ / (2 sin θ), where θ is half the 2θ peak position. A peak at 2θ = 28.44° with Cu Kα1 radiation (λ = 1.540562 Å) comes from planes d = 3.1357 Å apart. Choose the X-ray source, then convert 2θ to d, d to 2θ, or paste indexed reflections (2θ h k l) to get the lattice parameters of a cubic, tetragonal, hexagonal or orthorhombic cell by least squares.
- What it does
- Converts an XRD peak position 2θ to the d-spacing and back with Bragg’s law, and fits lattice parameters a, b, c from indexed reflections for cubic, tetragonal, hexagonal and orthorhombic cells.
- Formula
- Example
- A peak at 2θ = 28.44° with Cu Kα1 (λ = 1.540562 Å): d = 1.540562 / (2 sin 14.22°) = 3.1357 Å. Five silicon reflections, (111) at 28.44° to (331) at 76.38°, give a = 5.4308 ± 0.0001 Å.
Loading Bragg’s law calculator…
At a glance
| Formula | |
|---|---|
| Solves for | d from 2θ, 2θ from d, lattice parameters a, b, c from indexed peaks |
| Crystal systems | Cubic, tetragonal, hexagonal, orthorhombic |
| Wavelengths | Cu, Mo and Co Kα1 and Kα means (Bearden 1967), or any λ in Å |
| Fit | Least squares on 1/d², with standard errors and 2θ residuals |
| Runs in | Your web browser; nothing is uploaded |
| Price | Free, no account needed |
What it does
How to use the bragg’s law calculator
- Choose what to calculateA d-spacing from a peak position, the peak position of a known spacing, or the lattice parameters from several indexed peaks.
- Choose the X-ray sourceCu Kα1 if your instrument removes Kα2, the Kα mean if the doublet is not resolved, or type the wavelength in Å.
- Enter the peak or the reflectionsType 2θ in degrees (or d in Å), or paste one reflection per line as “2θ h k l” and pick the crystal system.
- Read the answerd in Å and nm, 2θ in degrees, or a, b, c with their standard errors, the cell volume and the residual of every peak.
How it works
Bragg’s law. X-rays scattered by parallel lattice planes a distance
Plane spacing and the cell. For a reflection with Miller indices
Each equation is linear in
Wavelengths. The tube lines are Bearden’s (1967) values, on his Å* scale, which Bearden gives for Cu Kα1 with an uncertainty of about 5 ppm, far below what a 2θ reading resolves. Kα is a doublet (Kα1 and Kα2, about 2:1 in intensity); when the two are not separated, the weighted mean
Accuracy. d depends on
Worked examples: d-spacing, peak position and lattice parameters
- 2θ to d-spacing. A peak at
measured with Cu Kα1 ( Å): , so (0.31357 nm). With the unresolved Cu Kα mean (1.541838 Å) the same peak gives 3.1383 Å: choose the wavelength your instrument used. - d to 2θ with another tube. The same planes (
Å) appear at with Mo Kα1 and at with Co Kα1. - A cubic cell from one peak. A face-centred cubic metal shows its (111) peak at
(Cu Kα1): Å and . - A cubic cell from five peaks. Silicon (diamond cubic) reflections read to 0.01° with Cu Kα1: (111) 28.44°, (220) 47.30°, (311) 56.12°, (400) 69.13° and (331) 76.38°. The least-squares fit gives
and a cell volume of 160.17 ų; every peak lies within 0.003° of where that cell puts it. - A hexagonal cell. Five reflections of a wurtzite-type (ZnO-like) powder with Cu Kα1: (100) 31.77°, (002) 34.42°, (101) 36.25°, (102) 47.54°, (110) 56.60°. The fit gives
, , and . For a and c you need at least one peak with and one with or .
X-ray wavelengths of common tube anodes
| Line | λ (Å) | Notes |
|---|---|---|
| Cu Kα1 | 1.540562 | Copper anode, Kα2 removed (monochromator or stripping). |
| Cu Kα (Kα1/Kα2 mean) | 1.541838 | Copper anode, unresolved doublet: (2 × 1.540562 + 1.544390) / 3. |
| Mo Kα1 | 0.7093 | Molybdenum anode. |
| Mo Kα (Kα1/Kα2 mean) | 0.71073 | Molybdenum anode, unresolved doublet (the value usually quoted for Mo radiation). |
| Co Kα1 | 1.788965 | Cobalt anode (iron-rich samples fluoresce less than with Cu). |
| Co Kα (Kα1/Kα2 mean) | 1.79026 | Cobalt anode, unresolved doublet (Kα2 1.79285 Å). |
Cu Kα2 is 1.544390 Å. 1 Å = 0.1 nm. Bearden’s values are on his Å* scale, defined through the W Kα1 line; for diffraction work they are the ångström.
References
- Bearden JA. X-ray wavelengths. Rev Mod Phys 1967;39:78–124. doi:10.1103/RevModPhys.39.78 (also issued as NSRDS-NBS 14).
- Cullity BD, Stock SR. Elements of X-Ray Diffraction, 3rd ed. Prentice Hall, 2001. Appendix 3: lattice geometry (plane spacings of each crystal system).
Frequently asked questions
How do I calculate d-spacing from 2θ?
Halve the peak position to get θ, then d = λ / (2 sin θ) for first order. With Cu Kα1 (1.540562 Å), a peak at 2θ = 28.44° gives d = 1.540562 / (2 × sin 14.22°) = 3.1357 Å.
What is Bragg’s law?
nλ = 2d sin θ: X-rays reflected from parallel lattice planes a distance d apart interfere constructively when the extra path, 2d sin θ, is a whole number n of wavelengths. θ is half the 2θ angle a diffractometer reports.
What wavelength should I use for Cu Kα?
1.540562 Å (Cu Kα1) if your diffractometer removes Kα2 with a monochromator or in software, and the weighted mean 1.541838 Å (often rounded to 1.5418 Å) if the Kα1/Kα2 doublet is not resolved. Many papers quote 1.5406 Å, Cu Kα1 rounded.
How do I calculate the lattice parameter from XRD?
Index the peaks (assign hkl), convert each 2θ to d, then use the plane-spacing equation of the crystal system. For a cubic crystal a = d√(h² + k² + l²); for tetragonal and hexagonal crystals you need at least one reflection with l ≠ 0 and one with h or k ≠ 0. With several peaks, fit them by least squares, as this calculator does.
How do I convert d-spacing to 2θ?
2θ = 2 arcsin(nλ / 2d). For d = 3.1357 Å with Cu Kα1, 2θ = 28.44°; with Mo Kα1 (0.7093 Å), 12.99°. If nλ/2d is above 1 there is no reflection at that wavelength.
Is θ in Bragg’s law the same as 2θ on my XRD pattern?
No. The pattern’s x-axis is 2θ, the angle between the incident and diffracted beams; Bragg’s law uses θ, half of it. Using 2θ directly gives a d about half the true value.
Why do my high-angle peaks give a better lattice parameter?
d = λ / (2 sin θ), so an error in 2θ changes d less where sin θ changes slowly relative to its value, at high angles. A 0.01° error at 2θ = 30° shifts d about three times more, relatively, than the same error at 2θ = 80°.
Does this work for Mo or Co radiation?
Yes: choose Mo Kα1 (0.7093 Å), Mo Kα (0.71073 Å), Co Kα1 (1.788965 Å) or Co Kα (1.79026 Å), or type any wavelength, such as a synchrotron energy converted with the photon energy converter.
Link to this tool
Using it in a protocol, lab wiki or course page? Copy a link or citation.
<a href="https://www.labcanvas.com/tools/bragg-law-calculator">Bragg’s law calculator</a> (LabCanvas)LabCanvas. Bragg’s law calculator [online tool]. https://www.labcanvas.com/tools/bragg-law-calculatorMake the whole figure in LabCanvas
Vector figure editor, slides, 3D models, protein structures and Prism-style graphs, in your browser.
Get started