Worked example · Materials · Powder XRD
A crystallite size from peak widths, and an honest no on microstrain.
We gave Vicena the protocol's example pattern: a simulated silicon scan with six peaks of the same width and no instrument standard. We asked for the crystallite size and the microstrain, and checked the answer against the width the data were made with.
The question
How large are the crystallites in this powder, and is there any microstrain? The only input is one X-ray diffraction scan, taken with copper Kα1 radiation, without a scan of an instrument standard.
What Vicena did
It identified the six peaks as silicon, fitted each one with a profile, tested the fits against counting noise, and turned each width into a Scherrer size. It then plotted the widths against angle in a Williamson–Hall plot to look for strain.
What it found
An apparent size of 37.4 nm from the strongest peak, 37.0 to 40.6 nm across fitting choices, reported as a lower bound. The Williamson–Hall slope is negative under every fitting choice, so Vicena reported no microstrain and said why.
The session
From one question to a checked answer.
- 01
Open the protocol
In the Protocols app, search for crystallite size and open Measure crystallite size and microstrain from XRD peak widths. The page says what you get, what you need and how it works.

- 02
Fill the form, or try the example
Attach your scans and, if you have one, a scan of an instrument standard. Here Try with example data attached a simulated silicon pattern and set the radiation to Cu Kα1 only.

- 03
Start
Start opens a new session with the protocol's request and the scan attached. Vicena moves the file into its own folder, XRD Crystallite Size, and follows the library's diffraction page.

- 04
Read the answer
Vicena gives the preferred size and its range, explains why no microstrain can be read, suggests measuring a LaB₆ standard next, and ends with a table of every fitted peak.

- 05
Open the notebooks
The Overview notebook opens beside the chat with the findings and the scan; Peak analysis holds the indexing, every fit with its residuals, and the Williamson–Hall plot, which Edit opens in the Chart Editor.

