The d spacing can be calculated based on Bragg’s law, which can be expressed by the following equation:
nλ=2d*sinθ
Where λ is the wavelength of the X-ray (Å), θ is peak position angle, n is an integer representing the order of the diffraction peak, d is the interlayer distance .