Distance formula | Analytic geometry (article) | Khan Academy (2024)

Google Classroom

Walk through deriving a general formula for the distance between two points.

The distance between the points (x1,y1) and (x2,y2) is given by the following formula:

(x2x1)2+(y2y1)2

In this article, we're going to derive this formula!

Deriving the distance formula

Let's start by plotting the points (x1,y1) and (x2,y2).

The length of the segment between the two points is the distance between them:

We want to find the distance. If we draw a right triangle, we'll be able to use the Pythagorean theorem!

An expression for the length of the base is x2x1:

Most people have to stop and think about why this expression works. For example, think about if x1=3 and x2=7. Here is how we would find the length of the base:

=x2x1=73=4

This makes sense because the distance from 3 to 7 is 4.

Similarly, an expression for the length of the height is y2y1:

Now we can use the Pythagorean theorem to write an equation:

?2=(x2x1)2+(y2y1)2

We can solve for ? by taking the square root of each side:

?=(x2x1)2+(y2y1)2

That's it! We derived the distance formula!

Interestingly, a lot of people don't actually memorize this formula. Instead, they set up a right triangle, and use the Pythagorean theorem whenever they want to find the distance between two points.

Want to join the conversation?

Log in

  • rose

    7 years agoPosted 7 years ago. Direct link to rose's post “who came up with this for...”

    who came up with this formula?

    (47 votes)

  • Ivan Brown

    7 years agoPosted 7 years ago. Direct link to Ivan Brown's post “I still don't understand ...”

    I still don't understand any of this... :I

    (21 votes)

    • Ethan

      7 years agoPosted 7 years ago. Direct link to Ethan's post “I haven't read any of the...”

      Distance formula | Analytic geometry (article) | Khan Academy (11)

      Distance formula | Analytic geometry (article) | Khan Academy (12)

      Distance formula | Analytic geometry (article) | Khan Academy (13)

      I haven't read any of the article on this so I really hope I don't say the exact same thing he says.... here goes:

      Here is the graph I am referring to in my explanation: https://www.desmos.com/calculator/juthaysfbl
      -- only look at the graph, ignore everything on the sides and bottom --

      (intuitive solution, and how I learned this)

      Think of the Pythagorean theorem. The formula is a^2 + b^2 = c^2 . Now, imagine two points, let's say they are (0,0) and (3,4) to keep it simple. Look at the blue line going from (0,0) to (3,0). This is the base, with a distance of 3 units. How did we find this? We took one of the x values (3) and subtracted it by the other (0). 3 - 0 = 0. Next, we must find the height. The red line represents it, and it is a length of 4 units. We found this, again, by subtracting the y values (4 - 0 = 0). We can now find the hypotenuse, if we replace a and b with the base height length, so we get 3^2 + 4^2 = c^2 (where c is the orange line, or hypotenuse). The hypotenuse is the distance of the two points.

      Of course, we can square root both sides so we get c = sqrt( 3^2 + 4^2). We can expand this even further if we replace the 3 and 4 with how we got there, so c = sqrt( (3 - 0)^2 + (4 - 0)^2). But what do 3 and 0 and 4 and 0 mean? The two x values and y values, respectively. Therefore, we replace the numbers so we get c (hypotenuse) = ( ( x1 - x2) ^2 + (y1 - y2) ^2) .

      I really hope this helped you, I spent a long time explaining this lmao...

      (77 votes)

  • bpjblr

    a year agoPosted a year ago. Direct link to bpjblr's post “POV: your teacher makes y...”

    POV: your teacher makes you show your work

    (38 votes)

    • Hailey Bodhi

      7 months agoPosted 7 months ago. Direct link to Hailey Bodhi's post “The worst feeling in the ...”

      Distance formula | Analytic geometry (article) | Khan Academy (17)

      The worst feeling in the world is when you lose a point because you "Didn't show your work" like. Ow

      (21 votes)

  • ur mom

    a year agoPosted a year ago. Direct link to ur mom's post “bro why do we have to do ...”

    bro why do we have to do this

    (19 votes)

    • Jackandmoo

      a year agoPosted a year ago. Direct link to Jackandmoo's post “I cannot say why you have...”

      Distance formula | Analytic geometry (article) | Khan Academy (21)

      Distance formula | Analytic geometry (article) | Khan Academy (22)

      I cannot say why you have to, but I can say why this might be useful in the future.
      Lets say for whatever reason you needed to make a video game, and let’s also say you needed to calculate the distance between a player and an object in order to make an action occur. I imagine this would be useful for those purposes

      (30 votes)

  • malexander8

    7 years agoPosted 7 years ago. Direct link to malexander8's post “okay I understand all you...”

    okay I understand all you have to do is take your y axis and divide it by your x axis

    (13 votes)

    • Marisah visaiz

      7 years agoPosted 7 years ago. Direct link to Marisah visaiz's post “If you were to get two pe...”

      Distance formula | Analytic geometry (article) | Khan Academy (26)

      Distance formula | Analytic geometry (article) | Khan Academy (27)

      If you were to get two perfect squares under the giant square root after subtracting the two points within each parentheses, would you be able to separate them in order to pull them out of the square root and make them rational?
      For example, if I got "the square root of (6)^squared + (6)^squared" would I first square them and get "the square root of 36+36?" or could I separate them into "the square root of 36 + the square root of 36"

      (27 votes)

  • jasontheking121

    6 years agoPosted 6 years ago. Direct link to jasontheking121's post “how is the formula the sa...”

    how is the formula the same as the Pythagorean theorem

    (12 votes)

    • WeiWei4834

      6 years agoPosted 6 years ago. Direct link to WeiWei4834's post “The x and the y axis are ...”

      Distance formula | Analytic geometry (article) | Khan Academy (31)

      Distance formula | Analytic geometry (article) | Khan Academy (32)

      The x and the y axis are perpendicular, so if you imagine a right triangle when you find a distance, and the hypotenuse is the distance

      (26 votes)

  • Pink_Ivy_Nikes

    7 years agoPosted 7 years ago. Direct link to Pink_Ivy_Nikes's post “Sooooo, if I have two poi...”

    Sooooo, if I have two points, (1, 2) and (-1, 4), it does not matter in which order I subtract as long as I do the x with the x, and so on? Because it doesn't look that way.

    (7 votes)

    • jameseden

      7 years agoPosted 7 years ago. Direct link to jameseden's post “when you square a negativ...”

      Distance formula | Analytic geometry (article) | Khan Academy (36)

      when you square a negative it becomes a positive

      (22 votes)

  • Eleanor Brown

    7 years agoPosted 7 years ago. Direct link to Eleanor Brown's post “I don't get it and I have...”

    I don't get it and I have a test tomorrow it's hard for sixth grade

    (13 votes)

    • spec.

      3 years agoPosted 3 years ago. Direct link to spec.'s post “I most likely responded w...”

      Distance formula | Analytic geometry (article) | Khan Academy (40)

      I most likely responded wayyyy to late for this, but I thoroughly recommend you go through both the article and video ( maybe the practices!) and study hard.

      (11 votes)

  • Maria Lopes

    6 years agoPosted 6 years ago. Direct link to Maria Lopes's post “what is the formula that ...”

    what is the formula that is used to find distance between two points

    (0 votes)

    • JalenH

      4 years agoPosted 4 years ago. Direct link to JalenH's post “bro are u crazy its right...”

      Distance formula | Analytic geometry (article) | Khan Academy (44)

      Distance formula | Analytic geometry (article) | Khan Academy (45)

      bro are u crazy its right above you in the beginning of the lesson

      (34 votes)

  • Jermaine jones

    a year agoPosted a year ago. Direct link to Jermaine jones's post “pov:i still dont understa...”

    pov:i still dont understand but agree with everything ;-;

    (13 votes)

