The Scherrer equation turns the width of an X-ray diffraction peak into the size of the crystallites that produced it: D = Kλ / (β cos θ). A peak at 2θ = 28.40° with a corrected width of 0.50° (Cu Kα1, K = 0.9) gives D = 16.4 nm. Narrow peaks mean large crystallites and broad peaks mean small ones. The calculator above does the unit conversions, removes the width of the instrument, repeats the sum for every peak and, from three peaks, separates size from strain with a Williamson–Hall plot.
How to use the calculator
- Enter the peaks. One row per peak: the position 2θ in degrees and the width (FWHM, full width at half maximum) from a peak fit. Paste two or three columns straight from Excel. Choose whether the width is in degrees or radians. Load example fills a synthetic CeO2 pattern.
- Choose the wavelength and K. Pick the X-ray tube (Cu Kα1 is 1.5406 Å) or type your own in Å or nm. Use K = 0.9 unless you have a reason to use another value.
- Remove the instrumental width. Type the FWHM of a standard (LaB6 or Si) measured on your instrument, either once for all peaks or per peak in the third column, and pick Gaussian or Lorentzian subtraction. A peak that is not wider than the instrument is skipped, with the reason shown.
- Read the sizes. The table gives the corrected width in degrees and radians and the size D in nm for every peak, with the mean and the standard deviation. The Williamson–Hall section gives the fitted line, R2, size and microstrain with their uncertainties, and you can download the tables as CSV or open the plot in Plot.
The Scherrer equation
D = K λ / (β cos θ)
| Symbol | Meaning | Unit |
|---|---|---|
D | mean size of the coherently diffracting domains (crystallite size), along the direction perpendicular to the diffracting planes | same unit as λ (nm here) |
K | dimensionless shape factor, about 0.9 | none |
λ | X-ray wavelength, 1.5406 Å (0.15406 nm) for Cu Kα1 | Å or nm |
β | peak width due to the sample alone: the FWHM on the 2θ scale after the instrumental width has been removed | radians |
θ | Bragg angle: half of the measured peak position 2θ | degrees or radians |
Worked example. Peak at 2θ = 28.40°, corrected FWHM 0.50°, Cu Kα1 (λ = 0.15406 nm), K = 0.9. Then θ = 14.20°, cos θ = 0.9694, β = 0.50 × π/180 = 0.008727 rad, and D = 0.9 × 0.15406 / (0.008727 × 0.9694) = 16.4 nm.
What K is and which value to use
K is the shape factor. It absorbs how the crystallite shape and the definition of the peak width enter the result, and it is of order one. Values from 0.89 to 1.0 appear in the literature: about 0.9 for roughly spherical crystallites and a FWHM (the default here), 0.94 quoted for cubic-symmetry crystallites, 0.89 for spheres in some derivations, and 1.0 when the width is the integral breadth (area divided by height) instead of the FWHM. The choice moves the result by about 10 %, which is smaller than other uncertainties, so do not agonise over it. What matters is to use the same K as the paper you compare with and to say which one you used. The calculator lets you type any value.
Why the instrumental width must be removed, and how
Even a perfect, infinitely large crystal gives a peak of finite width, because the X-ray beam is not perfectly parallel or monochromatic and the slits and detector have a size. The measured width is the sample broadening plus this instrumental width. If you use the measured width, the size comes out too small, and for crystallites above about 50 nm the instrument can account for most of the width.
Measure the instrumental width on a standard that has no broadening of its own: LaB6 (NIST SRM 660) or silicon (SRM 640), run with the same slits, optics and scan settings as your sample. The instrumental width grows slowly with angle, so fit the standard's peaks and read the width at the angle of each of your peaks. Enter one value for all peaks, or one per peak in the table.
Gaussian or Lorentzian subtraction?
- Gaussian: β² = βmeasured² − βinstrument². The widths add in quadrature. This is the usual choice and the default; it fits well when both profiles are close to Gaussian, as for strain broadening and many laboratory instruments.
- Lorentzian: β = βmeasured − βinstrument. The widths simply add. It fits when both profiles are close to Lorentzian, and it subtracts less than the Gaussian rule, so the size is larger.
- None: use the measured width. The sizes are then lower bounds.
Real peaks are a mixture (a Voigt profile), so the truth lies between the two rules. If the choice changes your conclusion, the instrumental width is too large a part of the measured width for the peak to be trusted. A peak whose measured width is not larger than the instrumental width carries no size information and is skipped.
Williamson–Hall plot: size and microstrain
Small crystallites are not the only cause of broad peaks. Microstrain, a spread of lattice spacings caused by defects, broadens a peak by about 4ε tan θ, while size broadening goes as 1/cos θ. They depend on angle differently, so several peaks can separate them. In the uniform deformation model of Williamson and Hall:
β cos θ = Kλ / D + 4 ε sin θ
Plot β cos θ (vertical) against 4 sin θ (horizontal) for each peak. The points should lie on a straight line. The intercept is Kλ/D, which gives the crystallite size, and the slope is the microstrain ε (shown here in %). A horizontal line means all the broadening is from size; a steep line means strain contributes. The calculator fits the line by ordinary least squares and gives R2, the standard errors of the slope and intercept, and the size and strain with their uncertainties (the size error is propagated from the intercept).
A negative intercept gives no size and a negative slope means negative strain; both are warned about rather than corrected. They usually mean that the points scatter too much for a line, that peaks overlap, that the instrumental width was over-subtracted, or that the broadening depends on the direction (anisotropic), so the single line does not describe your sample.
Limits of the method
- Crystallite size is not particle size. XRD gives the size of coherently scattering domains, averaged over the volume. A particle can hold several crystallites, so the XRD size is the smaller one and TEM particle sizes are often larger.
- Above about 100 nm the peaks are so narrow that they are close to the instrumental width and the result is dominated by the correction. The calculator warns above 100 nm. Treat such a value as a lower limit.
- Below about 2 nm the peaks are so wide and overlapping that the equation is unreliable.
- Size and strain both broaden the peaks, so one peak cannot tell them apart. The Scherrer size from one peak includes any strain broadening; the Williamson–Hall plot separates them only if the model fits.
- Peak overlap, a poor background and a wrong peak shape change the fitted FWHM more than any choice of K. Fit the peaks first, with a pseudo-Voigt function and a background, and use the width from the fit.
How the calculator works
For each row the half angle θ = 2θ/2 is converted to radians, the width is converted to radians if it was given in degrees, the instrumental width is removed by the chosen rule, and D = Kλ/(β cos θ) is computed in ångström and shown in nm. The mean and the sample standard deviation (n − 1) are taken over the rows that were used. The Williamson–Hall fit uses the same corrected widths and the same K and λ. Warnings appear for a 2θ outside 5–150°, a FWHM above 10° (usually radians typed as degrees), sizes above 100 nm and peaks narrower than the instrument. The X-ray wavelengths are the Kα1 values of the International Tables for Crystallography, Vol. C; Cu Kα (weighted) is the 1.5418 Å average of Kα1 and Kα2. The example is synthetic: it is generated from the formulas above for a known size and strain, not measured. Nothing leaves your browser; the last table and settings are remembered in this browser only.
Frequently asked questions
What is the Scherrer constant K?
K is a dimensionless shape factor in the Scherrer equation D = Kλ/(β cos θ). It depends on the crystallite shape and on how the peak width is defined. The values used in practice run from about 0.89 to 1.0; 0.9 is the usual choice when the shape is unknown and the width is the FWHM. The spread changes the size by about 10 %, so always state the K you used.
Should the FWHM be in radians or degrees?
The equation needs β in radians. Peak fitting programs usually report the FWHM in degrees of 2θ, so convert it (multiply by π/180, about 0.01745) or let the calculator do it by choosing the unit. The angle θ in cos θ is half of the peak position 2θ, not the 2θ value itself.
Why does my XRD crystallite size differ from the particle size seen by TEM?
XRD measures the size of coherently diffracting domains, which can be smaller than a particle because a particle may contain several crystallites, twins or stacking faults. It also gives a volume-weighted average, which is pulled towards the larger crystallites, while a TEM count is usually number-weighted. Instrument broadening, microstrain and overlapping peaks make the XRD number too small if they are not removed. For this reason the two numbers are different quantities and are not expected to agree exactly.
What is microstrain?
Microstrain is a small, non-uniform variation of the lattice spacing from one crystallite or region to the next, caused by defects such as dislocations, vacancies or compositional gradients. It broadens the peaks in proportion to tan θ. In the Williamson–Hall plot it is the slope of the line, reported here as a percentage.
How many peaks do I need for a Williamson–Hall plot?
Three is the minimum for a line with an error estimate, but with three peaks there is only one degree of freedom and the errors are very rough. Four to six well-separated peaks spread over a wide 2θ range, all from the same phase and not overlapping, give a usable fit.