Bragg's Law Calculator
Find the angle at which a crystal plane reflects a given wavelength.
What it does
Crystals diffract X rays because waves reflected from neighbouring atomic planes can arrive in step. That happens only when the extra distance travelled between planes equals a whole number of wavelengths. The condition is known as Bragg's law and it underpins X ray crystallography.
This calculator solves the law for the angle, given the wavelength, the spacing between the reflecting planes and the order of reflection. It also reports the sine that was used and the largest order that can exist for the given wavelength and spacing.
The default uses copper K alpha radiation at 0.154 nm and planes 0.202 nm apart. In first order the sine is 0.3812 and the angle is 22.41 degrees. The largest possible order is two, because higher orders would need a sine greater than one.
The angle in Bragg's law is the glancing angle between the beam and the plane, not the angle from the perpendicular. Diffraction instruments usually report twice this angle as the detector position, so remember to double the result when comparing with a diffractometer trace.
Real crystals have many sets of planes with different spacings, and each produces its own peak. Peak positions reveal the spacing, while peak heights depend on the arrangement of atoms within the unit cell, which this simple law does not calculate.
How to use
- Enter the wavelength of the radiation in nanometres.
- Enter the spacing between the crystal planes in nanometres.
- Enter the order of reflection as a whole number.
- Press calculate and read the Bragg angle in degrees.
- Check the highest possible order for the same wavelength and spacing.
- Double the angle if you need the detector position on a diffractometer.
Formula
- λ
- Wavelength of the incident radiation, in nanometres.
- d
- Spacing between reflecting crystal planes, in nanometres.
- n
- Order of reflection, a whole number.
- θ
- Glancing angle between beam and plane, in degrees.
Wavelength and plane spacing share the same length unit, so the units cancel before the arcsine. If the computed sine exceeds one, the tool reports an error because that reflection cannot occur. The highest possible order is the whole part of twice the spacing divided by the wavelength.
Worked example
Example: 0.154 nm on 0.202 nm planes, first order
Metric length units are the form defaults.
- Multiply wavelength by order: 1 × 0.154 = 0.154 nm.
- Divide by twice the spacing: 0.154 / 0.404 = 0.3812.
- Take the arcsine: arcsin(0.3812) = 22.41 degrees.
- Find the highest order: 2 × 0.202 / 0.154 = 2.62, so the whole part is 2.
- The tool shows 22.41 °, 0.3812 and 2.
Reference table
| Plane spacing | Sine theta | Bragg angle |
|---|---|---|
| 0.10 nm | 0.7700 | 50.35 ° |
| 0.154 nm | 0.5000 | 30.00 ° |
| 0.202 nm | 0.3812 | 22.41 ° |
| 0.404 nm | 0.1906 | 10.99 ° |
Limits
- Uses ideal flat planes and a single wavelength.
- Does not calculate peak intensities or structure factors.
- Ignores thermal motion and defects that broaden real peaks.
- Only orders with a sine at or below one can reflect.
Common mistakes
- Measuring the angle from the plane normal instead of the plane itself.
- Mixing nanometres and angstroms between the two length inputs.
- Forgetting to double the angle for a diffractometer reading.
- Choosing an order that makes the sine exceed one.
- Using a non integer order, which the tool rejects.
Try it yourself
Quick checks. Answers sit tucked under each question.
0.154 nm on 0.404 nm planes, first order?
10.99 °, sine 0.1906, highest order 5.
0.154 nm on 0.202 nm planes, second order?
49.67 °, sine 0.7624, highest order 2.
Questions
What is Bragg's law?
The condition n lambda equals 2 d sine theta for constructive reflection from crystal planes.
Is the angle measured from the surface or the normal?
From the plane itself, so it is a glancing angle.
Why does the tool report the highest order?
Because orders above that would need a sine greater than one and cannot occur.
Why is 0.154 nm a common wavelength?
It is the approximate wavelength of copper K alpha radiation used in many laboratory diffractometers.
Does this give peak intensity?
No. Intensity depends on the positions of atoms inside the cell and needs a structure factor calculation.
Do I need angstroms?
No, as long as both wavelength and spacing use the same unit. Nanometres are the default here.