Debris flows continuously erode the channel downward and sideways during formation and development, which changes channel topography, enlarges debris flow extent, and increases the potential for downstream damage. Previous studies have focused on debris flow channel bed erosion, with relatively little research on lateral erosion, which greatly limits understanding of flow generation mechanisms and compromises calibration of engineering parameters for prevention and control. Sidewall resistance and sidewall shear stress are key to the study of lateral erosion, and the distribution of the flow field directly reflects sidewall resistance characteristics. Therefore, this study has focused on three aspects: flow field distribution, sidewall resistance, and sidewall shear stress. First, the flow velocity distribution and sidewall resistance were characterized using laboratory debris flow experiments, then a debris flow velocity distribution model was established, and a method for calculating sidewall resistance was developed based on models of flow velocity distribution and rheology. A calculation method for the sidewall shear stress of debris flow was then developed using the quantitative relationship between sidewall shear stress and sidewall resistance. Finally, the experiment was validated and supplemented through numerical simulations, enhancing the reliability and scientific validity of the research results. The study provides a theoretical basis for the calculation of the lateral erosion rate of debris flows.