Distance Between Two Points

LESSON 3 OF 16See the unit map ↗

Find distance by identifying the horizontal and vertical changes.

Builds on The Coordinate Plane

The bigger question: How can a picture become an equation?

On this page

Idea

Join two points with a straight line. Then draw one horizontal line and one vertical line to make a corner.

You now have a right triangle, and your line is its longest side. The two short sides are ∣x2−x1∣|x_2 - x_1| and ∣y2−y1∣|y_2 - y_1|. So the Pythagorean theorem gives you the distance.

Rule

For any two points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2):

∣AB∣=(x2−x1)2+(y2−y1)2|AB| = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Because the differences are squared, the subtraction order does not matter: (x1−x2)2=(x2−x1)2(x_1 - x_2)^2 = (x_2 - x_1)^2.

How it is used

Three standard patterns:

  1. Direct computation. Plug both points in and simplify - leave answers in exact form like 525\sqrt{2}.
  2. Distance to the origin. With O(0,0)O(0, 0) the formula collapses to x2+y2\sqrt{x^2 + y^2}.
  3. Unknown coordinate. If you are given the distance, square both sides and solve. Remember the square root gives a plus and a minus, so there are usually two answers.

Worked example

Find the distance between A(−2,4)A(-2, 4) and B(3,−1)B(3, -1). Differences: x2−x1=3−(−2)=5x_2 - x_1 = 3 - (-2) = 5 and y2−y1=−1−4=−5y_2 - y_1 = -1 - 4 = -5. ∣AB∣=52+(−5)2=25+25=50|AB| = \sqrt{5^2 + (-5)^2} = \sqrt{25 + 25} = \sqrt{50} Simplify: 50=25⋅2=52\sqrt{50} = \sqrt{25 \cdot 2} = 5\sqrt{2} units.

Explore

Drag either point. The dashed sides are the differences in xx and in yy. The blue side is the distance. Look for the cases where the distance is a whole number. Those are the 3-4-5 and 5-12-13 triangles.

Distance between two points

Try this. Place A at (0, 0) and B at (3, 4): the distance is 5. Swap the points; the distance stays the same.

Distance between two points-6-6-4-4-2-2224466xyBA
Distance = √((5)² + (-2)²) = √29 ≈ 5.385
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

What is the distance from (1,2)(1,2) to (4,6)(4,6)?

Hint 1 · Find a starting point

Draw the right triangle joining the points.

Hint 2 · Take the next step

The changes are 3 horizontally and 4 vertically; square them, add, then take a square root.

Show the reasoning

Answer: 55

d=32+42=5d=\sqrt{3^2+4^2}=5. Adding the changes gives a path along the axes, not the straight-line distance.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →