Soil testing for agriculture commonly refers to the analysis of a soil sample to measure nutrient content, composition, and other characteristics such as acidity or pH level. As soil nutrients vary with depth and soil components change with time, the depth and timing of a sample may also affect results.