The one idea
A diffractogram is a list of lattice spacings written in angles. Peak positions identify the form; peak intensities also depend on how the powder sits in the holder. Write the identity criterion on what the physics makes reliable.
Thermal analysis showed Compound X·HCl·H₂O losing its water and becoming an anhydrate. Both are the same molecule. X-ray powder diffraction (XRPD) tells them apart because they pack differently.

Bragg’s law
X-rays scatter from the electron density of a repeating lattice. Waves scattered from parallel lattice planes a distance d apart reinforce only at angles where the path difference is a whole number of wavelengths:
n·λ = 2·d·sin θ λ(Cu Kα) = 1.5406 Å
A diffractometer reports the detector angle 2θ. Each peak position is a d-spacing; a pattern is a list of them [1].
2θ is a scan, not a setting. The “2” is geometry, not 2 degrees. In the usual reflection (Bragg–Brentano) setup, the beam strikes the flat powder surface at θ and the detector sits at θ on the other side, so the angle between the incident and diffracted beams is 2θ. The instrument sweeps θ and 2θ together and records intensity at each step, and Bragg’s law gives the d-spacing for each angle. The scan range is the choice the analyst makes, and for drug substances it is chosen from the physics:
- Start low, around 2–3° 2θ. Organic unit cells are large, so their most diagnostic long-spacing reflections fall at low angles: Compound X’s strongest peak is at 6.82°. With Cu Kα, 2° 2θ corresponds to a spacing of about 44 Å. Going much lower is limited by the direct beam and air scatter near 0°.
- Stop around 40° 2θ. That corresponds to about 2.3 Å. Organic crystals scatter weakly at high angle, and their peaks above about 40° crowd together and add little to form identity. The compendial guidance for organic materials is to scan from as low as practical to at least 40° 2θ [2].
- Step size and time per step set resolution and noise. A typical routine scan steps in increments of about 0.02° 2θ, finer than the ±0.2° identity tolerance used below.
| Form | 2θ (°) | d (Å) | Relative intensity |
|---|---|---|---|
| Monohydrate | 6.82 | 12.95 | 100 |
| Monohydrate | 13.66 | 6.48 | 60 |
| Monohydrate | 18.31 | 4.84 | 80 |
| Monohydrate | 24.73 | 3.60 | 55 |
| Anhydrate | 7.41 | 11.92 | 100 |
| Anhydrate | 14.83 | 5.97 | 55 |
| Anhydrate | 19.42 | 4.57 | 70 |
The full nine-peak lists are in peak-list.csv. The strongest monohydrate reflection corresponds to a 12.95 Å spacing; losing the water collapses it to 11.92 Å. That is a physical picture of what dehydration does: the layers holding the water move closer together.

Bragg's law: from 6.82° to a d-spacing
Problem: Compound X monohydrate’s strongest peak is at 2θ = 6.82° with Cu Kα radiation (λ = 1.5406 Å). Calculate the d-spacing for n = 1.
Significant-figure rule: this is multiplication, division and one sine. The measured inputs are 2θ = 6.82° (three significant figures) and λ = 1.5406 Å (five); n = 1 and the 2 are exact. For multiplication and division alone the answer would keep three, but the counting rules don’t carry through a sine, so step 5 checks the precision by propagating the angle reading instead.
- Halve the detector angle. θ = 6.82° ÷ 2 = 3.41°. Dividing by the exact 2 keeps three significant figures.
- Take the sine. sin 3.41° = 0.059481… (unitless). Carry 0.05948 (one guard digit) into step 4 rather than rounding to 0.0595 here; rounding an intermediate would shift d in its last digit.
- Rearrange Bragg’s law. n·λ = 2·d·sin θ, so d = n·λ ÷ (2·sin θ). n and 2 are exact counts; d takes the unit of λ, ångströms (1 Å = 10⁻¹⁰ m).
- Substitute. d = (1 × 1.5406 Å) ÷ (2 × 0.05948) = 12.950… Å.
- How many figures? Counting digits would allow three (from 6.82°), giving 13.0 Å, but counting rules don’t carry through a sine. Propagate the reading instead: 6.82° means 6.82 ± 0.005°, and recomputing d at 6.815° and 6.825° gives 12.96 Å and 12.94 Å. So d = 12.95 Å (± 0.01 Å).
- Interpret. One family of planes is 12.95 Å apart (1.295 nm). The anhydrate’s strongest peak, 7.41°, gives 11.92 Å the same way. One spacing alone does not give the unit cell.
Light meets matter: Bragg and Beer–Lambert
You have used a law like this before. In Week 6, A = εbc turned the light a solution absorbed into a concentration. Bragg’s law and Beer–Lambert describe the same kind of event, electromagnetic radiation meeting matter, and the rule for both is that radiation interacts with whatever in the sample it is sized to match:
- Diffraction happens when the wavelength is comparable to a repeating spacing. Cu Kα X-rays (1.5406 Å) meet Compound X’s 12.95 Å planes and reinforce at 2θ = 6.82°. The signal is an angle, and it reads how the molecules are packed.
- Absorption happens when the photon energy matches an energy gap in the molecule. A 254 nm photon carries 4.88 eV, the size of an electronic transition in an aromatic molecule. The signal is lost intensity, and it reads how much of the absorbing species is in the light path.

