The distance formula is derived from the Pythagorean Theorem because the length of one leg of the triangle will always be the difference of the x<span>-coordinates, and the length of the other leg will always be the difference in the </span>y<span>-coordinates</span>