Distance Formula

Distance formula is a formula for finding the distance between two points in the coordinate plane, derived directly from the Pythagorean theorem.

The Formula

d=(x2−x1)2+(y2−y1)2

Ask yourself: Do I have two points' coordinates and need the length of the segment joining them?

Quick example

Distance from (1,2) to (4,6): d=(4−1)2+(6−2)2=9+16=25=5

Notation

d for distance; (x1,y1) and (x2,y2) are the two points

What this formula means

A formula for finding the distance between two points in the coordinate plane, derived directly from the Pythagorean theorem.

The distance formula is how a crow flies across a city laid out in square blocks. A taxi must drive 3 blocks east and 4 north, 7 blocks in all; the crow flies the hypotenuse, 5 blocks. Real cities have uneven blocks and hills, but on the coordinate grid the crow's path is exact.

Formal view

d(P1,P2)=(x2−x1)2+(y2−y1)2 in R2; generalization: d(P,Q)=∑i=1n(qi−pi)2 in Rn; derived from the Pythagorean theorem

Worked examples

Example 1

easy
Find the distance between the points (1,2) and (4,6).
Show solution

Answer

d=5

First step

1.
The distance formula is derived from the Pythagorean theorem: the horizontal and vertical separations form the legs of a right triangle, and the distance is the hypotenuse. d=(x2−x1)2+(y2−y1)2.

Full solution

  1. 2.
    Identify the coordinates: (x1,y1)=(1,2) and (x2,y2)=(4,6). Compute the differences: x2−x1=3, y2−y1=4.
  2. 3.
    Substitute: d=32+42=9+16=25=5. Recognise the 3-4-5 Pythagorean triple — no calculator needed.
The distance formula is a direct application of the Pythagorean theorem on the coordinate plane. The horizontal and vertical differences form the legs of a right triangle, and the distance is the hypotenuse.

Example 2

medium
Find the distance between (−3,5) and (2,−7).

Example 3

medium
Show that the points A(1,1),B(4,5),C(8,2) form a right triangle.

Common mistakes

  • Forgetting to square the differences before adding — you must square each coordinate gap, then add, then root.
  • Adding before squaring (taking (x2−x1)+(y2−y1)) — square first, sum the squares, then take the root.
  • Mixing coordinates — subtract x from x and y from y; the order within each pair does not matter because the differences are squared.

Why this formula matters

The distance formula measures any slanted segment from coordinates alone, with no ruler: the side lengths of a triangle on a grid, the radius of a circle through a given point, the straight-line distance a map app reports. It is the tool behind coordinate proofs and the equation of a circle. Adding the gaps without squaring gives the walking distance along the grid, which is longer.

Frequently asked questions

What is the Distance Formula formula?

A formula for finding the distance between two points in the coordinate plane, derived directly from the Pythagorean theorem.

How do you use the Distance Formula formula?

Use the distance formula when you have two points' coordinates and need the length between them: how far apart, the length of a side, the radius from a center to a point. If the points share an x or a y value, just subtract the other coordinates. If the question asks for the point halfway between, use the Midpoint Formula; if it asks how steep the segment is, use slope. If the legs of a right triangle are already given as lengths, use the Pythagorean theorem directly.

What do the symbols mean in the Distance Formula formula?

d for distance; (x1,y1) and (x2,y2) are the two points

Why is the Distance Formula formula important in Math?

The distance formula measures any slanted segment from coordinates alone, with no ruler: the side lengths of a triangle on a grid, the radius of a circle through a given point, the straight-line distance a map app reports. It is the tool behind coordinate proofs and the equation of a circle. Adding the gaps without squaring gives the walking distance along the grid, which is longer.

What do students get wrong about Distance Formula?

The procedure for distance formula is the easy part; the trap is forgetting to square the differences before adding. Asking "Do I have two points' coordinates and need the length of the segment joining them?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Distance Formula formula?

Before studying the Distance Formula formula, you should understand: pythagorean theorem, coordinate plane, square roots.