| Bragg’s law (XRPD) | Beer–Lambert law (UV-Vis) | |
|---|---|---|
| Equation | n·λ = 2·d·sin θ | A = log₁₀(I₀/I) = ε·b·c |
| The radiation must match | A repeating spacing (λ comparable to d) | An energy gap (photon energy ≈ ΔE) |
| What is measured | Angles (2θ) where scattered waves reinforce | Intensity lost on the way through |
| Sample | The solid, as it is | Usually a solution: the solid is gone |
| Question answered | Which form? (packing) | How much? (amount) |
| Blind to | Amount dissolved; amorphous content below about 5% | Crystal form, once dissolved |
The rule doesn’t stop at two techniques. IR and Raman use radiation sized to bond vibrations (Week 6); NMR uses radio waves sized to nuclear spin energies in a magnet (Week 3). Choosing a spectroscopic technique is choosing which property of matter the radiation is sized to meet.
Why X-rays and not UV light?
Problem: Could 254 nm UV light diffract from Compound X monohydrate’s 12.95 Å planes? Compare it with Cu Kα (λ = 1.5406 Å).
Significant-figure rule: this is division only, so each quotient keeps the fewest significant figures among its measured inputs: 254 nm has three, 12.95 Å four, 1.5406 Å five. The 2 in Bragg’s law, n = 1 and the conversion 1 nm = 10 Å are exact and don’t limit anything. The physical test is that sin θ can never exceed 1.
- Rearrange Bragg’s law. sin θ = n·λ ÷ (2·d) with n = 1. The result is a ratio of two lengths, so λ and d must be in the same unit and sin θ comes out unitless.
- Find the longest wavelength that can diffract. sin θ ≤ 1 means λ ≤ 2·d = 2 × 12.95 Å = 25.90 Å (four significant figures; the 2 is exact).
- Cu Kα. sin θ = 1.5406 Å ÷ 25.90 Å = 0.05948 (four significant figures, limited by d). That is below 1, so θ = 3.41° and 2θ = 6.82°: the peak in the table above. (The 12.95 Å came from that peak, so this step is a consistency check.)
- Put the UV wavelength in ångströms. 254 nm × 10 Å/nm = 2540 Å. The conversion is exact, so it still has three significant figures.
- UV. sin θ = 2540 Å ÷ 25.90 Å = 98.1 (unitless, three significant figures, limited by 254 nm). No angle has a sine of 98.1, so there is no peak at any angle.
- Interpret. UV wavelengths are about a hundred times too long for lattice planes, so X-rays are used because their wavelength is the same size as the spacing. The same arithmetic explains the UV-Vis grating: at 1200 lines per mm its lines are 1 mm ÷ 1200 = 833 nm apart, the right size to diffract 200–800 nm light.
You have already used diffraction. The Week 6 spectrometer runs source → monochromator → sample → detector. In most instruments the monochromator is a grating: evenly ruled lines that send each wavelength off at a different angle, so a slit can pass one narrow band. That is the same wave interference as Bragg’s law, at a different scale and geometry (some instruments use a prism instead). Only then does the light reach the cuvette, where Beer–Lambert applies. The grating chooses the wavelength; the cuvette absorbs it.
Same molecule, two answers. The monohydrate and anhydrate give different patterns (strongest peaks at 6.82° and 7.41°) because they pack differently. Dissolve either in the same medium and both give the same Compound X cation: one UV spectrum, same λmax, same ε. UV can’t tell you which form you weighed. It can tell you how much drug you weighed: per milligram, the monohydrate gives 5.06% less absorbance than the anhydrate, because 5.06% of its mass is water, the same step the TGA showed in One Ramp, Two Readouts. This is why Discriminating by Design hands the anhydrate to XRPD: the absorbance in a dissolution vessel records how much has dissolved and how fast, but carries no record of the form it came from.
Worked example: an identity criterion on positions
Compound X — constructed teaching example. Write the identity test as: every one of the nine reference monohydrate peaks is matched by a sample peak within ±0.2° 2θ. A tolerance of this order is commonly applied for organic crystals [2].
| Sample | Reference peaks matched | Largest relative-intensity difference | Position criterion |
|---|---|---|---|
| Monohydrate, reference loading | 9/9 | 0 points | Pass |
| Monohydrate, preferred orientation | 9/9 | 53 points | Pass |
| Monohydrate, 0.10 mm height error | 9/9 | 0 points | Pass |
| Anhydrate | 0/9 | — | Fail |
The anhydrate fails on position, which is the right reason. The oriented sample passes on position and would have failed an intensity-based criterion by 53 percentage points, which would have been the wrong conclusion.
Two artifacts, two signatures
Preferred orientation. Plate- and needle-shaped crystals lie flat in the holder, so some lattice planes are over-represented in reflecting position. Intensities of those reflections rise relative to the others; positions don’t move. Here, enhancing the 6.82° and 13.66° reflections makes every other peak look weak after normalization. Remedies: grind gently, back-load or side-load the holder, spin the sample, or use transmission geometry; then reload and compare [1].
Sample displacement. If the sample surface sits above or below the goniometer’s focusing circle, every peak shifts systematically. For a goniometer radius of 240 mm:
| Height error | Shift at 6.82° | Shift at 18.31° | Shift at 27.35° |
|---|---|---|---|
| 0.05 mm | −0.024° | −0.024° | −0.023° |
| 0.10 mm | −0.048° | −0.047° | −0.046° |
| 0.20 mm | −0.095° | −0.094° | −0.093° |
A 0.2 mm error uses half of a ±0.2° tolerance before any real difference is considered. The signature is a near-uniform shift of every peak, which a true form change does not produce. An internal standard mixed into the sample, or checking a known reference peak, corrects it.
The running proof
A certified reference material (for example a corundum or silicon standard) run on a schedule confirms peak positions, intensities and resolution of the instrument [2]. It catches misalignment and detector drift. It cannot catch preferred orientation or displacement in this sample’s preparation; reloading and an internal standard do that.
Where the analyst sits
An identity test is only as good as its written criterion. The analyst decides which peaks are diagnostic (ones that distinguish the forms, not ones they share), what tolerance the instrument and preparation can support, and whether intensity is scored at all. Those decisions belong in the method, not in the reviewer’s judgment after the data exist.
For discussion
- Why does preferred orientation change intensities but not positions?
- What does the “2” in 2θ mean, and why do pharmaceutical XRPD scans usually start near 2–3° 2θ instead of near 40°?
- Every peak in a sample pattern sits 0.08° lower than the reference. Form change or artifact? How do you confirm it?
- Which monohydrate peaks would you choose as diagnostic against the anhydrate, and why?
- Why does dehydration reduce the d-spacing of the strongest reflection?
- When would you require single-crystal diffraction rather than XRPD?
- In a UV-Vis spectrometer with a grating monochromator, where does diffraction happen and where does absorption happen? Which of the two does Beer–Lambert describe?
- Two lots of Compound X give identical UV spectra after dissolution but different XRPD patterns. Which result shows that the lots differ, and what does the UV result still tell you?
Bridge to mixtures
An identity test says which form. It does not say whether 2% of another form is hiding underneath. Mixtures and Limits puts a number on that.
Data and sources
Peak lists with d-spacings, computed patterns, identity check, displacement shifts, Bragg beside Beer–Lambert numbers, reproduction script, requirements. Figures: 3840 × 2160 pixels, computed from the peak lists; the radiation–matter comparison is generated by docs/solid-form-bundles/generate-worked-examples.py.
[1] V. K. Pecharsky and P. Y. Zavalij, Fundamentals of Powder Diffraction and Structural Characterization of Materials, 2nd ed., Springer, 2009.
[2] United States Pharmacopeia (USP) ⟨941⟩ Characterization of Crystalline and Partially Crystalline Solids by X-Ray Powder Diffraction (XRPD); Ph. Eur. 2.9.33. Licensed compendial text; confirm the operative tolerance and instrument-qualification requirements.
[3] D. A. Skoog, F. J. Holler and S. R. Crouch, Principles of Instrumental Analysis, 7th ed., Cengage, 2018. Absorption, Beer–Lambert and grating monochromators.
The compound, peak lists and patterns are constructed teaching examples, not product data.