In this paper, statistical method is used to find the defect in tablets. In order to find the defect, RGB image is converted into gray and then to binary. The binary image have noise so in order to remove noise, morphology opening is used. Boundaries of the output are detected after pre processing. After this process determine the roundness of tablet, find area and perimeter of each tablet. After calculating area and perimeter, find the metric. Metric closer to 1 indicates that tablet is not broken or is completely round.