Worked example · Materials · XRD
How much of a sandstone is clay, read from one powder scan.
A sandstone powder was spiked with a weighed 20 wt% of corundum and scanned once. We asked Vicena for its whole-rock composition in the layout of the Chinese petroleum standard SY/T 5163, with the fit, the spread over refits and a workbook.
The question
One random-powder XRD scan of a sandstone, with 20 wt% corundum weighed in. Which minerals does it hold, how much of each in the rock itself, and how much of it is clay?
What Vicena did
It fitted the scan as a sum of measured pure-mineral patterns from the USGS RockJock library, scaled the weights to the corundum, tested a mica, an expanded mineral list, three fit windows and four backgrounds in 72 refits, and saved the figure, the report tables and a workbook.
What the user does next
Opens the fit PDF in the File Browser, then the two notebooks beside the chat to see each refit. With air-dried, glycolated and heated scans of the clay fraction, the same session can fill the blank clay-group table.
The session
From one question to a checked answer.
- 01
Open the protocol
In the Protocols app, search for clay or XRD and open Quantify the minerals and clays in a rock by XRD. The page says what you get, which scans you need and how the method works.

- 02
Fill the form, or try the example
Attach the random-powder scan and any oriented-mount scans, give the corundum in wt% and the standard to report to. Here Try with example data attached a sandstone scan with 20 wt% corundum and asked for the SY/T 5163 layout.

- 03
Start
Start opens a new session with the protocol's request and the scan attached. Vicena reads the library's whole rock and clay minerals page, plots the scan and notes that no oriented mounts were supplied.

- 04
Read the answer
Vicena reports each mineral in wt% of the rock with its range over refits, the total clay and the unexplained remainder in the SY/T 5163 layout, and says the clay groups stay undetermined without oriented mounts.

- 05
Open the fit
The fit opens as a PDF in the File Browser: measured and fitted pattern, each mineral's contribution with its share, and the residual. The workbook and both notebooks sit beside it in Sandstone XRD.

Results
Plagioclase 43.6, K-feldspar 9.1 and quartz 5.5 wt%, with 39.3 wt% total clay (37.3–41.6 over 72 refits), against a known 45, 10, 5 and 40 wt%.
The selected model holds the five main mineral groups and a biotite-like mica, which improves the fit mainly near 8.8° 2θ where it overlaps the illite basal region; Vicena kept the mica as tentative and outside total clay. The ranges come from 72 refits with and without mica, four backgrounds, three fit windows and three alignment and weighting choices, and are sensitivities, not confidence intervals.
- 39.3 wt%
- total clay, 37.3–41.6 over refits; known 40
- 43.6 wt%
- plagioclase, the main mineral; known 45
- 72
- refits over mineral sets, windows and backgrounds
- 1.3 wt%
- unexplained remainder, not resolved from zero

