Finding the Distance Between Two Points on a Coordinate Plane
For points (x₁, y₁) and (x₂, y₂), the distance is d = √[(x₂ − x₁)² + (y₂ − y₁)²].
More key points
- The formula comes from the Pythagorean theorem: the horizontal change and vertical change are the legs of a right triangle, and the distance between the points is its hypotenuse.
On this page13 sections
- The distance formula
- Why it works
- Worked example in different quadrants
- Keep the exact answer when the square root does not simplify
- Special cases: horizontal and vertical segments
- Choose a consistent subtraction order
- Use distance in coordinate geometry
- Common errors
- Exam takeaway
- Build the formula from horizontal and vertical change
- Calculate across different quadrants
- Recognize horizontal and vertical cases
- Exact answers, estimates, and units
On a coordinate plane, the straight-line distance between two points can be found without measuring a drawing. Compare how far the x-coordinates differ and how far the y-coordinates differ. Those changes form the legs of a right triangle, so the Pythagorean theorem gives the diagonal distance.
The distance formula
For points (x₁, y₁) and (x₂, y₂), use d = √[(x₂ − x₁)² + (y₂ − y₁)²]. The horizontal change is x₂ − x₁; the vertical change is y₂ − y₁. Squaring makes each contribution nonnegative, and the square root converts the sum of the squared leg lengths back into a length.
The point labels 1 and 2 simply distinguish the coordinates. You may subtract the coordinates in the opposite order and still get the same distance because each difference is squared. Keep the order consistent within each subtraction to reduce sign errors. The final distance cannot be negative.
Why it works
Draw horizontal and vertical segments from the endpoints to form a right triangle. The horizontal leg has length |x₂ − x₁|, and the vertical leg has length |y₂ − y₁|. If d is the diagonal, the Pythagorean theorem says d² = (x₂ − x₁)² + (y₂ − y₁)². Taking the principal square root gives the distance formula.
Absolute values describe the positive lengths of the legs, but they are not necessary in the formula because squaring a positive or negative difference gives the same result. The right angle comes from one segment being horizontal and the other vertical. This is why coordinate distance and the Pythagorean theorem are directly connected.
Worked example in different quadrants
Find the distance between A(−2, 1) and B(4, 9). Identify the coordinate changes: x₂ − x₁ = 4 − (−2) = 6, and y₂ − y₁ = 9 − 1 = 8. Then d = √(6² + 8²) = √(36 + 64) = √100 = 10 units.
The endpoints are 6 units apart horizontally and 8 units vertically. Those lengths form a 6–8–10 right triangle, which provides a visual check. A negative starting coordinate is handled with subtraction carefully: 4 − (−2) is 6, not 2.
Keep the exact answer when the square root does not simplify
Find the distance between (1, 2) and (6, 10). The changes are 5 and 8, so d = √(5² + 8²) = √89. Since 89 has no perfect-square factor greater than 1, √89 is the exact answer in simplest radical form. A calculator gives approximately 9.43 units, but use a decimal only if the question requests or permits an approximation.
A decimal is not automatically more exact than a radical. √89 represents the exact distance; 9.43 is a rounded estimate. If rounding is requested to the nearest tenth, calculate the decimal and round to 9.4. Keep enough digits until the final rounding step so intermediate rounding does not distort the result.
Special cases: horizontal and vertical segments
If two points have the same y-coordinate, they lie on a horizontal line. For (−3, 5) and (4, 5), the vertical change is 0, so d = √(7² + 0²) = 7. The distance is simply the absolute difference between the x-coordinates. If the points share an x-coordinate, the distance is the absolute difference between their y-coordinates.
These cases are useful checks. A point pair with identical x-coordinates should not produce a distance involving both a nonzero horizontal and vertical change. If the points are identical, both changes are zero and the distance is 0.
Choose a consistent subtraction order
Use (x₂ − x₁) and (y₂ − y₁), matching point 2 with point 1 in both terms. For A(−5, 7) and B(−1, 2), the changes are −1 − (−5) = 4 and 2 − 7 = −5. Then d = √(4² + (−5)²) = √41. The direction of travel affects the signs of the changes but not the length.
A frequent error is to subtract one x-coordinate from the other correctly but mix the y-values in a way that pairs coordinates from different points. Write the ordered pairs on separate lines before substituting: x₁ and y₁ come from the first point; x₂ and y₂ come from the second. Parentheses help when subtracting negative coordinates.
Use distance in coordinate geometry
The formula can verify whether a triangle has equal sides. For vertices A(0, 0), B(3, 0), and C(3, 4), AB = 3, BC = 4, and AC = √(3² + 4²) = 5. Because all three side lengths differ, the triangle is scalene. To test for a right angle, compare the squares of the side lengths: 3² + 4² = 5².
Distance can also describe travel on a map or a grid, but distinguish straight-line distance from a route that follows streets. If a coordinate model treats each unit as one mile, the formula gives the direct distance through the plane. A route that turns at street corners may be longer and needs a different calculation.
Common errors
- Adding coordinate differences without squaring them. Distance uses the sum of their squares.
- Forgetting the square root at the end, leaving d² instead of d.
- Using the difference in x twice or mixing an x-coordinate with a y-coordinate.
- Treating a negative change as a negative length. Square the signed difference or use its absolute length.
- Rounding each coordinate difference or square too early. Preserve exact values until the final step.
- Reporting an approximate decimal when an exact radical is requested, or reporting a radical when a rounded value is required.
- Confusing straight-line distance with a path that follows a grid or road network.
Exam takeaway
Subtract x-coordinates, subtract y-coordinates, square both differences, add, and take the square root. Think of the differences as perpendicular legs of a right triangle. Simplify the radical, keep an exact value unless rounding is requested, and confirm that the result is nonnegative and measured in the units of the coordinates.
Build the formula from horizontal and vertical change
Between points (x₁, y₁) and (x₂, y₂), the horizontal change is x₂ − x₁ and the vertical change is y₂ − y₁. Those perpendicular changes form the legs of a right triangle; the straight-line distance is its hypotenuse. The Pythagorean theorem therefore gives d = √[(x₂ − x₁)² + (y₂ − y₁)²]. The order within each subtraction does not change the result because each difference is squared.
Calculate across different quadrants
Find the distance from (−3, 4) to (5, −2). The changes are 5 − (−3) = 8 and −2 − 4 = −6. Then d = √(8² + (−6)²) = √100 = 10 units. Keeping parentheses around negative coordinates prevents the common error of treating subtraction of a negative as subtraction of a positive.
Recognize horizontal and vertical cases
If two points share the same y-coordinate, the segment is horizontal and the distance is the absolute difference between their x-coordinates. If they share the same x-coordinate, use the absolute difference between their y-coordinates. For example, the distance from (2, −4) to (2, 7) is |7 − (−4)| = 11. The general formula still works: its zero change contributes zero when squared.
Exact answers, estimates, and units
Leave a square root in exact form when the directions ask for an exact answer. If the radicand is a perfect square, simplify it; √50 becomes 5√2. Round only when requested, and follow the specified place value. A distance between coordinates measured in miles is in miles, while the squared differences inside the radical are in square miles and return to miles after taking the square root.
The formula gives straight-line distance, sometimes called displacement in a coordinate setting. It does not measure a route that follows streets, walls, or other turns. On a grid, compare the question’s wording with the diagram: a path length may require adding horizontal and vertical segments, while a direct segment uses the distance formula.
Common questions
Does the order of the points change the distance?
No. Reversing the subtraction changes the signs of both coordinate differences, but squaring them gives the same distance.
Should I use absolute value in the distance formula?
It is not required because the differences are squared. Absolute value is useful when describing each leg’s positive length.
Do I always need a decimal answer?
No. A simplified radical is exact. Use a decimal approximation only when the problem requests one or its context requires a rounded measurement.
Does it matter which point is written first?
No. Reversing the order changes the signs of both coordinate differences, but squaring them gives the same distance.