Find a course

Module 3: The Converse, Coordinates and 3DLesson 8 of 1111 min

Distance on the Coordinate Plane

Find the distance between two points by drawing a right triangle on the grid, then generalize it into the distance formula.

Step 1 of 11Learn

Every slanted segment hides a triangle

Two friends are standing on a city map laid out as a grid. One is at the point (1, 1) and the other at (7, 9), with each grid unit equal to one block. How far apart are they in a straight line?

Draw a horizontal line from (1, 1) to (7, 1) and a vertical line from (7, 1) up to (7, 9). Together with the straight segment between the friends, these make a right triangle, because horizontal and vertical lines always meet at 90°.

  • The horizontal leg runs from x = 1 to x = 7: length 7 − 1 = 6.
  • The vertical leg runs from y = 1 to y = 9: length 9 − 1 = 8.
  • The distance is the hypotenuse: √(62 + 82) = √100 = 10 blocks.

That's the whole idea. Any slanted segment on a grid is the hypotenuse of a right triangle whose legs are the change in x (often called the run) and the change in y (the rise).

Distances along grid lines are easy: just subtract coordinates. The Pythagorean theorem lets you find distances in every other direction too.

Points (1, 1) and (7, 9) on a grid joined by a slanted segment, with a run of 6 and a rise of 8 forming a right triangle(1, 1)(7, 9)run 6rise 8distance 10

Step 2 of 11Practice · Work it out

What is the straight-line distance between the points (2, 3) and (5, 7)?

Step 3 of 11Learn

The distance formula

If you write the grid method with letters, you get the distance formula. For points (x1, y1) and (x2, y2):

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

It's just the Pythagorean theorem with the legs written as coordinate differences.

Example: the distance from (−3, 4) to (5, −2).

  • Change in x: 5 − (−3) = 8
  • Change in y: −2 − 4 = −6
  • d = √(82 + (−6)2) = √(64 + 36) = √100 = 10

Notice the change in y came out negative. That's fine, because squaring makes it positive: (−6)2 = 36. A length is never negative, and the squares guarantee it. It also means the order of the points doesn't matter. Going from (5, −2) to (−3, 4) gives differences of −8 and 6, and the squares are the same.

The most common mistake is with negative coordinates. Subtracting a negative means adding: 5 − (−3) = 8, not 2. When a point has a negative coordinate, put it in parentheses as you substitute, and the signs take care of themselves.

Step 4 of 11Try the calculator

Distance between two points

Enter two points and see the run, the rise and the distance. Try points with negative coordinates to see that squaring removes the sign.

Change in x
8
Change in y
-6
Distance
10
Distance along grid lines (taxicab)
14

Step 5 of 11Practice · Spot the mistake

Sam found the distance from (−2, 1) to (4, 9). Tap the line with the first mistake.

Step 6 of 11Practice · Work it out

Find the distance between (−1, −2) and (11, 3).

Step 7 of 11Note

Step 8 of 11Learn

Straight-line distance versus grid distance

On a city grid, you usually can't walk through buildings. The distance you actually walk along the streets is the change in x plus the change in y, sometimes called taxicab distance. The straight-line distance from the distance formula is how a bird, a drone or a radio signal would travel.

From (1, 1) to (7, 9), the taxicab distance is 6 + 8 = 14 blocks, but the straight-line distance is 10 blocks. The straight line is always shorter unless the two points are on the same horizontal or vertical line, in which case the two distances are equal.

This shows up in practical questions. A drone delivery service quotes straight-line distance. A delivery driver's GPS quotes street distance. Neither is wrong; they measure different things. When you solve a word problem, ask which one the situation needs: "how far apart," "as the crow flies," "direct" and "straight line" point to the distance formula.

You can also use the distance formula to check shapes. To show that a triangle on the grid is a right triangle, find all three side lengths with the formula and test them with the converse. To show a quadrilateral is a square, check that all four sides are equal and the two diagonals are equal.

Step 9 of 11Practice · Chart

Walking the grid vs flying straight

For which trip are the two distances equal?

Tap the bar that answers the question, then press Check.

Walking the grid vs flying straightBar chart with 3 categories: (1, 1) to (7, 9): Grid distance 14 blocks, Straight-line distance 10 blocks; (2, 3) to (5, 7): Grid distance 7 blocks, Straight-line distance 5 blocks; (0, 0) to (5, 0): Grid distance 5 blocks, Straight-line distance 5 blocks.0 blocks5 blocks10 blocks15 blocks(1, 1) to (7, 9)(2, 3) to (5, 7)(0, 0) to (5, 0)14 blocks10 blocks7 blocks5 blocks5 blocks5 blocks
Walking the grid vs flying straight
ItemGrid distanceStraight-line distance
(1, 1) to (7, 9)14 blocks10 blocks
(2, 3) to (5, 7)7 blocks5 blocks
(0, 0) to (5, 0)5 blocks5 blocks

Step 10 of 11Practice · Choose one

A drone flies directly from (0, 0) to (9, 12) on a map where each unit is 100 meters. How far does it fly?

Step 11 of 11Practice · Work it out

A triangle has vertices A(0, 0), B(6, 0) and C(6, 8). Find the length of side AC.