HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
X-ray Diffraction and Crystal Calculations
  1. 1X-ray diffraction and Bragg's law
  2. 2Indexing a powder pattern of a cubic crystal
  3. 3Avogadro's number and mixed structure problems
  1. Chemistry
  2. /X-ray Diffraction and Crystal Calculations
  3. /X-ray diffraction and Bragg's law

Course 32.3·Lesson 1 of 3

X-ray diffraction and Bragg's law

How do we know that salt is rock salt and copper is fcc? Nobody can see atoms with a lens. In 1912 X-rays were found to scatter from crystals into sharp spots, and the next year William Lawrence Bragg explained why with one simple equation. We derive Bragg's law, meet the planes of a crystal and their Miller indices, and find the spacing of planes in a cubic cell.

about 30 min1 simulation2 practice questions
Lesson 1 of 3Show all lessonsHide
X-ray Diffraction and Crystal Calculations
  1. 1X-ray diffraction and Bragg's law
  2. 2Indexing a powder pattern of a cubic crystal
  3. 3Avogadro's number and mixed structure problems

Try the code and the simulations beside the lesson.

Why X-rays?

Light bends round an obstacle or through a grating only when the spacing is close to its wavelength. Atoms in a crystal are about 200200200 to 500 pm500\ \text{pm}500 pm apart. Visible light, at 400400400 to 700 nm700\ \text{nm}700 nm, is a thousand times too long. X-rays have wavelengths near 100 pm100\ \text{pm}100 pm, the right size. So a crystal acts as a three-dimensional grating for X-rays.

Most laboratories use the X-rays from a copper target, called Cu K-alpha, with λ=154.06 pm\lambda = 154.06\ \text{pm}λ=154.06 pm. A molybdenum target gives Mo K-alpha, λ=71.07 pm\lambda = 71.07\ \text{pm}λ=71.07 pm.

Bragg's picture

Bragg thought of the crystal as stacks of parallel planes of atoms, each a distance ddd from the next. A beam of X-rays meets the planes at a glancing angle θ\thetaθ. Each plane reflects a little of the beam, as a mirror would, at the same angle θ\thetaθ.

Two parallel horizontal rows of atoms, a distance d apart. Two parallel X-ray beams come in from the upper left at an angle theta to the rows. The first reflects from the top row and the second from the row below. Both leave at the same angle theta. Two short red segments mark the extra path of the lower ray, each of length d sin theta, so the extra path is 2d sin theta. A label says the waves add when 2d sin theta equals n lambda.

The ray that reflects from the second plane travels farther than the ray from the first. The extra path is dsin⁡θd\sin\thetadsinθ on the way in and dsin⁡θd\sin\thetadsinθ on the way out, 2dsin⁡θ2d\sin\theta2dsinθ in all. The two reflected waves add up, and give a strong beam, only when this extra path is a whole number of wavelengths:

nλ=2dsin⁡θ\displaystyle n\lambda = 2d\sin\thetanλ=2dsinθ

This is Bragg's law. The whole number nnn is the order of the reflection. At any other angle, the waves from the many planes cancel out, and nothing comes out. That is why a crystal gives sharp spots, not a smear.

Note the angle. θ\thetaθ is measured from the plane, not from the normal as in optics. The beam turns through 2θ2\theta2θ in all, and a diffractometer records the angle 2θ2\theta2θ.

Using the law

Example. In sodium chloride the planes parallel to a cube face are 282.0 pm282.0\ \text{pm}282.0 pm apart. Copper X-rays reflect from them in the first order at

sin⁡θ=λ2d=154.06 pm2×282.0 pm=0.2732\displaystyle \sin\theta = \frac{\lambda}{2d} = \frac{154.06\ \text{pm}}{2 \times 282.0\ \text{pm}} = 0.2732sinθ=2dλ​=2×282.0 pm154.06 pm​=0.2732

So θ=15.85∘\theta = 15.85^\circθ=15.85∘, and the detector sits at 2θ=31.70∘2\theta = 31.70^\circ2θ=31.70∘.

How many orders? Since sin⁡θ\sin\thetasinθ cannot pass 1, the order is at most n≤2dλn \le \dfrac{2d}{\lambda}n≤λ2d​. For these planes, 2×282.0154.06=3.66\dfrac{2 \times 282.0}{154.06} = 3.66154.062×282.0​=3.66, so orders 1, 2 and 3 appear.

The second order from planes ddd apart is the same as a first-order reflection from planes d/2d/2d/2 apart, since 2λ=2dsin⁡θ2\lambda = 2d\sin\theta2λ=2dsinθ means λ=2(d/2)sin⁡θ\lambda = 2(d/2)\sin\thetaλ=2(d/2)sinθ. So crystallographers often fold the order into the planes and write λ=2dsin⁡θ\lambda = 2d\sin\thetaλ=2dsinθ.

Planes and their Miller indices

A crystal holds many sets of planes, in many directions. We name a set by its Miller indices (hkl)(hkl)(hkl):

  1. Find where one plane cuts the three axes, in units of the cell edges aaa, bbb and ccc.
  2. Take the reciprocals of the three numbers. A plane parallel to an axis cuts it at infinity, and the reciprocal is 0.
  3. Clear any fractions to get the smallest whole numbers.

