The imaging through scattering media has significant applications in fields, including rescue and security. However, the phasor field algorithm ignores the effect of the additional optical path introduced by the scattering medium for the imaging of the hidden objects behind scattering media. To improve the accuracy, a modified phasor field diffraction method combined with the spatial average path for depth-resolved imaging through scattering media is proposed here. The additional optical path introduced by the scattering medium is resolved through the spatial average path, while the phasor field describes the free-space propagation of the light in air. We verify the feasibility and robustness of the proposed method on public transient data, real scenes and synthetic data. The results demonstrate that the higher-quality results with the proposed method are obtained, and the accurate depth information of objects is provided compared with the phasor field, as evidenced by evaluating the mean depth. This method has potential applications in medical imaging, remote sensing and other fields.