The distance formula is used to find the distance between any two given points. D x 1 -x 2 2 y 1 -y 2 2 How the Distance Formula Works. For horizontal lines and vertical lines the distance is determined by checking their difference.
The formula states that.
Where D is the distance between x1 y1 and x2y2. To find distance between points Ax_A y_A and Bx_B y_B we use formula. This formula has been derived from the Pythagorean Theorem. If the lengths of the sides are a and b then by the Pythagorean Theorem.