Geometry · Grade 8
Distance on the Coordinate Plane
Quick answer
Two points that share a coordinate are a subtraction apart. Two that share neither are the hypotenuse of a right triangle whose legs run across and up, so the Pythagorean theorem gives the distance. That is all the distance formula is — a² + b² = c² with the legs written as differences of coordinates.
What you'll learn
- Find the distance between two points on the coordinate plane
- Explain where the distance formula comes from
- Find the perimeter and area of a polygon drawn on a grid
When the points line up
If two points share a coordinate, they sit on a grid line and no formula is needed.
The matches, so the points lie on a vertical line, and the distance is the difference in with the sign stripped by absolute value.
When they do not
Two points sharing neither coordinate are the ends of a hypotenuse.
Draw a horizontal leg and a vertical leg. They meet at a right angle, so the Pythagorean theorem applies:
The distance formula is that, written down
Compare it with :
| Theorem | Formula | Meaning |
|---|---|---|
| the horizontal leg | ||
| the vertical leg | ||
| the hypotenuse |
The formula is not a new fact. It is the Pythagorean theorem with the legs expressed as coordinate differences, and the square root moved to the front because you want rather than .
Working an example
Find the distance from to .
The squared to , so the negative never reached the answer.
Polygons on a grid
A polygon’s vertices are coordinates, so its perimeter is a sum of distances.
Two sides lie along grid lines, so they are subtractions:
The third is slanted, so it needs the formula:
The area is easier, because the right angle means the two grid-line sides are the base and height:
That the perimeter and area both come to is a coincidence of this triangle, not a rule — one is a length and the other an area.
Why the coordinate plane makes distance computable
Before coordinates, finding a distance meant measuring it. With coordinates it becomes arithmetic on two pairs of numbers, and that changes what is possible.
A computer has no ruler. Every distance it calculates — how far a character is from a wall, whether two circles overlap, which of a thousand points is nearest — runs through this formula. The screen has coordinates, so the geometry becomes subtraction, squaring and a square root.
It also runs in three dimensions, with one more term under the root:
The reason is the same. The third axis is perpendicular to the other two, so the theorem applies again.
Worked examples
Common mistakes
Practice problems
-
Find the distance from to .
Answer
Full solution
The matches, so .
-
Find the distance from to .
Answer
Full solution
.
-
Find the distance from to .
Answer
Full solution
Differences of and : .
-
Find the distance from to .
Answer
Full solution
Both lie on the -axis: .
-
Find the distance from to .
Answer
Full solution
Differences of and again: .
-
Find the distance from to , leaving the answer exact.
Answer
Full solution
, which is irrational and cannot be simplified.
-
Find the distance from to .
Answer
Full solution
and , giving .
-
A rectangle has corners , , , . Find its perimeter.
Answer
Full solution
Width , height , so .
-
A triangle has vertices , and . Find its perimeter.
Hint
Which side needs the formula?
Answer
Full solution
Two sides lie on grid lines: base and height .
The hypotenuse needs the formula: .
Perimeter: .
-
Finding the distance from to , Ana writes . Find her error.
Hint
Is the direct route longer or shorter than going across then up?
Answer
She added the legs instead of using the theorem. The distance is .
Full solution
Her differences are right: across and up. Adding them measures the route that goes across and then up, which is two sides of a right triangle.
The distance between the points is the hypotenuse, the direct route:
.
A sense check settles it without any arithmetic. The straight line between two points is always shorter than any path that turns a corner, so an answer of has to be too large.
Frequently asked questions
What is the distance formula?
d = √((x₂ − x₁)² + (y₂ − y₁)²). It is the Pythagorean theorem with the legs written as the differences in x and y.
Do I need the formula if the points line up?
No. If two points share an x or a y they lie on a grid line, so subtract the other coordinate and take the absolute value.
Does the order of subtraction matter?
No. Each difference is squared, and squaring removes the sign, so subtracting either way gives the same distance.
Why is there a square root?
Because the theorem gives c², the square of the distance. The root is the last step that turns an area back into a length.
How do I find the perimeter of a polygon on a grid?
Find each side's length separately — a subtraction for the horizontal and vertical sides, the distance formula for the slanted ones — then add them.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.8.G.B.8GeometryApply the Pythagorean Theorem to find the distance between two points in a coordinate system.
- CCSS.MATH.CONTENT.6.G.A.3GeometryDraw polygons in the coordinate plane given coordinates for the vertices; use coordinates to find the length of a side joining points with the same first coordinate or the same second coordinate. Apply these techniques in the context of solving real-world and mathematical problems.
- CCSS.MATH.CONTENT.HSG.GPE.B.7Expressing Geometric Properties with EquationsUse coordinates to compute perimeters of polygons and areas of triangles and rectangles, e.g., using the distance formula.