Bragg's Law Calculator

Wavelength (angstroms)1.93
sin(theta)0.342
Path difference 2d sin(theta)1.93 angstroms
How this was calculated
  1. Bragg's law, n x lambda = 2d sin(theta), ties the wavelength to the spacing d of the crystal planes and the glancing angle theta at which the reflections reinforce.
  2. With d = 2.82 angstroms, theta = 20 degrees and order n = 1: sin(theta) = 0.342.
  3. lambda = 2 x 2.82 x 0.342 / 1 = 1.93 angstroms — the wavelength whose reflections from successive planes arrive exactly in phase.
  4. Only wavelengths short enough to satisfy the law at some angle give diffraction at all, which is why X-rays (angstrom-scale) probe crystals and visible light (thousands of angstroms) does not.

This Bragg's law calculator applies nλ = 2d sin θ, the relationship that gives the angles at which X-rays reflect constructively from a crystal's lattice planes. Enter the values you know — wavelength, plane spacing, angle or order — and the calculator returns the missing one. For example, planes spaced 2.82 Å at a Bragg angle of 20° diffract a wavelength of 1.93 Å at first order. Copper Kα radiation (1.5406 Å) reflects from 3.135 Å planes at a Bragg angle of 14.22°, which is a detector angle 2θ of 28.45°. And a first-order peak at 15° with 1.5406 Å radiation implies a plane spacing of 2.98 Å. One caution the calculator builds in: θ is measured from the crystal plane itself, not from the normal, and diffractometers report the detector angle 2θ, so a 14.22° Bragg angle appears as 28.45° on the instrument.

Bragg's law is the accepted standard for locating the angles of constructive reflection from lattice planes, which is why it underlies routine X-ray diffraction analysis. This page shows the formula and the step-by-step workings behind each answer, so you can follow the arithmetic rather than just accept a number. It also includes worked examples using the values above and lists its sources, letting you check the method against the original references. Whether you are converting between θ and 2θ, checking a plane spacing, or confirming a wavelength, the page gives you both the result and the reasoning behind it.

Worked examples

Wavelength diffracting off 2.82 Å planes at 20°

Primary result: 1.93. Full step-by-step working is shown with the result. (Wavelength · 1 · 2.82 Å · 1.5406 Å · 20 °)

Wavelength (angstroms)1.93
sin(theta)0.342
Path difference 2d sin(theta)1.93 angstroms

Angle for Cu Kα on 3.135 Å planes

Primary result: 14.22. Try it with your own numbers in the calculator above. (Bragg angle · 1 · 3.135 Å · 1.5406 Å · 14.22 °)

Bragg angle (degrees)14.22
sin(theta)0.2457
Detector angle 2-theta28.45 degrees

Spacing behind a 15° peak

Primary result: 2.98. Every intermediate value is printed in the worked steps. (Plane spacing · 1 · 2.98 Å · 1.5406 Å · 15 °)

Plane spacing (angstroms)2.98
sin(theta)0.2588
Path difference n x lambda1.5406 angstroms

What Bragg's law describes

Bragg's law explains why a crystal scatters X-rays only at certain angles. When a beam of X-rays strikes a crystal, the atoms are arranged in parallel planes, and each plane acts like a partially reflecting mirror. A ray reflected from one plane and a ray reflected from the plane beneath it travel different distances. When that path difference equals a whole number of wavelengths, the two reflected waves line up crest to crest and reinforce each other. At other angles the waves fall out of step and cancel. The condition for reinforcement is written nλ = 2d sin θ, where n is the order of the reflection, λ is the X-ray wavelength, d is the spacing between planes, and θ is the angle between the beam and the plane. A bragg's law calculator simply solves this relationship for whichever quantity you leave unknown.

The angle in the formula is easy to misread. θ is measured from the crystal plane itself, not from the normal to that plane. Because of this, an instrument does not report θ directly; diffractometers report the detector angle 2θ, which is twice the Bragg angle. Keep that factor of two in mind whenever you compare a calculated θ with a reading from a diffractometer.

The formula links three quantities, so any two determine the third. Planes spaced 2.82 Å at a Bragg angle of 20° diffract a wavelength of 1.93 Å at first order. Copper Kα radiation, with a wavelength of 1.5406 Å, reflects from planes spaced 3.135 Å at a Bragg angle of 14.22°, which corresponds to a detector angle 2θ of 28.45°. Going the other way, a first-order peak at 15° with 1.5406 Å radiation implies a plane spacing of 2.98 Å. These examples show the trade-offs the law enforces: larger plane spacings or longer wavelengths push the reflection to larger angles, and higher orders appear at still larger angles for the same planes.

The law describes constructive reflection rather than ordinary optical reflection. Only at the angles that satisfy the equation do the contributions from successive planes add up to a detectable peak; everywhere else the scattered intensity is weak. This is why a crystal diffracts X-rays into a pattern of discrete spots or peaks instead of a continuous smear, and it is the basis for using measured angles to work back to the spacing of a crystal's lattice planes.

Remember the factor of two: θ is measured from the crystal plane, while diffractometers report the detector angle 2θ.

Solving for wavelength, angle or spacing

Bragg's law, nλ = 2d sin θ, links three quantities: the wavelength of the incoming X-rays (λ), the spacing between the crystal's lattice planes (d), and the angle θ at which those planes reflect the X-rays constructively. In practice you know two of the three and want the third, so a bragg's law calculator simply applies one of three rearrangements. Each is shown below with a worked example, using first order (n = 1) throughout so the order term drops out.

Solving for wavelength: λ = 2d sin θ / n. Take planes spaced 2.82 Å that reflect at a Bragg angle of 20°. The sine of 20° is about 0.342, so 2 × 2.82 × 0.342 gives roughly 1.93 Å at first order. This is the check you would run to confirm which wavelength a given reflection corresponds to.

Solving for angle: sin θ = nλ / 2d, then θ = arcsin(nλ / 2d). Copper Kα radiation at 1.5406 Å reflecting from planes spaced 3.135 Å gives sin θ = 1.5406 / (2 × 3.135) = 1.5406 / 6.27 ≈ 0.2457, so θ ≈ 14.22°. Remember that diffractometers report the detector angle 2θ, which here is 28.45° — twice the Bragg angle, not the Bragg angle itself.

Solving for spacing: d = nλ / (2 sin θ). A first-order peak at 15° with 1.5406 Å radiation gives sin 15° ≈ 0.2588, so d = 1.5406 / (2 × 0.2588) ≈ 2.98 Å. This is the usual route when you have a measured peak position and want the plane spacing behind it.

  • Wavelength: λ = 2d sin θ / n — 2.82 Å planes at 20° give 1.93 Å at first order.
  • Angle: sin θ = nλ / 2d — 1.5406 Å on 3.135 Å planes gives θ = 14.22°, a detector angle 2θ of 28.45°.
  • Spacing: d = nλ / (2 sin θ) — a first-order peak at 15° with 1.5406 Å implies 2.98 Å.
Watch the angle: θ is measured from the crystal plane itself, not from the normal, and diffractometers report 2θ. Halve the reported detector angle before you enter it.

Orders and their limits

In Bragg's law, nλ = 2d sin θ, the integer n is the order of reflection. Each allowed order produces its own peak, and as n rises, sin θ must rise with it, so higher orders appear at steeper angles. A bragg's law calculator typically lets you set n and see how the predicted angle shifts, because the same set of planes can reflect the same wavelength more than once, at successively larger angles.

The first order is the one most often measured. Planes spaced 2.82 Å at a Bragg angle of 20° diffract a wavelength of 1.93 Å at first order. Copper Kα radiation (1.5406 Å) reflects from 3.135 Å planes at a Bragg angle of 14.22°, which a diffractometer reports as a detector angle 2θ of 28.45°. A first-order peak at 15° with 1.5406 Å radiation implies a plane spacing of 2.98 Å. In each case the angle is measured from the crystal plane itself, not from the normal, so remember that instruments report 2θ, not θ.

The orders cannot continue indefinitely. Because sin θ can never exceed 1, the equation requires nλ ≤ 2d. That inequality is a hard limit: once nλ passes 2d, there is no angle that satisfies the law, and no reflection exists for that order. The largest possible angle is θ = 90°, where sin θ = 1 and nλ = 2d exactly, but a reflection at that extreme is not observable in practice. In effect, the number of orders you can see is capped by how large the wavelength is compared with the plane spacing.

This limit is why short wavelengths reveal more orders. With a given spacing d, a smaller λ leaves room for more values of n before nλ reaches 2d. It also explains why a reflection that appears at first order may have no second-order partner: if 2λ already exceeds 2d, the second order simply does not exist. When you use a bragg's law calculator, check the order against the 2d limit before trusting a predicted peak, and confirm whether the angle you entered is θ or the 2θ value your instrument displays.

Hard limit: nλ ≤ 2d. If nλ is greater than 2d, no angle satisfies Bragg's law and that order produces no reflection.

From peaks to structures

A Bragg's law calculator turns a measured reflection into a structural number. The measurement starts with an angle: X-rays strike a crystal and, at certain angles, reflect constructively from the lattice planes. Bragg's law, nλ = 2d sin θ, describes those angles. In practice the calculator is used in both directions — predict where a peak should appear from a known plane spacing, or work backward from a measured peak to the spacing that produced it.

Working backward is the common case in powder diffraction. A first-order peak at 15° with 1.5406 Å radiation implies a plane spacing of 2.98 Å. That single number is the bridge from the raw pattern to the crystal structure: each peak in the diffractogram corresponds to a family of planes, and its position fixes their spacing. Change the radiation and the peak moves, but the spacing stays the same — which is why labs often collect patterns with more than one wavelength to confirm an assignment.

The geometry has a trap that the calculator handles for you. The angle θ is measured from the crystal plane itself, not from the normal, and diffractometers report the detector angle 2θ. Copper Kα radiation (1.5406 Å) reflects from 3.135 Å planes at a Bragg angle of 14.22° — a detector angle 2θ of 28.45°. Entering a detector reading as if it were θ would roughly double the inferred spacing, so the distinction matters at the very first step.

Once spacings are in hand, the next step is the unit cell. Plane spacings depend on the cell dimensions and on which set of planes is reflecting, so a series of spacings from successive peaks constrains the cell geometry. The order n also enters: planes spaced 2.82 Å at a Bragg angle of 20° diffract a wavelength of 1.93 Å at first order. Higher-order reflections from the same planes appear at larger angles, and consistent indexing across many peaks is what makes a proposed unit cell credible.

This is the working core of X-ray crystallography and powder diffraction: angles become spacings, spacings become a cell, and the cell becomes a structure. A bragg's law calculator keeps the arithmetic honest at each link, so the interpretation rests on the measurement rather than on a slipped factor of two.

  • Measured peak angle θ (or detector angle 2θ) → plane spacing d via nλ = 2d sin θ.
  • Plane spacing d → unit-cell dimensions by indexing successive reflections.
  • Example: 15° first-order peak with 1.5406 Å radiation → d = 2.98 Å.
  • Example: 3.135 Å planes with Cu Kα (1.5406 Å) → θ = 14.22°, 2θ = 28.45°.
  • Remember: θ is measured from the plane, not the normal; diffractometers report 2θ.
Enter angles in the form the instrument reports them. A detector angle of 28.45° is 2θ; the Bragg angle for the equation is 14.22°.

FAQs

What is Bragg's law?

Bragg's law is written nλ = 2d sin θ. It gives the condition for X-rays of wavelength λ to reflect constructively from crystal planes spaced d apart, at glancing angle θ. When the path difference between waves scattered from adjacent planes is a whole number of wavelengths, the reflected waves add in phase and produce a detectable diffraction peak.

How do you find the wavelength from a diffraction peak?

Rearrange Bragg's law to λ = 2d sin θ / n. For example, with plane spacing d = 2.82 Å and glancing angle θ = 20° at first order, the wavelength is 1.93 Å. You need the plane spacing, the measured angle and the order of the reflection to make the calculation.

What angle does Cu Kα give on 3.135 Å planes?

Using θ = arcsin(1.5406 / (2 × 3.135)), the glancing angle is 14.22°. The detector is placed at twice that angle, so 2θ = 28.45°. This is the first-order reflection position for Cu Kα radiation on planes spaced 3.135 Å apart.

Why is the angle measured from the plane, not the normal?

Bragg's original reflection picture uses the glancing angle measured to the plane itself, not to the normal. If you instead use optics-style angles measured from the normal, the formula would need cos θ in place of sin θ. Keeping the convention straight avoids errors when you compare angles with published diffraction data.

What does the order n mean?

The order n is the number of whole wavelengths in the path difference between waves reflected from adjacent planes. Higher orders repeat the reflection at steeper angles, until nλ exceeds 2d, at which point no further orders can satisfy the condition and the reflections stop.

Can any wavelength diffract from any crystal?

No. Diffraction requires λ ≤ 2d, so the wavelength must not be larger than twice the plane spacing. That is why ångström-scale X-rays are used to probe crystals: their wavelengths match typical plane spacings. Visible light has much longer wavelengths and cannot satisfy the condition for these crystals.

Sources

Related calculators

Diffraction Grating Calculator
The angles at which a diffraction grating sends each order of a given wavelength — and the highest order the grating can produce for that light.
Single-Slit Diffraction Calculator
Where the dark fringes fall when light passes through one narrow slit — minimum positions and the width of the central maximum.
Double-Slit Interference Calculator
Young's double-slit fringe spacing from wavelength, slit separation and screen distance — plus any order's position and angle.
Wavelength Calculator
Solve the wave equation v = f × λ for wavelength, frequency or speed — for sound, light, water and radio waves alike.