<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Dismiss
Skip Navigation
Our Terms of Use (click here to view) have changed. By continuing to use this site, you are agreeing to our new Terms of Use.

Distance Formula

Using the Pythagorean Theorem to determine distances

Atoms Practice
Estimated19 minsto complete
%
Progress
Practice Distance Formula
Practice
Progress
Estimated19 minsto complete
%
Practice Now
Turn In
Distance Formula

Suppose you and your friend were on a scavenger hunt. Starting out from the same place, you walked 5 blocks east and 3 blocks north. Your friend walked 7 blocks west and 2 blocks south. If each block were a tenth of a mile long, could you calculate how far apart you and your friend were? How would you do it? 

The Distance Formula

To understand the distance formula, we will first look at the following problem:

Find the length of the segment connecting (1, 5) and (5, 2).

The question asks you to identify the length of the segment. Because the segment is not parallel to either axis, it is difficult to measure given the coordinate grid.

However, it is possible to think of this segment as the hypotenuse of a right triangle. Draw a vertical line and a horizontal line. Find the point of intersection. This point represents the third vertex in the right triangle.

You can easily count the lengths of the legs of this triangle on the grid. The vertical leg extends from (1, 2) to (1, 5), so it is \begin{align*}|5-2|=|3|=3 \ units\end{align*} long. The horizontal leg extends from (1, 2) to (5, 2), so it is \begin{align*}|5-1|=|4| = 4 \ units\end{align*} long. Use the Pythagorean Theorem with these values for the lengths of each leg to find the length of the hypotenuse.

\begin{align*}a^2+b^2&=c^2\\ 3^2+4^2&=c^2\\ 9+16&=c^2\\ 25&=c^2\\ \sqrt{25} & = \sqrt{c^2}\\ 5 & =c\end{align*}

The segment connecting (1, 5) and (5, 2) is 5 units long.

Mathematicians have simplified this process and created a formula that uses these steps to find the distance between any two points in the coordinate plane. If you use the distance formula, you don’t have to draw the extra lines.

The distance formula states: Given points \begin{align*}(x_1, y_1)\end{align*} and \begin{align*}(x_2, y_2)\end{align*}, the length of the segment connecting those two points is \begin{align*}d=\sqrt{(y_2-y_1)^2+(x_2-x_1 )^2}\end{align*}.

Let's use the distance formula to complete the following problems: 

  1. Find the distance between (–3, 5) and (4, –2).

Use the distance formula. Let \begin{align*}(x_1,y_1)=(-3,5)\end{align*} and \begin{align*}(x_2,y_2)=(4,-2)\end{align*}.

\begin{align*}d&=\sqrt{(-2-5)^2+(4-(-3))^2} \rightarrow \sqrt{(-7)^2+7^2}\\ d& =\sqrt{98}=7\sqrt{2} \ units\end{align*}

  1. At 8 a.m. one day, Amir decides to walk in a straight line on the beach. After two hours of making no turns and traveling at a steady rate, Amir was two miles east and four miles north of his starting point. How far did Amir walk and what was his walking speed?

Plot Amir’s route on a coordinate graph. We can place his starting point at the origin, \begin{align*}A=(0, 0)\end{align*}. Then, his ending point will be at the point \begin{align*}B=(2, 4)\end{align*}. The distance can be found with the distance formula.

\begin{align*}d&=\sqrt{(4-0)^2 + (2-0)^2} = \sqrt{(4)^2 + (2)^2} + \sqrt{16+4}=\sqrt{20}\\ d&=4.47 \ miles.\end{align*}

Since Amir walked 4.47 miles in 2 hours, his speed is:

\begin{align*}\text{Speed} = \frac{4.47 \ miles}{2 \ hours}= 2.24 \ mi/h\end{align*}

    

 

Examples

Example 1

Earlier, you were told that on a scavenger hunt, starting out from the same place, you walked 5 blocks east and 3 blocks north and your friend walked 7 blocks west and 2 blocks south. Each block is a tenth of a mile long. How far apart were you and your friend?

It may be helpful to draw a graph to visualize the situation. Assuming that the starting point was at (0,0) and the distance between each point is equal to one block, if you walked 5 blocks east and 3 blocks north, your coordinates would be (-5, 3). Your friend walked 7 blocks wets and 2 blocks south, so their coordinates would be (7,-2)

License: CC BY-NC 3.0

