Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

The distance formula gives the length of the straight line segment between two points on a coordinate plane. It is one of the most useful tools in geometry because it connects coordinates, graphing, and measurement. Instead of using a ruler, you can calculate an exact distance from the points' x and y values.

This matters in geometry, physics, mapping, computer graphics, and any situation involving position.

Understanding Geometry: The Distance Formula

The distance method works because two points can be used to build a right triangle. Start at one point and move horizontally until you are directly above or below the other point. Then move vertically to reach the second point.

These two moves form the legs of a right triangle. The straight segment between the original points is the hypotenuse. The Pythagorean theorem connects the three side lengths, so it turns the horizontal and vertical movements into one straight-line length.

This is why the method works on a flat coordinate grid. It measures ordinary straight-line distance, sometimes called Euclidean distance.

A reliable solution begins by matching each coordinate with the correct point. Find the horizontal change by subtracting the first horizontal coordinate from the second. Find the vertical change in the same way.

Either change may be negative, which only tells you the direction of travel. A point may lie left, right, above, or below the other point. Before finding the final length, square each change.

Squaring removes the sign and represents the area contribution from each leg of the triangle. Add those squared values, then take the square root. Keep the square root form when it cannot simplify exactly, since it is an exact answer.

It helps to check special cases before doing a full calculation. If two points have the same vertical coordinate, the segment is horizontal. Its length is simply the positive difference between the horizontal coordinates.

If they have the same horizontal coordinate, use the positive difference between the vertical coordinates. If both coordinates match, the points are the same location and the distance is zero. A quick graph can catch common errors.

The horizontal and vertical changes should agree with the direction seen on the grid. A very long-looking segment should not produce a tiny answer.

Students meet this idea whenever a position is described by two numbers. On a map grid, it can estimate the direct separation of two locations. In a video game, it can help a program decide how far a character is from an object.

In science labs, plotted measurements often create points whose separation has meaning. The same reasoning extends to three dimensions by including a third change for height or depth.

In that case, the squared change in the third direction joins the other two before the square root is taken. The most frequent mistakes are mixing coordinates from different points, forgetting parentheses around negative values, and stopping before the square root step.

Key Facts

  • Distance formula: d = sqrt((x2 - x1)^2 + (y2 - y1)^2)
  • Horizontal change: Δx = x2 - x1
  • Vertical change: Δy = y2 - y1
  • The distance formula comes from the Pythagorean theorem: a^2 + b^2 = c^2
  • For points A(x1, y1) and B(x2, y2), the distance d is the length of segment AB.
  • Squaring Δx and Δy makes the distance nonnegative, so the order of the points does not change the answer.

Vocabulary

Distance formula
A formula used to find the straight-line distance between two points on a coordinate plane.
Coordinate plane
A flat grid formed by a horizontal x-axis and a vertical y-axis where points are located by ordered pairs.
Ordered pair
A pair of numbers written as (x, y) that gives the location of a point on the coordinate plane.
Horizontal change
The difference in x-values between two points, often written as Δx.
Vertical change
The difference in y-values between two points, often written as Δy.

Common Mistakes to Avoid

  • Forgetting to square both coordinate differences is wrong because the formula depends on the legs of a right triangle, so both Δx and Δy must be squared.
  • Subtracting coordinates in different orders is wrong because each difference must use the same point order, such as x2 - x1 and y2 - y1.
  • Leaving the answer as d^2 instead of d is wrong because distance is the square root of the sum, not just the sum of the squares.
  • Treating negative coordinate differences as negative distances is wrong because distance is always nonnegative and the squares remove sign direction.

Practice Questions

  1. 1 Find the distance between A(2, 3) and B(8, 11).
  2. 2 Find the length of the segment with endpoints P(-4, 5) and Q(6, -7).
  3. 3 Explain why the distance from A to B is the same as the distance from B to A, even though the coordinate differences may have opposite signs.