Abstract The total pressure loss is a critical issue in the design of internal flow channels for hypersonic vehicles. In the flow through the streamwise corner region, the adjacent walls induce secondary flows that exacerbate the viscous effects, thereby intensifying the total pressure loss. This study investigates the impact of the corner’s dihedral angle and the compressibility of the flow on the total pressure loss in the streamwise corner region. The results indicated that as the dihedral angle increases, the distribution of the total pressure contour in the corner region became significantly distorted. The proportion of the boundary layer area within the corner region concurrently increased as the dihedral angle deviates from 90 degrees. Furthermore, we deduce that the total pressure loss is the largest in the supersonic flat plate boundary layer. This paper normalized the total pressure loss coefficient for different dihedral angles in the corner region and established an empirical relationship for the distribution of normalized total pressure loss coefficients along the flow path. It is discovered that under supersonic inflow conditions, the distribution law of the total pressure loss in the corner region exhibits higher predictive accuracy.