Bragg’s equation

A beam containing x-rays of wavelength λ is incident upon a crystal at an angle θ with a family of brags plane whose spacing is d.
In this case the relation between d, θ and λ is following:
2d sin θ = n λ

Where, n is order of scattered beam.
This relation is called Bragg’s equation.