The capillary zone plays a crucial role in migration and transformation of pollutants. Light nonaqueous liquids (LNAPLs) have become the main organic pollutant in soil and groundwater environments. However, few studies have focused on the concentration distribution characteristics and quantitative expression of LNAPL pollutants within capillary zone. In this study, we conducted a sandbox-migration experiment using diesel oil as a typical LNAPL pollutant, with the capillary zone of silty sand as the research object. The variation characteristics of LNAPL pollutants (total petroleum hydrocarbon) concentration and environmental factors (moisture content, electrical conductivity, pH, and oxidationreduction potential) were essentially consistent at different locations with the same height. These characteristics differed within range of 10.0–50.0 cm and above 60.0 cm from groundwater. A model for quantitative expression of concentrations was constructed by coupling multiple environmental factors of 968 sets-7744 data via random forest algorithm. The goodness of fit (R2) for both training and test sets was greater than 0.90, and the mean absolute percentage error (MAPE) was less than 16.00 %. The absolute values of relative errors in predicting concentrations at characteristic points were less than 15.00 %. The constructed model can accurately and quantitatively express and predict concentrations in capillary zone.