Now, you can calculate the distance between these two points using the distance formula. All you need to do is plug the points into the formula and solve.

\begin{align*}d&=\sqrt{(y_2-y_1)^2+(x_2-x_1 )^2}\\ d&=\sqrt{(-2-3)^2+(7-(-5))^2} \rightarrow \sqrt{(-5)^2+12^2}\\ d& =\sqrt{169}=13\end{align*}

You and your friend are 13 units away from each other. Since each block is a tenth of a mile long, you can multiply 13 by one tenth to get the actual distance.

\begin{align*}13\times \frac{1}{10} = \frac{13}{10}=1.3\end{align*}

You and your friend are 1.3 miles away from each other. 

Example 2

Point \begin{align*}A=(6, -4)\end{align*} and point \begin{align*}B=(2, k)\end{align*}. What is the value of \begin{align*}k\end{align*} such that the distance between the two points is 5?

Use the distance formula.

\begin{align*}d = \sqrt{(y_1-y_2)^2 + (x_1-x_2)^2} \Rightarrow 5 = \sqrt{(4-k)^2 + (6-2)^2}\end{align*}

\begin{align*}\text{Square both sides of the equation.} \qquad 5^2&= \left [ \sqrt{(4-k)^2 + (6-2)^2} \right ]^2\\ \text{Simplify}. \qquad 25 &= (-4-k)^2 + 16\\ \text{Eliminate the parentheses}. \qquad 0 & = k^2+8k+16 -9\\ \text{Simplify}. \qquad 0 & = k^2+8k+7\\ \text{Find} \ k \ \text{using the quadratic formula}. \qquad k&= \frac{-8\pm \sqrt{64-28}}{2}= \frac{-8\pm \sqrt{36}}{2} = \frac{-8 \pm 6}{2}\end{align*}

\begin{align*}k=-7\end{align*} or \begin{align*}k=-1\end{align*}. There are two possibilities for the value of \begin{align*}k\end{align*}. Let’s graph the points to get a visual representation of our results.

Review

In 1–10, find the distance between the two points.

  1. \begin{align*}(x_1,y_1)\end{align*} and \begin{align*}(x_2,y_2)\end{align*}
  2. (7, 7) and (–7, 7)
  3. (–3, 6) and (3, –6)
  4. (–3, –1) and (–5, –8)
  5. (3, –4) and (6, 0)
  6. (–1, 0) and (4, 2)
  7. (–3, 2) and (6, 2)
  8. (0.5, –2.5) and (4, –4)
  9. (12, –10) and (0, –6)
  10. (2.3, 4.5) and (–3.4, –5.2)
  1. Find all points having an \begin{align*}x\end{align*}-coordinate of –4 and whose distance from point (4, 2) is 10.
  2. Find all points having a \begin{align*}y\end{align*}-coordinate of 3 and whose distance from point (–2, 5) is 8.
  3. Michelle decides to ride her bike one day. First she rides her bike due south for 12 miles, and then the direction of the bike trail changes and she rides in the new direction for a while longer. When she stops, Michelle is 2 miles south and 10 miles west of her starting point. Find the total distance that Michelle covered from her starting point.

Mixed Review

  1. Solve \begin{align*}(x-4)^2=121\end{align*}.
  2. What is the GCF of \begin{align*}21ab^4\end{align*} and \begin{align*}15a^7 b^2\end{align*}?
  3. Evaluate \begin{align*}_{10}C_7\end{align*} and explain its meaning.
  4. Factor \begin{align*}6x^2+17x+5\end{align*}.
  5. Find the area of a rectangle with a length of \begin{align*}(16+2m)\end{align*} and a width of \begin{align*}(12+2m)\end{align*}.
  6. Factor \begin{align*}x^2-81\end{align*}.

Review (Answers)

To see the Review answers, open this PDF file and look for section 11.7. 

Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes
Please to create your own Highlights / Notes
Show More

Vocabulary

Distance Formula

The distance between two points (x_1, y_1) and (x_2, y_2) can be defined as d= \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}.

Midpoint Formula

The midpoint formula says that for endpoints (x_1, y_1) and (x_2, y_2), the midpoint is @$\left( \frac{x_1+x_2}{2}, \frac{y_1+y_2}{2} \right)@$.

Image Attributions

  1. [1]^ License: CC BY-NC 3.0

Explore More

Sign in to explore more, including practice questions and solutions for Distance Formula.
Please wait...
Please wait...