The early detection of infected hydronephrosis is critical before lithotripsy. A feasible and noninvasive diagnostic method is of considerable clinical attention.This retrospective study was performed to find some quantitative evaluation parameters of B-mode Gray-scale ultrasound histogram analysis that might assist the early diagnosis of infected hydronephrosis and test their diagnostic efficacy.The ultrasound images and clinical data of 245 patients with hydronephrosis were retrospectively analyzed. Image J software was applied to obtain the gray-scale maps and the analysis results of the signal strength. The difference in the data between the infected and non-infected groups and the diagnostic value of the parameters were calculated.In this retrospective study, 70 patients with infected hydronephrosis and 175 patients with non-infected hydronephrosis were enrolled. The echogenicity of internal effusion and the echogenicity ratio of infected cases were significantly higher than those of non-infected cases (p < 0.05). The cutoff values were 23.82 (AUC = 0.859) of echogenicity of internal effusion, while 0.27 (AUC = 0.832) of echogenicity ratio.The quantitative evaluation of gray-scale ultrasound histogram is an objective and reliable method in differentiating infected from non-infected hydronephrosis.