PRE-ALGEBRA • GEOMETRY & MEASUREMENT

Pythagorean Theorem: Distance — I can apply the Pythagorean Theorem in coordinate geometry to find distances between points.

Use the Pythagorean Theorem to find the exact distance between any two points on a coordinate plane.

Historical Context & Motivation

Have you ever needed to figure out the straight-line distance between two spots on a map? Maybe you wanted to know how far apart two cities are, or how long a shortcut across a field would be. People have been solving this exact problem for thousands of years!

The Pythagorean Theorem is one of the oldest and most useful ideas in all of math. It connects the sides of a right triangle in a simple formula. Ancient builders, surveyors, and navigators all relied on this idea. Today, you will learn how to use it on a coordinate plane (a grid with x- and y-axes) to find the distance between any two points.

~1800 BCE
Babylonian Clay Tablets
Ancient Babylonians carved number patterns onto clay tablets. These patterns show they already understood the relationship between the sides of right triangles.
~500 BCE
Pythagoras & Greek Proof
The Greek mathematician Pythagoras (or his students) created a formal proof of the theorem. The idea became known as the Pythagorean Theorem.
~300 BCE
Euclid's Elements
Euclid published a famous math textbook called the Elements. It included a detailed proof and helped spread the theorem across the world.
1600s
Coordinate Geometry Is Born
René Descartes invented the coordinate plane. Now people could plot points and use the Pythagorean Theorem to find distances between them.

So here is the big question this lesson answers: How do you find the exact straight-line distance between two points on a grid? The answer uses a right triangle hidden inside the coordinate plane!

Core Principles & Definitions

Before we jump into finding distances, let's make sure we understand a few key ideas. These building blocks will make everything else much easier.

1

Right Triangle

A right triangle is a triangle that has one angle measuring exactly 90° (a perfect corner, like the corner of a book).
2

Legs & Hypotenuse

The two shorter sides of a right triangle are called the legs. The longest side, across from the right angle, is the hypotenuse.
3

Pythagorean Theorem

In any right triangle: a² + b² = c², where a and b are the legs and c is the hypotenuse.
4

Coordinate Plane

A coordinate plane is a flat grid with a horizontal x-axis and a vertical y-axis. Every point is described by an (x, y) pair.
5

Distance

The distance between two points is the length of the straight line connecting them. It is always a positive number.
KEY TAKEAWAY
Think of walking on city streets. To go from one corner to another, you walk along blocks (horizontal, then vertical). But if you could fly in a straight line, the path would be shorter. That straight-line shortcut is the hypotenuse of a right triangle. The blocks you walked are the two legs. The Pythagorean Theorem lets you calculate the shortcut from the two block distances.

Seeing It on the Coordinate Plane

Let's see how a right triangle appears when you connect two points on a coordinate plane. In the diagram below, we have two points: A(1, 2) and B(5, 5). Watch how a right triangle forms between them.

Points A(1, 2) and B(5, 5) are connected by a straight line (cyan). The horizontal leg (purple dashed) has length 4 (from x = 1 to x = 5). The vertical leg (pink dashed) has length 3 (from y = 2 to y = 5). The small square marks the right angle.

See how the dashed lines create a right triangle? The horizontal dashed line goes from A straight to the right. The vertical dashed line drops down from B. These two lines are the legs of the right triangle. The straight line from A to B is the hypotenuse — and that's the distance we want to find!

The Distance Formula

Now let's put the math together. You already know the Pythagorean Theorem: a² + b² = c². On a coordinate plane, we can figure out the lengths of the two legs by looking at how far apart the x-values are and how far apart the y-values are.

PYTHAGOREAN THEOREM
a² + b² = c²
a and b are the legs (shorter sides), and c is the hypotenuse (longest side, across from the right angle).

When you have two points on a coordinate plane, the horizontal leg is the difference in the x-values. The vertical leg is the difference in the y-values. Let's say your two points are (x₁, y₁) and (x₂, y₂). Here is how we find each leg:

HORIZONTAL LEG
a = x₂ − x₁
Subtract the x-values to find the horizontal distance.
VERTICAL LEG
b = y₂ − y₁
Subtract the y-values to find the vertical distance.

Now plug those into the Pythagorean Theorem and solve for c (the distance). Since distance must be positive, we take the square root of both sides.

DISTANCE FORMULA
d = √((x₂ − x₁)² + (y₂ − y₁)²)
d = distance between the two points. The √ symbol means square root. This formula is really just the Pythagorean Theorem in disguise!
💡 Quick Tip
It doesn't matter which point you call (x₁, y₁) and which you call (x₂, y₂). Because you're squaring the differences, the answer comes out the same either way!

Step-by-Step Process

Let's break down the process into clear steps you can follow every time. The diagram below shows the full picture for two new points.

