Abstract
Portable X-ray fluorescence (pXRF) has emerged as a rapid, cost-effective tool for assessing soil fertility in precision agriculture. While the influence of soil moisture on pXRF elemental detection has been widely studied, its specific impact on nutrient prediction accuracy, particularly when combined with key soil properties, remains less well quantified. This study investigates how moisture conditions affect pXRF-based detection of soil nutrients and evaluates whether integrating soil properties enhances prediction accuracy. Using stepwise multiple linear regression (SMLR), available macronutrients and micronutrients were modeled from pXRF data under dry soil (DS), field moisture (FM), saturated paste (SP), and after the removal of excess water (AREW) from SP. At both DS and SP, pXRF yielded strong predictions for macronutrients, with R2 values ranging from 0.54 to 0.74 for K, 0.49–0.59 for Ca, and 0.60–0.69 for Mg (all p < .0001), while predictions for Cu and Zn were low to moderate. Incorporating soil pH and organic matter (OM) improved model performance, increasing R2 values by 1.1- to 6.1-fold compared to models based solely on pXRF data. These findings highlight the need for standardized sample preparation, especially regarding moisture, and demonstrate that combining pXRF with key soil attributes enhances its utility as a reliable tool for rapid nutrient assessment in diverse soil conditions.
Abbreviations
- AREW:
After removal of excess water
- DS:
Dry soil
- FM:
Field moisture
- OM:
Organic matter
- SMLR:
Stepwise multiple linear regression
- SP:
Saturated paste
Acknowledgements
This study was funded by the Washington Oilseed Cropping Systems (WOCS) and Washington Grain Commission (WGC)
Funding
This study was funded by the Washington Oilseed Cropping Systems (WOCS) and Washington Grain Commission (WGC).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Supplementary Material 1 (download DOCX )
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
Reprints and permissions
About this article
Cite this article
Antonangelo, J., Chakraborty, S., Mridha, D. et al. Evaluating pXRF accuracy for predicting soil fertility: effects of moisture and soil properties.
Sci Rep (2026). https://doi.org/10.1038/s41598-026-58282-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-58282-8
Keywords
- Portable X-ray fluorescence (pXRF)
- Soil nutrient prediction
- Soil moisture effects
- Precision agriculture
- Soil properties
Source: Ecology - nature.com

