Finding distance between two points using coordinates and the Pythagorean theorem
Reserve & Extensions • K-12
How far is it between two points on a coordinate plane? You cannot simply measure along the x-axis or the y-axis -- in most cases the path is diagonal. The distance formula gives us the exact straight-line distance between any two points, and it comes directly from a theorem you already know: the Pythagorean theorem.
Given two points (x1, y1) and (x2, y2), imagine drawing a right triangle where:
By the Pythagorean theorem (a2 + b2 = c2):
Find the distance between A(1, 2) and B(4, 6).
Find the distance between P(-3, 5) and Q(2, -7).
Since we square the differences, it does not matter which point you call (x1, y1) and which you call (x2, y2). The result is always the same.
The midpoint is the point exactly halfway between two given points. Simply average the x-coordinates and average the y-coordinates:
Find the midpoint of A(2, 8) and B(10, -4).
The distance formula is used in navigation (GPS calculates distances between coordinates), computer graphics (collision detection in games), and physics (displacement calculations).
The formula is d = √[(x2 - x1)2 + (y2 - y1)2], not d = (x2 - x1) + (y2 - y1). Simply adding the differences gives the wrong answer.
1. Find the distance between (0, 0) and (5, 12).
d = √(25 + 144) = √169 = 13
2. Find the distance between (-1, 3) and (3, 3).
d = √(42 + 02) = √16 = 4. (These points share a y-coordinate, so the distance is purely horizontal.)
3. Find the midpoint of (-6, 4) and (8, -2).
Midpoint = ((-6 + 8)/2, (4 + (-2))/2) = (2/2, 2/2) = (1, 1)
4. Find the distance between (2, -1) and (-3, 11).
d = √[(-3 - 2)2 + (11 - (-1))2] = √[25 + 144] = √169 = 13
5. A phone shows you are at location (3, 7) on a grid map. A coffee shop is at (9, 15). Each grid unit represents 0.1 miles. How far away is the coffee shop?
d = √[(9-3)2 + (15-7)2] = √[36 + 64] = √100 = 10 grid units. At 0.1 miles each: 10 × 0.1 = 1 mile.