Distance formula | Analytic geometry (article) | Khan Academy (2024)

References

Top Articles
How to spot and stop ISP throttling in 2024 - Surfshark
How to Test if Your ISP is Throttling Your Internet Connection
Devin Mansen Obituary
Golden Abyss - Chapter 5 - Lunar_Angel
Custom Screensaver On The Non-touch Kindle 4
Knoxville Tennessee White Pages
Google Jobs Denver
Die Windows GDI+ (Teil 1)
Costco The Dalles Or
According To The Wall Street Journal Weegy
Noaa Swell Forecast
Free Robux Without Downloading Apps
Celsius Energy Drink Wo Kaufen
Pollen Count Central Islip
Www.paystubportal.com/7-11 Login
The Binding of Isaac
Pro Groom Prices – The Pet Centre
Oc Craiglsit
Fredericksburg Free Lance Star Obituaries
Drago Funeral Home & Cremation Services Obituaries
Lax Arrivals Volaris
Shannon Dacombe
Der Megatrend Urbanisierung
Gia_Divine
Publix Super Market At Rainbow Square Shopping Center Dunnellon Photos
Nhl Tankathon Mock Draft
Gopher Hockey Forum
Persona 5 Royal Fusion Calculator (Fusion list with guide)
Brazos Valley Busted Newspaper
Litter Robot 3 RED SOLID LIGHT
Prot Pally Wrath Pre Patch
Phantom Fireworks Of Delaware Watergap Photos
Cognitive Science Cornell
Is Holly Warlick Married To Susan Patton
Harbor Freight Tax Exempt Portal
Copper Pint Chaska
Phoenixdabarbie
UAE 2023 F&B Data Insights: Restaurant Population and Traffic Data
Darknet Opsec Bible 2022
Rock Salt Font Free by Sideshow » Font Squirrel
Colorado Parks And Wildlife Reissue List
Go Upstate Mugshots Gaffney Sc
How are you feeling? Vocabulary & expressions to answer this common question!
Vision Source: Premier Network of Independent Optometrists
Encompass.myisolved
303-615-0055
Ursula Creed Datasheet
The best bagels in NYC, according to a New Yorker
Poe Self Chill
The Jazz Scene: Queen Clarinet: Interview with Doreen Ketchens – International Clarinet Association
Southwind Village, Southend Village, Southwood Village, Supervision Of Alcohol Sales In Church And Village Halls
Obituary Roger Schaefer Update 2020
Latest Posts
Article information

Author: Annamae Dooley

Last Updated:

Views: 5555

Rating: 4.4 / 5 (45 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Annamae Dooley

Birthday: 2001-07-26

Address: 9687 Tambra Meadow, Bradleyhaven, TN 53219

Phone: +9316045904039

Job: Future Coordinator

Hobby: Archery, Couponing, Poi, Kite flying, Knitting, Rappelling, Baseball

Introduction: My name is Annamae Dooley, I am a witty, quaint, lovely, clever, rich, sparkling, powerful person who loves writing and wants to share my knowledge and understanding with you.