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.
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.
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
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.
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₂).
On the coordinate plane, the two legs of the right triangle are:
Now plug those into the Pythagorean Theorem and solve for the distance d (which is the hypotenuse):
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.
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!
Worked Example
Let's work through a full problem together, nice and slow.
(x₁, y₁) = (−3, 2) (x₂, y₂) = (5, −4)5 − (−3) = 5 + 3 = 8−4 − 2 = −68² + (−6)² = 64 + 36 = 100d = √100 = 10Strengths, 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 |
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.
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.
Lesson 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.