Section 1
Where Did This Idea Come From?
Have you ever tried to figure out how far apart two places are on a map? If the places are on the same street, you can just count blocks. But what if one place is north and east of another? You need a shortcut — and that shortcut was discovered thousands of years ago.
The Pythagorean Theorem is one of the most famous ideas in all of mathematics. It connects the sides of a right triangle in a beautifully simple way, and people have been using it for everything from building pyramids to programming video games.
~1800 BCE
~570–495 BCE
~300 BCE
1637 CE
Here's the big question Descartes helped us answer: If you know the coordinates of two points, how do you find the exact distance between them? That's what this lesson is all about.
Section 2
Core Principles & Definitions
Before we jump into finding distances, let's make sure you're comfortable with a few key ideas. Each one is a building block you'll need.
Right Triangle
Pythagorean Theorem
Coordinate Plane
Distance
✦ Key Takeaway
Section 3
Seeing It on the Coordinate Plane
Let's place two points on a coordinate plane and see how a right triangle appears. Look at points A (1, 2) and B (5, 5). If you draw a horizontal line from A and a vertical line from B, they meet at a corner — and that corner forms a right angle!
Notice what happened. The horizontal leg measures how far apart the two points are left-to-right (the difference in their x-coordinates: 5 − 1 = 4). The vertical leg measures how far apart they are up-and-down (the difference in their y-coordinates: 5 − 2 = 3). The hypotenuse is the actual straight-line distance between the points — and that's what we want to find.
Since we have a right triangle, we can use the Pythagorean Theorem: 4² + 3² = d². That gives us 16 + 9 = 25, so d = 5. The distance between A and B is 5 units.
Section 4
The Formulas You Need
Let's turn what we just saw into a formula that works for any two points. Say you have Point 1 at (x₁, y₁) and Point 2 at (x₂, y₂).
The Pythagorean Theorem
Where a and b are the legs, and c is the hypotenuse.
On the coordinate plane, the two legs of the right triangle are:
Horizontal Distance (Leg a)
The difference in the x-coordinates (how far apart they are left-to-right).
Vertical Distance (Leg b)
The difference in the y-coordinates (how far apart they are up-and-down).
Now plug those into the Pythagorean Theorem and solve for the distance d (which is the hypotenuse):
The Distance Formula
Take the square root of the sum of the squared differences. This is the Pythagorean Theorem in coordinate form!
Don't let the square root scare you. All this formula does is follow three steps: (1) find the horizontal and vertical distances, (2) square each one and add them together, (3) take the square root of that sum. You already did this in Section 3 — we're just writing it in a general way now.
✦ Key Takeaway
Section 5
Step-by-Step Breakdown
Let's look at the process you'll follow every time. The diagram below shows the steps visually with a new pair of points.
Here's a quick reference for the three steps you'll repeat every time:
| Step | What You Do | Example: (−2, 1) to (4, 4) |
|---|---|---|
| 1 | Subtract the x-coordinates and subtract the y-coordinates | 4 − (−2) = 6 | 4 − 1 = 3 |
| 2 | Square each result and add them together | 6² + 3² = 36 + 9 = 45 |
| 3 | Take the square root | √45 = 3√5 ≈ 6.71 |
Notice that even though one x-coordinate was negative, the method still works perfectly. When you subtract a negative number, it becomes addition: 4 − (−2) = 4 + 2 = 6. The squaring step also helps because it makes everything positive anyway!
Section 6
Worked Example
Let's work through a full problem together, nice and slow.
Problem
Worked Example
- 1
Step 1 — Identify your coordinates
Label the two points. It doesn't matter which one is "Point 1" and which is "Point 2" — the answer comes out the same.(x₁, y₁) = (−3, 2) (x₂, y₂) = (5, −4) - 2
Step 2 — Find the horizontal distance
Subtract the x-coordinates: x₂ − x₁.5 − (−3) = 5 + 3 =8 - 3
Step 3 — Find the vertical distance
Subtract the y-coordinates: y₂ − y₁. It's negative, but that's fine — we'll square it next, which makes it positive.−4 − 2 =−6 - 4
Step 4 — Square each distance and add
Square each difference and add them together.8² + (−6)² = 64 + 36 =100 - 5
Step 5 — Take the square root
Take the square root to find the distance.d = √100 =10 - 6
Final Answer
The distance between (−3, 2) and (5, −4) is exactly 10 units. That's already a whole number, so the decimal answer is also 10.00. Here's a nice check: we got a perfect answer because 8, 6, 10 form a Pythagorean triple (it's just the 3-4-5 triple multiplied by 2). Not every problem gives a whole number answer — many will give you a square root like √45 — and that's totally normal.
Section 7
Strengths, Limitations & Common Mistakes
The distance formula is powerful, but there are a few things to watch out for. Let's compare situations where it shines and where students often slip up.
| Situation | What Works | Watch Out For |
|---|---|---|
| Both coordinates are positive | Straightforward subtraction | Don't accidentally add the coordinates instead of subtracting |
| One or both coordinates are negative | Formula still works perfectly | Subtracting a negative: 3 − (−5) = 8, not −2 |
| Points on the same horizontal or vertical line | One leg is zero, so the distance is just the other leg | You don't really need the full formula here — just subtract! |
| Answer is not a whole number | Leave it as a simplified square root (exact) or use a calculator (decimal) | Don't round too early — simplify the square root first |
| Forgetting to square before adding | — | The most common mistake! You must square each difference before adding |
✦ Key Takeaway
Section 8
Where Does This Lead?
The distance formula you just learned is your first step into a much bigger world. Here's a peek at how this idea grows as you move through math.
| What You Know Now | What Comes Next |
|---|---|
| Distance between two points on a flat (2D) coordinate plane | Distance in 3D space (add a z-coordinate): d = √[(x₂−x₁)² + (y₂−y₁)² + (z₂−z₁)²] |
| Building a right triangle from two points | The midpoint formula finds the exact center of the hypotenuse |
| Finding one distance at a time | Using distance to write the equation of a circle (all points at the same distance from the center) |
| Working with specific number pairs | Using distance in proofs to show that shapes are congruent, isosceles, or right-angled |
In high school geometry and algebra, you'll use the distance formula constantly — to prove triangles are congruent, to find the radius of a circle, and even to analyze real-world data. Every time you use it, remember: it's just the Pythagorean Theorem in disguise.
Section 9
Practice Problems
Try these on your own! Work through each one step by step, then click "Show Answer" to check. Remember: subtract, square, add, square root.
Question 1: Problem 1 — Conceptual
Show answer
Question 2: Problem 2 — Basic Calculation
Show answer
Question 3: Problem 3 — Intermediate
Show answer
Question 4: Problem 4 — Applied
Show answer
Question 5: Problem 5 — Challenge
Show answer
Summary
Lesson Summary
Summary
The Pythagorean Theorem — the rule that a² + b² = c² in a right triangle — can be applied directly on a coordinate plane to find the distance between any two points. You do this by treating the horizontal gap (x₂ − x₁) and the vertical gap (y₂ − y₁) as the two legs of a right triangle. The distance formula — d = √[(x₂ − x₁)² + (y₂ − y₁)²] — is simply the Pythagorean Theorem rewritten in coordinate form.
The three-step process is the same every time: subtract the coordinates to get each leg, square and add those values, then take the square root. This works whether your coordinates are positive, negative, or zero. If the answer isn't a perfect square, simplify the radical by factoring out perfect squares. This foundational skill connects to circles, triangle classification, 3D distance, and many topics you'll see in high school geometry.