How to Calculate Crystallite Size from XRD: Scherrer and Williamson–Hall
What does XRD crystallite size actually measure?
In nanoparticle, powder, thin-film and catalyst research, X-ray diffraction (XRD) is often used to estimate a material’s crystal size. The most common first-pass method is the Scherrer equation, which converts diffraction-peak broadening into an apparent size.
There is an important terminology point. The value obtained from peak broadening is more precisely the crystallite size, or coherent diffracting domain size. It is not necessarily the same as the particle size seen in an SEM image. One particle can contain several crystallites, so an XRD crystallite size smaller than an SEM particle diameter is not automatically a contradiction.
When the goal is to separate size broadening from microstrain, the next step is often a Williamson–Hall plot.

The Scherrer equation and its parameters
The Scherrer equation is:
D = Kλ / (β cos θ)
Where:
Dis the crystallite size, usually reported in nm or Å.Kis the shape factor. A value near 0.9 is common, but the selected value should be stated.λis the X-ray wavelength, such as 0.15406 nm for Cu Kα.βis the peak FWHM after background treatment, expressed in radians.θis the Bragg angle, equal to half of the measured2θposition.
The most common calculation error is a unit error: β must be in radians, not degrees, and λ must use the same length unit as D.
Worked calculation from 2θ and FWHM
Suppose one XRD peak has the following values:
- Peak position:
2θ = 38.18° - FWHM:
0.42° - X-ray source: Cu Kα,
λ = 1.5406 Å - Shape factor:
K = 0.9
1. Calculate the Bragg angle
θ = 38.18° / 2 = 19.09°
2. Convert FWHM from degrees to radians
β = 0.42 × π / 180 = 0.00733 rad
3. Substitute into the Scherrer equation
D = (0.9 × 1.5406) / (0.00733 × cos 19.09°)
≈ 200.2 Å
≈ 20.0 nm
The apparent crystallite size for this peak is therefore about 20.0 nm.
In a real study, analyze several strong, well-resolved peaks rather than treating one peak as the entire sample. A partially merged peak can produce an artificially large FWHM, so overlapping peaks should be fitted individually whenever possible.

Why Scherrer alone may not be enough
Peak broadening can come from more than crystallite size. Important sources include:
- Microstrain: non-uniform lattice distortion from defects, doping, dislocations or thermal treatment.
- Instrumental broadening: the optics, slits, source and detector add width unrelated to the sample.
- Peak overlap: adjacent reflections can appear as one broad envelope.
- Background and baseline: fluorescence or an amorphous contribution affects the measured width and area.
The Scherrer equation is useful for a rapid apparent-size estimate, but it does not automatically separate all of these effects.

How to make a Williamson–Hall plot
A common Williamson–Hall relationship is:
β cos θ = (Kλ / D) + 4ε sin θ
Plot β cos θ against 4 sin θ for several reflections. In the linear model:
- The intercept is related to crystallite size
D. - The slope is related to microstrain
ε. - The regression
R²helps you inspect whether the simple model is a reasonable description of the selected peaks.
Two peaks can define a line, but more well-resolved peaks generally provide a more defensible analysis. Williamson–Hall analysis is not a universal correction for every source of error; peak selection, instrumental broadening and FWHM quality still matter.
Do the workflow without Python
If you do not want to measure every peak width manually in Excel, Origin or a custom Python script, Spectra Studio brings the common steps into one Windows workflow:
- Load
.xrdml,.brml,.uxd,.txt,.xy,.csvor.datfiles. - Preview Savitzky–Golay smoothing and ALS baseline correction.
- Run adjustable automatic peak detection.
- In Pro, fit Gaussian, Lorentzian or mixed profiles and inspect position, FWHM, area, R² and residuals.
- Open Crystallite Size to calculate Scherrer values for the detected or fitted peaks.
- With two or more peaks, generate a Williamson–Hall plot with
D,εandR².
The X-ray wavelength and shape factor are adjustable. Instrumental broadening is not automatically subtracted in the standard calculation, so a standard sample should be used for calibration when the peaks are close to the instrument resolution.
Spectra Studio runs on Windows 10/11 64-bit, processes data locally and does not require Python. The Free edition covers loading, smoothing, baseline correction, peak detection and watermark-free PNG/JPG output. Scherrer, Williamson–Hall, peak fitting and vector export are Pro features.
Common questions
Is XRD crystallite size the same as SEM particle size?
No. Scherrer analysis estimates a coherent diffracting domain size. An SEM particle can contain multiple crystallites, so the two measurements answer different questions.
Can FWHM be entered in degrees?
Not directly in the Scherrer equation. Convert the FWHM to radians first. Forgetting this conversion is one of the most common XRD crystallite-size mistakes.
How many peaks are needed for Williamson–Hall analysis?
Two peaks are the minimum for a line, but more high-quality, well-separated peaks are preferable. Do not add weak or strongly overlapping peaks only to increase the point count.
Is there an XRD crystallite-size calculator without Python?
Spectra Studio is a Windows option that combines peak detection, peak fitting, Scherrer calculation and Williamson–Hall analysis in one interface.
Final takeaway
The difficult part of XRD crystallite-size analysis is rarely the equation itself. Reliable results depend on trustworthy peak positions and FWHM values, sensible baseline treatment, and an honest discussion of instrumental broadening, microstrain and peak overlap. Use Scherrer for a clear first estimate, and use Williamson–Hall when you need to examine size and strain together.
👉 Download Spectra Studio and start with the free edition: See the Spectra Studio feature guide
Related Posts
How to Fit XRD Peaks: Gaussian, Lorentzian and FWHM Analysis
A practical guide to XRD peak fitting with Gaussian, Lorentzian and mixed profiles, including FWHM, R², residuals and overlapping-peak analysis.
How to Calculate Crystallite Size from XRD Using the Scherrer Equation
A step-by-step guide to calculating crystallite (grain) size from XRD peak broadening with the Scherrer equation — how to measure 2θ and FWHM, convert units, and avoid the most common mistakes, with a worked example.
Overlapping XRD Peaks: When Manual FWHM Fails
Learn why overlapping peaks, sloping backgrounds, and instrument broadening can make manual XRD FWHM unreliable, and what to check before fitting.