Williamson–Hall plot calculator: crystallite size and microstrain from XRD
A Williamson–Hall plot separates the two causes of XRD peak broadening. Plot β cos θ against 4 sin θ for every peak (β the FWHM in radians after removing the instrument’s width, θ half the peak position 2θ) and fit a straight line: in the uniform deformation model, β cos θ = Kλ/D + 4ε sin θ, so the intercept gives the crystallite size D = Kλ/intercept and the slope is the microstrain ε. Paste your peak list (2θ, FWHM, hkl) and the calculator draws the plot, fits the line and gives D and ε with 95 % confidence intervals, using the same λ, K and instrumental correction as the Scherrer calculator.
- What it does
- Fits the Williamson–Hall line (uniform deformation model) to XRD peak widths and gives the crystallite size D and the microstrain ε with 95 % confidence intervals.
- Formula
- Example
- Seven ZnO peaks (Cu Kα1, K = 0.9, instrument 0.08°) give intercept 4.665 × 10⁻³ rad and slope 1.476 × 10⁻³ (R² = 0.958): D = 29.7 nm (95 % CI 26.4–34.1 nm) and ε = 1.48 × 10⁻³ (0.148 %), where the Scherrer sizes of the same peaks average 19.8 nm.
Loading Williamson–Hall plot calculator…
At a glance
| Model | Uniform deformation: |
|---|---|
| Gives | |
| Input | 2θ and FWHM in degrees, one row per peak, optional hkl; or a whole pattern (peaks found) |
| Instrument | FWHM of a standard, removed in quadrature (Gaussian) or subtracted (Lorentzian) |
| Wavelength and K | Cu Kα1 1.54056 Å or any; K 0.9 default (0.94, 0.89, 1.0 or your own) |
| Checked | Against SciPy linregress, exact synthetic peaks and the Graph app’s analysis |
| Output | Plot (PNG 300/600 dpi), table and methods (copy), CSV; Graph app |
| Runs in | Your web browser; nothing is uploaded |
| Price | Free, no account needed |
What it does
How to use the williamson–Hall plot calculator
- Paste your peaksOne row per reflection: 2θ and FWHM in degrees, then the hkl label if you have it, from your peak-fitting software or a spreadsheet. Use three or more well-separated peaks over a wide 2θ range.
- Remove the instrumentEnter the FWHM of a well-crystallised standard (LaB₆ or Si) measured on the same instrument; it is removed in quadrature, or subtracted for Lorentzian peaks.
- Check λ and KKeep Cu Kα1 and K = 0.9, or choose another wavelength and shape factor under More options.
- Read D and εRead the crystallite size from the intercept and the microstrain from the slope, with their confidence intervals, and look at how well the points follow the line.
- ExportCopy the methods sentence or the table, download the plot (PNG) and the CSV, or open the plot in the Graph app.
How it works
Two kinds of broadening. Small crystallites broaden a diffraction peak by
The fit. The calculator converts each FWHM to radians, removes the instrumental width, computes linregress.
Instrumental broadening. Every peak is also broadened by the diffractometer. Measure a well-crystallised standard on the same instrument and remove its FWHM: in quadrature,
λ and K. The wavelength defaults to Cu Kα1, 1.54056 Å (Canchanya-Huaman et al. 2021), and K to 0.9, with 0.94, 0.89 and 1.0 as presets: about 0.89–0.91 suits spherical or cubic crystallites and about 1.0–1.2 plates and rods (Khorsand Zak & Hashim 2025); its value depends on the crystallite shape and on the measure of breadth used (Langford & Wilson 1978). K scales D directly and does not change ε.
Limits. The line assumes isotropic crystallites and isotropic strain. When broadening depends on direction (plate-like crystallites, elastic anisotropy, dislocations), the points scatter about the line and D and ε depend on which peaks you include; the modified Williamson–Hall method orders the peaks by dislocation contrast instead (Ungár & Borbély 1996). Overlapping peaks give widths that are too large: fit them as separate peaks (for example with the peak fitting tool) or leave them out. A negative intercept means no size can be read; a negative slope usually means anisotropy or noise rather than compressive strain. Sizes above about 100–200 nm are beyond what peak broadening measures reliably (Canchanya-Huaman et al. 2021).
Worked example: size and strain of ZnO nanoparticles
The built-in example is a synthetic data set, not a measurement: seven ZnO (wurtzite) reflections with Cu Kα1, their widths made from
| hkl | 2θ (°) | FWHM (°) | β (°) | 4 sin θ | β cos θ (rad) | Scherrer D (nm) |
|---|---|---|---|---|---|---|
| (100) | 31.77 | 0.389 | 0.3807 | 1.0948 | 0.006390 | 21.70 |
| (002) | 34.42 | 0.381 | 0.3725 | 1.1835 | 0.006210 | 22.33 |
| (101) | 36.25 | 0.399 | 0.3909 | 1.2444 | 0.006484 | 21.38 |
| (102) | 47.54 | 0.461 | 0.4540 | 1.6123 | 0.007252 | 19.12 |
| (110) | 56.60 | 0.485 | 0.4784 | 1.8964 | 0.007351 | 18.86 |
| (103) | 62.86 | 0.532 | 0.5260 | 2.0858 | 0.007833 | 17.70 |
| (112) | 67.96 | 0.551 | 0.5452 | 2.2356 | 0.007890 | 17.57 |
- One point by hand, (101):
; ; ; . - Fit the line through the seven points: intercept
rad, slope , . - Crystallite size:
, 95 % CI 26.4–34.1 nm. The data were made with 30 nm. - Microstrain:
(0.148 %), 95 % CI . The data were made with . - Compare with Scherrer. The Scherrer sizes of the same peaks fall from 22.3 nm to 17.6 nm as 2θ rises, mean 19.8 nm: a size that shrinks with angle is the sign of strain broadening, which the Scherrer equation counts as size.
The choices change the answer. Without the instrumental correction the same peaks give D = 28.5 nm and ε = 1.42 × 10⁻³; subtracting the instrument (Lorentzian) instead of quadrature gives D = 41.5 nm and ε = 1.58 × 10⁻³; with Co Kα1 (1.78897 Å), K = 0.94 and a 0.05° instrument, 35.1 nm. Report λ, K, the instrumental width and how it was removed.
References
- Williamson GK, Hall WH. X-ray line broadening from filed aluminium and wolfram. Acta Metall 1953;1:22–31. doi:10.1016/0001-6160(53)90006-6
- Mote VD, Purushotham Y, Dole BN. Williamson–Hall analysis in estimation of lattice strain in nanometer-sized ZnO particles. J Theor Appl Phys 2012;6:6. doi:10.1186/2251-7235-6-6
- Khorsand Zak A, Abd. Majid WH, Abrishami ME, Yousefi R. X-ray analysis of ZnO nanoparticles by Williamson–Hall and size–strain plot methods. Solid State Sci 2011;13:251–256. doi:10.1016/j.solidstatesciences.2010.11.024
- Ungár T, Borbély A. The effect of dislocation contrast on x-ray line broadening: a new approach to line profile analysis. Appl Phys Lett 1996;69:3173–3175. doi:10.1063/1.117951
- Langford JI, Wilson AJC. Scherrer after sixty years: a survey and some new results in the determination of crystallite size. J Appl Crystallogr 1978;11:102–113. doi:10.1107/S0021889878012844
- Khorsand Zak A, Hashim AM. Advanced XRD peak broadening analysis of gallium-doped ZnO nanoparticles for crystallite size evaluation. Sci Rep 2025;16:1717. doi:10.1038/s41598-025-31317-2
- Canchanya-Huaman Y, Mayta-Armas AF, Pomalaya-Velasco J et al. Strain and grain size determination of CeO₂ and TiO₂ nanoparticles: comparing integral breadth methods versus Rietveld, µ-Raman, and TEM. Nanomaterials 2021;11:2311. doi:10.3390/nano11092311
Frequently asked questions
How do I make a Williamson–Hall plot?
For each XRD peak, take the FWHM in radians after removing the instrumental width (β) and half the peak position (θ). Plot β cos θ on the y axis against 4 sin θ on the x axis and fit a straight line. The intercept is Kλ/D, so the crystallite size is D = Kλ/intercept; the slope is the microstrain ε.
What is the difference between the Scherrer equation and a Williamson–Hall plot?
The Scherrer equation, D = Kλ/(β cos θ), treats all broadening as coming from small crystallites and gives one size per peak. The Williamson–Hall plot uses several peaks to split the broadening into a size part (constant in β cos θ) and a strain part (rising with sin θ), so it gives one size and one strain. With strain present, Scherrer sizes come out smaller and fall with 2θ.
How do I calculate microstrain from XRD?
Fit β cos θ against 4 sin θ for several peaks; in the uniform deformation model the slope is the microstrain ε (dimensionless, often quoted as % or × 10⁻³). Remove the instrumental broadening first, or ε also contains the instrument.
Why is my Williamson–Hall intercept negative?
A negative intercept gives no size. It happens when the size broadening is too small to see next to strain and the instrument (large crystallites), when widths are noisy or include overlapping peaks, or when the broadening is anisotropic. Check the instrumental correction, use well-fitted, separate peaks, and look at the plot for outliers.
What does a negative slope mean in a Williamson–Hall plot?
In the uniform deformation model the slope is a microstrain, which cannot be negative. A negative slope usually means anisotropic broadening (crystallites of different sizes in different directions) or noise, not compressive strain. Report the size with care, or use a modified Williamson–Hall analysis.
Should I remove instrumental broadening in quadrature or by subtraction?
Quadrature, β² = β_obs² − β_inst², is right for Gaussian peak shapes and is what the Scherrer calculator uses; subtraction, β = β_obs − β_inst, is right for Lorentzian shapes. Real peaks lie in between, and the choice can change D a lot when the peaks are narrow, so state which you used.
How many peaks do I need for a Williamson–Hall plot?
At least three for a line with a confidence interval, and better five or more spread over a wide 2θ range, so the slope and intercept are well separated. Leave out overlapping and very weak peaks.
What K and wavelength should I use?
K = 0.9 is the usual choice (0.89–0.91 for spheres or cubes, about 1.0–1.2 for plates and rods), and Cu Kα1, 1.54056 Å, for a copper tube. K changes D but not ε. Use the same values as in your Scherrer calculation so the two can be compared.
Link to this tool
Using it in a protocol, lab wiki or course page? Copy a link or citation.
<a href="https://www.labcanvas.com/tools/williamson-hall-plot">Williamson–Hall plot calculator</a> (LabCanvas)LabCanvas. Williamson–Hall plot calculator [online tool]. https://www.labcanvas.com/tools/williamson-hall-plotPlot the size–strain analysis for your paper
The LabCanvas Graph app has the same crystallite-size analysis (Scherrer per peak and Williamson–Hall) with a publication-ready Williamson–Hall plot. It opens with an anatase example you can replace with your peaks.
Open the Williamson–Hall graph