Results
The (111) peak gives an apparent size of 37.4 nm, a lower bound because no instrument standard was measured. The Williamson–Hall line slopes downwards, so the scan gives no microstrain.
Vicena applied the Scherrer equation, D = Kλ/(β cos θ), with K = 0.9, λ = 0.1540598 nm and β the fitted width in radians, uncorrected. It preferred the (111) peak, the strongest and best isolated, at 37.4 nm, with 37.0 to 40.6 nm across fitting windows of ±0.34, ±0.50 and ±0.68° and linear or quadratic backgrounds. The weak (400) peak has the largest counting uncertainty (±0.026°), and (331) changes most with the fitting choice.
- 37.4 nm
- apparent size from the (111) peak, a lower bound
- 37.0–40.6 nm
- (111) size across six choices of window and background
- 6 of 6
- peaks indexed to silicon, within 0.014° of the reference
- −523 × 10⁻⁶
- Williamson–Hall slope: negative, so no microstrain
| Reflection | 2θ (°) | FWHM (°) | Apparent size (nm) | Range over fit choices (nm) | Size from 0.22° (nm) |
|---|---|---|---|---|---|
| (111) | 28.443 | 0.219 | 37.4 | 37.0–40.6 | 37.3 |
| (220) | 47.303 | 0.222 | 39.1 | 38.4–40.6 | 39.4 |
| (311) | 56.125 | 0.221 | 40.8 | 40.8–42.8 | 40.9 |
| (400) | 69.124 | 0.198 | 48.7 | 44.1–51.3 | 43.8 |
| (331) | 76.383 | 0.230 | 43.9 | 35.4–44.0 | 45.9 |
| (422) | 88.032 | 0.223 | 49.6 | 47.3–51.6 | 50.2 |
Ranges cover six mixed-profile fits, three windows by two backgrounds, at fixed K; they are not confidence intervals and do not include instrumental broadening.
In plain words
The Scherrer equation turns the width of a diffraction peak into the size of the regions of a crystal that diffract together, called crystallites or coherent domains. These are not particle sizes: a particle can hold several crystallites.
Every diffractometer widens peaks a little by itself. Without a scan of a standard, that widening is counted as size, so the true crystallites are larger than 37.4 nm. The number is a lower bound, and is most useful for comparing samples measured the same way.
Strain widens peaks more at high angle than size does, so the Williamson–Hall plot should rise with angle when strain is present. Here it falls, as it must when every peak has the same width in degrees, so the scan contains no evidence of strain. The data were simulated to test exactly this answer.
For this kind of work
What you can do with Vicena.
Your own nanopowders
Attach the raw scans of a series of samples, such as one oxide calcined at several temperatures, and compare their sizes with every number labelled as apparent or corrected.
With an instrument standard
Add a scan of LaB₆ or silicon from the same diffractometer and slits, and Vicena removes the instrument's own broadening before it calculates sizes and strain.
Method details, for specialists
Vicena analysed a simulated powder X-ray diffraction pattern of silicon (Cu Kα1, 20–90° 2θ in 0.02° steps) in which all six reflections were generated with a full width at half maximum of 0.22°, without a scan of an instrument standard. It indexed the six peaks to diamond-cubic silicon, within 0.014° of the reference positions, and fitted each with a single pseudo-Voigt profile on a local background under a Poisson likelihood; the mixed profile fitted at the level of counting noise (deviance 271.6 on 265 degrees of freedom) and a Kα2 component was not needed. With K = 0.9, the (111) reflection gave an apparent Scherrer size of 37.4 nm, 37.0–40.6 nm across six choices of fitting window and background, reported as a lower bound because the widths are not corrected for instrumental broadening. The Williamson–Hall slope was −523 × 10⁻⁶ (95 % interval −849 to −197 × 10⁻⁶) and stayed negative under every fitting choice and with any one peak left out, so no microstrain was reported. Every result agrees with the width the pattern was made with.
The prompt Vicena was given, verbatim:
Calculate the crystallite size and microstrain of my samples from the widths of their X-ray diffraction peaks, following the library's diffraction page (apps/materials/diffraction.md). Identify the peaks first, fit each peak of the phase (as a Kα1/Kα2 pair where both lines are present), and correct for instrument broadening with the standard scan if I attached one; if not, report the sizes as apparent sizes and lower bounds. Give the Scherrer size from each usable peak, a Williamson–Hall plot with the microstrain or the reason the data cannot give one, and how far the numbers can be trusted, compared with any TEM or BET size I give. Do the work in a notebook and finish with a short table per sample. Inputs: - Diffraction pattern: xrd-pattern.csv (attached) - Radiation: Cu Kα1 only (monochromator)
The data and the fits
The example pattern is simulated: silicon with Cu Kα1 radiation, 20 to 90° 2θ in steps of 0.02°, counting noise and a background that falls with angle. All six peaks were generated 0.22° wide, which corresponds to crystallites of about 37 to 50 nm depending on the angle, with no strain. No scan of an instrument standard was given. Vicena was not told the data were simulated.
Vicena found six peaks and matched them to the published silicon pattern: positions within 0.014° and relative heights within two points on a scale of 100, with no unassigned peak. It fitted each peak within ±0.5° with a pseudo-Voigt profile, a mixture of Gaussian and Lorentzian shapes, on a linear background, using the Poisson likelihood that suits counted data. The mixed profile fitted at the level of counting noise (deviance 271.6 on 265 degrees of freedom, p = 0.38), while pure Gaussian (p = 0.012) and pure Lorentzian profiles did not. A Kα2 component tested on the three high-angle peaks reached at most 3.4 % of Kα1 and did not improve the fit, as expected behind a monochromator.
Williamson–Hall test
In a Williamson–Hall plot, β cos θ is plotted against 4 sin θ: under isotropic size and strain broadening the intercept gives the size and the slope the microstrain. Vicena found a slope of −523 × 10⁻⁶ (95 % interval −849 to −197 × 10⁻⁶, R² = 0.83), negative under every fitting choice (−556 to −91 × 10⁻⁶) and with any one peak left out (−618 to −482 × 10⁻⁶). Microstrain is a magnitude and cannot be negative in this model, so Vicena reported none, warned against reading the slope as compression, and did not use the intercept as a corrected size.
The downward slope is what peaks of equal width in degrees must give: β stays constant while cos θ falls with angle. That matches how the data were made, without strain. Vicena recommended a scan of the NIST LaB₆ standard with the same optics, after which the corrected widths can be tested again for a strain trend.
Conclusions
- The (111) peak gives an apparent crystallite size of 37.4 nm (37.0–40.6 nm across fitting choices), which matches the 37.3 nm the simulated width implies.
- Without an instrument standard every size is a lower bound; a LaB₆ scan with the same optics is the next measurement.
- The Williamson–Hall slope is negative under every fitting choice, so the scan gives no microstrain, which is correct for these strain-free data.
Data and notebooks
- Overview.ipynb
- Peak analysis.ipynb
- Data/xrd-pattern.csv
- Peak sizes.csv
- charts/Williamson–Hall diagnostic.chart.json
Data source: Simulated silicon powder pattern (Cu Kα1, six reflections 0.22° wide) made by Vicena as the protocol's example data, , CC0 1.0.
References
- Langford J. I., Wilson A. J. C. Scherrer after sixty years: a survey and some new results in the determination of crystallite size. J. Appl. Cryst. 1978, 11, 102–113. https://doi.org/10.1107/S0021889878012844
- Williamson G. K., Hall W. H. X-ray line broadening from filed aluminium and wolfram. Acta Metall. 1953, 1, 22–31. https://doi.org/10.1016/0001-6160(53)90006-6
- National Bureau of Standards. Standard X-ray Diffraction Powder Patterns, Monograph 25, Section 13 (silicon reference pattern used for indexing). https://nvlpubs.nist.gov/nistpubs/Legacy/MONO/nbsmonograph25-13.pdf
Try it