Distance Between Two Points
After this page you can use coordinate differences to find the distance between two points and simplify an exact square-root result.
Build distance from two changes
A coordinate pair locates a point with a horizontal position and a vertical position. Subtract the x-coordinates to get the horizontal change, and subtract the y-coordinates to get the vertical change. The distance formula combines them: d = √((x₂ − x₁)² + (y₂ − y₁)²).
find the distance between A=(1,2) and B=(5,5)The horizontal change is 4 and the vertical change is 3. Their squares sum to 25, so the distance is 5 units. Either subtraction order works because each difference is squared.
Simplify an exact radical
A distance need not be a whole number. Add the squared differences, then simplify the square root by factoring out the largest perfect square. Keep the result in radical form rather than rounding it.
find the distance between A=(-2,1) and B=(4,-3)The squared changes sum to 52. Since 52 = 4 × 13, the distance simplifies to 2√13 units.
Work with fractional coordinates
The same formula applies when coordinates are fractions. Subtract with common denominators, square each fraction, and add before taking the square root.
find the distance between A=(1/2,1/3) and B=(1,1)Here the differences are 1/2 and 2/3. Their squares sum to 25/36, giving the exact distance 5/6. Edit the points to practice another pair.
Practice
Practice: problems like this one, made and checked in your browser.
Recap
- Distance comes from the horizontal and vertical changes between two points.
- Square both differences, add them, and take the nonnegative square root.
- Leave an irrational distance as a simplified radical when an exact answer is wanted.