Bragg's Law Calculator
Find the Bragg diffraction angle for a crystal.
Result
How it is calculated
Bragg's law describes when X-rays reflected from parallel crystal planes reinforce each other: nλ = 2d · sin θ. n is the diffraction order (a whole number, 1 if left empty), λ is the X-ray wavelength and d is the spacing between lattice planes, both in nanometres (they must use the same unit). The tool solves θ = arcsin(nλ ÷ 2d) and also shows 2θ, the angle a diffractometer usually records. If nλ ÷ 2d is greater than 1 there is no angle that satisfies the law, so no result is given. Wavelength and spacing must be positive, and the order must be a whole number of at least 1 (0, negative or fractional orders give no result). Angles are in degrees.
Worked example
Copper K-alpha X-rays with λ = 0.154 nm, first order, and a plane spacing d = 0.3 nm. sin θ = (1 × 0.154) ÷ (2 × 0.3) = 0.154 ÷ 0.6 = 0.2567. θ = arcsin(0.2567) = 14.87°. The detector angle is 2θ = 29.74°. For second order the sine would be 0.5133 and the angle about 30.88°.
Common mistakes
- Mixing units, such as wavelength in ångströms and spacing in nanometres (1 Å = 0.1 nm).
- Reporting θ as the angle between the incoming and outgoing beams. That angle is 2θ.
- Measuring the angle from the surface normal rather than from the lattice plane itself.
- Choosing an order so high that nλ ÷ 2d exceeds 1; there is simply no diffraction at that order.
About this calculator
This calculator finds the diffraction angle in crystallography using Bragg's law: nλ = 2d·sinθ, where n is the diffraction order (an integer), λ is the wavelength of the incident radiation, d is the spacing between crystal lattice planes, and θ is the angle of incidence measured from the plane (not the normal). Constructive interference — a detectable diffraction peak — occurs only when this condition is satisfied.
Crystallographers and materials scientists use Bragg's law in X-ray diffraction (XRD) to determine unknown crystal structures and lattice spacings by measuring the angles at which diffraction peaks appear, a technique that was foundational to solving structures like DNA and countless minerals and materials. Any one of the variables can be solved for, not just the angle.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
Tables often give plane spacings in angstroms; this tool wants nanometres, so divide by 10 first: 2.31 Å becomes 0.231 nm. For a cubic crystal with cell edge a, the spacing of the (hkl) planes is a divided by the square root of h² + k² + l², which gives you d to enter. If the tool says the values cannot be calculated, nλ ÷ 2d is above 1 or the order is not a whole number, so that reflection cannot be observed. Which crystal system are you working with?