The distance from (2, 1) to (8, 9) is found by building a right triangle. The horizontal leg is 6, the vertical leg is 8, and the distance (hypotenuse) is 10.
  1. Step 1 — Plot your two points. Write down their coordinates: (x₁, y₁) and (x₂, y₂).
  2. Step 2 — Find the horizontal leg. Subtract the x-values: a = x₂ − x₁.
  3. Step 3 — Find the vertical leg. Subtract the y-values: b = y₂ − y₁.
  4. Step 4 — Square both legs and add. Compute a² + b².
  5. Step 5 — Take the square root. The result is your distance: d = √(a² + b²).

Worked Example

Let's walk through a full example together. We'll find the distance between the points (−3, 4) and (5, −2). Don't worry about the negative numbers — the squaring step takes care of them!

Finding the Distance Between (−3, 4) and (5, −2)
1
Step 1 — Identify the coordinatesLet (x₁, y₁) = (−3, 4) and (x₂, y₂) = (5, −2). We know which numbers are the x-values and which are the y-values.
2
Step 2 — Find the horizontal legSubtract the x-values: x₂ − x₁ = 5 − (−3) = 5 + 3 = 8. The horizontal leg is 8 units.
Horizontal leg = 8
3
Step 3 — Find the vertical legSubtract the y-values: y₂ − y₁ = −2 − 4 = −6. The leg length is 6 (we'll square it, so the sign doesn't matter).
Vertical leg = 6
4
Step 4 — Square both legs and add8² = 64 and 6² = 36. Now add: 64 + 36 = 100.
Sum of squares = 100
5
Step 5 — Take the square rootd = √100 = 10. The distance between the two points is exactly 10 units.
Distance = 10 units
🔍 Did You Notice?
The answer was a whole number! That doesn't always happen. Sometimes you'll get a square root that isn't a perfect number, like √52. In that case, you can simplify the square root or use a calculator to get a decimal (√52 ≈ 7.21).

Common Mistakes & Helpful Tips

Even though the distance formula is straightforward, there are a few common mistakes students make. Let's look at what to watch out for and what helps.

Watch out for these common errors!
Common MistakeWhy It HappensHow to Fix It
Forgetting to square the differencesStudents plug into the formula but skip the ² stepAlways write out each squaring step separately before adding
Subtracting x from y (mixing coordinates)Confusing which numbers are x-values and which are y-valuesLabel your values clearly: x₁, y₁, x₂, y₂ before you start
Errors with negative numbersSubtracting a negative is tricky (e.g., 5 − (−3))Remember: subtracting a negative is the same as adding. Write it out!
Taking the square root too earlyStudents square root each difference instead of the sumSquare both, add them together, then take the square root of the total
🎯 REMEMBER THIS
Think of the formula like making a smoothie. You have to put all the ingredients (both squared differences) into the blender before you hit blend (take the square root). If you blend one ingredient at a time, you won't get the right smoothie!

Connection to Advanced Topics

The distance formula you just learned is actually a gateway to many bigger ideas in math. As you move into higher-level courses, you'll see this same concept show up again and again — just in fancier forms.

Your current skills are the foundation for future math!
What You Know NowWhat You'll Learn Later
Distance between 2 points on a flat grid (2D)Distance in 3D space (adding a z-axis for depth)
Using the formula to find one distanceUsing it to write equations of circles (every point on a circle is the same distance from the center)
Right triangles on a coordinate planeTrigonometry — studying the angles and ratios inside right triangles
Finding exact distances between fixed pointsNavigation, GPS, and mapping technologies all rely on distance calculations

Every time you use a maps app on a phone to see how far away something is, the app is doing a version of the same calculation you just learned. The Pythagorean Theorem truly is everywhere!

Practice Problems

Now it's your turn! Try these five problems. They start easy and get harder. Give each one a shot before checking the answer.

PROBLEM 1CONCEPTUAL
When you draw a straight line between two points on a coordinate plane, what shape do you form when you add horizontal and vertical lines to connect the points? What part of that shape represents the distance?
PROBLEM 2BASIC CALCULATION
Find the distance between the points (1, 3) and (4, 7).
PROBLEM 3INTERMEDIATE
Find the distance between (−2, 5) and (4, −3). If the answer is not a whole number, simplify the square root.
PROBLEM 4APPLIED
A treasure map uses a coordinate grid. You are standing at position (3, 2) and the treasure is buried at (8, 14). Each grid unit equals 10 meters. How far away is the treasure in meters?
PROBLEM 5CRITICAL THINKING
Point C is at (1, 1). Point D is at (4, 5). Point E is at (7, 1). Is triangle CDE a right triangle? Use the distance formula to find all three side lengths, then check with the Pythagorean Theorem.

Lesson Summary

The Pythagorean Theorem (a² + b² = c²) tells us how the three sides of a right triangle relate to each other. When two points are plotted on a coordinate plane, you can form a right triangle by drawing horizontal and vertical lines between them. The horizontal leg comes from subtracting the x-values, and the vertical leg comes from subtracting the y-values.

To find the distance between the points, use the distance formula: d = √((x₂ − x₁)² + (y₂ − y₁)²). Square both leg lengths, add them together, and take the square root. This formula works for any two points — even when coordinates are negative. It is simply the Pythagorean Theorem applied to a coordinate grid!

Varsity Tutors • Pre-Algebra • Pythagorean Theorem: Distance