Become a math whiz with AI Tutoring, Practice Questions & more.

Join for Free
HotmathMath Homework. Do It Faster, Learn It Better.

Distance Formula

You already know that the distance d between two points in a plane with Cartesian coordinates A x 1 y 1 and B x 2 y 2 is given by the following formula:

d = ( x 2 - x 1 ) 2 + ( y 2 - y 1 ) 2

The distance formula is actually just the Pythagorean theorem in disguise. The distance between two points is measured as the length of the interval that joins two points. If the two points lie on the same vertical or horizontal line, the distance formula is simplified and is calculated by subtracting the coordinates.

To calculate the distance d between point A x 1 y 1 and B x 2 y 2 , first, draw a right triangle that has the segment AB as its hypotenuse.

If the lengths of the sides are A and B, then by the Pythagorean theorem,

( AB ) 2 = ( AC ) 2 + ( BC ) 2

Solving for the distance AB, we have

d = ( AC ) 2 + ( BC ) 2

Since AC is a horizontal distance, it is just the absolute difference between the x coordinates | ( x 2 - x 1 ) | . Similarly, BC is the vertical distance | ( y 2 - y 1 ) | .

Since we're squaring these distances anyway, and squares are always non-negative, we don't need to worry about those absolute value signs. So

d = x 2 - x 1 2 + y 2 - y 1 2

Example 1

Find the distance between points A and B in the above figure.

In the above figure, we have

A x 1 y 1 = -1 0 , B x 2 y 2 = 2 7

So

d = 2 - -1 2 + 7 - 0 2

d = 3 2 + 7 2

= 9 + 49

= 58

Or approximately 7.6 square units

Example 2

Find the difference between P 3 -4 and Q -5 -1

Coordinates of P 3 -4 are ( x 1 , y 1 )

Coordinates of Q -5 -1 are ( x 2 , y 2 )

Applying the distance formula

d = ( x 2 - x 1 ) 2 + ( y 2 - y 1 ) 2

= ( - 5 - 3 ) 2 + ( - 1 - -4 ) 2

= 64 + 9

= 73

or approximately 8.54 square units

Practice using the distance formula

a. Find the difference between P -4 0 and Q 0 3

Coordinates of P -4 0 are ( x 1 , y 1 )

Coordinates of Q 0 3 are ( x 2 , y 2 )

Applying the distance formula

d = x 2 - x 1 2 + y 2 - y 1 2

= ( 0 - -4 ) 2 + ( 3 - 0 ) 2

= -4 2 + 3 2

= 16 + 9

= 25

= 5

Therefore, according to the above calculations, the distance between points P and Q is 5 units.

b. Find the distance between P 1 7 and Q 3 2

Coordinates of P 1 7 are ( x 1 , y 1 )

Coordinates of Q 3 2 are ( x 2 , y 2 )

Applying the distance formula

d = x 2 - x 1 2 + y 2 - y 1 2

= ( 3 - 1 ) 2 + ( 2 - 7 ) 2

= ( 2 ) 2 + ( - 5 ) 2

= 4 + 10

= 14

approximately equal to 3.74

Therefore, according to the above calculations, the distance between points P and Q is approximately 3.74 units.

Topics related to the Distance Formula

Pythagorean Theorem

Distance Formula in 3D

Coordinate Proofs

Flashcards covering the Distance Formula

Advanced Geometry Flashcards

Common Core: High School - Geometry Flashcards

Practice tests covering the Distance Formula

Common Core: High School - Geometry Diagnostic Tests

Advanced Geometry Diagnostic Tests

Get help learning about the distance formula

Using the distance formula can be confusing, whether your student is learning it by graphing or by using the formula without the benefit of a graph. If your student is having a hard time grasping the distance formula, it may be time to have them get together with a private tutor in a 1-on-1 setting where they can focus without distractions. Their tutor can move at your student's pace, going step by step through the process of solving the distance formula, until your student has a thorough understanding of how to use it. To learn more about how tutoring can benefit your student, contact the Educational Directors at Varsity Tutors today.

Subjects Near Me
Popular Cities
Popular Subjects
;
Download our free learning tools apps and test prep books
varsity tutors app storevarsity tutors google play storevarsity tutors amazon storevarsity tutors ibooks store