A Bragg's law calculator finds the angle at which X-rays or other waves are diffracted by the planes of a crystal. Enter the wavelength and the spacing of the planes to get the Bragg angle, or find the spacing or the wavelength from the others. For a cubic crystal, it can work out the spacing from the lattice constant and the Miller indices.
How to use the Bragg's law calculator
- Choose what you want to find.
- Enter the wavelength, the spacing or the angle in the same unit.
- For a cubic crystal, enter the lattice constant and the Miller indices.
- Press Calculate.
The law
Bragg's law states that constructive interference occurs when nλ = 2d sin θ, where n is the order of the diffraction, λ the wavelength, d the spacing of the crystal planes and θ the glancing angle [1]. The page notes that θ is measured from the planes, which differs from the convention of Snell's law, where angles are from the normal [1]. The waves reflected from successive planes add up when their path difference is a whole number of wavelengths [1].
Finding the angle
For a first-order reflection from planes with a spacing of 2.0 ångströms, with X-rays of 1.5406 ångströms, sin θ = λ ÷ 2d = 0.38515, so the Bragg angle is 22.653 degrees. A detector in an X-ray diffractometer is placed at twice this angle from the incident beam, which is the diffraction angle 2θ, 45.31 degrees here. The calculator gives both. The wavelength is the commonly used one for the copper K-alpha line, and it is our own value.
Higher orders
The order n can be 1, 2, 3 and so on [1]. In the second order, the same planes give sin θ = 2λ ÷ 2d, so the angle is larger: 50.4 degrees in the example. Reflections of higher order exist only while nλ ÷ 2d is not more than 1. If it is above 1, no diffraction is possible, and the calculator tells you that.
Spacing in a cubic crystal
For a cubic crystal with a lattice constant a, the spacing of the planes with the Miller indices (h k l) is d = a ÷ √(h² + k² + l²) [1]. The page's text of this formula is partly garbled, so we have checked it against the standard form. For aluminium, with a lattice constant of 4.05 ångströms, our own value, the (111) planes are 2.3383 ångströms apart.
A worked example
With that spacing and the wavelength of 1.5406 ångströms, the first-order Bragg angle for the (111) planes of aluminium is 19.234 degrees, and the detector is at 38.47 degrees. To use this, choose the angle mode and enter the wavelength, the lattice constant of 4.05, and the indices 1, 1, 1. The calculator works out the spacing and then the angle.
Finding the spacing
If you measure the angle at which a peak appears, with a known wavelength, you can work out the spacing of the planes: d = nλ ÷ (2 sin θ). A peak at 22.66 degrees with 1.5406 ångströms gives d = 1.99942 ångströms. This is how powder diffraction patterns are used to identify materials and to measure the lattice constants of crystals.
Finding the wavelength
If you know the spacing and the angle, you can find the wavelength: λ = 2d sin θ ÷ n. This is used to calibrate an X-ray source or to find the energy of neutrons from a crystal monochromator. The calculator offers it as a third mode, and you can enter a lattice constant and the indices in place of d.
The conditions
The page says that Bragg diffraction occurs for radiation of a wavelength comparable to the atomic spacings, scattered specularly by the planes [1]. It is correct for very large crystals, with sizes of 100 nanometres or more for X-rays and neutrons [1]. For electrons, which scatter far more strongly and give many spots, the law is only an approximation [1].
Units
The wavelength and the spacing can be in any unit, as long as they are both in the same one. Ångströms, nanometres and picometres are common. The result is in the unit that you used, and the angles are in degrees. The calculator does not convert between length units, so check that your inputs are consistent.
Using the calculator
Select the mode, enter the order, and then the two known values. For a cubic crystal, you can fill in the lattice constant and the three indices in place of the spacing, and the working line shows the spacing that was calculated. Always check that the angle is in degrees from the planes, and that the order is a whole number.
Where it is used
Bragg's law is the basis of X-ray crystallography, which found the structures of salts, metals and proteins, and of powder diffraction, where the pattern of peaks identifies a material. It is also used in neutron and electron diffraction, and in the crystals that act as monochromators to pick one wavelength from a beam.
Common mistakes
- Measuring the angle from the surface normal. Use the glancing angle.
- Using different units for λ and d. Keep them the same.
- Forgetting that the detector angle is 2θ. The diffraction angle is double.
- Entering a fractional order. n must be a whole number.
What next
Use this often? Add Bragg's Law to your Home screen.
Frequently asked questions
What is a Bragg's law calculator?
A tool that finds the diffraction angle, plane spacing or wavelength from Bragg's law.
What is Bragg's law?
nλ = 2d sin θ, with θ measured from the crystal planes.
How do I find d for a cubic crystal?
d = a ÷ √(h² + k² + l²).
What is 2θ?
The angle between the incident and the diffracted beam, twice the Bragg angle.
Does Bragg's law work for electrons?
Only approximately, because electrons scatter strongly.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.