Logo

MonoCalc

/

Bragg's Law Calculator

Chemistry

Radiation

λ = 1.540562 Å · Cu Kα₁ · 8.0480 keV

Kβ filter: Ni

Quick examples

Spacing d

e.g. 111, 200 or 1 -1 0.

d111 = 2.0871 Å (cubic: a/√3)

2θ = 43.317° · θ = 21.659°

sin θ = 0.369074 · highest order nmax = 2

nθ2θreflectionstatus
121.659°43.317°(111)allowed
247.574°95.148°(222)allowed

Crystallographers fold n into the indices: the 2nd order from (111) is written as the (222) reflection, with d222 = d111/2.

The Bragg construction

in phased sin θd sin θpath difference = 2d sin θ = λθ2θABd = 2.087 Åθ = 21.66°, 2θ = 43.32°, n = 1
0306090120150180tubedetector at 2θ = 43.32°

Not to scale in d. The two highlighted segments are each d sin θ; together they hold exactly n wavelengths. The dashed 2θ arc is measured from the straight-through beam, which is what a diffractometer reads.

How 2θ moves with d

Curves for n = 1 (solid), 2 (dashed) and 3 (dotted). Smaller spacings diffract at larger angles; below d = λ/2 = 0.7703 Å nothing diffracts. The light band above 2θ = 150° is beyond most lab diffractometers.

Worked steps

Cu Kα₁: λ = 1.540562 Å

Copper (FCC), a = 361.49 pm = 3.6149 Å; (111): d = a/√(1² + 1² + 1²) = 3.6149/√3 = 2.08706 Å

sin θ = nλ/(2d) = 1 × 1.540562 / (2 × 2.08706) = 0.369074

θ = asin(0.369074) = 21.6585° → 2θ = 43.3170°

About This Tool

Bragg's Law Calculator – X-ray Diffraction Angles, d-Spacings and Wavelengths

In 1913 William Henry Bragg and his son Lawrence showed that X-rays scattered by a crystal behave as if they were reflected by its planes of atoms. Waves reflected from neighbouring planes travel different distances, and they only reinforce each other when that extra distance is a whole number of wavelengths. The result, Bragg's law nλ = 2d sin θ, is the foundation of X-ray, electron and neutron diffraction. This Bragg's law calculator solves it for any one unknown, lists every reflection a crystal can give, and indexes a measured cubic powder pattern.

Deriving the path difference

Take two parallel planes a distance d apart and a beam arriving at the glancing angle θ. The ray reflected from the lower plane travels an extra d sin θ on the way in and another d sin θ on the way out, a total path difference of 2d sin θ. Constructive interference needs that to equal nλ. The interactive Bragg construction above highlights both segments and draws exactly n wavelengths along them.

θ versus 2θ

Bragg's θ is measured between the beam and the planes, but a diffractometer measures the angle between the incident and the diffracted beams, which is 2θ. Always halve a peak position from an XRD pattern before using it in the formula. Confusing the two is the most common homework mistake, which is why the tool checks whether an angle typed as θ reads better as 2θ.

Tube lines, Kβ filters and the Kα doublet

Laboratory X-ray tubes emit characteristic lines of their anode metal. Copper gives Kα₁ = 1.540562 Å and Kα₂ = 1.54439 Å; their 2 : 1 weighted average 1.541838 Å is quoted as Cu Kα. The weaker Kβ line is removed by a thin filter of the element one below the anode, nickel for copper. At high angles the Kα₁/Kα₂ pair separates visibly: by about 0.11° at Cu (111) but almost 0.9° at Cu (420).

Miller indices and d-spacing

Lattice planes are labelled by Miller indices (hkl). For a cubic crystal d = a / √(h² + k² + l²), so copper (a = 3.6149 Å) has d₁₁₁ = 2.0871 Å and a (111) peak at 2θ = 43.32° with Cu Kα₁. The cell geometry for every crystal system comes from the Unit Cell Calculator. Higher orders are folded into the indices: the second order of (111) is written as the (222) reflection.

Why reflections go missing

Bragg's law says where a peak can appear; the structure factor says whether it does. In a body-centred lattice the centre atoms cancel every reflection with h + k + l odd. In a face-centred lattice h, k and l must be all even or all odd. Diamond and silicon also lose all-even reflections with h + k + l = 4n + 2, such as (200) and (222).

