Distance between two points calculator
The distance between two points on a plane is the length of the line segment joining them. If you plot the points on a set of coordinate axes, the segment AB is the hypotenuse of a right-angled triangle whose two shorter sides are the differences between the coordinates.
How it works
By Pythagoras’ theorem, the distance between the points A(x1, y1) and B(x2, y2) is
The order of the points does not matter, because the difference is squared, so the minus sign disappears.
For the points A(1, 2) and B(4, 6) we first subtract the coordinates:
Substituting into the formula:
The points are exactly 5 units apart. The same calculation lies behind the length of the vector
Chapters: Quadratic equation calculator, Linear equation calculator, Simultaneous equations calculator, Distance between two points calculator, Midpoint of a line segment calculator, Equation of a line through two points calculator, Rounding calculator, Standard form calculator, Mixed number and fraction calculator