JentooACT®

ACT® · Math: Geometry — Coordinate Geometry and Conic Sections

The Distance Formula

The distance formula finds the straight-line length between two points by treating that segment as the hypotenuse of a right triangle built from the horizontal and vertical gaps between them.

Plot two points anywhere on a coordinate plane. Draw a horizontal line from one and a vertical line from the other, and they meet at a right angle, forming a right triangle. The straight-line distance you want is the hypotenuse of that triangle. The legs are just the horizontal gap between the x-coordinates and the vertical gap between the y-coordinates. Once you see those two numbers as legs, the Pythagorean theorem a2 + b2 = c2 hands you the answer directly: distance = √((x2-x1)2 + (y2-y1)2). There's no new idea here, only an old one applied sideways.

The order you subtract in doesn't matter. If you compute x1-x2 instead of x2-x1, you get the negative of the horizontal gap, but squaring it wipes out the negative sign. Same for the vertical gap. So the formula is forgiving about order as long as you're consistent within each difference, and the final distance always comes out positive, as a length should.

This formula is the first tool in coordinate geometry, and everything after it leans on the same right-triangle picture. The midpoint formula averages the same coordinates instead of subtracting them, slope uses the same rise and run but divides instead of applying Pythagoras, and later the equation of a circle is just the distance formula set equal to a fixed radius. Get comfortable seeing the legs of a hidden right triangle in any pair of points, and the rest of coordinate geometry reads as variations on that one move.

Key terms

Hypotenuse
The longest side of a right triangle, opposite the right angle, which here equals the distance between the two points.
Legs
The two shorter sides of a right triangle, formed here by the horizontal and vertical gaps between the points.
Pythagorean theorem
The rule that a2 + b2 = c2 for a right triangle with legs a and b and hypotenuse c.
Coordinate plane
The grid formed by a horizontal x-axis and vertical y-axis used to locate points with ordered pairs.

Watch it explained

  1. How it worksHow does the horizontal gap and the vertical gap between two points become the legs of a right triangle?
  2. Worked exampleFind the distance between the points (-3, 2) and (5, 8).
  3. Worked exampleFind the longest side of the triangle with vertices (0, 0), (6, 0) and (2, 7).
  4. Common mistakeWhy doesn't subtracting the coordinates in the opposite order change the distance you end up with?

Check yourself

Your turneasy1 of 3
Find the distance between the points (-4, 4) and (10, 9).

End of topic.