Skip to main content

Distance Formula

The distance formula finds the distance between two points on a coordinate plane: d = √((x2 - x1)² + (y2 - y1)²). In Elementary Algebra, you use it to measure straight-line distance from coordinates.

Last updated July 2026

What is the Distance Formula?

The distance formula is the algebra shortcut for finding the straight-line distance between two points on a coordinate plane. In Elementary Algebra, you use it when you know the coordinates of two points and want the exact distance instead of estimating by counting grid squares.

The formula is d = √((x2 - x1)² + (y2 - y1)²). The x-values give you the horizontal change, and the y-values give you the vertical change. After you subtract, square both differences, add them, and take the square root.

This formula comes from the Pythagorean Theorem. If you draw a right triangle connecting the two points, the horizontal and vertical sides are the legs, and the distance between the points is the hypotenuse. That is why the formula has a square root and why both coordinate differences are squared.

A small example makes the setup clearer. For points (1, 2) and (4, 6), the distance is √((4 - 1)² + (6 - 2)²) = √(3² + 4²) = √25 = 5. The answer is not 7, because you do not add the coordinate values themselves. You measure the changes first, then combine them.

The formula works no matter where the points are on the plane, including negative coordinates or points in different quadrants. The signs can look tricky, but the squares remove the negatives. That means the distance is always nonnegative, which matches what distance should be.

Why the Distance Formula matters in Elementary Algebra

The distance formula gives you a precise way to measure on a graph, which comes up any time Elementary Algebra moves from solving equations to working with coordinate geometry. It turns a picture into a calculation, so you can answer questions that ask for length, spacing, or travel between two locations.

It also connects algebra to geometry. Instead of treating graphs as just lines and points, you start using coordinate values to find actual measurements. That shows up in problems about the length of a segment, the diagonal of a rectangle, or the distance between two cities on a map drawn on a coordinate grid.

This term also supports uniform motion applications because distance is one part of the distance-rate-time relationship. Even when the formula you use is d = rt, the idea of distance is the same: it is the amount of space covered between a starting point and an ending point. Knowing how to measure distance on a graph helps you keep that idea clear.

You will also see the distance formula as a check on your graphing skills. If you can plot points correctly and interpret the changes in x and y, you are in good shape for coordinate-plane problems. If the setup is wrong, the answer will be off even if your arithmetic is fine.

Keep studying Elementary Algebra Unit 3

How the Distance Formula connects across the course

Pythagorean Theorem

The distance formula comes directly from the Pythagorean Theorem. When you draw a right triangle between two points, the horizontal and vertical changes are the legs, and the distance is the hypotenuse. If you know the theorem well, the formula feels less random and easier to remember.

Coordinate Plane

You use the distance formula on a coordinate plane, where each point has an x-value and a y-value. The formula depends on reading those coordinates correctly and finding the change in each direction. If a point is plotted wrong, the distance will be wrong too.

Euclidean Distance

Euclidean distance is the formal math name for the straight-line distance between two points. In Elementary Algebra, the distance formula is the version you actually compute by hand. It contrasts with measuring along a path or counting grid spaces, which are not the same thing.

Average Speed

Average speed connects to distance because it uses distance over time. In uniform motion problems, you may find distance, then divide by time to get speed, or use speed to predict distance traveled. The distance formula can describe the straight-line change between two positions before you plug into motion equations.

Is the Distance Formula on the Elementary Algebra exam?

A quiz or problem-set question will usually give you two points and ask for the distance between them, or it will hide the same idea inside a geometry or motion problem. Your job is to set up the formula correctly, subtract the coordinates in the right order, square both differences, and simplify the radical if possible.

The most common mistake is forgetting that you are finding changes, not adding coordinates. Another easy error is mixing up x- and y-values or dropping a negative sign too early. Since the differences are squared, the sign will disappear, but only after you compute the subtraction first. If the answer is a radical, leave it exact unless the problem asks for a decimal.

The Distance Formula vs Distance on a Number Line

Distance on a number line uses one coordinate and finds how far apart two numbers are in a straight line. The distance formula is for two-dimensional points, so you need both x and y changes. If the problem has a coordinate pair, use the distance formula, not number-line subtraction.

Key things to remember about the Distance Formula

  • The distance formula finds the straight-line distance between two points on a coordinate plane.

  • It is d = √((x2 - x1)² + (y2 - y1)²), and it comes from the Pythagorean Theorem.

  • Always subtract coordinates first, then square the differences, add, and take the square root.

  • Negative coordinates are not a problem because squaring removes the sign.

  • In Elementary Algebra, this formula shows up in coordinate geometry, word problems, and uniform motion applications.

Frequently asked questions about the Distance Formula

What is the distance formula in Elementary Algebra?

The distance formula is d = √((x2 - x1)² + (y2 - y1)²). It finds the straight-line distance between two points on a coordinate plane. You use it when a problem gives you coordinates and asks how far apart the points are.

How do you use the distance formula?

Start by identifying the two points, then subtract the x-values and the y-values. Square each difference, add them, and take the square root of the result. A common mistake is plugging in the coordinates without first finding the differences.

Is the distance formula the same as the Pythagorean Theorem?

They are related, but not identical. The distance formula is built from the Pythagorean Theorem and uses it on a coordinate plane. The theorem gives you a^2 + b^2 = c^2, while the distance formula solves that setup for the length between two plotted points.

When do you use the distance formula instead of d = rt?

Use the distance formula when you need the straight-line distance between two points on a graph. Use d = rt for uniform motion problems where distance depends on rate and time. They both involve distance, but they answer different kinds of questions.