Example. A plane cuts the axes at 2a2a2a, 3b3b3b and parallel to ccc. The reciprocals are 12\tfrac1221​, 13\tfrac1331​ and 000. Multiply by 6: (320)(320)(320).

The faces of the cube are the (100)(100)(100) planes. The planes that cut two axes at aaa and run parallel to the third are (110)(110)(110). The planes that cut all three axes at aaa are (111)(111)(111). A minus sign is written as a bar over the number. Some books write it as a minus sign in front, such as (11ˉ0)(1\bar{1}0)(11ˉ0).

The spacing of cubic planes

In a cubic cell of edge aaa, the planes (hkl)(hkl)(hkl) are

dhkl=ah2+k2+l2\displaystyle d_{hkl} = \frac{a}{\sqrt{h^2 + k^2 + l^2}}dhkl​=h2+k2+l2​a​

apart. So d100=ad_{100} = ad100​=a, d110=a2d_{110} = \tfrac{a}{\sqrt{2}}d110​=2​a​, d111=a3d_{111} = \tfrac{a}{\sqrt{3}}d111​=3​a​ and d200=a2d_{200} = \tfrac{a}{2}d200​=2a​. The higher the indices, the closer the planes, and the larger the angle of their reflection. The integer h2+k2+l2h^2 + k^2 + l^2h2+k2+l2 is the key to the next lesson.

For NaCl\text{NaCl}NaCl above, the 282.0 pm282.0\ \text{pm}282.0 pm planes are d200d_{200}d200​, since a=564.0 pma = 564.0\ \text{pm}a=564.0 pm. A-Level and IB courses do not ask for Miller indices. The olympiads and university courses do.

Set the NaCl\text{NaCl}NaCl planes, d=282 pmd = 282\ \text{pm}d=282 pm, and copper X-rays. Then raise the order to 4. The reflection is gone, because 4λ4\lambda4λ is more than 2d2d2d.

Practise with new numbers

Try it in Python

The program finds the Bragg angle and 2θ2\theta2θ for each order that a set of planes allows, and the spacing of several cubic planes.

Read it first. Run it. How many orders do the 282.0 pm282.0\ \text{pm}282.0 pm planes give with copper X-rays?

1. Change the wavelength to the molybdenum value, 71.07. How many orders appear now?

2. Add the plane (3, 1, 1) to the list. Is its spacing larger or smaller than that of (2, 2, 0)?

Common mistakes

  • Measuring θ\thetaθ from the normal. In Bragg's law θ\thetaθ is the glancing angle, measured from the plane.
  • Dropping the 2. The path difference is 2dsin⁡θ2d\sin\theta2dsinθ.
  • Reading 2θ2\theta2θ as θ\thetaθ. A diffractometer gives 2θ2\theta2θ. Halve it before you use Bragg's law.
  • Forgetting the limit on the order. nnn cannot be larger than 2d/λ2d/\lambda2d/λ.
  • Using the intercepts as the indices. Take the reciprocals first, then clear the fractions.

Remember these

  • Bragg's law: nλ=2dsin⁡θn\lambda = 2d\sin\thetanλ=2dsinθ, with θ\thetaθ from the plane.
  • Cu K-alpha: 154.06 pm154.06\ \text{pm}154.06 pm. Mo K-alpha: 71.07 pm71.07\ \text{pm}71.07 pm.
  • Highest order: n≤2d/λn \le 2d/\lambdan≤2d/λ.
  • Miller indices: reciprocals of the intercepts, cleared to whole numbers.
  • Cubic spacing: dhkl=a/h2+k2+l2d_{hkl} = a / \sqrt{h^2 + k^2 + l^2}dhkl​=a/h2+k2+l2​.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Copper X-rays reflect in the first order from planes at θ=18.0∘\theta = 18.0^\circθ=18.0∘. How far apart are the planes?
  1. What are the Miller indices of a plane that cuts the axes at aaa, 2b2b2b and 2c2c2c?
  1. A cubic crystal has a=400 pma = 400\ \text{pm}a=400 pm. Find d111d_{111}d111​ and d220d_{220}d220​.
  1. Why can visible light not show the arrangement of atoms in a crystal?
  1. A reflection is found at 2θ=50.0∘2\theta = 50.0^\circ2θ=50.0∘ with copper X-rays. What is sin⁡θ\sin\thetasinθ?

References

  • OpenStax, Chemistry 2e, Chapter 10, section 10.6, the part on X-ray crystallography and Bragg's equation.
  • The Cu K-alpha and Mo K-alpha wavelengths are the standard weighted mean values used by crystallographers.

Enroll free in X-ray Diffraction and Crystal Calculations

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (3)

A laboratory wants to check the wavelength of its X-ray tube…Hard · High School (11–12) · by StemPy Lab
A student studies copper, an fcc metal with a = 361.5 pm, using X-rays of 154.06 pm…Advanced · High School (11–12) · by StemPy Lab
Aluminium is fcc with a = 404.95 pm. A researcher records the reflection from its (111) planes with…Hard · High School (11–12) · by StemPy Lab
Next: lesson 2Indexing a powder pattern of a cubic crystal
← X-ray Diffraction and Crystal Calculations
← PreviousIndexing a powder pattern of a cubic crystal →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

Python Labs (1)

A Bragg's law toolkitPython Lab · by StemPy Lab