2d Sin(theta) = n(lambda)

d = spacing between two planes in lattice

theta = the angle of the incident radiation with respect to the surface of the specific plane.

n = any value such that n = 1,2,3,...

lambda = the wavelength of the radiation