Bragg's Law Calculator (X-ray Diffraction)
Find the Bragg angle or lattice spacing from nλ = 2d sin θ, including cubic crystals and Miller indices.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Step 1: Open Bragg's Law Calculator (X-ray Diffraction) and add your input
Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.
- 2Step 2: What Bragg's Law Calculator (X-ray Diffraction) does
Find the Bragg angle or lattice spacing from nλ = 2d sin θ, including cubic crystals and Miller indices.
- 3Step 3: Read the result and compare
The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.
- 4Step 4: Copy or save it
Copy the result or download it. For an important decision, confirm it with the official source or an adviser.
About this tool
Choose what to solve for: the diffraction angle from a plane spacing, the spacing from a measured angle, or the spacing and angle of the (hkl) planes of a cubic crystal from its lattice constant. The default wavelength is Cu Kα, 1.5406 Å.
Bragg's law
nλ = 2d sin θ, with θ the glancing angle. The detector sits at 2θ from the beam. A reflection exists only if nλ ≤ 2d.
Cubic crystals
d_hkl = a ÷ √(h² + k² + l²). For example, for aluminium (a = 4.05 Å) the (111) planes have d = 2.338 Å.
Units
Wavelength, spacing and lattice constant in ångströms (1 Å = 0.1 nm).
Worked example
Cu Kα X-rays (1.5406 Å) on planes with d = 2.0 Å diffract at θ = 22.65° (2θ = 45.31°). For a cubic crystal with a = 4.05 Å the (111) planes have d = 2.338 Å.
Tips for best results
Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in many languages.
- Content last reviewed:
Frequently asked questions
What is 2θ?
The angle between the incident and diffracted beams, as in an XRD scan.
Why no diffraction sometimes?
If nλ is larger than 2d, sin θ would exceed 1.
What are Miller indices?
Integers (hkl) that label a family of lattice planes.
What is the order n?
The harmonic: n = 2 is the second-order reflection.