The KCl puzzle
K⁺ and Cl⁻ both have 18 electrons, so in rock-salt KCl the all-odd reflections, whose structure factor is the difference of the two scattering factors, almost vanish. The pattern then looks like a simple cubic crystal with half the real cell edge.

Indexing a cubic pattern

Squaring Bragg's law for a cubic crystal gives sin²θ = (λ² / 4a²) · N with N = h² + k² + l². Divide every sin²θ by the first one and look for whole-number ratios:

SC       1 : 2 : 3 : 4 : 5 : 6 : 8 …   (no 7)
BCC      2 : 4 : 6 : 8 : 10 : 12 : 14 …  → 1 : 2 : 3 : 4 : 5 : 6 : 7
FCC      3 : 4 : 8 : 11 : 12 : 16 : 19 …
Diamond  3 : 8 : 11 : 16 : 19 : 24 : 27 …

SC and BCC agree for the first six lines; a seventh line decides it. The indexing tab assigns N to each peak, refines the lattice parameter by least squares and lists any allowed lines you did not observe.

Electron and neutron diffraction

Moving particles diffract too, with the de Broglie wavelength λ = h/p from the de Broglie wavelength calculator. 100 kV electrons have λ = 3.70 pm (relativistic), so their Bragg angles are only a few milliradians. Thermal neutrons at 25.3 meV have λ ≈ 1.80 Å, close to Cu Kα, and see light atoms and magnetism that X-rays miss.

Limits

Bragg's law fixes peak positions exactly, but not their intensities. The estimated heights here come from a deliberately simple model with Thomas–Fermi scattering factors and one thermal factor; real patterns also depend on absorption, texture and peak shape. Space-group absences from screw axes and glide planes are not modelled.

Frequently Asked Questions

Is the Bragg's Law Calculator free?

Yes, Bragg's Law Calculator is totally free :)

Can I use the Bragg's Law Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Bragg's Law Calculator?

Yes, any data related to Bragg's Law Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is Bragg's law, and what do n, λ, d and θ mean?

Bragg's law, nλ = 2d sin θ, is the condition for X-rays (or electrons or neutrons) reflected by parallel lattice planes to interfere constructively. λ is the wavelength, d the spacing between the planes, θ the glancing angle between the beam and the planes, and n the whole-number order of the reflection.

What is the difference between θ and 2θ in an XRD pattern?

θ is the Bragg angle between the incident beam and the diffracting planes. A diffractometer records 2θ, the angle between the incident and the diffracted beams, so you halve the reported peak position before using it in Bragg's law: a peak at 2θ = 43.32° means θ = 21.66°.

Why are some (hkl) reflections missing from a powder pattern?

Lattice centering and the atomic basis make some structure factors exactly zero. In a BCC crystal h + k + l must be even, in FCC h, k and l must be all even or all odd, and diamond additionally loses all-even reflections with h + k + l = 4n + 2, such as Si (200) and (222).

Should I use Cu Kα₁ (1.5406 Å), Cu Kα (1.5418 Å) or 1.54 Å?

Use Kα₁ = 1.540562 Å when your peaks are fitted or stripped of Kα₂, which is usual for modern software. Use the weighted Kα = 1.541838 Å for an unresolved doublet at low angles. 1.54 Å is only good to about three significant figures and shifts a and d by roughly 0.04 %.

How do I tell BCC from FCC using a cubic XRD pattern?

Divide each sin²θ by the first one. FCC gives the ratios 3 : 4 : 8 : 11 : 12 (divided by 3), BCC gives 1 : 2 : 3 : 4 : 5 : 6 : 7. Simple cubic matches BCC for the first six lines, so a seventh line decides it: SC has no N = 7, while BCC continues to N = 14.

Why do high-angle peaks give a more precise lattice parameter?

Differentiating Bragg's law gives Δd/d = cot θ · Δθ. As θ approaches 90°, cot θ approaches zero, so the same angular error produces a much smaller error in d. A 0.01° error is 2.5 × 10⁻⁴ relative at 2θ = 38° but only 3.2 × 10⁻⁵ at 2θ = 140°.