| Mineral | Selected fit | Refit range | Known |
|---|---|---|---|
| Plagioclase | 43.6 | 43.1–45.2 | 45 |
| K-feldspar | 9.1 | 7.7–9.4 | 10 |
| Quartz | 5.5 | 4.2–5.8 | 5 |
| Kaolinite | 25.1 | 24.3–26.1 | 25 |
| Illite-like clay | 14.2 | 12.8–16.5 | 15 |
| Mica (tentative) | 1.3 | 0.0–3.7 | 0 |
| Total clay | 39.3 | 37.3–41.6 | 40 |
| Remainder | 1.3 | −0.5 to 3.6 | 0 |
Kaolinite and illite-like clay are powder reference groups, not clay identities confirmed by oriented mounts. Calcite, dolomite, siderite, pyrite, anatase, hematite and diaspore were not assigned; each fitted below 0.3 wt% when admitted.
In plain words
Most of this sandstone is feldspar and clay: plagioclase is about 44 wt% of the rock and kaolinite and an illite-like clay together about 39 wt%, with little quartz. Every value is within 1.5 wt% of what the test mixture is known to contain, and total clay within 1 wt%.
The corundum makes the weights absolute rather than shares forced to add up to 100. What the fitted minerals leave over is 1.3 wt%, and it moves from below zero to 3.6 wt% between refits, so there is no sign of amorphous or unidentified material.
A powder scan cannot say for certain which clays are present. Kaolinite and illite fit best here, but telling smectite, mixed-layer illite/smectite and chlorite apart needs oriented mounts scanned air-dried, glycolated and heated, and Vicena left those fields blank.
For this kind of work
What you can do with Vicena.
Your own rocks and soils
Attach a random-powder scan with a weighed internal standard and get absolute weights, a remainder that shows anything the library does not explain, and a fit you can inspect line by line.
Reports to a standard
Name SY/T 5163 or another layout and the tables follow it, with blanks where the data cannot decide, such as the clay groups before oriented mounts are measured.
Method details, for specialists
Vicena quantified the minerals of a sandstone from one random-powder X-ray diffraction scan (5.01–64.99° 2θ, 0.02° steps) of a test mixture spiked with 20 wt% corundum. It fitted the pattern as a nonnegative sum of measured RockJock reference patterns with a smooth background and a common angle correction of +0.22°, and expressed the weights on the unspiked rock. The selected fit, with main phases and a tentative biotite-like mica, gave plagioclase 43.6, K-feldspar 9.1, quartz 5.5, kaolinite 25.1 and illite-like clay 14.2 wt%, total clay 39.3 wt% (37.3–41.6 over 72 refits) and a weighted profile residual of 11.6 %. The mass-balance remainder, 1.3 wt%, was not resolved from zero. Without oriented mounts, the clay-group table of SY/T 5163 was left undetermined.
The prompt Vicena was given, verbatim:
Identify and quantify the minerals in my rock or soil sample from the attached X-ray diffraction scans, following the library's whole rock and clay minerals page (apps/materials/clay-minerals.md). From the random powder scan, give the whole-rock mineral composition in wt% of the sample without the internal standard, by full-pattern summation scaled to the standard when I weighed one in, with the spread over refits and the total clay content. From the oriented mounts, identify the clay minerals by how their basal peaks change with glycol and heating, and give their relative proportions and the illite/smectite mixed-layer ratio when present. Work in a notebook, show the fit with each mineral's share and the residual, save the workbook, and finish with a table in the form the standard I name expects. Inputs: - Diffraction scans: whole-rock-powder.csv (attached) - Internal standard: 20 wt% - Sample and purpose: Sandstone, random powder with 20 wt% corundum; whole-rock composition in the layout of SY/T 5163
The data and the method
The example scan is a weighed test mixture from the RockJock data distributed with the powdR package, spiked with 20 wt% corundum, moved onto a new angle grid with redrawn counts. It covers 5.01–64.99° 2θ in 0.02° steps. The file gives no wavelength; Vicena assumed Cu Kα and checked that the corundum lines fell in place after a common correction of +0.22°.
A first screen of the whole RockJock library proposed plagioclase, K-feldspar, quartz, kaolinite and illite, plus charcoal, ferrihydrite and mica. With a smooth nonnegative background in place of the library's background patterns, charcoal and ferrihydrite dropped out. Each phase's weight in the rock is (20/0.80) × (its scale/its reference intensity ratio) divided by the same ratio for corundum.
Checks
Three mineral sets give nearly the same pattern: main phases only (residual 11.63 %, clay 40.0 wt%), main phases with mica (11.57 %, 39.3 wt%) and an expanded list with other clays and accessory minerals (11.51 %, 39.0 wt%). The largest remaining misfits sit at the strong quartz and plagioclase lines near 26.7° and 28.1°, which points to reference peak shapes rather than a missing mineral.
Against the known mixture, every mineral is within 1.5 wt% and total clay within 1 wt%, inside the protocol's 3 and 5 wt% targets. K-feldspar is the weakest: 9.1 wt% against 10, with even the highest refit at 9.4. Part of the 15 wt% illite may sit in the tentative mica.
Conclusions
- The sandstone holds plagioclase 43.6, K-feldspar 9.1 and quartz 5.5 wt%, and 39.3 wt% total clay (37.3–41.6 over 72 refits), all within 1.5 wt% of the known mixture.
- The 1.3 wt% remainder is not resolved from zero, so the scan shows no amorphous or unidentified material.
- Which clays are present, their relative shares and any illite/smectite mixed layering need oriented mounts scanned air-dried, glycolated and heated.
Data and notebooks
- Sandstone XRD.ipynb
- Fit comparison.ipynb
- Data/whole-rock-powder.csv
- charts/Sandstone powder fit.chart.json
- results/selection.json
- results/Sandstone powder fit.png
- results/Sandstone powder fit.pdf
- results/Whole rock.csv
- results/Clay minerals.csv
- results/Fit curves.csv
- results/Sandstone XRD.xlsx
Data source: Weighed test mixture with 20 wt% corundum from USGS RockJock as distributed in powdR (Butler and Hillier, 2021), moved onto a new grid with redrawn counts, 10.1016/j.cageo.2020.104662, GPL-2.0.
References
- D. D. Eberl, User's guide to RockJock, a program for determining quantitative mineralogy from powder X-ray diffraction data, USGS Open-File Report 03-78, 2003. https://pubs.usgs.gov/of/2003/of03-078/
- B. M. Butler and S. Hillier, powdR: an R package for quantitative mineralogy using full pattern summation of X-ray powder diffraction data, Computers & Geosciences 147, 104662, 2021. https://doi.org/10.1016/j.cageo.2020.104662
- D. M. Moore and R. C. Reynolds, X-Ray Diffraction and the Identification and Analysis of Clay Minerals, 2nd ed., Oxford University Press, 1997.
- SY/T 5163-2018, Analysis method for clay minerals and ordinary non-clay minerals in sedimentary rocks by X-ray diffraction.
Try it