Aim: To detect the kidney stones in ultrasound images using median filters to improve the detection rate in terms of accuracy and sensitivity. Materials and Methods: The accuracy and sensitivity of median filter (n=114) was compared with rank filter (n=114). The median filter is used to detect the kidney stone in ultrasound images. 114 is the sample size taken with the p-value 0.8 and has been used to improve detection rate of kidney stones in terms of accuracy and sensitivity using Matlab simulation tool. Results: According to the results obtained Median filter has accuracy (86.4%) and rank filter has accuracy (82.2%) and also sensitivity of median filter (87.7%) and sensitivity of rank filter is (82.5%). Median filter has a significantly higher accuracy (p=0.018) and sensitivity (p=<0.01) compared with the rank filter. Conclusion: The detection rate is improved using the Median filter compared with rank filter in terms of accuracy and sensitivity.