Why field boundaries, sampling support, and aggregation scale matter in precision agriculture
Executive summary
A field may contain several sampled zones, each with its own soil pH. A GIS system can readily intersect those zones with a field boundary, multiply each pH by its clipped area fraction, and report one number. The arithmetic is simple; the spatial and chemical interpretation is not. Because pH is logarithmic, an area-weighted mean of pH readings is different from the pH associated with area-weighted mean hydrogen-ion activity. Because the mapped zones represent samples at a particular spatial support and resolution, neither statistic automatically describes unsampled locations, predicts the pH of physically mixed soil, or determines the lime requirement of the field.
For example, two equal-area zones with soil pH values of 5.0 and 7.0 have an arithmetic mean pH of 6.00. The pH corresponding to their mean hydrogen-ion activity is 5.30. The first number is an average of readings; the second is a transformation of average activity. The right choice depends on the question the map or report is intended to answer. Importantly, recent soil science literature reports that the arithmetic mean of component soil pH readings can approximate the measured pH of a physical composite soil sample better than an activity-transformed mean. The logarithm alone does not establish that every arithmetic average of soil pH is scientifically wrong [1].
For buffer pH (BpH), neither direct averaging nor a simple hydrogen-ion transformation is a validated substitute for a method-specific lime recommendation. A field summary can also hide where the acidity occurs: identical field averages can arise from very different spatial arrangements. An operational system should retain the source values and geometry, state precisely what each aggregate represents, and preserve variation for management decisions.
1. The measurement and the aggregation question
pH is defined as the negative base-10 logarithm of hydrogen-ion activity, using a dimensionless activity relative to the standard state [2]:
Here, is the measured pH of zone and is its corresponding hydrogen-ion activity. A one-unit decrease in pH represents a tenfold increase in activity. pH is therefore not a linear concentration or an additive amount.
Suppose a target field is partitioned into mapped zones . Let be the area of each zone within the target field, and its normalized area weight:
This assumes the zones form a nonoverlapping, adequately sampled coverage of the area being reported. If some of the target has no valid data, report that coverage separately rather than silently normalizing the observed zones to the entire field.
2. Two valid calculations with different meanings
2.1 Area-weighted arithmetic mean of measured pH
Equation 3 answers: What is the area-weighted average of the recorded pH values? It is a descriptive statistic on the pH scale. It does not equal the pH corresponding to mean hydrogen-ion activity except when the pH values are identical.
2.2 pH corresponding to mean hydrogen-ion activity
To compute a mean on the activity scale, reverse the logarithm before weighting:
Then transform the result back:
Equation 5 answers: What pH corresponds numerically to the area-weighted mean of the zones’ hydrogen-ion activities? This is a defined summary statistic. It should not be labeled simply “average soil pH,” because readers may assume it describes a composite sample or a field-wide treatment requirement.
2.3 Why the two answers differ
The logarithmic transformation is nonlinear. By Jensen’s inequality, for nonnegative weights summing to one,
Equality holds when all included zones have the same pH (apart from trivial zero-weight zones). The gap can become large where zones differ substantially. This is a mathematical comparison of two summaries, not evidence that one must always replace the other in soil analysis.
3. Worked example
Consider two zones that each cover half of a field:
| Zone | Area fraction | Soil pH | Corresponding activity |
|---|---|---|---|
| A | 0.50 | 5.0 | |
| B | 0.50 | 7.0 |
The arithmetic mean of their measured pH values is
The mean activity and its back-transformation are
Both values were calculated correctly. Calling either one the pH of the whole field without specifying its meaning would be misleading. In particular, the field still contains a zone measured at pH 5.0 — a single field statistic should not erase that management-relevant fact.
Interactive
See why the two averages diverge
Set each zone's pH and its share of the field. Equations 3 and 5 recompute live, so you can watch exactly how far apart they land — and why.
Where each result lands on the pH scale
H⁺ activity — what Equation 5 actually averages
Zone A's H⁺ activity is 100.0× Zone B's — which pulls the activity-weighted average far closer to Zone A than a simple pH average would suggest.
4. A crucial distinction: aggregating a map versus mixing soil
Equation 5 treats each laboratory pH result as a hydrogen-ion activity and averages those activities using land area as the weight. It does not model the chemistry of combining soil from the zones. Land area is also not, by itself, the volume of soil solution or the mass of soil in a physical composite. Comparable sampling depth, soil mass, extraction method, and sampling period are needed to interpret the input measurements consistently.
Soil has exchange sites and buffering processes. A physical composite is not necessarily equivalent to mixing unbuffered solutions in proportion to mapped acreage. Conyers (2026) reports that measured pH of composite soil samples is well approximated by the arithmetic mean pH of their component cores, and explains why direct hydrogen-ion averaging is a poor predictor of that particular outcome [1]. Thus, the statement “pH is logarithmic, so soil pH must always be converted to hydrogen-ion activity before averaging” is too broad.
A useful way to specify the intended output is:
| Question | Appropriate output |
|---|---|
| What is the average of the zone pH readings, weighted by mapped area? | Equation 3, labeled area-weighted mean measured pH |
| What pH corresponds to mean mapped hydrogen-ion activity? | Equation 5, labeled pH of area-weighted mean H⁺ activity |
| What pH would a collected composite soil sample measure? | Collect and analyze a representative composite; an estimator requires empirical validation for the sampling and lab method |
| How much lime should be applied? | Use zone-specific, laboratory-calibrated recommendations and aggregate quantities if a total is needed |
The first two outputs describe mapped values. The latter two ask about soil chemistry and agronomic action and cannot be resolved by a logarithmic identity alone.
5. Why buffer pH needs its own treatment
Buffer pH is the pH measured under a specified laboratory buffer procedure. It helps infer reserve acidity and lime requirement. It is not interchangeable with ordinary soil pH, and laboratories use different buffer methods and calibration tables. For example, the University of Delaware’s Adams–Evans procedure uses both water pH and buffer pH, together with the target crop pH and sampling depth, to select a base lime rate [3].
One can write a mathematical transformation of mapped BpH readings:
where is buffer pH. But Equation 10 does not estimate mean reserve acidity, measured composite BpH, or a valid lime rate merely because BpH contains the letters “pH.” The observed reading depends on the test’s chemical buffer and its calibration to a recommendation. Likewise, a direct arithmetic mean of BpH values is only a descriptive mean of readings, not an automatically valid management recommendation.
For a zone-specific lime rate expressed in tons per acre and eligible acreage expressed in acres, the amount of lime is additive:
A field-equivalent rate, if operationally needed, follows as
This aggregates recommendations after applying the laboratory’s calibrated method in each zone. A uniform field rate from Equation 12 may still be inappropriate when variable-rate application is feasible; it summarizes total material, not the preferred spatial prescription.
6. The spatial problem: what does a zone actually represent?
An area weight is meaningful only after defining the support of the pH value. A point soil sample, a composite of several cores from a grid cell, an interpolated raster pixel, and a management polygon are different kinds of observations or estimates. Assigning one point sample’s pH to a 10-acre polygon does not mean that pH was measured at every location in the polygon. The polygon encodes a mapping assumption; its area is not a measure of analytical certainty.
6.1 Boundaries and partial intersections
Suppose a soil zone covers 12 acres, but only 3 acres fall inside the field being summarized. The field-level calculation must use the 3-acre intersection, not the full 12-acre source polygon. Where polygons overlap, the overlapping acres must not be counted twice; where coverage is missing, the area must not be assigned an invented pH. Define valid mapped coverage as
Report alongside the aggregate. If , Equations 3 and 5 describe the covered portion, unless a documented method estimates the uncovered portion. A perfectly computed weighted average can still be misleading when a substantial part of the field has no valid sample representation.
6.2 The aggregation scale changes the question
Aggregating 2.5-acre grid cells to a 40-acre field answers a different spatial question from aggregating the same cells to a 2,000-acre farm or a regional boundary. As the target expands, a single number can obscure acidic pockets and operational boundaries. If two fields both have the same mix of pH 5 and pH 7 acreage, they can have identical field summaries even if one has a contiguous acidic block and the other has scattered acidic strips. Their site-specific management implications differ.
Summaries also depend on where boundaries are drawn and on the resolution at which the original soil was sampled. A coarse composite sample can already blend distinct locations before GIS aggregation. No later transformation of its one reported pH can reconstruct the lost spatial detail. Research on grid size finds that sampling resolution affects how well maps capture within-field variation and the resulting application accuracy [4].
For that reason, a map-based report should keep both the numeric summary and spatial diagnostics: valid coverage, original sampling unit, area below a relevant threshold, and a map of the zones themselves. A mean alone cannot tell a grower where corrective action might be needed.
6.3 Re-aggregating from field to farm
When a platform rolls field summaries up to a farm, retain each field’s area and the statistic’s underlying scale. An area-weighted arithmetic mean pH may be rolled up with area weights. For an activity-based summary, transform each field result back to activity before weighting fields and transforming again:
Taking an arithmetic average of already back-transformed field pH values would silently change the estimand. Preserve the covered area and source-zone counts at each level so a farm-level result can be traced to its constituent fields.
7. Recommended reporting design for a precision agriculture platform
-
Preserve the measured values and provenance. Store soil pH, BpH, laboratory method, sample date, depth, and the geographic support assigned to each result. Do not mix incompatible methods or depths without a documented rule.
-
Name each aggregate by its estimand. Use “area-weighted mean measured pH” for Equation 3 and “pH of mean H⁺ activity” for Equation 5. Avoid the unqualified label “average pH” when both interpretations are plausible.
-
Display variation alongside a field summary. Report the observed range and the percentage of valid mapped area below an agronomically selected threshold :
The threshold must be selected for the crop, soil, and management question, not assumed universally.
-
Separate pH reporting from lime prescription. Apply the appropriate lab and regional recommendation to each management zone using the inputs it requires, including BpH where applicable. Aggregate resulting lime quantities only when a total is needed.
-
Validate the map and its support. Check polygon overlap, clipped area, missing coverage, sample-to-zone assignment, and changes in sampling resolution. Coarser composite samples can conceal within-field variability; grid sampling is used precisely to reveal spatial pH and fertility differences [4].
8. Limitations
This paper compares definitions of spatial summaries; it does not validate a particular sampling design, interpolation model, laboratory method, or lime recommendation. The numerical example is intentionally simplified. Mapped zones may derive from point samples or interpolated surfaces, and their apparent area can exceed the measurement support of the original sample. Area weighting does not correct sparse sampling, interpolation error, different depths, or inconsistent laboratory procedures.
Most importantly, transforming pH values to activity is mathematically required only when the target quantity is mean hydrogen-ion activity. It is not a universal correction for all uses of soil pH and should not be applied mechanically to BpH.
Conclusion
An arithmetic area-weighted mean of soil pH and a back-transformed area-weighted mean hydrogen-ion activity answer different questions. In an example with equal areas at pH 5 and pH 7, they yield 6.00 and 5.30, respectively. Their meaning also depends on the map: the sampling support, clipped field coverage, zone boundaries, and aggregation level determine which acres contribute and which local conditions disappear into one number. A defensible spatial data product must specify both its statistic and its spatial support. For composite soil pH and lime recommendations, soil buffering, sampling design, and laboratory calibration matter more than choosing an averaging formula based only on the logarithmic pH definition. The strongest reporting approach retains zone-level values and geometry, labels aggregate statistics precisely, reports coverage and variation, and bases management actions on calibrated, zone-specific soil tests.
References
- Conyers, M. (2026). “Composite Soil Samples Reflect the Arithmetic Mean pH of the Individual Cores.” European Journal of Soil Science, 77(2), e70329. https://doi.org/10.1111/ejss.70329
- U.S. Geological Survey. Chapter A6, Section 6.4: pH. https://pubs.usgs.gov/publication/twri09A6.4
- Shober, A. L., Gartley, K. L., & Sims, J. T. (2025). “Calculating the Lime Recommendation Using the Adams–Evans Soil Buffer.” University of Delaware Cooperative Extension. https://www.udel.edu/canr/cooperative-extension/fact-sheets/calculating-lime-adams-evans-soil-buffer/
- Lessl, J., Virk, S., & Harris, G. H. (2024). “Soil Sampling Grid Size Considerations for Site-Specific Nutrient Management.” University of Georgia Cooperative Extension, Circular 1297. https://extension.uga.edu/publications/detail.html?number=C1297