DQYDJ Logo

2D Distance Calculator: Straight Line Distance Between Points

Written by:
PK

Here is a 2D distance formula calculator, which will calculate the straight line or Euclidean distance between two points in two dimensions.

Also see the other Euclidean distance calculators:

2D Distance Calculator

Formula for 2D Euclidean Distance

The formula for two-dimension distance is:

d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}

Where:

  • d: the distance between the two points (or the hypotenuse)
  • x1, y1: the x and y coordinates of point 1
  • x2, y2: the x and y coordinates of point 2

Example Distance Calculation

Let's say you have 2 points, (x, y):

  • (4, 9)
  • (0, 6)

Here's how you do the math:

d=\sqrt{(0-4)^2+(6-9)^2}=\sqrt{(-4)^2+(-3)^2}=\\=\sqrt{16+9}=\\\sqrt{25}=5

The distance between these points is 5.

Using the 2D Distance Formula Calculator

First, leave the Dimensions setting at 2.

Next, enter the x, y coordinates of the two points. The top table holds the X & Y for the first point, the lower holds the X & Y for the second.

Now, hit the Compute Distance button and we'll show you the distance – it's that simple. Enjoy!

Now, visit our other calculators and tools.

Don't Quit Your Day Job...

DQYDJ may be compensated by our advertising and affiliate partners if you make purchases through links. See our disclosures page for more information.
Sign Up For Emails
© 2009-2020 dqydj.com
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram