Bragg's Law Calculator

Created by Miłosz Panfil, PhD
Reviewed by Dominik Czernia, PhD
Last updated: Oct 02, 2022

The Bragg's law calculator helps you explore the Bragg's diffraction, a fundamental tool for investigating the structure of a crystal. Read on if you want to learn more about the Bragg's diffraction law and Bragg's equation. In the following text, we also explain how to use the equation and where the Bragg's law finds its application.

If you find crystallography interesting, you can also check our miller indices calculator.

Bragg's diffraction law

The electromagnetic waves, like X-rays, are a great tool to learn about the structure of matter. The Bragg's diffraction law shows why.

Think about an experiment in which an incident X-ray scatters from atoms in a material. The scattering changes its direction but keeps its frequency intact. The waves scattered from different atoms interfere with each other. Some waves add up constructively, giving intense radiation, some add up destructively. Check the Brewster angle calculator and Snell's law calculator to learn more about the scattered and transmitted waves.

Atoms in crystals form regular lattices, and to X-rays, they seem like layers of mirrors. The first mirror is at the surface of the crystal, the second one lattice length deep, and so on. The incident wave reflects from these mirrors. To understand what is going on is enough if we take into account only reflections from the first and second layer. These two reflected waves then interfere. If we vary the scattering angle the result is the diffraction pattern. The maximum happens if the distance traveled by the wave between the first and second layers of atoms and back is proportional to the wavelength. This is the Bragg's diffraction law. Observing the maximum, we can infer then the distance between the atoms.

Bragg's equation

The Bragg's equation is the condition for the angle of the incident wave for which the maximum of the diffraction pattern occurs. The formula is

n * λ = 2 * d * sin(θ),


  • n is the positive integer, the order,
  • λ [m] is the wavelength of the X-ray,
  • d [m] is the interplanar distance, the distance between consecutive layers of atoms,
  • θ [rad] is the angle of the incident X-ray.

The order n tells how many times the wavelength λ fits between the double interplanar distance. It is an integer, and its maximal value is (2 * d) / λ.

Bragg's law calculator investigates the structure of a crystal.
Bragg's law calculator investigates the structure of a crystal.

How to use Bragg's law calculator

Evaluation of Bragg's equation is simple with our calculator. For example, let us take an X-ray of wavelength λ = 120 pm. For a crystal with the interplanar distance d = 280 pm we get 4 maxima, cause n must be smaller than (2 * d) / λ = 4.67. The corresponding angles are 12.374°, 25.377°, 40.005°, 59°. We will see the maximum diffraction pattern exactly at these angles of the incident X-ray.

Where the Bragg's law finds its application?

Scientists use Bragg's diffraction law to understand the structure of crystals. This and similar methods are called X-ray crystallography. Materials studied with this method range from simple crystals (like the body-centered cubic cell of chromium) to large biological molecules. X-ray crystallography was an essential tool in understanding the structure of DNA.

The crystal structure of solids is also investigated using electrons instead of X-rays. Quantum mechanics tells us that electrons are also waves. Their wavelength depends on their momentum through the de Broglie equation. The diffraction of electrons is used, for example, in the Transmission Electron Microscope.

Miłosz Panfil, PhD
Interplanar distance
Incidence angle
Check out 17 similar optics calculators 🔍
Angular ResolutionAperture areaBinoculars range… 14 more
People also viewed…

Circle skirt

Circle skirt calculator makes sewing circle skirts a breeze.

Compressibility factor

Use the compressibility factor calculator to chart the behavior of non-ideal gases.


Calculate the elongation percentage and determine if the material would fail using the elongation calculator.

Secretary problem (Valentine's day)

Use the dating theory calculator to enhance your chances of picking the best lifetime partner.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background